[03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:30]OFD Sender: No OFD packet to send [03:39:35]OFD Sender: No OFD packet to send [03:39:40]OFD Sender: No OFD packet to send [03:39:45]OFD Sender: No OFD packet to send [03:39:50]OFD Sender: No OFD packet to send [03:39:55]OFD Sender: No OFD packet to send [03:40:00]OFD Sender: No OFD packet to send [03:40:05]OFD Sender: No OFD packet to send [03:40:10]OFD Sender: No OFD packet to send [03:40:15]OFD Sender: No OFD packet to send [03:40:20]OFD Sender: No OFD packet to send [03:40:25]OFD Sender: No OFD packet to send [03:40:30]OFD Sender: No OFD packet to send [03:40:35]OFD Sender: No OFD packet to send [03:40:40]OFD Sender: No OFD packet to send [03:40:45]OFD Sender: No OFD packet to send [03:40:50]OFD Sender: No OFD packet to send [03:40:55]OFD Sender: No OFD packet to send [03:41:00]OFD Sender: No OFD packet to send [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:05]OFD Sender: No OFD packet to send [03:44:10]OFD Sender: No OFD packet to send [03:44:15]OFD Sender: No OFD packet to send [03:44:20]OFD Sender: No OFD packet to send [03:44:25]OFD Sender: No OFD packet to send [03:44:30]OFD Sender: No OFD packet to send [03:44:35]OFD Sender: No OFD packet to send [03:44:40]OFD Sender: No OFD packet to send [03:44:45]OFD Sender: No OFD packet to send [03:44:50]OFD Sender: No OFD packet to send [03:44:55]OFD Sender: No OFD packet to send [03:45:00]OFD Sender: No OFD packet to send [03:45:05]OFD Sender: No OFD packet to send [03:45:10]OFD Sender: No OFD packet to send [03:45:15]OFD Sender: No OFD packet to send [03:45:20]OFD Sender: No OFD packet to send [03:45:25]OFD Sender: No OFD packet to send [03:45:30]OFD Sender: No OFD packet to send [03:45:35]OFD Sender: No OFD packet to send [03:45:40]OFD Sender: No OFD packet to send [03:45:45]OFD Sender: No OFD packet to send [03:45:50]OFD Sender: No OFD packet to send [03:45:55]OFD Sender: No OFD packet to send [03:46:00]OFD Sender: No OFD packet to send [03:46:05]OFD Sender: No OFD packet to send [03:46:10]OFD Sender: No OFD packet to send [03:46:15]OFD Sender: No OFD packet to send [03:46:20]OFD Sender: No OFD packet to send [03:46:25]OFD Sender: No OFD packet to send [03:46:30]OFD Sender: No OFD packet to send [03:46:35]OFD Sender: No OFD packet to send [03:46:40]OFD Sender: No OFD packet to send [03:46:45]OFD Sender: No OFD packet to send [03:46:50]OFD Sender: No OFD packet to send [03:46:55]OFD Sender: No OFD packet to send [03:47:00]OFD Sender: No OFD packet to send [03:47:05]OFD Sender: No OFD packet to send [03:47:10]OFD Sender: No OFD packet to send [03:47:15]OFD Sender: No OFD packet to send [03:47:20]OFD Sender: No OFD packet to send [03:47:25]OFD Sender: No OFD packet to send [03:47:30]OFD Sender: No OFD packet to send [03:47:35]OFD Sender: No OFD packet to send [03:47:40]OFD Sender: No OFD packet to send [03:47:45]OFD Sender: No OFD packet to send [03:47:50]OFD Sender: No OFD packet to send [03:47:55]OFD Sender: No OFD packet to send [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:25]OFD Sender: No OFD packet to send [03:50:30]OFD Sender: No OFD packet to send [03:50:35]OFD Sender: No OFD packet to send [03:50:40]OFD Sender: No OFD packet to send [03:50:45]OFD Sender: No OFD packet to send [03:50:50]OFD Sender: No OFD packet to send [03:50:55]OFD Sender: No OFD packet to send [03:51:00]OFD Sender: No OFD packet to send [03:51:05]OFD Sender: No OFD packet to send [03:51:10]OFD Sender: No OFD packet to send [03:51:15]OFD Sender: No OFD packet to send [03:51:20]OFD Sender: No OFD packet to send [03:51:25]OFD Sender: No OFD packet to send [03:51:30]OFD Sender: No OFD packet to send [03:51:35]OFD Sender: No OFD packet to send [03:51:40]OFD Sender: No OFD packet to send [03:51:45]OFD Sender: No OFD packet to send [03:51:50]OFD Sender: No OFD packet to send [03:51:55]OFD Sender: No OFD packet to send [03:52:00]OFD Sender: No OFD packet to send [03:52:05]OFD Sender: No OFD packet to send [03:52:10]OFD Sender: No OFD packet to send [03:52:15]OFD Sender: No OFD packet to send [03:52:20]OFD Sender: No OFD packet to send [03:52:25]OFD Sender: No OFD packet to send [03:52:30]OFD Sender: No OFD packet to send [03:52:35]OFD Sender: No OFD packet to send [03:52:40]OFD Sender: No OFD packet to send [03:52:45]OFD Sender: No OFD packet to send [03:52:50]OFD Sender: No OFD packet to send [03:52:55]OFD Sender: No OFD packet to send [03:53:00]OFD Sender: No OFD packet to send [03:53:05]OFD Sender: No OFD packet to send [03:53:10]OFD Sender: No OFD packet to send [03:53:15]OFD Sender: No OFD packet to send [03:53:20]OFD Sender: No OFD packet to send [03:53:25]OFD Sender: No OFD packet to send [03:53:30]OFD Sender: No OFD packet to send [03:53:35]OFD Sender: No OFD packet to send [03:53:40]OFD Sender: No OFD packet to send [03:53:45]OFD Sender: No OFD packet to send [03:53:50]OFD Sender: No OFD packet to send [03:53:55]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:31]OFD Sender: No OFD packet to send [03:57:36]OFD Sender: No OFD packet to send [03:57:41]OFD Sender: No OFD packet to send [03:57:46]OFD Sender: No OFD packet to send [03:57:51]OFD Sender: No OFD packet to send [03:57:56]OFD Sender: No OFD packet to send [03:58:01]OFD Sender: No OFD packet to send [03:58:06]OFD Sender: No OFD packet to send [03:58:11]OFD Sender: No OFD packet to send [03:58:16]OFD Sender: No OFD packet to send [03:58:21]OFD Sender: No OFD packet to send [03:58:26]OFD Sender: No OFD packet to send [03:58:31]OFD Sender: No OFD packet to send [03:58:36]OFD Sender: No OFD packet to send [03:58:41]OFD Sender: No OFD packet to send [03:58:46]OFD Sender: No OFD packet to send [03:58:51]OFD Sender: No OFD packet to send [03:58:56]OFD Sender: No OFD packet to send [03:59:01]OFD Sender: No OFD packet to send [03:59:06]OFD Sender: No OFD packet to send [03:59:11]OFD Sender: No OFD packet to send [03:59:16]OFD Sender: No OFD packet to send [03:59:21]OFD Sender: No OFD packet to send [03:59:26]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:15]accept exits with 9 [04:57:15]New connection [04:57:15]New thread 3066731876 created [04:57:15]Thread 3066588516 joined [04:57:15]Waiting for new connection... [04:57:15] Sock 9.Parse request [04:57:15]Sock 9.Check first char [04:57:15]Sock 9.First char is OK [04:57:15]request: POST /json_proto HTTP/1.0 [04:57:15]Method: POST [04:57:15]URL: /json_proto [04:57:15]Method is POST - this is cgi request [04:57:15]url: /json_proto [04:57:15]query_string will be loaded in cgi processing [04:57:15]execute_cgi json_proto POST (null) [04:57:15]execute_cgi path=json_proto method=POST [04:57:15]POST find Content-Length [04:57:15]Host: 172.17.54.195:8080 [04:57:15]Content-Length: 773 [04:57:15]Content-Type: application/json [04:57:15] [04:57:15]POST finish read [04:57:15]Found Content-Length = 773 [04:57:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.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: Mbank", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:15]execute_script... [04:57: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)16213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.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: Mbank", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:57:15]POST & json_proto [04:57:15]process_json_proto [04:57:15]json parsed OK: [04:57:15]protocol is kg_v1.0 [04:57:15]action value=close_receipt [04:57:15]process_action close_receipt [04:57:15]cmd_close_receipt [04:57:15]MH_GetDate [04:57:15]Write to MH i2c: F0 00 00 43 38 6A [04:57:15]Write i2c OK [04:57:15]MH_I2C_Read... [04:57:15]Read from MH i2c: F0 [04:57:15]MH_I2C_Read... [04:57:15]Read from MH i2c: F0 09 00 [04:57:15]MH_I2C_Read... [04:57:15]Read from MH i2c: F0 09 00 43 38 00 34 6B 20 67 8D 90 A3 66 BF [04:57:15]GetLastDocTimeStamp 1730170679 [04:57:15]current date 1730177844 [04:57:15]FM_GetShiftState [04:57:15]SAM_PROTO_GetShiftState [04:57:15]wFMCommunicate request_size=4 [04:57:15]MH_SAM_APDU [04:57:15]CAPDU: 80 13 01 00 [04:57:15]Write to MH i2c: E2 08 00 44 38 80 13 01 00 00 00 00 00 F9 [04:57:15]Write i2c OK [04:57:15]MH_I2C_Read... [04:57:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:15]Read from MH i2c: E2 [04:57:15]MH_I2C_Read... [04:57:15]Read from MH i2c: E2 0E 00 [04:57:15]MH_I2C_Read... [04:57:15]Read from MH i2c: E2 0E 00 44 38 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4E [04:57:15]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [04:57:15]wFMCommunicate OK [04:57:15]SAM_PROTO_GetShiftState done [04:57:15]FM_GetShiftState done [04:57:15]opened in 1730161559 [04:57:15]opened+sec_in_day 1730247959 [04:57:15]quantity*price = 20041 [04:57:15]sum+1 = 20042 [04:57:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 10 29.10.2024 04:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15664 ФПД: 191212583772170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T045724&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15664&fm=191212583772170&tin=02508201610067®Number=0000000000161798&sum=20000 [04:57:16]StoreToDocumentArchive [04:57:16]shift 172 fd 15664 [04:57:16]save to /storage/0172/doc_00015664 [04:57:16]save last doc name /storage/0172/doc_00015664 to /storage/kkm_last_doc_name [04:57:16]save OK [04:57:16]Clear old archive folders... [04:57:16]ProcessDocumentItem done err = 0, tmpTLVsize=249 [04:57:16]tlvbuf is 003E24D0 [04:57:16]SAM_PROTO_ClearQueue [04:57:16]wFMCommunicate request_size=4 [04:57:16]MH_SAM_APDU [04:57:16]CAPDU: 80 09 00 00 [04:57:16]Write to MH i2c: E2 08 00 51 38 80 09 00 00 00 00 00 00 FB [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:57:16]Read from MH i2c: E2 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 51 38 00 90 00 FD [04:57:16]RAPDU: 90 00 [04:57:16]wFMCommunicate OK [04:57:16]SAM_PROTO_ClearQueue done [04:57:16]KKMCreateOFDPacket [04:57:16]OFDProtocolAddRootSTLVToBuf [04:57:16]FM_MakeSignedData [04:57:16]FM_MakeSignedData [04:57:16]SAM_PROTO_SignData [04:57:16]wFMCommunicate request_size=4 [04:57:16]MH_SAM_APDU [04:57:16]CAPDU: 80 0D 01 02 [04:57:16]Write to MH i2c: E2 08 00 52 38 80 0D 01 02 00 00 00 00 03 [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:57:16]Read from MH i2c: E2 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 52 38 00 90 00 FE [04:57:16]RAPDU: 90 00 [04:57:16]wFMCommunicate OK [04:57:16]wFMCommunicate request_size=255 [04:57:16]MH_SAM_APDU [04:57:16]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 6B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 30 3D 00 00 35 04 06 00 AD E8 26 [04:57:16]Write to MH i2c: E2 02 01 53 38 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 6B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 30 3D 00 00 35 04 06 00 AD E8 26 00 00 D4 [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:16]Read from MH i2c: E2 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 [04:57:16]MH_I2C_Read... [04:57:16]Read from MH i2c: E2 03 00 53 38 00 90 00 FF [04:57:16]RAPDU: 90 00 [04:57:16]wFMCommunicate OK [04:57:16]wFMCommunicate request_size=8 [04:57:16]MH_SAM_APDU [04:57:16]CAPDU: 80 0D 02 02 03 21 E0 0A [04:57:16]Write to MH i2c: E2 0B 00 54 38 80 0D 02 02 03 00 21 E0 0A 00 00 17 [04:57:16]Write i2c OK [04:57:16]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 03 00 54 38 00 90 00 00 [04:57:17]RAPDU: 90 00 [04:57:17]wFMCommunicate OK [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 0D 03 02 [04:57:17]Write to MH i2c: E2 08 00 55 38 80 0D 03 02 00 00 00 00 08 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 0B 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 0B 00 55 38 00 02 DF 3A 0C 1D CE 8B E5 90 00 8B [04:57:17]RAPDU: 02 DF 3A 0C 1D CE 8B E5 90 00 [04:57:17]wFMCommunicate OK [04:57:17]SAM_PROTO_SignData done [04:57:17]FM_MakeSignedData done [04:57:17]CreateOFDProtocolMessage [04:57:17]wFMCommunicate request_size=4 [04:57:17]MH_SAM_APDU [04:57:17]CAPDU: 80 11 00 00 [04:57:17]Write to MH i2c: E2 08 00 56 38 80 11 00 00 00 00 00 00 08 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:17]Read from MH i2c: E2 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 17 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: E2 17 00 56 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 57 [04:57:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [04:57:17]wFMCommunicate OK [04:57:17]CreateOFDProtocolMessage done [04:57:17]OFDSenderStorePacket 15664 [04:57:17]StoreOFDPacket docnum=15664 [04:57:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 14 1B 05 01 D9 6C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 6B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 30 3D 00 00 35 04 06 00 AD E8 26 21 E0 0A 02 DF 3A 0C 1D CE 8B E5 [04:57:17]CheckFolder [04:57:17]dirname=/storage/ofd_packets [04:57:17]CheckFolder done [04:57:17]ProducePacketName [04:57:17]name=ofd_packets/00015664 [04:57:17]NVStorageSaveData ofd_packets/00015664 [04:57:17]File name is /storage/ofd_packets/00015664 [04:57:17]Write 299 bytes [04:57:17]NVStorageSaveData done [04:57:17]OFDSenderStorePacket done [04:57:17]KKMCreateOFDPacket done [04:57:17]NVStorageSaveData kkm_last_timestamp [04:57:17]File name is /storage/kkm_last_timestamp [04:57:17]Write 4 bytes [04:57:17]NVStorageSaveData done [04:57:17]ExternCall_PrintAddStr [04:57:17]wPrintStart [04:57:17]Write to MH i2c: 01 00 00 57 38 8F [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 57 38 00 00 00 00 00 FF 0F A4 [04:57:17]RasterBufferAndPrint [04:57:17]line Счет N : (1)16213 [04:57:17]line ИНН: 02508201610067 [04:57:17]line Контрольно-Кассовый Чек [04:57:17]line ПРОДАЖА [04:57:17]line ТРК (МРК, ГНК) : 12 [04:57:17]line Товар: 50.50.0 [04:57:17]line SUPER 92-К-5 [04:57:17]line 2.930 * 68.40 [04:57:17]line = 200.41 [04:57:17]line НДС 12% НСП 1% [04:57:17]line > о реализуемом товаре [04:57:17]line ОКРУГЛЕНИЕ: -0.41 [04:57:17]line ИТОГО: 200.00 [04:57:17]line НСП 1% : 1.77 [04:57:17]line НДС 12% : 21.28 [04:57:17]line Наличными: 0.00 [04:57:17]line Безнал.: 200.00 [04:57:17]line Место: АЗС № 178 "Партнер Нефть" [04:57:17]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [04:57:17]line СНО: Общий режим [04:57:17]line Чек 10 29.10.2024 04:57 [04:57:17]line Смена: 172 ФФД: 1.0 [04:57:17]line ЗНМ: 0300000014 [04:57:17]line РНМ: 0000000000161798 [04:57:17]line Версия ККМ: v1.0 [04:57:17]line Платежная система: Mbank [04:57:17]line ФМ: 0000000000963325 [04:57:17]line ФД: 15664 [04:57:17]line ФПД: 191212583772170 [04:57:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T045724&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15664&fm=191212583772170&tin=02508201610067®Number=0000000000161798&sum=20000 [04:57:17]OFD Sender: Processing packet 15664 [packets to send 4, broken 3] [04:57:17]ProducePacketName [04:57:17]name=ofd_packets/00015664 [04:57:17]OFD Sender: To server: pG, [04:57:17]CommunicateWithHost lk.salyk.kg:30040 [04:57:17]ConnectInit lk.salyk.kg [04:57:17]written 0, free lines is 4095 [04:57:17]Connected sock=10 [04:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 14 1B 05 01 D9 6C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 34 6B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 30 3D 00 00 35 04 06 00 AD E8 26 21 E0 0A 02 DF 3A 0C 1D CE 8B E5 [04:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C8 ED 47 00 A4 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 30 3D 00 00 F4 03 04 00 22 16 20 67 B6 04 01 00 00 2A 48 DD 21 65 5E C5 86 [04:57:17]CommunicateWithHost err = 0 [04:57:17]CheckOFDResponse [04:57:17]1017 (14) - 77093643461234 [04:57:17]1041 (16) - 0000000000963325 [04:57:17]1040 (4) - 15664 [04:57:17]1012 (4) - 28.10.2024 22:54 [04:57:17]1206 (1) - 0 [04:57:17]OFD Sender: Remove packet 15664 [04:57:17]ProducePacketName [04:57:17]name=ofd_packets/00015664 [04:57:17]NVStorageDeleteData [04:57:17]Write to MH i2c: 01 00 00 81 38 B9 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: 01 07 00 81 38 00 00 00 00 00 03 0D D0 [04:57:17]RasterBufferAndPrint [04:57:17]line [04:57:17]line [04:57:17]line [04:57:17]line [04:57:17]line [04:57:17]written 0, free lines is 3337 [04:57:17]MH_Cut [04:57:17]Write to MH i2c: D1 01 00 88 38 01 92 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: D1 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: D1 01 00 [04:57:17]MH_I2C_Read... [04:57:17]Read from MH i2c: D1 01 00 88 38 00 91 [04:57:17]Write to MH i2c: 01 00 00 89 38 C1 [04:57:17]Write i2c OK [04:57:17]MH_I2C_Read... [04:57:18]OFD Sender: No OFD packet to send [04:57:18]*** Cut start [04:57:18]*** Partial cut [04:57:18]*** CUTSNS_PIN = 1 [04:57:18]*** CUTSNS_PIN = 0 [04:57:18]*** Brake cut motor [04:57:19]Read from MH i2c: 01 [04:57:19]MH_I2C_Read... [04:57:19]*** Stop cut motor [04:57:19]*** Cut end [04:57:19]Read from MH i2c: 01 07 00 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 FF 0F D6 [04:57:19]process_action close_receipt done [04:57:19]requested_data is exist [04:57:19]produce_requested_data [04:57:19]requested_item fm.sn is exist - process it [04:57:19]wFMCommunicate request_size=4 [04:57:19]MH_SAM_APDU [04:57:19]CAPDU: 80 11 00 00 [04:57:19]Write to MH i2c: E2 08 00 8A 38 80 11 00 00 00 00 00 00 3C [04:57:19]Write i2c OK [04:57:19]MH_I2C_Read... [04:57:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:57:19]Read from MH i2c: E2 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 17 00 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 17 00 8A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8B [04:57:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [04:57:19]wFMCommunicate OK [04:57:19]requested_item fd.num is exist - process it [04:57:19]SAM_PROTO_GetFieldsCounters [04:57:19]wFMCommunicate request_size=4 [04:57:19]MH_SAM_APDU [04:57:19]CAPDU: 80 13 00 00 [04:57:19]Write to MH i2c: E2 08 00 8B 38 80 13 00 00 00 00 00 00 3F [04:57:19]Write i2c OK [04:57:19]MH_I2C_Read... [04:57:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:57:19]Read from MH i2c: E2 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 62 00 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 62 00 8B 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 30 3D 00 00 0E 04 04 00 AC 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 9A [04:57:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 30 3D 00 00 0E 04 04 00 AC 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 [04:57:19]wFMCommunicate OK [04:57:19]SAM_PROTO_GetFieldsCounters done [04:57:19]requested_item shift.num is exist - process it [04:57:19]requested_item shift.opened is exist - process it [04:57:19]req_shift_opened [04:57:19]FM_GetShiftState [04:57:19]SAM_PROTO_GetShiftState [04:57:19]wFMCommunicate request_size=4 [04:57:19]MH_SAM_APDU [04:57:19]CAPDU: 80 13 01 00 [04:57:19]Write to MH i2c: E2 08 00 8C 38 80 13 01 00 00 00 00 00 41 [04:57:19]Write i2c OK [04:57:19]MH_I2C_Read... [04:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:57:19]Read from MH i2c: E2 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 0E 00 [04:57:19]MH_I2C_Read... [04:57:19]Read from MH i2c: E2 0E 00 8C 38 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 96 [04:57:19]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [04:57:19]wFMCommunicate OK [04:57:19]SAM_PROTO_GetShiftState done [04:57:19]FM_GetShiftState done [04:57:19]req_shift_opened done [04:57:19]requested_item shift.open_date is exist - process it [04:57:19]req_shift_open_date [04:57:19]req_shift_open_date done [04:57:19]produce_requested_data done [04:57:19]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15664,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [04:57:19]process_action_free close_receipt [04:57:19]json_value_free [04:57:19]json_value_free done [04:57:19]process_json_proto returns [04:57:19]Send response to host [04:57:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15664,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [04:57:19]free response buf [04:57:19]execute_script done [04:57:19]execute_script returns [04:57:19]free content buf [04:57:19]Sock 9.Close socket [04:57:19]Sock 9.Thread stoped [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:45]accept exits with 8 [05:05:45]New connection [05:05:45]New thread 3066588516 created [05:05:45]Thread 3066731876 joined [05:05:45]Waiting for new connection... [05:05:45] Sock 8.Parse request [05:05:45]Sock 8.Check first char [05:05:45]Sock 8.First char is OK [05:05:45]request: POST /json_proto HTTP/1.0 [05:05:45]Method: POST [05:05:45]URL: /json_proto [05:05:45]Method is POST - this is cgi request [05:05:45]url: /json_proto [05:05:45]query_string will be loaded in cgi processing [05:05:45]execute_cgi json_proto POST (null) [05:05:45]execute_cgi path=json_proto method=POST [05:05:45]POST find Content-Length [05:05:45]Host: 172.17.54.195:8080 [05:05:45]Content-Length: 977 [05:05:45]Content-Type: application/json [05:05:45] [05:05:45]POST finish read [05:05:45]Found Content-Length = 977 [05:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [05:05:45]execute_script... [05:05: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)16214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [05:05:45]POST & json_proto [05:05:45]process_json_proto [05:05:45]json parsed OK: [05:05:45]protocol is kg_v1.0 [05:05:45]action value=close_receipt [05:05:45]process_action close_receipt [05:05:45]cmd_close_receipt [05:05:45]MH_GetDate [05:05:45]Write to MH i2c: F0 00 00 8D 38 B4 [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 09 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 09 00 8D 38 00 32 6D 20 67 8D 90 A3 66 09 [05:05:45]GetLastDocTimeStamp 1730177844 [05:05:45]current date 1730178354 [05:05:45]FM_GetShiftState [05:05:45]SAM_PROTO_GetShiftState [05:05:45]wFMCommunicate request_size=4 [05:05:45]MH_SAM_APDU [05:05:45]CAPDU: 80 13 01 00 [05:05:45]Write to MH i2c: E2 08 00 8E 38 80 13 01 00 00 00 00 00 43 [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:45]Read from MH i2c: E2 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0E 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0E 00 8E 38 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 98 [05:05:45]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [05:05:45]wFMCommunicate OK [05:05:45]SAM_PROTO_GetShiftState done [05:05:45]FM_GetShiftState done [05:05:45]opened in 1730161559 [05:05:45]opened+sec_in_day 1730247959 [05:05:45]quantity*price = 400064 [05:05:45]sum+1 = 400065 [05:05:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.85 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 11 29.10.2024 05:05 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа ДТ номер 178 сэкономлено 53.20 сом ФМ: 0000000000963325 ФД: 15665 ФПД: 224065365971313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T050554&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15665&fm=224065365971313&tin=02508201610067®Number=0000000000161798&sum=400000 [05:05:46]StoreToDocumentArchive [05:05:46]shift 172 fd 15665 [05:05:46]save to /storage/0172/doc_00015665 [05:05:46]save last doc name /storage/0172/doc_00015665 to /storage/kkm_last_doc_name [05:05:46]save OK [05:05:46]Clear old archive folders... [05:05:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:05:46]tlvbuf is 002E3C00 [05:05:46]SAM_PROTO_ClearQueue [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 09 00 00 [05:05:46]Write to MH i2c: E2 08 00 9B 38 80 09 00 00 00 00 00 00 45 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 9B 38 00 90 00 47 [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]SAM_PROTO_ClearQueue done [05:05:46]KKMCreateOFDPacket [05:05:46]OFDProtocolAddRootSTLVToBuf [05:05:46]FM_MakeSignedData [05:05:46]FM_MakeSignedData [05:05:46]SAM_PROTO_SignData [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 0D 01 02 [05:05:46]Write to MH i2c: E2 08 00 9C 38 80 0D 01 02 00 00 00 00 4D [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 9C 38 00 90 00 48 [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]wFMCommunicate request_size=255 [05:05:46]MH_SAM_APDU [05:05: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 35 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 0B 00 00 00 F4 03 04 00 32 6D 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 31 3D 00 00 35 04 06 00 CB C9 48 8B [05:05:46]Write to MH i2c: E2 02 01 9D 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 32 6D 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 31 3D 00 00 35 04 06 00 CB C9 48 8B 00 00 16 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:47]Read from MH i2c: E2 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 03 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 03 00 9D 38 00 90 00 49 [05:05:47]RAPDU: 90 00 [05:05:47]wFMCommunicate OK [05:05:47]wFMCommunicate request_size=7 [05:05:47]MH_SAM_APDU [05:05:47]CAPDU: 80 0D 02 02 02 91 71 [05:05:47]Write to MH i2c: E2 0A 00 9E 38 80 0D 02 02 02 00 91 71 00 00 56 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:47]Read from MH i2c: E2 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 03 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 03 00 9E 38 00 90 00 4A [05:05:47]RAPDU: 90 00 [05:05:47]wFMCommunicate OK [05:05:47]wFMCommunicate request_size=4 [05:05:47]MH_SAM_APDU [05:05:47]CAPDU: 80 0D 03 02 [05:05:47]Write to MH i2c: E2 08 00 9F 38 80 0D 03 02 00 00 00 00 52 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:47]Read from MH i2c: E2 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 0B 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 0B 00 9F 38 00 5D 3B 92 81 4B 33 D2 FE 90 00 4C [05:05:47]RAPDU: 5D 3B 92 81 4B 33 D2 FE 90 00 [05:05:47]wFMCommunicate OK [05:05:47]SAM_PROTO_SignData done [05:05:47]FM_MakeSignedData done [05:05:47]CreateOFDProtocolMessage [05:05:47]wFMCommunicate request_size=4 [05:05:47]MH_SAM_APDU [05:05:47]CAPDU: 80 11 00 00 [05:05:47]Write to MH i2c: E2 08 00 A0 38 80 11 00 00 00 00 00 00 52 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:47]Read from MH i2c: E2 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 17 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: E2 17 00 A0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A1 [05:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [05:05:47]wFMCommunicate OK [05:05:47]CreateOFDProtocolMessage done [05:05:47]OFDSenderStorePacket 15665 [05:05:47]StoreOFDPacket docnum=15665 [05:05:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 37 BB 04 01 04 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 32 6D 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 31 3D 00 00 35 04 06 00 CB C9 48 8B 91 71 5D 3B 92 81 4B 33 D2 FE [05:05:47]CheckFolder [05:05:47]dirname=/storage/ofd_packets [05:05:47]CheckFolder done [05:05:47]ProducePacketName [05:05:47]name=ofd_packets/00015665 [05:05:47]NVStorageSaveData ofd_packets/00015665 [05:05:47]File name is /storage/ofd_packets/00015665 [05:05:47]Write 298 bytes [05:05:47]NVStorageSaveData done [05:05:47]OFDSenderStorePacket done [05:05:47]KKMCreateOFDPacket done [05:05:47]NVStorageSaveData kkm_last_timestamp [05:05:47]File name is /storage/kkm_last_timestamp [05:05:47]Write 4 bytes [05:05:47]NVStorageSaveData done [05:05:47]ExternCall_PrintAddStr [05:05:47]wPrintStart [05:05:47]Write to MH i2c: 01 00 00 A1 38 D9 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 A1 38 00 00 00 00 00 FF 0F EE [05:05:47]RasterBufferAndPrint [05:05:47]line Счет N : (1)16214 [05:05:47]line ИНН: 02508201610067 [05:05:47]line Контрольно-Кассовый Чек [05:05:47]line ПРОДАЖА [05:05:47]line ТРК (МРК, ГНК) : 31 [05:05:47]line Товар: 2710194210 [05:05:47]line ДТ-К-5 [05:05:47]line 53.200 * 75.20 [05:05:47]line = 4000.64 [05:05:47]line НДС 12% НСП 1% [05:05:47]line > о реализуемом товаре [05:05:47]line ОКРУГЛЕНИЕ: -0.64 [05:05:47]line ИТОГО: 4000.00 [05:05:47]line Внесено: 4000.00 [05:05:47]line СДАЧА: 0.00 [05:05:47]line НСП 1% : 35.40 [05:05:47]line НДС 12% : 424.85 [05:05:47]line Наличными: 4000.00 [05:05:47]line Безнал.: 0.00 [05:05:47]line Место: АЗС № 178 "Партнер Нефть" [05:05:47]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [05:05:47]line СНО: Общий режим [05:05:47]line Чек 11 29.10.2024 05:05 [05:05:47]line Смена: 172 ФФД: 1.0 [05:05:47]line ЗНМ: 0300000014 [05:05:47]line РНМ: 0000000000161798 [05:05:47]line Версия ККМ: v1.0 [05:05:47]line [05:05:47]line Дисконтная программа [05:05:47]line ДТ [05:05:47]line номер 178 [05:05:47]line сэкономлено 53.20 сом [05:05:47]line ФМ: 0000000000963325 [05:05:47]line ФД: 15665 [05:05:47]line ФПД: 224065365971313 [05:05:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T050554&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15665&fm=224065365971313&tin=02508201610067®Number=0000000000161798&sum=400000 [05:05:47]OFD Sender: Processing packet 15665 [packets to send 4, broken 3] [05:05:47]ProducePacketName [05:05:47]name=ofd_packets/00015665 [05:05:47]OFD Sender: To server: pG, [05:05:47]CommunicateWithHost lk.salyk.kg:30040 [05:05:47]ConnectInit lk.salyk.kg [05:05:47]written 0, free lines is 4095 [05:05:47]Connected sock=10 [05:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 37 BB 04 01 04 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0B 00 00 00 F4 03 04 00 32 6D 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 31 3D 00 00 35 04 06 00 CB C9 48 8B 91 71 5D 3B 92 81 4B 33 D2 FE [05:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8E 9E 47 00 B6 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 31 3D 00 00 F4 03 04 00 20 18 20 67 B6 04 01 00 00 F2 7F 5F B9 6B 0C 26 F9 [05:05:47]CommunicateWithHost err = 0 [05:05:47]CheckOFDResponse [05:05:47]1017 (14) - 77093643461234 [05:05:47]1041 (16) - 0000000000963325 [05:05:47]1040 (4) - 15665 [05:05:47]1012 (4) - 28.10.2024 23:02 [05:05:47]1206 (1) - 0 [05:05:47]OFD Sender: Remove packet 15665 [05:05:47]ProducePacketName [05:05:47]name=ofd_packets/00015665 [05:05:47]NVStorageDeleteData [05:05:47]Write to MH i2c: 01 00 00 D1 38 09 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 D1 38 00 00 00 00 00 99 0C B5 [05:05:47]RasterBufferAndPrint [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]written 0, free lines is 3231 [05:05:47]MH_Cut [05:05:47]Write to MH i2c: D1 01 00 D8 38 01 E2 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 01 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 01 00 D8 38 00 E1 [05:05:47]Write to MH i2c: 01 00 00 D9 38 11 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:48]OFD Sender: No OFD packet to send [05:05:48]*** Cut start [05:05:48]*** Partial cut [05:05:48]*** CUTSNS_PIN = 1 [05:05:48]*** CUTSNS_PIN = 0 [05:05:49]*** Brake cut motor [05:05:49]Read from MH i2c: 01 [05:05:49]MH_I2C_Read... [05:05:49]*** Stop cut motor [05:05:49]*** Cut end [05:05:49]Read from MH i2c: 01 07 00 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: 01 07 00 D9 38 00 00 00 00 00 FF 0F 26 [05:05:49]process_action close_receipt done [05:05:49]requested_data is exist [05:05:49]produce_requested_data [05:05:49]requested_item fm.sn is exist - process it [05:05:49]wFMCommunicate request_size=4 [05:05:49]MH_SAM_APDU [05:05:49]CAPDU: 80 11 00 00 [05:05:49]Write to MH i2c: E2 08 00 DA 38 80 11 00 00 00 00 00 00 8C [05:05:49]Write i2c OK [05:05:49]MH_I2C_Read... [05:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:49]Read from MH i2c: E2 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 17 00 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 17 00 DA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 DB [05:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [05:05:49]wFMCommunicate OK [05:05:49]requested_item fd.num is exist - process it [05:05:49]SAM_PROTO_GetFieldsCounters [05:05:49]wFMCommunicate request_size=4 [05:05:49]MH_SAM_APDU [05:05:49]CAPDU: 80 13 00 00 [05:05:49]Write to MH i2c: E2 08 00 DB 38 80 13 00 00 00 00 00 00 8F [05:05:49]Write i2c OK [05:05:49]MH_I2C_Read... [05:05:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:49]Read from MH i2c: E2 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 62 00 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 62 00 DB 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 31 3D 00 00 0E 04 04 00 AC 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 EE [05:05:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 31 3D 00 00 0E 04 04 00 AC 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 [05:05:49]wFMCommunicate OK [05:05:49]SAM_PROTO_GetFieldsCounters done [05:05:49]requested_item shift.num is exist - process it [05:05:49]requested_item shift.opened is exist - process it [05:05:49]req_shift_opened [05:05:49]FM_GetShiftState [05:05:49]SAM_PROTO_GetShiftState [05:05:49]wFMCommunicate request_size=4 [05:05:49]MH_SAM_APDU [05:05:49]CAPDU: 80 13 01 00 [05:05:49]Write to MH i2c: E2 08 00 DC 38 80 13 01 00 00 00 00 00 91 [05:05:49]Write i2c OK [05:05:49]MH_I2C_Read... [05:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:49]Read from MH i2c: E2 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 0E 00 [05:05:49]MH_I2C_Read... [05:05:49]Read from MH i2c: E2 0E 00 DC 38 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E6 [05:05:49]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [05:05:49]wFMCommunicate OK [05:05:49]SAM_PROTO_GetShiftState done [05:05:49]FM_GetShiftState done [05:05:49]req_shift_opened done [05:05:49]requested_item shift.open_date is exist - process it [05:05:49]req_shift_open_date [05:05:49]req_shift_open_date done [05:05:49]produce_requested_data done [05:05:49]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15665,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [05:05:49]process_action_free close_receipt [05:05:49]json_value_free [05:05:49]json_value_free done [05:05:49]process_json_proto returns [05:05:49]Send response to host [05:05:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15665,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [05:05:49]free response buf [05:05:49]execute_script done [05:05:49]execute_script returns [05:05:49]free content buf [05:05:49]Sock 8.Close socket [05:05:49]Sock 8.Thread stoped [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]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:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [06:07:01]OFD Sender: No OFD packet to send [06:07:06]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:30]accept exits with 9 [06:26:30]New connection [06:26:30]New thread 3066731876 created [06:26:30]Thread 3066588516 joined [06:26:30]Waiting for new connection... [06:26:30] Sock 9.Parse request [06:26:30]Sock 9.Check first char [06:26:30]Sock 9.First char is OK [06:26:30]request: POST /json_proto HTTP/1.0 [06:26:30]Method: POST [06:26:30]URL: /json_proto [06:26:30]Method is POST - this is cgi request [06:26:30]url: /json_proto [06:26:30]query_string will be loaded in cgi processing [06:26:30]execute_cgi json_proto POST (null) [06:26:30]execute_cgi path=json_proto method=POST [06:26:30]POST find Content-Length [06:26:30]Host: 172.17.54.195:8080 [06:26:30]Content-Length: 784 [06:26:30]Content-Type: application/json [06:26:30] [06:26:30]POST finish read [06:26:30]Found Content-Length = 784 [06:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "total" : 2700.00, "payments": [ { "type": 1, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:30]execute_script... [06:26: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)16215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 35.440, "sum" : 2700.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "total" : 2700.00, "payments": [ { "type": 1, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:26:30]POST & json_proto [06:26:30]process_json_proto [06:26:30]json parsed OK: [06:26:30]protocol is kg_v1.0 [06:26:30]action value=close_receipt [06:26:30]process_action close_receipt [06:26:30]cmd_close_receipt [06:26:30]MH_GetDate [06:26:30]Write to MH i2c: F0 00 00 DD 38 04 [06:26:30]Write i2c OK [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: F0 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: F0 09 00 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: F0 09 00 DD 38 00 20 80 20 67 8D 90 A3 66 5A [06:26:30]GetLastDocTimeStamp 1730178354 [06:26:30]current date 1730183200 [06:26:30]FM_GetShiftState [06:26:30]SAM_PROTO_GetShiftState [06:26:30]wFMCommunicate request_size=4 [06:26:30]MH_SAM_APDU [06:26:30]CAPDU: 80 13 01 00 [06:26:30]Write to MH i2c: E2 08 00 DE 38 80 13 01 00 00 00 00 00 93 [06:26:30]Write i2c OK [06:26:30]MH_I2C_Read... [06:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:30]Read from MH i2c: E2 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: E2 0E 00 [06:26:30]MH_I2C_Read... [06:26:30]Read from MH i2c: E2 0E 00 DE 38 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E8 [06:26:30]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [06:26:30]wFMCommunicate OK [06:26:30]SAM_PROTO_GetShiftState done [06:26:30]FM_GetShiftState done [06:26:30]opened in 1730161559 [06:26:30]opened+sec_in_day 1730247959 [06:26:30]quantity*price = 270052 [06:26:30]sum+1 = 270054 [06:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2700.00 НСП 1% : 23.90 НДС 12% : 286.78 Наличными: 0.00 Безнал.: 2700.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 12 29.10.2024 06:26 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15666 ФПД: 209150077926586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T062640&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15666&fm=209150077926586&tin=02508201610067®Number=0000000000161798&sum=270000 [06:26:32]StoreToDocumentArchive [06:26:32]shift 172 fd 15666 [06:26:32]save to /storage/0172/doc_00015666 [06:26:32]save last doc name /storage/0172/doc_00015666 to /storage/kkm_last_doc_name [06:26:32]save OK [06:26:32]Clear old archive folders... [06:26:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:26:32]tlvbuf is 003DBE30 [06:26:32]SAM_PROTO_ClearQueue [06:26:32]wFMCommunicate request_size=4 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 09 00 00 [06:26:32]Write to MH i2c: E2 08 00 EB 38 80 09 00 00 00 00 00 00 95 [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 EB 38 00 90 00 97 [06:26:32]RAPDU: 90 00 [06:26:32]wFMCommunicate OK [06:26:32]SAM_PROTO_ClearQueue done [06:26:32]KKMCreateOFDPacket [06:26:32]OFDProtocolAddRootSTLVToBuf [06:26:32]FM_MakeSignedData [06:26:32]FM_MakeSignedData [06:26:32]SAM_PROTO_SignData [06:26:32]wFMCommunicate request_size=4 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 0D 01 02 [06:26:32]Write to MH i2c: E2 08 00 EC 38 80 0D 01 02 00 00 00 00 9D [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 EC 38 00 90 00 98 [06:26:32]RAPDU: 90 00 [06:26:32]wFMCommunicate OK [06:26:32]wFMCommunicate request_size=255 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 20 80 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 32 3D 00 00 35 04 06 00 BE 38 8C 19 [06:26:32]Write to MH i2c: E2 02 01 ED 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 20 80 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 32 3D 00 00 35 04 06 00 BE 38 8C 19 00 00 41 [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 ED 38 00 90 00 99 [06:26:32]RAPDU: 90 00 [06:26:32]wFMCommunicate OK [06:26:32]wFMCommunicate request_size=7 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 0D 02 02 02 7C BA [06:26:32]Write to MH i2c: E2 0A 00 EE 38 80 0D 02 02 02 00 7C BA 00 00 DA [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 03 00 EE 38 00 90 00 9A [06:26:32]RAPDU: 90 00 [06:26:32]wFMCommunicate OK [06:26:32]wFMCommunicate request_size=4 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 0D 03 02 [06:26:32]Write to MH i2c: E2 08 00 EF 38 80 0D 03 02 00 00 00 00 A2 [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 0B 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 0B 00 EF 38 00 B5 50 FE 07 1E 47 39 6A 90 00 B5 [06:26:32]RAPDU: B5 50 FE 07 1E 47 39 6A 90 00 [06:26:32]wFMCommunicate OK [06:26:32]SAM_PROTO_SignData done [06:26:32]FM_MakeSignedData done [06:26:32]CreateOFDProtocolMessage [06:26:32]wFMCommunicate request_size=4 [06:26:32]MH_SAM_APDU [06:26:32]CAPDU: 80 11 00 00 [06:26:32]Write to MH i2c: E2 08 00 F0 38 80 11 00 00 00 00 00 00 A2 [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:32]Read from MH i2c: E2 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 17 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: E2 17 00 F0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F1 [06:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [06:26:32]wFMCommunicate OK [06:26:32]CreateOFDProtocolMessage done [06:26:32]OFDSenderStorePacket 15666 [06:26:32]StoreOFDPacket docnum=15666 [06:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D1 0E 04 01 15 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 20 80 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 32 3D 00 00 35 04 06 00 BE 38 8C 19 7C BA B5 50 FE 07 1E 47 39 6A [06:26:32]CheckFolder [06:26:32]dirname=/storage/ofd_packets [06:26:32]CheckFolder done [06:26:32]ProducePacketName [06:26:32]name=ofd_packets/00015666 [06:26:32]NVStorageSaveData ofd_packets/00015666 [06:26:32]File name is /storage/ofd_packets/00015666 [06:26:32]Write 298 bytes [06:26:32]NVStorageSaveData done [06:26:32]OFDSenderStorePacket done [06:26:32]KKMCreateOFDPacket done [06:26:32]NVStorageSaveData kkm_last_timestamp [06:26:32]File name is /storage/kkm_last_timestamp [06:26:32]Write 4 bytes [06:26:32]NVStorageSaveData done [06:26:32]ExternCall_PrintAddStr [06:26:32]wPrintStart [06:26:32]Write to MH i2c: 01 00 00 F1 38 29 [06:26:32]Write i2c OK [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: 01 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: 01 07 00 [06:26:32]MH_I2C_Read... [06:26:32]Read from MH i2c: 01 07 00 F1 38 00 00 00 00 00 FF 0F 3E [06:26:32]RasterBufferAndPrint [06:26:32]line Счет N : (1)16215 [06:26:32]line ИНН: 02508201610067 [06:26:32]line Контрольно-Кассовый Чек [06:26:32]line ПРОДАЖА [06:26:32]line ТРК (МРК, ГНК) : 31 [06:26:32]line Товар: 2710194210 [06:26:32]line ДТ-К-5 [06:26:32]line 35.440 * 76.20 [06:26:32]line = 2700.53 [06:26:32]line НДС 12% НСП 1% [06:26:32]line > о реализуемом товаре [06:26:32]line ОКРУГЛЕНИЕ: -0.53 [06:26:32]line ИТОГО: 2700.00 [06:26:32]line НСП 1% : 23.90 [06:26:32]line НДС 12% : 286.78 [06:26:32]line Наличными: 0.00 [06:26:32]line Безнал.: 2700.00 [06:26:32]line Место: АЗС № 178 "Партнер Нефть" [06:26:32]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [06:26:32]line СНО: Общий режим [06:26:32]line Чек 12 29.10.2024 06:26 [06:26:32]line Смена: 172 ФФД: 1.0 [06:26:32]line ЗНМ: 0300000014 [06:26:32]line РНМ: 0000000000161798 [06:26:32]line Версия ККМ: v1.0 [06:26:32]line Платежная система: Mbank [06:26:32]line ФМ: 0000000000963325 [06:26:32]line ФД: 15666 [06:26:32]line ФПД: 209150077926586 [06:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T062640&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15666&fm=209150077926586&tin=02508201610067®Number=0000000000161798&sum=270000 [06:26:32]OFD Sender: Processing packet 15666 [packets to send 4, broken 3] [06:26:32]ProducePacketName [06:26:32]name=ofd_packets/00015666 [06:26:32]OFD Sender: To server: pG, [06:26:32]CommunicateWithHost lk.salyk.kg:30040 [06:26:32]ConnectInit lk.salyk.kg [06:26:32]written 0, free lines is 4095 [06:26:32]Connected sock=10 [06:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D1 0E 04 01 15 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 8A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E5 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 20 80 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 32 3D 00 00 35 04 06 00 BE 38 8C 19 7C BA B5 50 FE 07 1E 47 39 6A [06:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 0E B8 47 00 5A 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 30 39 36 33 33 32 35 10 04 04 00 32 3D 00 00 F4 03 04 00 0E 2B 20 67 B6 04 01 00 00 8A FC 09 4A 37 F9 98 3D [06:26:33]CommunicateWithHost err = 0 [06:26:33]CheckOFDResponse [06:26:33]1017 (14) - 77093643461234 [06:26:33]1041 (16) - 0000000000963325 [06:26:33]1040 (4) - 15666 [06:26:33]1012 (4) - 29.10.2024 00:23 [06:26:33]1206 (1) - 0 [06:26:33]OFD Sender: Remove packet 15666 [06:26:33]ProducePacketName [06:26:33]name=ofd_packets/00015666 [06:26:33]NVStorageDeleteData [06:26:33]Write to MH i2c: 01 00 00 1B 39 54 [06:26:33]Write i2c OK [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: 01 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: 01 07 00 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: 01 07 00 1B 39 00 00 00 00 00 0B 0D 73 [06:26:33]RasterBufferAndPrint [06:26:33]line [06:26:33]line [06:26:33]line [06:26:33]line [06:26:33]line [06:26:33]written 0, free lines is 3345 [06:26:33]MH_Cut [06:26:33]Write to MH i2c: D1 01 00 22 39 01 2D [06:26:33]Write i2c OK [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: D1 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: D1 01 00 [06:26:33]MH_I2C_Read... [06:26:33]Read from MH i2c: D1 01 00 22 39 00 2C [06:26:33]Write to MH i2c: 01 00 00 23 39 5C [06:26:33]Write i2c OK [06:26:33]MH_I2C_Read... [06:26:33]OFD Sender: No OFD packet to send [06:26:34]*** Cut start [06:26:34]*** Partial cut [06:26:34]*** CUTSNS_PIN = 1 [06:26:34]*** CUTSNS_PIN = 0 [06:26:34]*** Brake cut motor [06:26:34]Read from MH i2c: 01 [06:26:34]MH_I2C_Read... [06:26:34]*** Stop cut motor [06:26:34]*** Cut end [06:26:34]Read from MH i2c: 01 07 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: 01 07 00 23 39 00 00 00 00 00 FF 0F 71 [06:26:34]process_action close_receipt done [06:26:34]requested_data is exist [06:26:34]produce_requested_data [06:26:34]requested_item fm.sn is exist - process it [06:26:34]wFMCommunicate request_size=4 [06:26:34]MH_SAM_APDU [06:26:34]CAPDU: 80 11 00 00 [06:26:34]Write to MH i2c: E2 08 00 24 39 80 11 00 00 00 00 00 00 D7 [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 [06:26:34]MH_I2C_Read... [06:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:26:34]Read from MH i2c: E2 17 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 17 00 24 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 26 [06:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [06:26:34]wFMCommunicate OK [06:26:34]requested_item fd.num is exist - process it [06:26:34]SAM_PROTO_GetFieldsCounters [06:26:34]wFMCommunicate request_size=4 [06:26:34]MH_SAM_APDU [06:26:34]CAPDU: 80 13 00 00 [06:26:34]Write to MH i2c: E2 08 00 25 39 80 13 00 00 00 00 00 00 DA [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:26:34]Read from MH i2c: E2 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 62 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 62 00 25 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 32 3D 00 00 0E 04 04 00 AC 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 3D [06:26:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 32 3D 00 00 0E 04 04 00 AC 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 [06:26:34]wFMCommunicate OK [06:26:34]SAM_PROTO_GetFieldsCounters done [06:26:34]requested_item shift.num is exist - process it [06:26:34]requested_item shift.opened is exist - process it [06:26:34]req_shift_opened [06:26:34]FM_GetShiftState [06:26:34]SAM_PROTO_GetShiftState [06:26:34]wFMCommunicate request_size=4 [06:26:34]MH_SAM_APDU [06:26:34]CAPDU: 80 13 01 00 [06:26:34]Write to MH i2c: E2 08 00 26 39 80 13 01 00 00 00 00 00 DC [06:26:34]Write i2c OK [06:26:34]MH_I2C_Read... [06:26:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:26:34]Read from MH i2c: E2 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 0E 00 [06:26:34]MH_I2C_Read... [06:26:34]Read from MH i2c: E2 0E 00 26 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 31 [06:26:34]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [06:26:34]wFMCommunicate OK [06:26:34]SAM_PROTO_GetShiftState done [06:26:34]FM_GetShiftState done [06:26:34]req_shift_opened done [06:26:34]requested_item shift.open_date is exist - process it [06:26:34]req_shift_open_date [06:26:34]req_shift_open_date done [06:26:34]produce_requested_data done [06:26:34]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15666,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [06:26:34]process_action_free close_receipt [06:26:34]json_value_free [06:26:34]json_value_free done [06:26:34]process_json_proto returns [06:26:34]Send response to host [06:26:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15666,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [06:26:34]free response buf [06:26:34]execute_script done [06:26:34]execute_script returns [06:26:34]free content buf [06:26:34]Sock 9.Close socket [06:26:34]Sock 9.Thread stoped [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:39]accept exits with 8 [06:59:39]New connection [06:59:39]New thread 3066588516 created [06:59:39]Thread 3066731876 joined [06:59:39]Waiting for new connection... [06:59:39] Sock 8.Parse request [06:59:39]Sock 8.Check first char [06:59:39]Sock 8.First char is OK [06:59:39]request: POST /json_proto HTTP/1.0 [06:59:39]Method: POST [06:59:39]URL: /json_proto [06:59:39]Method is POST - this is cgi request [06:59:39]url: /json_proto [06:59:39]query_string will be loaded in cgi processing [06:59:39]execute_cgi json_proto POST (null) [06:59:39]execute_cgi path=json_proto method=POST [06:59:39]POST find Content-Length [06:59:39]Host: 172.17.54.195:8080 [06:59:39]Content-Length: 671 [06:59:39]Content-Type: application/json [06:59:39] [06:59:39]POST finish read [06:59:39]Found Content-Length = 671 [06:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [06:59:39]execute_script... [06:59: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)16216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [06:59:39]POST & json_proto [06:59:39]process_json_proto [06:59:39]json parsed OK: [06:59:39]protocol is kg_v1.0 [06:59:39]action value=close_receipt [06:59:39]process_action close_receipt [06:59:39]cmd_close_receipt [06:59:39]MH_GetDate [06:59:39]Write to MH i2c: F0 00 00 27 39 4F [06:59:39]Write i2c OK [06:59:39]MH_I2C_Read... [06:59:39]Read from MH i2c: F0 [06:59:39]MH_I2C_Read... [06:59:39]Read from MH i2c: F0 09 00 [06:59:39]MH_I2C_Read... [06:59:39]Read from MH i2c: F0 09 00 27 39 00 E5 87 20 67 8D 90 A3 66 71 [06:59:39]GetLastDocTimeStamp 1730183200 [06:59:39]current date 1730185189 [06:59:39]FM_GetShiftState [06:59:39]SAM_PROTO_GetShiftState [06:59:39]wFMCommunicate request_size=4 [06:59:39]MH_SAM_APDU [06:59:39]CAPDU: 80 13 01 00 [06:59:39]Write to MH i2c: E2 08 00 28 39 80 13 01 00 00 00 00 00 DE [06:59:39]Write i2c OK [06:59:39]MH_I2C_Read... [06:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:39]Read from MH i2c: E2 [06:59:39]MH_I2C_Read... [06:59:39]Read from MH i2c: E2 0E 00 [06:59:39]MH_I2C_Read... [06:59:39]Read from MH i2c: E2 0E 00 28 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 33 [06:59:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [06:59:39]wFMCommunicate OK [06:59:39]SAM_PROTO_GetShiftState done [06:59:39]FM_GetShiftState done [06:59:39]opened in 1730161559 [06:59:39]opened+sec_in_day 1730247959 [06:59:39]quantity*price = 100000 [06:59:39]sum+1 = 100002 [06:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 13 29.10.2024 06:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15667 ФПД: 154536840274789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T065949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15667&fm=154536840274789&tin=02508201610067®Number=0000000000161798&sum=100000 [06:59:40]StoreToDocumentArchive [06:59:40]shift 172 fd 15667 [06:59:40]save to /storage/0172/doc_00015667 [06:59:40]save last doc name /storage/0172/doc_00015667 to /storage/kkm_last_doc_name [06:59:40]save OK [06:59:40]Clear old archive folders... [06:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=249 [06:59:40]tlvbuf is 002EF220 [06:59:40]SAM_PROTO_ClearQueue [06:59:40]wFMCommunicate request_size=4 [06:59:40]MH_SAM_APDU [06:59:40]CAPDU: 80 09 00 00 [06:59:40]Write to MH i2c: E2 08 00 35 39 80 09 00 00 00 00 00 00 E0 [06:59:40]Write i2c OK [06:59:40]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 35 39 00 90 00 E2 [06:59:41]RAPDU: 90 00 [06:59:41]wFMCommunicate OK [06:59:41]SAM_PROTO_ClearQueue done [06:59:41]KKMCreateOFDPacket [06:59:41]OFDProtocolAddRootSTLVToBuf [06:59:41]FM_MakeSignedData [06:59:41]FM_MakeSignedData [06:59:41]SAM_PROTO_SignData [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 0D 01 02 [06:59:41]Write to MH i2c: E2 08 00 36 39 80 0D 01 02 00 00 00 00 E8 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 36 39 00 90 00 E3 [06:59:41]RAPDU: 90 00 [06:59:41]wFMCommunicate OK [06:59:41]wFMCommunicate request_size=255 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 87 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 33 3D 00 00 35 04 06 00 8C 8C E9 [06:59:41]Write to MH i2c: E2 02 01 37 39 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 87 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 33 3D 00 00 35 04 06 00 8C 8C E9 00 00 C1 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 37 39 00 90 00 E4 [06:59:41]RAPDU: 90 00 [06:59:41]wFMCommunicate OK [06:59:41]wFMCommunicate request_size=8 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 0D 02 02 03 78 23 65 [06:59:41]Write to MH i2c: E2 0B 00 38 39 80 0D 02 02 03 00 78 23 65 00 00 F1 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 03 00 38 39 00 90 00 E5 [06:59:41]RAPDU: 90 00 [06:59:41]wFMCommunicate OK [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 0D 03 02 [06:59:41]Write to MH i2c: E2 08 00 39 39 80 0D 03 02 00 00 00 00 ED [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 0B 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 0B 00 39 39 00 21 FD C2 B9 26 5B 02 23 90 00 2D [06:59:41]RAPDU: 21 FD C2 B9 26 5B 02 23 90 00 [06:59:41]wFMCommunicate OK [06:59:41]SAM_PROTO_SignData done [06:59:41]FM_MakeSignedData done [06:59:41]CreateOFDProtocolMessage [06:59:41]wFMCommunicate request_size=4 [06:59:41]MH_SAM_APDU [06:59:41]CAPDU: 80 11 00 00 [06:59:41]Write to MH i2c: E2 08 00 3A 39 80 11 00 00 00 00 00 00 ED [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:41]Read from MH i2c: E2 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 17 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: E2 17 00 3A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3C [06:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [06:59:41]wFMCommunicate OK [06:59:41]CreateOFDProtocolMessage done [06:59:41]OFDSenderStorePacket 15667 [06:59:41]StoreOFDPacket docnum=15667 [06:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 8F 9B 05 01 4F 24 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 87 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 33 3D 00 00 35 04 06 00 8C 8C E9 78 23 65 21 FD C2 B9 26 5B 02 23 [06:59:41]CheckFolder [06:59:41]dirname=/storage/ofd_packets [06:59:41]CheckFolder done [06:59:41]ProducePacketName [06:59:41]name=ofd_packets/00015667 [06:59:41]NVStorageSaveData ofd_packets/00015667 [06:59:41]File name is /storage/ofd_packets/00015667 [06:59:41]Write 299 bytes [06:59:41]NVStorageSaveData done [06:59:41]OFDSenderStorePacket done [06:59:41]KKMCreateOFDPacket done [06:59:41]NVStorageSaveData kkm_last_timestamp [06:59:41]File name is /storage/kkm_last_timestamp [06:59:41]Write 4 bytes [06:59:41]NVStorageSaveData done [06:59:41]ExternCall_PrintAddStr [06:59:41]wPrintStart [06:59:41]Write to MH i2c: 01 00 00 3B 39 74 [06:59:41]Write i2c OK [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: 01 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: 01 07 00 [06:59:41]MH_I2C_Read... [06:59:41]Read from MH i2c: 01 07 00 3B 39 00 00 00 00 00 FF 0F 89 [06:59:41]RasterBufferAndPrint [06:59:41]line Счет N : (1)16216 [06:59:41]line ИНН: 02508201610067 [06:59:41]line Контрольно-Кассовый Чек [06:59:41]line ПРОДАЖА [06:59:41]line ТРК (МРК, ГНК) : 12 [06:59:41]line Товар: 50.50.0 [06:59:41]line SUPER 92-К-5 [06:59:41]line 14.620 * 68.40 [06:59:41]line = 1000.01 [06:59:41]line НДС 12% НСП 1% [06:59:41]line > о реализуемом товаре [06:59:41]line ОКРУГЛЕНИЕ: -0.01 [06:59:41]line ИТОГО: 1000.00 [06:59:41]line Внесено: 1000.00 [06:59:41]line СДАЧА: 0.00 [06:59:41]line НСП 1% : 8.85 [06:59:41]line НДС 12% : 106.20 [06:59:41]line Наличными: 1000.00 [06:59:41]line Безнал.: 0.00 [06:59:41]line Место: АЗС № 178 "Партнер Нефть" [06:59:41]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [06:59:41]line СНО: Общий режим [06:59:41]line Чек 13 29.10.2024 06:59 [06:59:41]line Смена: 172 ФФД: 1.0 [06:59:41]line ЗНМ: 0300000014 [06:59:41]line РНМ: 0000000000161798 [06:59:41]line Версия ККМ: v1.0 [06:59:41]line ФМ: 0000000000963325 [06:59:41]line ФД: 15667 [06:59:41]line ФПД: 154536840274789 [06:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T065949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15667&fm=154536840274789&tin=02508201610067®Number=0000000000161798&sum=100000 [06:59:41]OFD Sender: Processing packet 15667 [packets to send 4, broken 3] [06:59:41]ProducePacketName [06:59:41]name=ofd_packets/00015667 [06:59:41]OFD Sender: To server: pG, [06:59:41]CommunicateWithHost lk.salyk.kg:30040 [06:59:41]ConnectInit lk.salyk.kg [06:59:41]written 0, free lines is 4095 [06:59:41]Connected sock=10 [06:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 8F 9B 05 01 4F 24 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 E5 87 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 33 3D 00 00 35 04 06 00 8C 8C E9 78 23 65 21 FD C2 B9 26 5B 02 23 [06:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 1F 35 47 00 85 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 33 3D 00 00 F4 03 04 00 D3 32 20 67 B6 04 01 00 00 40 30 4E C6 6A C5 21 D1 [06:59:42]CommunicateWithHost err = 0 [06:59:42]CheckOFDResponse [06:59:42]1017 (14) - 77093643461234 [06:59:42]1041 (16) - 0000000000963325 [06:59:42]1040 (4) - 15667 [06:59:42]1012 (4) - 29.10.2024 00:56 [06:59:42]1206 (1) - 0 [06:59:42]OFD Sender: Remove packet 15667 [06:59:42]ProducePacketName [06:59:42]name=ofd_packets/00015667 [06:59:42]NVStorageDeleteData [06:59:42]Write to MH i2c: 01 00 00 66 39 9F [06:59:42]Write i2c OK [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: 01 [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: 01 07 00 [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: 01 07 00 66 39 00 00 00 00 00 ED 0C 9F [06:59:42]RasterBufferAndPrint [06:59:42]line [06:59:42]line [06:59:42]line [06:59:42]line [06:59:42]line [06:59:42]written 0, free lines is 3315 [06:59:42]MH_Cut [06:59:42]Write to MH i2c: D1 01 00 6D 39 01 78 [06:59:42]Write i2c OK [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: D1 [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: D1 01 00 [06:59:42]MH_I2C_Read... [06:59:42]Read from MH i2c: D1 01 00 6D 39 00 77 [06:59:42]Write to MH i2c: 01 00 00 6E 39 A7 [06:59:42]Write i2c OK [06:59:42]MH_I2C_Read... [06:59:42]OFD Sender: No OFD packet to send [06:59:42]*** Cut start [06:59:42]*** Partial cut [06:59:42]*** CUTSNS_PIN = 1 [06:59:43]*** CUTSNS_PIN = 0 [06:59:43]*** Brake cut motor [06:59:43]Read from MH i2c: 01 [06:59:43]MH_I2C_Read... [06:59:43]*** Stop cut motor [06:59:43]*** Cut end [06:59:43]Read from MH i2c: 01 07 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: 01 07 00 6E 39 00 00 00 00 00 FF 0F BC [06:59:43]process_action close_receipt done [06:59:43]requested_data is exist [06:59:43]produce_requested_data [06:59:43]requested_item fm.sn is exist - process it [06:59:43]wFMCommunicate request_size=4 [06:59:43]MH_SAM_APDU [06:59:43]CAPDU: 80 11 00 00 [06:59:43]Write to MH i2c: E2 08 00 6F 39 80 11 00 00 00 00 00 00 22 [06:59:43]Write i2c OK [06:59:43]MH_I2C_Read... [06:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:43]Read from MH i2c: E2 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 17 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 17 00 6F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 71 [06:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [06:59:43]wFMCommunicate OK [06:59:43]requested_item fd.num is exist - process it [06:59:43]SAM_PROTO_GetFieldsCounters [06:59:43]wFMCommunicate request_size=4 [06:59:43]MH_SAM_APDU [06:59:43]CAPDU: 80 13 00 00 [06:59:43]Write to MH i2c: E2 08 00 70 39 80 13 00 00 00 00 00 00 25 [06:59:43]Write i2c OK [06:59:43]MH_I2C_Read... [06:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:43]Read from MH i2c: E2 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 62 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 62 00 70 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 33 3D 00 00 0E 04 04 00 AC 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 8C [06:59:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 33 3D 00 00 0E 04 04 00 AC 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 [06:59:43]wFMCommunicate OK [06:59:43]SAM_PROTO_GetFieldsCounters done [06:59:43]requested_item shift.num is exist - process it [06:59:43]requested_item shift.opened is exist - process it [06:59:43]req_shift_opened [06:59:43]FM_GetShiftState [06:59:43]SAM_PROTO_GetShiftState [06:59:43]wFMCommunicate request_size=4 [06:59:43]MH_SAM_APDU [06:59:43]CAPDU: 80 13 01 00 [06:59:43]Write to MH i2c: E2 08 00 71 39 80 13 01 00 00 00 00 00 27 [06:59:43]Write i2c OK [06:59:43]MH_I2C_Read... [06:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:43]Read from MH i2c: E2 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 0E 00 [06:59:43]MH_I2C_Read... [06:59:43]Read from MH i2c: E2 0E 00 71 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 7C [06:59:43]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [06:59:43]wFMCommunicate OK [06:59:43]SAM_PROTO_GetShiftState done [06:59:43]FM_GetShiftState done [06:59:43]req_shift_opened done [06:59:43]requested_item shift.open_date is exist - process it [06:59:43]req_shift_open_date [06:59:43]req_shift_open_date done [06:59:43]produce_requested_data done [06:59:43]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15667,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [06:59:43]process_action_free close_receipt [06:59:43]json_value_free [06:59:43]json_value_free done [06:59:43]process_json_proto returns [06:59:43]Send response to host [06:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15667,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [06:59:43]free response buf [06:59:43]execute_script done [06:59:43]execute_script returns [06:59:43]free content buf [06:59:43]Sock 8.Close socket [06:59:43]Sock 8.Thread stoped [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]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:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:33]accept exits with 9 [07:49:33]New connection [07:49:33]New thread 3066731876 created [07:49:33]Thread 3066588516 joined [07:49:33]Waiting for new connection... [07:49:33] Sock 9.Parse request [07:49:33]Sock 9.Check first char [07:49:33]Sock 9.First char is OK [07:49:33]request: POST /json_proto HTTP/1.0 [07:49:33]Method: POST [07:49:33]URL: /json_proto [07:49:33]Method is POST - this is cgi request [07:49:33]url: /json_proto [07:49:33]query_string will be loaded in cgi processing [07:49:33]execute_cgi json_proto POST (null) [07:49:33]execute_cgi path=json_proto method=POST [07:49:33]POST find Content-Length [07:49:33]Host: 172.17.54.195:8080 [07:49:33]Content-Length: 977 [07:49:33]Content-Type: application/json [07:49:33] [07:49:33]POST finish read [07:49:33]Found Content-Length = 977 [07:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [07:49:33]execute_script... [07:49:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [07:49:33]POST & json_proto [07:49:33]process_json_proto [07:49:33]json parsed OK: [07:49:33]protocol is kg_v1.0 [07:49:33]action value=close_receipt [07:49:33]process_action close_receipt [07:49:33]cmd_close_receipt [07:49:33]MH_GetDate [07:49:33]Write to MH i2c: F0 00 00 72 39 9A [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: F0 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: F0 09 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: F0 09 00 72 39 00 97 93 20 67 8D 90 A3 66 7A [07:49:33]GetLastDocTimeStamp 1730185189 [07:49:33]current date 1730188183 [07:49:33]FM_GetShiftState [07:49:33]SAM_PROTO_GetShiftState [07:49:33]wFMCommunicate request_size=4 [07:49:33]MH_SAM_APDU [07:49:33]CAPDU: 80 13 01 00 [07:49:33]Write to MH i2c: E2 08 00 73 39 80 13 01 00 00 00 00 00 29 [07:49:33]Write i2c OK [07:49:33]MH_I2C_Read... [07:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:33]Read from MH i2c: E2 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0E 00 [07:49:33]MH_I2C_Read... [07:49:33]Read from MH i2c: E2 0E 00 73 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 7E [07:49:33]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [07:49:33]wFMCommunicate OK [07:49:33]SAM_PROTO_GetShiftState done [07:49:33]FM_GetShiftState done [07:49:33]opened in 1730161559 [07:49:33]opened+sec_in_day 1730247959 [07:49:33]quantity*price = 500004 [07:49:33]sum+1 = 500006 [07:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 14 29.10.2024 07:49 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа ДТ номер 178 сэкономлено 66.49 сом ФМ: 0000000000963325 ФД: 15668 ФПД: 17560025812173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T074943&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15668&fm=17560025812173&tin=02508201610067®Number=0000000000161798&sum=500000 [07:49:34]StoreToDocumentArchive [07:49:34]shift 172 fd 15668 [07:49:34]save to /storage/0172/doc_00015668 [07:49:34]save last doc name /storage/0172/doc_00015668 to /storage/kkm_last_doc_name [07:49:34]save OK [07:49:34]Clear old archive folders... [07:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:49:34]tlvbuf is 003E21E0 [07:49:34]SAM_PROTO_ClearQueue [07:49:34]wFMCommunicate request_size=4 [07:49:34]MH_SAM_APDU [07:49:34]CAPDU: 80 09 00 00 [07:49:34]Write to MH i2c: E2 08 00 80 39 80 09 00 00 00 00 00 00 2B [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:34]Read from MH i2c: E2 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: E2 03 00 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: E2 03 00 80 39 00 90 00 2D [07:49:34]RAPDU: 90 00 [07:49:34]wFMCommunicate OK [07:49:34]SAM_PROTO_ClearQueue done [07:49:34]KKMCreateOFDPacket [07:49:34]OFDProtocolAddRootSTLVToBuf [07:49:34]FM_MakeSignedData [07:49:34]FM_MakeSignedData [07:49:34]SAM_PROTO_SignData [07:49:34]wFMCommunicate request_size=4 [07:49:34]MH_SAM_APDU [07:49:34]CAPDU: 80 0D 01 02 [07:49:34]Write to MH i2c: E2 08 00 81 39 80 0D 01 02 00 00 00 00 33 [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:34]OFD Sender: No OFD packet to send [07:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:34]Read from MH i2c: E2 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: E2 03 00 [07:49:34]MH_I2C_Read... [07:49:34]Read from MH i2c: E2 03 00 81 39 00 90 00 2E [07:49:34]RAPDU: 90 00 [07:49:34]wFMCommunicate OK [07:49:34]wFMCommunicate request_size=255 [07:49:34]MH_SAM_APDU [07:49:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0E 00 00 00 F4 03 04 00 97 93 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 34 3D 00 00 35 04 06 00 0F F8 83 19 [07:49:34]Write to MH i2c: E2 02 01 82 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 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 0E 00 00 00 F4 03 04 00 97 93 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 34 3D 00 00 35 04 06 00 0F F8 83 19 00 00 3D [07:49:34]Write i2c OK [07:49:34]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 03 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [07:49:35]RAPDU: 90 00 [07:49:35]wFMCommunicate OK [07:49:35]wFMCommunicate request_size=7 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 0D 02 02 02 CC CD [07:49:35]Write to MH i2c: E2 0A 00 83 39 80 0D 02 02 02 00 CC CD 00 00 D3 [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 03 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [07:49:35]RAPDU: 90 00 [07:49:35]wFMCommunicate OK [07:49:35]wFMCommunicate request_size=4 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 0D 03 02 [07:49:35]Write to MH i2c: E2 08 00 84 39 80 0D 03 02 00 00 00 00 38 [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 0B 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 0B 00 84 39 00 33 9F B5 9A CF F3 D4 23 90 00 13 [07:49:35]RAPDU: 33 9F B5 9A CF F3 D4 23 90 00 [07:49:35]wFMCommunicate OK [07:49:35]SAM_PROTO_SignData done [07:49:35]FM_MakeSignedData done [07:49:35]CreateOFDProtocolMessage [07:49:35]wFMCommunicate request_size=4 [07:49:35]MH_SAM_APDU [07:49:35]CAPDU: 80 11 00 00 [07:49:35]Write to MH i2c: E2 08 00 85 39 80 11 00 00 00 00 00 00 38 [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:35]Read from MH i2c: E2 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 17 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: E2 17 00 85 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 87 [07:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [07:49:35]wFMCommunicate OK [07:49:35]CreateOFDProtocolMessage done [07:49:35]OFDSenderStorePacket 15668 [07:49:35]StoreOFDPacket docnum=15668 [07:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 A8 74 04 01 49 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 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 0E 00 00 00 F4 03 04 00 97 93 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 34 3D 00 00 35 04 06 00 0F F8 83 19 CC CD 33 9F B5 9A CF F3 D4 23 [07:49:35]CheckFolder [07:49:35]dirname=/storage/ofd_packets [07:49:35]CheckFolder done [07:49:35]ProducePacketName [07:49:35]name=ofd_packets/00015668 [07:49:35]NVStorageSaveData ofd_packets/00015668 [07:49:35]File name is /storage/ofd_packets/00015668 [07:49:35]Write 298 bytes [07:49:35]NVStorageSaveData done [07:49:35]OFDSenderStorePacket done [07:49:35]KKMCreateOFDPacket done [07:49:35]NVStorageSaveData kkm_last_timestamp [07:49:35]File name is /storage/kkm_last_timestamp [07:49:35]Write 4 bytes [07:49:35]NVStorageSaveData done [07:49:35]ExternCall_PrintAddStr [07:49:35]wPrintStart [07:49:35]Write to MH i2c: 01 00 00 86 39 BF [07:49:35]Write i2c OK [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: 01 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: 01 07 00 [07:49:35]MH_I2C_Read... [07:49:35]Read from MH i2c: 01 07 00 86 39 00 00 00 00 00 FF 0F D4 [07:49:35]RasterBufferAndPrint [07:49:35]line Счет N : (1)16217 [07:49:35]line ИНН: 02508201610067 [07:49:35]line Контрольно-Кассовый Чек [07:49:35]line ПРОДАЖА [07:49:35]line ТРК (МРК, ГНК) : 22 [07:49:35]line Товар: 2710194210 [07:49:35]line ДТ-К-5 [07:49:35]line 66.490 * 75.20 [07:49:35]line = 5000.05 [07:49:35]line НДС 12% НСП 1% [07:49:35]line > о реализуемом товаре [07:49:35]line ОКРУГЛЕНИЕ: -0.05 [07:49:35]line ИТОГО: 5000.00 [07:49:35]line Внесено: 5000.00 [07:49:35]line СДАЧА: 0.00 [07:49:35]line НСП 1% : 44.25 [07:49:35]line НДС 12% : 530.98 [07:49:35]line Наличными: 5000.00 [07:49:35]line Безнал.: 0.00 [07:49:35]line Место: АЗС № 178 "Партнер Нефть" [07:49:35]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [07:49:35]line СНО: Общий режим [07:49:35]line Чек 14 29.10.2024 07:49 [07:49:35]line Смена: 172 ФФД: 1.0 [07:49:35]line ЗНМ: 0300000014 [07:49:35]line РНМ: 0000000000161798 [07:49:35]line Версия ККМ: v1.0 [07:49:35]line [07:49:35]line Дисконтная программа [07:49:35]line ДТ [07:49:35]line номер 178 [07:49:35]line сэкономлено 66.49 сом [07:49:35]line ФМ: 0000000000963325 [07:49:35]line ФД: 15668 [07:49:35]line ФПД: 17560025812173 [07:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T074943&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15668&fm=17560025812173&tin=02508201610067®Number=0000000000161798&sum=500000 [07:49:35]OFD Sender: Processing packet 15668 [packets to send 4, broken 3] [07:49:35]ProducePacketName [07:49:35]name=ofd_packets/00015668 [07:49:35]OFD Sender: To server: pG, [07:49:35]CommunicateWithHost lk.salyk.kg:30040 [07:49:35]ConnectInit lk.salyk.kg [07:49:35]written 0, free lines is 4095 [07:49:35]Connected sock=10 [07:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 A8 74 04 01 49 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 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 0E 00 00 00 F4 03 04 00 97 93 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 34 3D 00 00 35 04 06 00 0F F8 83 19 CC CD 33 9F B5 9A CF F3 D4 23 [07:49:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 A2 11 47 00 07 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 34 3D 00 00 F4 03 04 00 85 3E 20 67 B6 04 01 00 00 57 1F AB D4 EA 6A 7C C4 [07:49:35]CommunicateWithHost err = 0 [07:49:35]CheckOFDResponse [07:49:35]1017 (14) - 77093643461234 [07:49:35]1041 (16) - 0000000000963325 [07:49:35]1040 (4) - 15668 [07:49:35]1012 (4) - 29.10.2024 01:46 [07:49:35]1206 (1) - 0 [07:49:35]OFD Sender: Remove packet 15668 [07:49:35]ProducePacketName [07:49:35]name=ofd_packets/00015668 [07:49:35]NVStorageDeleteData [07:49:36]Write to MH i2c: 01 00 00 B6 39 EF [07:49:36]Write i2c OK [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: 01 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: 01 07 00 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 97 0C 99 [07:49:36]RasterBufferAndPrint [07:49:36]line [07:49:36]line [07:49:36]line [07:49:36]line [07:49:36]line [07:49:36]written 0, free lines is 3229 [07:49:36]MH_Cut [07:49:36]Write to MH i2c: D1 01 00 BD 39 01 C8 [07:49:36]Write i2c OK [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: D1 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: D1 01 00 [07:49:36]MH_I2C_Read... [07:49:36]Read from MH i2c: D1 01 00 BD 39 00 C7 [07:49:36]Write to MH i2c: 01 00 00 BE 39 F7 [07:49:36]Write i2c OK [07:49:36]MH_I2C_Read... [07:49:36]OFD Sender: No OFD packet to send [07:49:36]*** Cut start [07:49:36]*** Partial cut [07:49:36]*** CUTSNS_PIN = 1 [07:49:36]*** CUTSNS_PIN = 0 [07:49:37]*** Brake cut motor [07:49:37]Read from MH i2c: 01 [07:49:37]MH_I2C_Read... [07:49:37]*** Stop cut motor [07:49:37]*** Cut end [07:49:37]Read from MH i2c: 01 07 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [07:49:37]process_action close_receipt done [07:49:37]requested_data is exist [07:49:37]produce_requested_data [07:49:37]requested_item fm.sn is exist - process it [07:49:37]wFMCommunicate request_size=4 [07:49:37]MH_SAM_APDU [07:49:37]CAPDU: 80 11 00 00 [07:49:37]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [07:49:37]Write i2c OK [07:49:37]MH_I2C_Read... [07:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:37]Read from MH i2c: E2 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 17 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C1 [07:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [07:49:37]wFMCommunicate OK [07:49:37]requested_item fd.num is exist - process it [07:49:37]SAM_PROTO_GetFieldsCounters [07:49:37]wFMCommunicate request_size=4 [07:49:37]MH_SAM_APDU [07:49:37]CAPDU: 80 13 00 00 [07:49:37]Write to MH i2c: E2 08 00 C0 39 80 13 00 00 00 00 00 00 75 [07:49:37]Write i2c OK [07:49:37]MH_I2C_Read... [07:49:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:37]Read from MH i2c: E2 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 62 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 62 00 C0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 34 3D 00 00 0E 04 04 00 AC 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 E0 [07:49:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 34 3D 00 00 0E 04 04 00 AC 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 [07:49:37]wFMCommunicate OK [07:49:37]SAM_PROTO_GetFieldsCounters done [07:49:37]requested_item shift.num is exist - process it [07:49:37]requested_item shift.opened is exist - process it [07:49:37]req_shift_opened [07:49:37]FM_GetShiftState [07:49:37]SAM_PROTO_GetShiftState [07:49:37]wFMCommunicate request_size=4 [07:49:37]MH_SAM_APDU [07:49:37]CAPDU: 80 13 01 00 [07:49:37]Write to MH i2c: E2 08 00 C1 39 80 13 01 00 00 00 00 00 77 [07:49:37]Write i2c OK [07:49:37]MH_I2C_Read... [07:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:37]Read from MH i2c: E2 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 0E 00 [07:49:37]MH_I2C_Read... [07:49:37]Read from MH i2c: E2 0E 00 C1 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CC [07:49:37]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [07:49:37]wFMCommunicate OK [07:49:37]SAM_PROTO_GetShiftState done [07:49:37]FM_GetShiftState done [07:49:37]req_shift_opened done [07:49:37]requested_item shift.open_date is exist - process it [07:49:37]req_shift_open_date [07:49:37]req_shift_open_date done [07:49:37]produce_requested_data done [07:49:37]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15668,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [07:49:37]process_action_free close_receipt [07:49:37]json_value_free [07:49:37]json_value_free done [07:49:37]process_json_proto returns [07:49:37]Send response to host [07:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15668,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [07:49:37]free response buf [07:49:37]execute_script done [07:49:37]execute_script returns [07:49:37]free content buf [07:49:37]Sock 9.Close socket [07:49:37]Sock 9.Thread stoped [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:09]accept exits with 8 [08:01:09]New connection [08:01:09]New thread 3066588516 created [08:01:09]Thread 3066731876 joined [08:01:09]Waiting for new connection... [08:01:09] Sock 8.Parse request [08:01:09]Sock 8.Check first char [08:01:09]Sock 8.First char is OK [08:01:09]request: POST /json_proto HTTP/1.0 [08:01:09]Method: POST [08:01:09]URL: /json_proto [08:01:09]Method is POST - this is cgi request [08:01:09]url: /json_proto [08:01:09]query_string will be loaded in cgi processing [08:01:09]execute_cgi json_proto POST (null) [08:01:09]execute_cgi path=json_proto method=POST [08:01:09]POST find Content-Length [08:01:09]Host: 172.17.54.195:8080 [08:01:09]Content-Length: 787 [08:01:09]Content-Type: application/json [08:01:09] [08:01:09]POST finish read [08:01:09]Found Content-Length = 787 [08:01:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:09]execute_script... [08:01: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)16218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:09]POST & json_proto [08:01:09]process_json_proto [08:01:09]json parsed OK: [08:01:09]protocol is kg_v1.0 [08:01:09]action value=close_receipt [08:01:09]process_action close_receipt [08:01:09]cmd_close_receipt [08:01:09]MH_GetDate [08:01:09]Write to MH i2c: F0 00 00 C2 39 EA [08:01:09]Write i2c OK [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: F0 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: F0 09 00 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: F0 09 00 C2 39 00 4F 96 20 67 8D 90 A3 66 85 [08:01:09]GetLastDocTimeStamp 1730188183 [08:01:09]current date 1730188879 [08:01:09]FM_GetShiftState [08:01:09]SAM_PROTO_GetShiftState [08:01:09]wFMCommunicate request_size=4 [08:01:09]MH_SAM_APDU [08:01:09]CAPDU: 80 13 01 00 [08:01:09]Write to MH i2c: E2 08 00 C3 39 80 13 01 00 00 00 00 00 79 [08:01:09]Write i2c OK [08:01:09]MH_I2C_Read... [08:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:09]Read from MH i2c: E2 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: E2 0E 00 [08:01:09]MH_I2C_Read... [08:01:09]Read from MH i2c: E2 0E 00 C3 39 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CE [08:01:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:01:09]wFMCommunicate OK [08:01:09]SAM_PROTO_GetShiftState done [08:01:09]FM_GetShiftState done [08:01:09]opened in 1730161559 [08:01:09]opened+sec_in_day 1730247959 [08:01:09]quantity*price = 200043 [08:01:09]sum+1 = 200044 [08:01:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 15 29.10.2024 08:01 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15669 ФПД: 55435592588441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080119&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15669&fm=55435592588441&tin=02508201610067®Number=0000000000161798&sum=200000 [08:01:10]StoreToDocumentArchive [08:01:10]shift 172 fd 15669 [08:01:10]save to /storage/0172/doc_00015669 [08:01:10]save last doc name /storage/0172/doc_00015669 to /storage/kkm_last_doc_name [08:01:10]save OK [08:01:10]Clear old archive folders... [08:01:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:01:10]tlvbuf is 003E21E0 [08:01:10]SAM_PROTO_ClearQueue [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 09 00 00 [08:01:10]Write to MH i2c: E2 08 00 D0 39 80 09 00 00 00 00 00 00 7B [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [08:01:10]RAPDU: 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_ClearQueue done [08:01:10]KKMCreateOFDPacket [08:01:10]OFDProtocolAddRootSTLVToBuf [08:01:10]FM_MakeSignedData [08:01:10]FM_MakeSignedData [08:01:10]SAM_PROTO_SignData [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 0D 01 02 [08:01:10]Write to MH i2c: E2 08 00 D1 39 80 0D 01 02 00 00 00 00 83 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [08:01:10]RAPDU: 90 00 [08:01:10]wFMCommunicate OK [08:01:10]wFMCommunicate request_size=255 [08:01:10]MH_SAM_APDU [08:01: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 35 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4F 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 35 3D 00 00 35 04 06 00 32 [08:01:10]Write to MH i2c: E2 02 01 D2 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 35 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4F 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 35 3D 00 00 35 04 06 00 32 00 00 88 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [08:01:10]RAPDU: 90 00 [08:01:10]wFMCommunicate OK [08:01:10]wFMCommunicate request_size=10 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 0D 02 02 05 6B 1A CD DC 99 [08:01:10]Write to MH i2c: E2 0D 00 D3 39 80 0D 02 02 05 00 6B 1A CD DC 99 00 00 57 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [08:01:10]RAPDU: 90 00 [08:01:10]wFMCommunicate OK [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 0D 03 02 [08:01:10]Write to MH i2c: E2 08 00 D4 39 80 0D 03 02 00 00 00 00 88 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:10]Read from MH i2c: E2 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0B 00 [08:01:10]MH_I2C_Read... [08:01:10]Read from MH i2c: E2 0B 00 D4 39 00 EE 5F 58 4B 58 81 43 D8 90 00 6D [08:01:10]RAPDU: EE 5F 58 4B 58 81 43 D8 90 00 [08:01:10]wFMCommunicate OK [08:01:10]SAM_PROTO_SignData done [08:01:10]FM_MakeSignedData done [08:01:10]CreateOFDProtocolMessage [08:01:10]wFMCommunicate request_size=4 [08:01:10]MH_SAM_APDU [08:01:10]CAPDU: 80 11 00 00 [08:01:10]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [08:01:10]Write i2c OK [08:01:10]MH_I2C_Read... [08:01:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:11]Read from MH i2c: E2 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 17 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D7 [08:01:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:01:11]wFMCommunicate OK [08:01:11]CreateOFDProtocolMessage done [08:01:11]OFDSenderStorePacket 15669 [08:01:11]StoreOFDPacket docnum=15669 [08:01:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 7A A0 07 01 CE 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4F 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 35 3D 00 00 35 04 06 00 32 6B 1A CD DC 99 EE 5F 58 4B 58 81 43 D8 [08:01:11]CheckFolder [08:01:11]dirname=/storage/ofd_packets [08:01:11]CheckFolder done [08:01:11]ProducePacketName [08:01:11]name=ofd_packets/00015669 [08:01:11]NVStorageSaveData ofd_packets/00015669 [08:01:11]File name is /storage/ofd_packets/00015669 [08:01:11]Write 301 bytes [08:01:11]NVStorageSaveData done [08:01:11]OFDSenderStorePacket done [08:01:11]KKMCreateOFDPacket done [08:01:11]NVStorageSaveData kkm_last_timestamp [08:01:11]File name is /storage/kkm_last_timestamp [08:01:11]Write 4 bytes [08:01:11]NVStorageSaveData done [08:01:11]ExternCall_PrintAddStr [08:01:11]wPrintStart [08:01:11]Write to MH i2c: 01 00 00 D6 39 0F [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 07 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [08:01:11]RasterBufferAndPrint [08:01:11]line Счет N : (1)16218 [08:01:11]line ИНН: 02508201610067 [08:01:11]line Контрольно-Кассовый Чек [08:01:11]line ПРОДАЖА [08:01:11]line ТРК (МРК, ГНК) : 11 [08:01:11]line Товар: 2710124500 [08:01:11]line Аи-95-К-5 [08:01:11]line 26.960 * 74.20 [08:01:11]line = 2000.43 [08:01:11]line НДС 12% НСП 1% [08:01:11]line > о реализуемом товаре [08:01:11]line ОКРУГЛЕНИЕ: -0.43 [08:01:11]line ИТОГО: 2000.00 [08:01:11]line НСП 1% : 17.70 [08:01:11]line НДС 12% : 212.43 [08:01:11]line Наличными: 0.00 [08:01:11]line Безнал.: 2000.00 [08:01:11]line Место: АЗС № 178 "Партнер Нефть" [08:01:11]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:01:11]line СНО: Общий режим [08:01:11]line Чек 15 29.10.2024 08:01 [08:01:11]line Смена: 172 ФФД: 1.0 [08:01:11]line ЗНМ: 0300000014 [08:01:11]line РНМ: 0000000000161798 [08:01:11]line Версия ККМ: v1.0 [08:01:11]line Платежная система: Mbank [08:01:11]line ФМ: 0000000000963325 [08:01:11]line ФД: 15669 [08:01:11]line ФПД: 55435592588441 [08:01:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080119&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15669&fm=55435592588441&tin=02508201610067®Number=0000000000161798&sum=200000 [08:01:11]OFD Sender: Processing packet 15669 [packets to send 4, broken 3] [08:01:11]ProducePacketName [08:01:11]name=ofd_packets/00015669 [08:01:11]OFD Sender: To server: pG, [08:01:11]CommunicateWithHost lk.salyk.kg:30040 [08:01:11]ConnectInit lk.salyk.kg [08:01:11]written 0, free lines is 4095 [08:01:11]Connected sock=10 [08:01:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 7A A0 07 01 CE 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4F 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 35 3D 00 00 35 04 06 00 32 6B 1A CD DC 99 EE 5F 58 4B 58 81 43 D8 [08:01:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DB F7 47 00 45 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 35 3D 00 00 F4 03 04 00 3C 41 20 67 B6 04 01 00 00 EE 6C 8F 83 4D 64 60 BC [08:01:11]CommunicateWithHost err = 0 [08:01:11]CheckOFDResponse [08:01:11]1017 (14) - 77093643461234 [08:01:11]1041 (16) - 0000000000963325 [08:01:11]1040 (4) - 15669 [08:01:11]1012 (4) - 29.10.2024 01:58 [08:01:11]1206 (1) - 0 [08:01:11]OFD Sender: Remove packet 15669 [08:01:11]ProducePacketName [08:01:11]name=ofd_packets/00015669 [08:01:11]NVStorageDeleteData [08:01:11]Write to MH i2c: 01 00 00 00 3A 3A [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 07 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: 01 07 00 00 3A 00 00 00 00 00 12 0D 60 [08:01:11]RasterBufferAndPrint [08:01:11]line [08:01:11]line [08:01:11]line [08:01:11]line [08:01:11]line [08:01:11]written 0, free lines is 3353 [08:01:11]MH_Cut [08:01:11]Write to MH i2c: D1 01 00 07 3A 01 13 [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: D1 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: D1 01 00 [08:01:11]MH_I2C_Read... [08:01:11]Read from MH i2c: D1 01 00 07 3A 00 12 [08:01:11]Write to MH i2c: 01 00 00 08 3A 42 [08:01:11]Write i2c OK [08:01:11]MH_I2C_Read... [08:01:12]OFD Sender: No OFD packet to send [08:01:12]*** Cut start [08:01:12]*** Partial cut [08:01:12]*** CUTSNS_PIN = 1 [08:01:12]*** CUTSNS_PIN = 0 [08:01:12]*** Brake cut motor [08:01:13]Read from MH i2c: 01 [08:01:13]MH_I2C_Read... [08:01:13]*** Stop cut motor [08:01:13]*** Cut end [08:01:13]Read from MH i2c: 01 07 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: 01 07 00 08 3A 00 00 00 00 00 FF 0F 57 [08:01:13]process_action close_receipt done [08:01:13]requested_data is exist [08:01:13]produce_requested_data [08:01:13]requested_item fm.sn is exist - process it [08:01:13]wFMCommunicate request_size=4 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 11 00 00 [08:01:13]Write to MH i2c: E2 08 00 09 3A 80 11 00 00 00 00 00 00 BD [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 17 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 17 00 09 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0C [08:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:01:13]wFMCommunicate OK [08:01:13]requested_item fd.num is exist - process it [08:01:13]SAM_PROTO_GetFieldsCounters [08:01:13]wFMCommunicate request_size=4 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 13 00 00 [08:01:13]Write to MH i2c: E2 08 00 0A 3A 80 13 00 00 00 00 00 00 C0 [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 62 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 62 00 0A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 35 3D 00 00 0E 04 04 00 AC 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 2F [08:01:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 35 3D 00 00 0E 04 04 00 AC 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:01:13]wFMCommunicate OK [08:01:13]SAM_PROTO_GetFieldsCounters done [08:01:13]requested_item shift.num is exist - process it [08:01:13]requested_item shift.opened is exist - process it [08:01:13]req_shift_opened [08:01:13]FM_GetShiftState [08:01:13]SAM_PROTO_GetShiftState [08:01:13]wFMCommunicate request_size=4 [08:01:13]MH_SAM_APDU [08:01:13]CAPDU: 80 13 01 00 [08:01:13]Write to MH i2c: E2 08 00 0B 3A 80 13 01 00 00 00 00 00 C2 [08:01:13]Write i2c OK [08:01:13]MH_I2C_Read... [08:01:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:13]Read from MH i2c: E2 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 0E 00 [08:01:13]MH_I2C_Read... [08:01:13]Read from MH i2c: E2 0E 00 0B 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 17 [08:01:13]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:01:13]wFMCommunicate OK [08:01:13]SAM_PROTO_GetShiftState done [08:01:13]FM_GetShiftState done [08:01:13]req_shift_opened done [08:01:13]requested_item shift.open_date is exist - process it [08:01:13]req_shift_open_date [08:01:13]req_shift_open_date done [08:01:13]produce_requested_data done [08:01:13]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15669,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:01:13]process_action_free close_receipt [08:01:13]json_value_free [08:01:13]json_value_free done [08:01:13]process_json_proto returns [08:01:13]Send response to host [08:01:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15669,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:01:13]free response buf [08:01:13]execute_script done [08:01:13]execute_script returns [08:01:13]free content buf [08:01:13]Sock 8.Close socket [08:01:13]Sock 8.Thread stoped [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:23]accept exits with 9 [08:01:23]New connection [08:01:23]New thread 3066731876 created [08:01:23]Thread 3066588516 joined [08:01:23]Waiting for new connection... [08:01:23] Sock 9.Parse request [08:01:23]Sock 9.Check first char [08:01:23]Sock 9.First char is OK [08:01:23]request: POST /json_proto HTTP/1.0 [08:01:23]Method: POST [08:01:23]URL: /json_proto [08:01:23]Method is POST - this is cgi request [08:01:23]url: /json_proto [08:01:23]query_string will be loaded in cgi processing [08:01:23]execute_cgi json_proto POST (null) [08:01:23]execute_cgi path=json_proto method=POST [08:01:23]POST find Content-Length [08:01:23]Host: 172.17.54.195:8080 [08:01:23]Content-Length: 667 [08:01:23]Content-Type: application/json [08:01:23] [08:01:23]POST finish read [08:01:23]Found Content-Length = 667 [08:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "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" ] } } [08:01:23]execute_script... [08:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "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" ] } } [08:01:23]POST & json_proto [08:01:23]process_json_proto [08:01:23]json parsed OK: [08:01:23]protocol is kg_v1.0 [08:01:23]action value=close_receipt [08:01:23]process_action close_receipt [08:01:23]cmd_close_receipt [08:01:23]MH_GetDate [08:01:23]Write to MH i2c: F0 00 00 0C 3A 35 [08:01:23]Write i2c OK [08:01:23]MH_I2C_Read... [08:01:23]Read from MH i2c: F0 [08:01:23]MH_I2C_Read... [08:01:23]Read from MH i2c: F0 09 00 [08:01:23]MH_I2C_Read... [08:01:23]Read from MH i2c: F0 09 00 0C 3A 00 5D 96 20 67 8D 90 A3 66 DE [08:01:23]GetLastDocTimeStamp 1730188879 [08:01:23]current date 1730188893 [08:01:23]FM_GetShiftState [08:01:23]SAM_PROTO_GetShiftState [08:01:23]wFMCommunicate request_size=4 [08:01:23]MH_SAM_APDU [08:01:23]CAPDU: 80 13 01 00 [08:01:23]Write to MH i2c: E2 08 00 0D 3A 80 13 01 00 00 00 00 00 C4 [08:01:23]Write i2c OK [08:01:23]MH_I2C_Read... [08:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:23]Read from MH i2c: E2 [08:01:23]MH_I2C_Read... [08:01:23]Read from MH i2c: E2 0E 00 [08:01:23]MH_I2C_Read... [08:01:23]Read from MH i2c: E2 0E 00 0D 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 19 [08:01:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:01:23]wFMCommunicate OK [08:01:23]SAM_PROTO_GetShiftState done [08:01:23]FM_GetShiftState done [08:01:23]opened in 1730161559 [08:01:23]opened+sec_in_day 1730247959 [08:01:23]quantity*price = 80028 [08:01:23]sum+1 = 80029 [08:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 16 29.10.2024 08:01 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15670 ФПД: 51881377375878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080133&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15670&fm=51881377375878&tin=02508201610067®Number=0000000000161798&sum=80000 [08:01:24]StoreToDocumentArchive [08:01:24]shift 172 fd 15670 [08:01:24]save to /storage/0172/doc_00015670 [08:01:24]save last doc name /storage/0172/doc_00015670 to /storage/kkm_last_doc_name [08:01:24]save OK [08:01:24]Clear old archive folders... [08:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=249 [08:01:24]tlvbuf is 003E21E0 [08:01:24]SAM_PROTO_ClearQueue [08:01:24]wFMCommunicate request_size=4 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 09 00 00 [08:01:24]Write to MH i2c: E2 08 00 1A 3A 80 09 00 00 00 00 00 00 C6 [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 1A 3A 00 90 00 C8 [08:01:24]RAPDU: 90 00 [08:01:24]wFMCommunicate OK [08:01:24]SAM_PROTO_ClearQueue done [08:01:24]KKMCreateOFDPacket [08:01:24]OFDProtocolAddRootSTLVToBuf [08:01:24]FM_MakeSignedData [08:01:24]FM_MakeSignedData [08:01:24]SAM_PROTO_SignData [08:01:24]wFMCommunicate request_size=4 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 0D 01 02 [08:01:24]Write to MH i2c: E2 08 00 1B 3A 80 0D 01 02 00 00 00 00 CE [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 1B 3A 00 90 00 C9 [08:01:24]RAPDU: 90 00 [08:01:24]wFMCommunicate OK [08:01:24]wFMCommunicate request_size=255 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 10 00 00 00 F4 03 04 00 5D 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 36 3D 00 00 35 04 06 00 2F 2F 93 [08:01:24]Write to MH i2c: E2 02 01 1C 3A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 10 00 00 00 F4 03 04 00 5D 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 36 3D 00 00 35 04 06 00 2F 2F 93 00 00 7D [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [08:01:24]RAPDU: 90 00 [08:01:24]wFMCommunicate OK [08:01:24]wFMCommunicate request_size=8 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 0D 02 02 03 11 A6 86 [08:01:24]Write to MH i2c: E2 0B 00 1D 3A 80 0D 02 02 03 00 11 A6 86 00 00 14 [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [08:01:24]RAPDU: 90 00 [08:01:24]wFMCommunicate OK [08:01:24]wFMCommunicate request_size=4 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 0D 03 02 [08:01:24]Write to MH i2c: E2 08 00 1E 3A 80 0D 03 02 00 00 00 00 D3 [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 0B 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 0B 00 1E 3A 00 1F 8E 96 33 AF 51 A7 A4 90 00 95 [08:01:24]RAPDU: 1F 8E 96 33 AF 51 A7 A4 90 00 [08:01:24]wFMCommunicate OK [08:01:24]SAM_PROTO_SignData done [08:01:24]FM_MakeSignedData done [08:01:24]CreateOFDProtocolMessage [08:01:24]wFMCommunicate request_size=4 [08:01:24]MH_SAM_APDU [08:01:24]CAPDU: 80 11 00 00 [08:01:24]Write to MH i2c: E2 08 00 1F 3A 80 11 00 00 00 00 00 00 D3 [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:24]Read from MH i2c: E2 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 17 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: E2 17 00 1F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 22 [08:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:01:24]wFMCommunicate OK [08:01:24]CreateOFDProtocolMessage done [08:01:24]OFDSenderStorePacket 15670 [08:01:24]StoreOFDPacket docnum=15670 [08:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 EC 02 05 01 B8 98 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 10 00 00 00 F4 03 04 00 5D 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 36 3D 00 00 35 04 06 00 2F 2F 93 11 A6 86 1F 8E 96 33 AF 51 A7 A4 [08:01:24]CheckFolder [08:01:24]dirname=/storage/ofd_packets [08:01:24]CheckFolder done [08:01:24]ProducePacketName [08:01:24]name=ofd_packets/00015670 [08:01:24]NVStorageSaveData ofd_packets/00015670 [08:01:24]File name is /storage/ofd_packets/00015670 [08:01:24]Write 299 bytes [08:01:24]NVStorageSaveData done [08:01:24]OFDSenderStorePacket done [08:01:24]KKMCreateOFDPacket done [08:01:24]NVStorageSaveData kkm_last_timestamp [08:01:24]File name is /storage/kkm_last_timestamp [08:01:24]Write 4 bytes [08:01:24]NVStorageSaveData done [08:01:24]ExternCall_PrintAddStr [08:01:24]wPrintStart [08:01:24]Write to MH i2c: 01 00 00 20 3A 5A [08:01:24]Write i2c OK [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: 01 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: 01 07 00 [08:01:24]MH_I2C_Read... [08:01:24]Read from MH i2c: 01 07 00 20 3A 00 00 00 00 00 FF 0F 6F [08:01:24]RasterBufferAndPrint [08:01:24]line Счет N : (1)16219 [08:01:24]line ИНН: 02508201610067 [08:01:24]line Контрольно-Кассовый Чек [08:01:24]line ПРОДАЖА [08:01:24]line ТРК (МРК, ГНК) : 12 [08:01:24]line Товар: 50.50.0 [08:01:24]line SUPER 92-К-5 [08:01:24]line 11.700 * 68.40 [08:01:24]line = 800.28 [08:01:24]line НДС 12% НСП 1% [08:01:24]line > о реализуемом товаре [08:01:24]line ОКРУГЛЕНИЕ: -0.28 [08:01:24]line ИТОГО: 800.00 [08:01:24]line Внесено: 800.00 [08:01:24]line СДАЧА: 0.00 [08:01:24]line НСП 1% : 7.08 [08:01:24]line НДС 12% : 84.98 [08:01:24]line Наличными: 800.00 [08:01:24]line Безнал.: 0.00 [08:01:24]line Место: АЗС № 178 "Партнер Нефть" [08:01:24]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:01:24]line СНО: Общий режим [08:01:24]line Чек 16 29.10.2024 08:01 [08:01:24]line Смена: 172 ФФД: 1.0 [08:01:24]line ЗНМ: 0300000014 [08:01:24]line РНМ: 0000000000161798 [08:01:24]line Версия ККМ: v1.0 [08:01:24]line ФМ: 0000000000963325 [08:01:24]line ФД: 15670 [08:01:24]line ФПД: 51881377375878 [08:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T080133&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15670&fm=51881377375878&tin=02508201610067®Number=0000000000161798&sum=80000 [08:01:25]OFD Sender: Processing packet 15670 [packets to send 4, broken 3] [08:01:25]ProducePacketName [08:01:25]name=ofd_packets/00015670 [08:01:25]OFD Sender: To server: pG, [08:01:25]CommunicateWithHost lk.salyk.kg:30040 [08:01:25]ConnectInit lk.salyk.kg [08:01:25]written 0, free lines is 4095 [08:01:25]Connected sock=10 [08:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 EC 02 05 01 B8 98 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 10 00 00 00 F4 03 04 00 5D 96 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 36 3D 00 00 35 04 06 00 2F 2F 93 11 A6 86 1F 8E 96 33 AF 51 A7 A4 [08:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DC 65 47 00 8B 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 36 3D 00 00 F4 03 04 00 4A 41 20 67 B6 04 01 00 00 B2 F3 3A 9E 7C 52 78 90 [08:01:25]CommunicateWithHost err = 0 [08:01:25]CheckOFDResponse [08:01:25]1017 (14) - 77093643461234 [08:01:25]1041 (16) - 0000000000963325 [08:01:25]1040 (4) - 15670 [08:01:25]1012 (4) - 29.10.2024 01:58 [08:01:25]1206 (1) - 0 [08:01:25]OFD Sender: Remove packet 15670 [08:01:25]ProducePacketName [08:01:25]name=ofd_packets/00015670 [08:01:25]NVStorageDeleteData [08:01:25]Write to MH i2c: 01 00 00 4B 3A 85 [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: 01 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: 01 07 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: 01 07 00 4B 3A 00 00 00 00 00 F5 0C 8D [08:01:25]RasterBufferAndPrint [08:01:25]line [08:01:25]line [08:01:25]line [08:01:25]line [08:01:25]line [08:01:25]written 0, free lines is 3327 [08:01:25]MH_Cut [08:01:25]Write to MH i2c: D1 01 00 52 3A 01 5E [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: D1 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: D1 01 00 [08:01:25]MH_I2C_Read... [08:01:25]Read from MH i2c: D1 01 00 52 3A 00 5D [08:01:25]Write to MH i2c: 01 00 00 53 3A 8D [08:01:25]Write i2c OK [08:01:25]MH_I2C_Read... [08:01:26]OFD Sender: No OFD packet to send [08:01:26]*** Cut start [08:01:26]*** Partial cut [08:01:26]*** CUTSNS_PIN = 1 [08:01:26]*** CUTSNS_PIN = 0 [08:01:26]*** Brake cut motor [08:01:27]Read from MH i2c: 01 [08:01:27]MH_I2C_Read... [08:01:27]*** Stop cut motor [08:01:27]*** Cut end [08:01:27]Read from MH i2c: 01 07 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: 01 07 00 53 3A 00 00 00 00 00 FF 0F A2 [08:01:27]process_action close_receipt done [08:01:27]requested_data is exist [08:01:27]produce_requested_data [08:01:27]requested_item fm.sn is exist - process it [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 11 00 00 [08:01:27]Write to MH i2c: E2 08 00 54 3A 80 11 00 00 00 00 00 00 08 [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 17 00 54 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 57 [08:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:01:27]wFMCommunicate OK [08:01:27]requested_item fd.num is exist - process it [08:01:27]SAM_PROTO_GetFieldsCounters [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 13 00 00 [08:01:27]Write to MH i2c: E2 08 00 55 3A 80 13 00 00 00 00 00 00 0B [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 62 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 62 00 55 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 36 3D 00 00 0E 04 04 00 AC 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 7E [08:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 36 3D 00 00 0E 04 04 00 AC 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:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_GetFieldsCounters done [08:01:27]requested_item shift.num is exist - process it [08:01:27]requested_item shift.opened is exist - process it [08:01:27]req_shift_opened [08:01:27]FM_GetShiftState [08:01:27]SAM_PROTO_GetShiftState [08:01:27]wFMCommunicate request_size=4 [08:01:27]MH_SAM_APDU [08:01:27]CAPDU: 80 13 01 00 [08:01:27]Write to MH i2c: E2 08 00 56 3A 80 13 01 00 00 00 00 00 0D [08:01:27]Write i2c OK [08:01:27]MH_I2C_Read... [08:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:27]Read from MH i2c: E2 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0E 00 [08:01:27]MH_I2C_Read... [08:01:27]Read from MH i2c: E2 0E 00 56 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 62 [08:01:27]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:01:27]wFMCommunicate OK [08:01:27]SAM_PROTO_GetShiftState done [08:01:27]FM_GetShiftState done [08:01:27]req_shift_opened done [08:01:27]requested_item shift.open_date is exist - process it [08:01:27]req_shift_open_date [08:01:27]req_shift_open_date done [08:01:27]produce_requested_data done [08:01:27]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15670,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:01:27]process_action_free close_receipt [08:01:27]json_value_free [08:01:27]json_value_free done [08:01:27]process_json_proto returns [08:01:27]Send response to host [08:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15670,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:01:27]free response buf [08:01:27]execute_script done [08:01:27]execute_script returns [08:01:27]free content buf [08:01:27]Sock 9.Close socket [08:01:27]Sock 9.Thread stoped [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:16]OFD Sender: No OFD packet to send [08:08:21]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]accept exits with 8 [08:18:16]New connection [08:18:16]New thread 3066588516 created [08:18:16]Thread 3066731876 joined [08:18:16]Waiting for new connection... [08:18:16] Sock 8.Parse request [08:18:16]Sock 8.Check first char [08:18:16]Sock 8.First char is OK [08:18:16]request: POST /json_proto HTTP/1.0 [08:18:16]Method: POST [08:18:16]URL: /json_proto [08:18:16]Method is POST - this is cgi request [08:18:16]url: /json_proto [08:18:16]query_string will be loaded in cgi processing [08:18:16]execute_cgi json_proto POST (null) [08:18:16]execute_cgi path=json_proto method=POST [08:18:16]POST find Content-Length [08:18:16]Host: 172.17.54.195:8080 [08:18:16]Content-Length: 777 [08:18:16]Content-Type: application/json [08:18:16] [08:18:16]POST finish read [08:18:16]Found Content-Length = 777 [08:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]execute_script... [08:18: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)16220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:16]POST & json_proto [08:18:16]process_json_proto [08:18:16]json parsed OK: [08:18:16]protocol is kg_v1.0 [08:18:16]action value=close_receipt [08:18:16]process_action close_receipt [08:18:16]cmd_close_receipt [08:18:16]MH_GetDate [08:18:16]Write to MH i2c: F0 00 00 57 3A 80 [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: F0 09 00 57 3A 00 52 9A 20 67 8D 90 A3 66 22 [08:18:16]GetLastDocTimeStamp 1730188893 [08:18:16]current date 1730189906 [08:18:16]FM_GetShiftState [08:18:16]SAM_PROTO_GetShiftState [08:18:16]wFMCommunicate request_size=4 [08:18:16]MH_SAM_APDU [08:18:16]CAPDU: 80 13 01 00 [08:18:16]Write to MH i2c: E2 08 00 58 3A 80 13 01 00 00 00 00 00 0F [08:18:16]Write i2c OK [08:18:16]MH_I2C_Read... [08:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:16]Read from MH i2c: E2 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 [08:18:16]MH_I2C_Read... [08:18:16]Read from MH i2c: E2 0E 00 58 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 64 [08:18:16]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:18:16]wFMCommunicate OK [08:18:16]SAM_PROTO_GetShiftState done [08:18:16]FM_GetShiftState done [08:18:16]opened in 1730161559 [08:18:16]opened+sec_in_day 1730247959 [08:18:16]quantity*price = 100000 [08:18:16]sum+1 = 100002 [08:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 17 29.10.2024 08:18 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15671 ФПД: 150522536916070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081826&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15671&fm=150522536916070&tin=02508201610067®Number=0000000000161798&sum=100000 [08:18:17]StoreToDocumentArchive [08:18:17]shift 172 fd 15671 [08:18:17]save to /storage/0172/doc_00015671 [08:18:17]save last doc name /storage/0172/doc_00015671 to /storage/kkm_last_doc_name [08:18:17]save OK [08:18:17]Clear old archive folders... [08:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=249 [08:18:17]tlvbuf is 002E3120 [08:18:17]SAM_PROTO_ClearQueue [08:18:17]wFMCommunicate request_size=4 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 09 00 00 [08:18:17]Write to MH i2c: E2 08 00 65 3A 80 09 00 00 00 00 00 00 11 [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 65 3A 00 90 00 13 [08:18:17]RAPDU: 90 00 [08:18:17]wFMCommunicate OK [08:18:17]SAM_PROTO_ClearQueue done [08:18:17]KKMCreateOFDPacket [08:18:17]OFDProtocolAddRootSTLVToBuf [08:18:17]FM_MakeSignedData [08:18:17]FM_MakeSignedData [08:18:17]SAM_PROTO_SignData [08:18:17]wFMCommunicate request_size=4 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 0D 01 02 [08:18:17]Write to MH i2c: E2 08 00 66 3A 80 0D 01 02 00 00 00 00 19 [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 66 3A 00 90 00 14 [08:18:17]RAPDU: 90 00 [08:18:17]wFMCommunicate OK [08:18:17]wFMCommunicate request_size=255 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 9A 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 37 3D 00 00 35 04 06 00 88 E6 42 [08:18:17]Write to MH i2c: E2 02 01 67 3A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 9A 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 37 3D 00 00 35 04 06 00 88 E6 42 00 00 29 [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [08:18:17]RAPDU: 90 00 [08:18:17]wFMCommunicate OK [08:18:17]wFMCommunicate request_size=8 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 0D 02 02 03 57 F4 66 [08:18:17]Write to MH i2c: E2 0B 00 68 3A 80 0D 02 02 03 00 57 F4 66 00 00 D3 [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:18:17]Read from MH i2c: E2 03 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [08:18:17]RAPDU: 90 00 [08:18:17]wFMCommunicate OK [08:18:17]wFMCommunicate request_size=4 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 0D 03 02 [08:18:17]Write to MH i2c: E2 08 00 69 3A 80 0D 03 02 00 00 00 00 1E [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:18:17]Read from MH i2c: E2 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 0B 00 [08:18:17]MH_I2C_Read... [08:18:17]Read from MH i2c: E2 0B 00 69 3A 00 69 99 A2 FC 16 B0 70 C4 90 00 B9 [08:18:17]RAPDU: 69 99 A2 FC 16 B0 70 C4 90 00 [08:18:17]wFMCommunicate OK [08:18:17]SAM_PROTO_SignData done [08:18:17]FM_MakeSignedData done [08:18:17]CreateOFDProtocolMessage [08:18:17]wFMCommunicate request_size=4 [08:18:17]MH_SAM_APDU [08:18:17]CAPDU: 80 11 00 00 [08:18:17]Write to MH i2c: E2 08 00 6A 3A 80 11 00 00 00 00 00 00 1E [08:18:17]Write i2c OK [08:18:17]MH_I2C_Read... [08:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:18]Read from MH i2c: E2 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: E2 17 00 6A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 6D [08:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:18:18]wFMCommunicate OK [08:18:18]CreateOFDProtocolMessage done [08:18:18]OFDSenderStorePacket 15671 [08:18:18]StoreOFDPacket docnum=15671 [08:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 08 75 05 01 7C 5E 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 9A 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 37 3D 00 00 35 04 06 00 88 E6 42 57 F4 66 69 99 A2 FC 16 B0 70 C4 [08:18:18]CheckFolder [08:18:18]dirname=/storage/ofd_packets [08:18:18]CheckFolder done [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00015671 [08:18:18]NVStorageSaveData ofd_packets/00015671 [08:18:18]File name is /storage/ofd_packets/00015671 [08:18:18]Write 299 bytes [08:18:18]NVStorageSaveData done [08:18:18]OFDSenderStorePacket done [08:18:18]KKMCreateOFDPacket done [08:18:18]NVStorageSaveData kkm_last_timestamp [08:18:18]File name is /storage/kkm_last_timestamp [08:18:18]Write 4 bytes [08:18:18]NVStorageSaveData done [08:18:18]ExternCall_PrintAddStr [08:18:18]wPrintStart [08:18:18]Write to MH i2c: 01 00 00 6B 3A A5 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 6B 3A 00 00 00 00 00 FF 0F BA [08:18:18]RasterBufferAndPrint [08:18:18]line Счет N : (1)16220 [08:18:18]line ИНН: 02508201610067 [08:18:18]line Контрольно-Кассовый Чек [08:18:18]line ПРОДАЖА [08:18:18]line ТРК (МРК, ГНК) : 12 [08:18:18]line Товар: 50.50.0 [08:18:18]line SUPER 92-К-5 [08:18:18]line 14.620 * 68.40 [08:18:18]line = 1000.01 [08:18:18]line НДС 12% НСП 1% [08:18:18]line > о реализуемом товаре [08:18:18]line ОКРУГЛЕНИЕ: -0.01 [08:18:18]line ИТОГО: 1000.00 [08:18:18]line НСП 1% : 8.85 [08:18:18]line НДС 12% : 106.20 [08:18:18]line Наличными: 0.00 [08:18:18]line Безнал.: 1000.00 [08:18:18]line Место: АЗС № 178 "Партнер Нефть" [08:18:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:18:18]line СНО: Общий режим [08:18:18]line Чек 17 29.10.2024 08:18 [08:18:18]line Смена: 172 ФФД: 1.0 [08:18:18]line ЗНМ: 0300000014 [08:18:18]line РНМ: 0000000000161798 [08:18:18]line Версия ККМ: v1.0 [08:18:18]line Платежная система: Mbank [08:18:18]line ФМ: 0000000000963325 [08:18:18]line ФД: 15671 [08:18:18]line ФПД: 150522536916070 [08:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T081826&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15671&fm=150522536916070&tin=02508201610067®Number=0000000000161798&sum=100000 [08:18:18]written 0, free lines is 4095 [08:18:18]OFD Sender: Processing packet 15671 [packets to send 4, broken 3] [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00015671 [08:18:18]OFD Sender: To server: pG, [08:18:18]CommunicateWithHost lk.salyk.kg:30040 [08:18:18]ConnectInit lk.salyk.kg [08:18:18]Connected sock=11 [08:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 08 75 05 01 7C 5E 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 9A 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 37 3D 00 00 35 04 06 00 88 E6 42 57 F4 66 69 99 A2 FC 16 B0 70 C4 [08:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 D7 AE 47 00 02 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 37 3D 00 00 F4 03 04 00 3F 45 20 67 B6 04 01 00 00 5D E5 21 48 FF 19 CB 18 [08:18:18]CommunicateWithHost err = 0 [08:18:18]CheckOFDResponse [08:18:18]1017 (14) - 77093643461234 [08:18:18]1041 (16) - 0000000000963325 [08:18:18]1040 (4) - 15671 [08:18:18]1012 (4) - 29.10.2024 02:15 [08:18:18]1206 (1) - 0 [08:18:18]OFD Sender: Remove packet 15671 [08:18:18]ProducePacketName [08:18:18]name=ofd_packets/00015671 [08:18:18]NVStorageDeleteData [08:18:18]Write to MH i2c: 01 00 00 95 3A CF [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: 01 07 00 95 3A 00 00 00 00 00 0A 0D ED [08:18:18]RasterBufferAndPrint [08:18:18]line [08:18:18]line [08:18:18]line [08:18:18]line [08:18:18]line [08:18:18]written 0, free lines is 3344 [08:18:18]MH_Cut [08:18:18]Write to MH i2c: D1 01 00 9C 3A 01 A8 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: D1 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: D1 01 00 [08:18:18]MH_I2C_Read... [08:18:18]Read from MH i2c: D1 01 00 9C 3A 00 A7 [08:18:18]Write to MH i2c: 01 00 00 9D 3A D7 [08:18:18]Write i2c OK [08:18:18]MH_I2C_Read... [08:18:19]OFD Sender: No OFD packet to send [08:18:19]*** Cut start [08:18:19]*** Partial cut [08:18:19]*** CUTSNS_PIN = 1 [08:18:19]*** CUTSNS_PIN = 0 [08:18:19]*** Brake cut motor [08:18:20]Read from MH i2c: 01 [08:18:20]MH_I2C_Read... [08:18:20]*** Stop cut motor [08:18:20]*** Cut end [08:18:20]Read from MH i2c: 01 07 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: 01 07 00 9D 3A 00 00 00 00 00 FF 0F EC [08:18:20]process_action close_receipt done [08:18:20]requested_data is exist [08:18:20]produce_requested_data [08:18:20]requested_item fm.sn is exist - process it [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 11 00 00 [08:18:20]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A1 [08:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:18:20]wFMCommunicate OK [08:18:20]requested_item fd.num is exist - process it [08:18:20]SAM_PROTO_GetFieldsCounters [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 00 00 [08:18:20]Write to MH i2c: E2 08 00 9F 3A 80 13 00 00 00 00 00 00 55 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 62 00 9F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 37 3D 00 00 0E 04 04 00 AC 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 CC [08:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 37 3D 00 00 0E 04 04 00 AC 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:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetFieldsCounters done [08:18:20]requested_item shift.num is exist - process it [08:18:20]requested_item shift.opened is exist - process it [08:18:20]req_shift_opened [08:18:20]FM_GetShiftState [08:18:20]SAM_PROTO_GetShiftState [08:18:20]wFMCommunicate request_size=4 [08:18:20]MH_SAM_APDU [08:18:20]CAPDU: 80 13 01 00 [08:18:20]Write to MH i2c: E2 08 00 A0 3A 80 13 01 00 00 00 00 00 57 [08:18:20]Write i2c OK [08:18:20]MH_I2C_Read... [08:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:20]Read from MH i2c: E2 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 [08:18:20]MH_I2C_Read... [08:18:20]Read from MH i2c: E2 0E 00 A0 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AC [08:18:20]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:18:20]wFMCommunicate OK [08:18:20]SAM_PROTO_GetShiftState done [08:18:20]FM_GetShiftState done [08:18:20]req_shift_opened done [08:18:20]requested_item shift.open_date is exist - process it [08:18:20]req_shift_open_date [08:18:20]req_shift_open_date done [08:18:20]produce_requested_data done [08:18:20]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15671,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:18:20]process_action_free close_receipt [08:18:20]json_value_free [08:18:20]json_value_free done [08:18:20]process_json_proto returns [08:18:20]Send response to host [08:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15671,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:18:20]free response buf [08:18:20]execute_script done [08:18:20]execute_script returns [08:18:20]free content buf [08:18:20]Sock 8.Close socket [08:18:20]Sock 8.Thread stoped [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:17]accept exits with 9 [08:24:17]New connection [08:24:17]New thread 3066731876 created [08:24:17]Thread 3066588516 joined [08:24:17]Waiting for new connection... [08:24:17] Sock 9.Parse request [08:24:17]Sock 9.Check first char [08:24:17]Sock 9.First char is OK [08:24:17]request: POST /json_proto HTTP/1.0 [08:24:17]Method: POST [08:24:17]URL: /json_proto [08:24:17]Method is POST - this is cgi request [08:24:17]url: /json_proto [08:24:17]query_string will be loaded in cgi processing [08:24:17]execute_cgi json_proto POST (null) [08:24:17]execute_cgi path=json_proto method=POST [08:24:17]POST find Content-Length [08:24:17]Host: 172.17.54.195:8080 [08:24:17]Content-Length: 977 [08:24:17]Content-Type: application/json [08:24:17] [08:24:17]POST finish read [08:24:17]Found Content-Length = 977 [08:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [08:24:17]execute_script... [08: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)16221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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 178\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" ] } } [08:24:17]POST & json_proto [08:24:17]process_json_proto [08:24:17]json parsed OK: [08:24:17]protocol is kg_v1.0 [08:24:17]action value=close_receipt [08:24:17]process_action close_receipt [08:24:17]cmd_close_receipt [08:24:17]MH_GetDate [08:24:17]Write to MH i2c: F0 00 00 A1 3A CA [08:24:17]Write i2c OK [08:24:17]MH_I2C_Read... [08:24:17]Read from MH i2c: F0 [08:24:17]MH_I2C_Read... [08:24:17]Read from MH i2c: F0 09 00 [08:24:17]MH_I2C_Read... [08:24:17]Read from MH i2c: F0 09 00 A1 3A 00 BB 9B 20 67 8D 90 A3 66 D6 [08:24:17]GetLastDocTimeStamp 1730189906 [08:24:17]current date 1730190267 [08:24:17]FM_GetShiftState [08:24:17]SAM_PROTO_GetShiftState [08:24:17]wFMCommunicate request_size=4 [08:24:17]MH_SAM_APDU [08:24:17]CAPDU: 80 13 01 00 [08:24:17]Write to MH i2c: E2 08 00 A2 3A 80 13 01 00 00 00 00 00 59 [08:24:17]Write i2c OK [08:24:17]MH_I2C_Read... [08:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:17]Read from MH i2c: E2 [08:24:17]MH_I2C_Read... [08:24:17]Read from MH i2c: E2 0E 00 [08:24:17]MH_I2C_Read... [08:24:17]Read from MH i2c: E2 0E 00 A2 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AE [08:24:17]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:24:17]wFMCommunicate OK [08:24:17]SAM_PROTO_GetShiftState done [08:24:17]FM_GetShiftState done [08:24:17]opened in 1730161559 [08:24:17]opened+sec_in_day 1730247959 [08:24:17]quantity*price = 500004 [08:24:17]sum+1 = 500006 [08:24:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 530.98 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 18 29.10.2024 08:24 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа ДТ номер 178 сэкономлено 66.49 сом ФМ: 0000000000963325 ФД: 15672 ФПД: 91416636910968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T082427&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15672&fm=91416636910968&tin=02508201610067®Number=0000000000161798&sum=500000 [08:24:18]StoreToDocumentArchive [08:24:18]shift 172 fd 15672 [08:24:18]save to /storage/0172/doc_00015672 [08:24:18]save last doc name /storage/0172/doc_00015672 to /storage/kkm_last_doc_name [08:24:18]save OK [08:24:18]Clear old archive folders... [08:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:24:18]tlvbuf is B6EA4E90 [08:24:18]SAM_PROTO_ClearQueue [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 09 00 00 [08:24:18]Write to MH i2c: E2 08 00 AF 3A 80 09 00 00 00 00 00 00 5B [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 AF 3A 00 90 00 5D [08:24:18]RAPDU: 90 00 [08:24:18]wFMCommunicate OK [08:24:18]SAM_PROTO_ClearQueue done [08:24:18]KKMCreateOFDPacket [08:24:18]OFDProtocolAddRootSTLVToBuf [08:24:18]FM_MakeSignedData [08:24:18]FM_MakeSignedData [08:24:18]SAM_PROTO_SignData [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 0D 01 02 [08:24:18]Write to MH i2c: E2 08 00 B0 3A 80 0D 01 02 00 00 00 00 63 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 B0 3A 00 90 00 5E [08:24:18]RAPDU: 90 00 [08:24:18]wFMCommunicate OK [08:24:18]wFMCommunicate request_size=255 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 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 12 00 00 00 F4 03 04 00 BB 9B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 38 3D 00 00 35 04 06 00 53 24 98 2B [08:24:18]Write to MH i2c: E2 02 01 B1 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 35 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 12 00 00 00 F4 03 04 00 BB 9B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 38 3D 00 00 35 04 06 00 53 24 98 2B 00 00 38 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 B1 3A 00 90 00 5F [08:24:18]RAPDU: 90 00 [08:24:18]wFMCommunicate OK [08:24:18]wFMCommunicate request_size=7 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 0D 02 02 02 6D 78 [08:24:18]Write to MH i2c: E2 0A 00 B2 3A 80 0D 02 02 02 00 6D 78 00 00 4F [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [08:24:18]RAPDU: 90 00 [08:24:18]wFMCommunicate OK [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 0D 03 02 [08:24:18]Write to MH i2c: E2 08 00 B3 3A 80 0D 03 02 00 00 00 00 68 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 0B 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 0B 00 B3 3A 00 09 7A B2 FA 5D 14 E9 0B 90 00 FD [08:24:18]RAPDU: 09 7A B2 FA 5D 14 E9 0B 90 00 [08:24:18]wFMCommunicate OK [08:24:18]SAM_PROTO_SignData done [08:24:18]FM_MakeSignedData done [08:24:18]CreateOFDProtocolMessage [08:24:18]wFMCommunicate request_size=4 [08:24:18]MH_SAM_APDU [08:24:18]CAPDU: 80 11 00 00 [08:24:18]Write to MH i2c: E2 08 00 B4 3A 80 11 00 00 00 00 00 00 68 [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:18]Read from MH i2c: E2 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 17 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: E2 17 00 B4 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B7 [08:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:24:18]wFMCommunicate OK [08:24:18]CreateOFDProtocolMessage done [08:24:18]OFDSenderStorePacket 15672 [08:24:18]StoreOFDPacket docnum=15672 [08:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 00 B3 04 01 B4 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 35 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 12 00 00 00 F4 03 04 00 BB 9B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 38 3D 00 00 35 04 06 00 53 24 98 2B 6D 78 09 7A B2 FA 5D 14 E9 0B [08:24:18]CheckFolder [08:24:18]dirname=/storage/ofd_packets [08:24:18]CheckFolder done [08:24:18]ProducePacketName [08:24:18]name=ofd_packets/00015672 [08:24:18]NVStorageSaveData ofd_packets/00015672 [08:24:18]File name is /storage/ofd_packets/00015672 [08:24:18]Write 298 bytes [08:24:18]NVStorageSaveData done [08:24:18]OFDSenderStorePacket done [08:24:18]KKMCreateOFDPacket done [08:24:18]NVStorageSaveData kkm_last_timestamp [08:24:18]File name is /storage/kkm_last_timestamp [08:24:18]Write 4 bytes [08:24:18]NVStorageSaveData done [08:24:18]ExternCall_PrintAddStr [08:24:18]wPrintStart [08:24:18]Write to MH i2c: 01 00 00 B5 3A EF [08:24:18]Write i2c OK [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: 01 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: 01 07 00 [08:24:18]MH_I2C_Read... [08:24:18]Read from MH i2c: 01 07 00 B5 3A 00 00 00 00 00 FF 0F 04 [08:24:18]RasterBufferAndPrint [08:24:18]line Счет N : (1)16221 [08:24:18]line ИНН: 02508201610067 [08:24:18]line Контрольно-Кассовый Чек [08:24:18]line ПРОДАЖА [08:24:18]line ТРК (МРК, ГНК) : 31 [08:24:18]line Товар: 2710194210 [08:24:18]line ДТ-К-5 [08:24:18]line 66.490 * 75.20 [08:24:18]line = 5000.05 [08:24:18]line НДС 12% НСП 1% [08:24:18]line > о реализуемом товаре [08:24:18]line ОКРУГЛЕНИЕ: -0.05 [08:24:18]line ИТОГО: 5000.00 [08:24:18]line Внесено: 5000.00 [08:24:18]line СДАЧА: 0.00 [08:24:18]line НСП 1% : 44.25 [08:24:18]line НДС 12% : 530.98 [08:24:18]line Наличными: 5000.00 [08:24:18]line Безнал.: 0.00 [08:24:18]line Место: АЗС № 178 "Партнер Нефть" [08:24:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:24:18]line СНО: Общий режим [08:24:18]line Чек 18 29.10.2024 08:24 [08:24:18]line Смена: 172 ФФД: 1.0 [08:24:18]line ЗНМ: 0300000014 [08:24:18]line РНМ: 0000000000161798 [08:24:18]line Версия ККМ: v1.0 [08:24:18]line [08:24:18]line Дисконтная программа [08:24:18]line ДТ [08:24:18]line номер 178 [08:24:18]line сэкономлено 66.49 сом [08:24:18]line ФМ: 0000000000963325 [08:24:18]line ФД: 15672 [08:24:19]line ФПД: 91416636910968 [08:24:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T082427&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15672&fm=91416636910968&tin=02508201610067®Number=0000000000161798&sum=500000 [08:24:19]OFD Sender: Processing packet 15672 [packets to send 4, broken 3] [08:24:19]ProducePacketName [08:24:19]name=ofd_packets/00015672 [08:24:19]OFD Sender: To server: pG, [08:24:19]CommunicateWithHost lk.salyk.kg:30040 [08:24:19]ConnectInit lk.salyk.kg [08:24:19]written 0, free lines is 4095 [08:24:19]Connected sock=10 [08:24:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 00 B3 04 01 B4 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 35 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 12 00 00 00 F4 03 04 00 BB 9B 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 38 3D 00 00 35 04 06 00 53 24 98 2B 6D 78 09 7A B2 FA 5D 14 E9 0B [08:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 3D 50 47 00 4A AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 38 3D 00 00 F4 03 04 00 A8 46 20 67 B6 04 01 00 00 D7 75 2A EF F4 11 9C 4B [08:24:19]CommunicateWithHost err = 0 [08:24:19]CheckOFDResponse [08:24:19]1017 (14) - 77093643461234 [08:24:19]1041 (16) - 0000000000963325 [08:24:19]1040 (4) - 15672 [08:24:19]1012 (4) - 29.10.2024 02:21 [08:24:19]1206 (1) - 0 [08:24:19]OFD Sender: Remove packet 15672 [08:24:19]ProducePacketName [08:24:19]name=ofd_packets/00015672 [08:24:19]NVStorageDeleteData [08:24:19]Write to MH i2c: 01 00 00 E5 3A 1F [08:24:19]Write i2c OK [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: 01 [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: 01 07 00 [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: 01 07 00 E5 3A 00 00 00 00 00 B2 0C E4 [08:24:19]RasterBufferAndPrint [08:24:19]line [08:24:19]line [08:24:19]line [08:24:19]line [08:24:19]line [08:24:19]written 0, free lines is 3257 [08:24:19]MH_Cut [08:24:19]Write to MH i2c: D1 01 00 EC 3A 01 F8 [08:24:19]Write i2c OK [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: D1 [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: D1 01 00 [08:24:19]MH_I2C_Read... [08:24:19]Read from MH i2c: D1 01 00 EC 3A 00 F7 [08:24:19]Write to MH i2c: 01 00 00 ED 3A 27 [08:24:19]Write i2c OK [08:24:19]MH_I2C_Read... [08:24:20]OFD Sender: No OFD packet to send [08:24:20]*** Cut start [08:24:20]*** Partial cut [08:24:20]*** CUTSNS_PIN = 1 [08:24:20]*** CUTSNS_PIN = 0 [08:24:20]*** Brake cut motor [08:24:21]Read from MH i2c: 01 [08:24:21]MH_I2C_Read... [08:24:21]*** Stop cut motor [08:24:21]*** Cut end [08:24:21]Read from MH i2c: 01 07 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: 01 07 00 ED 3A 00 00 00 00 00 FF 0F 3C [08:24:21]process_action close_receipt done [08:24:21]requested_data is exist [08:24:21]produce_requested_data [08:24:21]requested_item fm.sn is exist - process it [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 11 00 00 [08:24:21]Write to MH i2c: E2 08 00 EE 3A 80 11 00 00 00 00 00 00 A2 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 17 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 17 00 EE 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F1 [08:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:24:21]wFMCommunicate OK [08:24:21]requested_item fd.num is exist - process it [08:24:21]SAM_PROTO_GetFieldsCounters [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 13 00 00 [08:24:21]Write to MH i2c: E2 08 00 EF 3A 80 13 00 00 00 00 00 00 A5 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 62 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 62 00 EF 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 38 3D 00 00 0E 04 04 00 AC 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 20 [08:24:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 38 3D 00 00 0E 04 04 00 AC 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:24:21]wFMCommunicate OK [08:24:21]SAM_PROTO_GetFieldsCounters done [08:24:21]requested_item shift.num is exist - process it [08:24:21]requested_item shift.opened is exist - process it [08:24:21]req_shift_opened [08:24:21]FM_GetShiftState [08:24:21]SAM_PROTO_GetShiftState [08:24:21]wFMCommunicate request_size=4 [08:24:21]MH_SAM_APDU [08:24:21]CAPDU: 80 13 01 00 [08:24:21]Write to MH i2c: E2 08 00 F0 3A 80 13 01 00 00 00 00 00 A7 [08:24:21]Write i2c OK [08:24:21]MH_I2C_Read... [08:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:21]Read from MH i2c: E2 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 0E 00 [08:24:21]MH_I2C_Read... [08:24:21]Read from MH i2c: E2 0E 00 F0 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FC [08:24:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:24:21]wFMCommunicate OK [08:24:21]SAM_PROTO_GetShiftState done [08:24:21]FM_GetShiftState done [08:24:21]req_shift_opened done [08:24:21]requested_item shift.open_date is exist - process it [08:24:21]req_shift_open_date [08:24:21]req_shift_open_date done [08:24:21]produce_requested_data done [08:24:21]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15672,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:24:21]process_action_free close_receipt [08:24:21]json_value_free [08:24:21]json_value_free done [08:24:21]process_json_proto returns [08:24:21]Send response to host [08:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15672,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:24:21]free response buf [08:24:21]execute_script done [08:24:21]execute_script returns [08:24:21]free content buf [08:24:21]Sock 9.Close socket [08:24:21]Sock 9.Thread stoped [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:10]accept exits with 8 [08:26:10]New connection [08:26:10]New thread 3066588516 created [08:26:10]Thread 3066731876 joined [08:26:10]Waiting for new connection... [08:26:10] Sock 8.Parse request [08:26:10]Sock 8.Check first char [08:26:10]Sock 8.First char is OK [08:26:10]request: POST /json_proto HTTP/1.0 [08:26:10]Method: POST [08:26:10]URL: /json_proto [08:26:10]Method is POST - this is cgi request [08:26:10]url: /json_proto [08:26:10]query_string will be loaded in cgi processing [08:26:10]execute_cgi json_proto POST (null) [08:26:10]execute_cgi path=json_proto method=POST [08:26:10]POST find Content-Length [08:26:10]Host: 172.17.54.195:8080 [08:26:10]Content-Length: 678 [08:26:10]Content-Type: application/json [08:26:10] [08:26:10]POST finish read [08:26:10]Found Content-Length = 678 [08:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [08:26:10]execute_script... [08:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [08:26:10]POST & json_proto [08:26:10]process_json_proto [08:26:10]json parsed OK: [08:26:10]protocol is kg_v1.0 [08:26:10]action value=close_receipt [08:26:10]process_action close_receipt [08:26:10]cmd_close_receipt [08:26:10]MH_GetDate [08:26:10]Write to MH i2c: F0 00 00 F1 3A 1A [08:26:10]Write i2c OK [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 09 00 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: F0 09 00 F1 3A 00 2C 9C 20 67 8D 90 A3 66 98 [08:26:10]GetLastDocTimeStamp 1730190267 [08:26:10]current date 1730190380 [08:26:10]FM_GetShiftState [08:26:10]SAM_PROTO_GetShiftState [08:26:10]wFMCommunicate request_size=4 [08:26:10]MH_SAM_APDU [08:26:10]CAPDU: 80 13 01 00 [08:26:10]Write to MH i2c: E2 08 00 F2 3A 80 13 01 00 00 00 00 00 A9 [08:26:10]Write i2c OK [08:26:10]MH_I2C_Read... [08:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:10]Read from MH i2c: E2 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: E2 0E 00 [08:26:10]MH_I2C_Read... [08:26:10]Read from MH i2c: E2 0E 00 F2 3A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FE [08:26:10]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:26:10]wFMCommunicate OK [08:26:10]SAM_PROTO_GetShiftState done [08:26:10]FM_GetShiftState done [08:26:10]opened in 1730161559 [08:26:10]opened+sec_in_day 1730247959 [08:26:10]quantity*price = 150037 [08:26:10]sum+1 = 150039 [08:26:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 19 29.10.2024 08:26 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15673 ФПД: 102723151192020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T082621&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15673&fm=102723151192020&tin=02508201610067®Number=0000000000161798&sum=150000 [08:26:12]StoreToDocumentArchive [08:26:12]shift 172 fd 15673 [08:26:12]save to /storage/0172/doc_00015673 [08:26:12]save last doc name /storage/0172/doc_00015673 to /storage/kkm_last_doc_name [08:26:12]save OK [08:26:12]Clear old archive folders... [08:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:26:12]tlvbuf is 003917B0 [08:26:12]SAM_PROTO_ClearQueue [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 09 00 00 [08:26:12]Write to MH i2c: E2 08 00 FF 3A 80 09 00 00 00 00 00 00 AB [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 FF 3A 00 90 00 AD [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]SAM_PROTO_ClearQueue done [08:26:12]KKMCreateOFDPacket [08:26:12]OFDProtocolAddRootSTLVToBuf [08:26:12]FM_MakeSignedData [08:26:12]FM_MakeSignedData [08:26:12]SAM_PROTO_SignData [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 01 02 [08:26:12]Write to MH i2c: E2 08 00 00 3B 80 0D 01 02 00 00 00 00 B4 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 00 3B 00 90 00 AF [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=255 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 2D 9C 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 39 3D 00 00 35 04 06 00 5D 6D 18 EF [08:26:12]Write to MH i2c: E2 02 01 01 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 2D 9C 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 39 3D 00 00 35 04 06 00 5D 6D 18 EF 00 00 09 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 01 3B 00 90 00 B0 [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=7 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 02 02 02 DF D4 [08:26:12]Write to MH i2c: E2 0A 00 02 3B 80 0D 02 02 02 00 DF D4 00 00 6E [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 02 3B 00 90 00 B1 [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 03 02 [08:26:12]Write to MH i2c: E2 08 00 03 3B 80 0D 03 02 00 00 00 00 B9 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0B 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0B 00 03 3B 00 CD AA 31 67 BE 1C 08 19 90 00 C4 [08:26:12]RAPDU: CD AA 31 67 BE 1C 08 19 90 00 [08:26:12]wFMCommunicate OK [08:26:12]SAM_PROTO_SignData done [08:26:12]FM_MakeSignedData done [08:26:12]CreateOFDProtocolMessage [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 11 00 00 [08:26:12]Write to MH i2c: E2 08 00 04 3B 80 11 00 00 00 00 00 00 B9 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 17 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 17 00 04 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 08 [08:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:26:12]wFMCommunicate OK [08:26:12]CreateOFDProtocolMessage done [08:26:12]OFDSenderStorePacket 15673 [08:26:12]StoreOFDPacket docnum=15673 [08:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 57 DE 04 01 FF 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 2D 9C 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 39 3D 00 00 35 04 06 00 5D 6D 18 EF DF D4 CD AA 31 67 BE 1C 08 19 [08:26:12]CheckFolder [08:26:12]dirname=/storage/ofd_packets [08:26:12]CheckFolder done [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00015673 [08:26:12]NVStorageSaveData ofd_packets/00015673 [08:26:12]File name is /storage/ofd_packets/00015673 [08:26:12]Write 298 bytes [08:26:12]NVStorageSaveData done [08:26:12]OFDSenderStorePacket done [08:26:12]KKMCreateOFDPacket done [08:26:12]NVStorageSaveData kkm_last_timestamp [08:26:12]File name is /storage/kkm_last_timestamp [08:26:12]Write 4 bytes [08:26:12]NVStorageSaveData done [08:26:12]ExternCall_PrintAddStr [08:26:12]wPrintStart [08:26:12]Write to MH i2c: 01 00 00 05 3B 40 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 05 3B 00 00 00 00 00 FF 0F 55 [08:26:12]RasterBufferAndPrint [08:26:12]line Счет N : (1)16222 [08:26:12]line ИНН: 02508201610067 [08:26:12]line Контрольно-Кассовый Чек [08:26:12]line ПРОДАЖА [08:26:12]line ТРК (МРК, ГНК) : 31 [08:26:12]line Товар: 2710194210 [08:26:12]line ДТ-К-5 [08:26:12]line 19.690 * 76.20 [08:26:12]line = 1500.38 [08:26:12]line НДС 12% НСП 1% [08:26:12]line > о реализуемом товаре [08:26:12]line ОКРУГЛЕНИЕ: -0.38 [08:26:12]line ИТОГО: 1500.00 [08:26:12]line Внесено: 1500.00 [08:26:12]line СДАЧА: 0.00 [08:26:12]line НСП 1% : 13.28 [08:26:12]line НДС 12% : 159.33 [08:26:12]line Наличными: 1500.00 [08:26:12]line Безнал.: 0.00 [08:26:12]line Место: АЗС № 178 "Партнер Нефть" [08:26:12]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:26:12]line СНО: Общий режим [08:26:12]line Чек 19 29.10.2024 08:26 [08:26:12]line Смена: 172 ФФД: 1.0 [08:26:12]line ЗНМ: 0300000014 [08:26:12]line РНМ: 0000000000161798 [08:26:12]line Версия ККМ: v1.0 [08:26:12]line ФМ: 0000000000963325 [08:26:12]line ФД: 15673 [08:26:12]line ФПД: 102723151192020 [08:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T082621&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15673&fm=102723151192020&tin=02508201610067®Number=0000000000161798&sum=150000 [08:26:12]OFD Sender: Processing packet 15673 [packets to send 4, broken 3] [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00015673 [08:26:12]OFD Sender: To server: pG, [08:26:12]CommunicateWithHost lk.salyk.kg:30040 [08:26:12]ConnectInit lk.salyk.kg [08:26:12]written 0, free lines is 4095 [08:26:12]Connected sock=10 [08:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 57 DE 04 01 FF 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 13 00 00 00 F4 03 04 00 2D 9C 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 39 3D 00 00 35 04 06 00 5D 6D 18 EF DF D4 CD AA 31 67 BE 1C 08 19 [08:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 D0 5C 47 00 52 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 39 3D 00 00 F4 03 04 00 1A 47 20 67 B6 04 01 00 00 93 BB 01 46 8E 17 E7 43 [08:26:13]CommunicateWithHost err = 0 [08:26:13]CheckOFDResponse [08:26:13]1017 (14) - 77093643461234 [08:26:13]1041 (16) - 0000000000963325 [08:26:13]1040 (4) - 15673 [08:26:13]1012 (4) - 29.10.2024 02:23 [08:26:13]1206 (1) - 0 [08:26:13]OFD Sender: Remove packet 15673 [08:26:13]ProducePacketName [08:26:13]name=ofd_packets/00015673 [08:26:13]NVStorageDeleteData [08:26:13]Write to MH i2c: 01 00 00 30 3B 6B [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 07 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 07 00 30 3B 00 00 00 00 00 EB 0C 69 [08:26:13]RasterBufferAndPrint [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]written 0, free lines is 3314 [08:26:13]MH_Cut [08:26:13]Write to MH i2c: D1 01 00 37 3B 01 44 [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 01 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 01 00 37 3B 00 43 [08:26:13]Write to MH i2c: 01 00 00 38 3B 73 [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]OFD Sender: No OFD packet to send [08:26:14]*** Cut start [08:26:14]*** Partial cut [08:26:14]*** CUTSNS_PIN = 1 [08:26:14]*** CUTSNS_PIN = 0 [08:26:14]*** Brake cut motor [08:26:14]Read from MH i2c: 01 [08:26:14]MH_I2C_Read... [08:26:14]*** Stop cut motor [08:26:14]*** Cut end [08:26:14]Read from MH i2c: 01 07 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 07 00 38 3B 00 00 00 00 00 FF 0F 88 [08:26:14]process_action close_receipt done [08:26:14]requested_data is exist [08:26:14]produce_requested_data [08:26:14]requested_item fm.sn is exist - process it [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 11 00 00 [08:26:14]Write to MH i2c: E2 08 00 39 3B 80 11 00 00 00 00 00 00 EE [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 39 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3D [08:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:26:14]wFMCommunicate OK [08:26:14]requested_item fd.num is exist - process it [08:26:14]SAM_PROTO_GetFieldsCounters [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 13 00 00 [08:26:14]Write to MH i2c: E2 08 00 3A 3B 80 13 00 00 00 00 00 00 F1 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 62 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 62 00 3A 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 39 3D 00 00 0E 04 04 00 AC 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 70 [08:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 39 3D 00 00 0E 04 04 00 AC 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:26:14]wFMCommunicate OK [08:26:14]SAM_PROTO_GetFieldsCounters done [08:26:14]requested_item shift.num is exist - process it [08:26:14]requested_item shift.opened is exist - process it [08:26:14]req_shift_opened [08:26:14]FM_GetShiftState [08:26:14]SAM_PROTO_GetShiftState [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 13 01 00 [08:26:14]Write to MH i2c: E2 08 00 3B 3B 80 13 01 00 00 00 00 00 F3 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0E 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 0E 00 3B 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 48 [08:26:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:26:14]wFMCommunicate OK [08:26:14]SAM_PROTO_GetShiftState done [08:26:14]FM_GetShiftState done [08:26:14]req_shift_opened done [08:26:14]requested_item shift.open_date is exist - process it [08:26:14]req_shift_open_date [08:26:14]req_shift_open_date done [08:26:14]produce_requested_data done [08:26:14]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15673,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:26:14]process_action_free close_receipt [08:26:14]json_value_free [08:26:14]json_value_free done [08:26:14]process_json_proto returns [08:26:14]Send response to host [08:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15673,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:26:14]free response buf [08:26:14]execute_script done [08:26:14]execute_script returns [08:26:14]free content buf [08:26:14]Sock 8.Close socket [08:26:14]Sock 8.Thread stoped [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]accept exits with 9 [08:43:29]New connection [08:43:29]New thread 3066731876 created [08:43:29]Thread 3066588516 joined [08:43:29]Waiting for new connection... [08:43:29] Sock 9.Parse request [08:43:29]Sock 9.Check first char [08:43:29]Sock 9.First char is OK [08:43:29]request: POST /json_proto HTTP/1.0 [08:43:29]Method: POST [08:43:29]URL: /json_proto [08:43:29]Method is POST - this is cgi request [08:43:29]url: /json_proto [08:43:29]query_string will be loaded in cgi processing [08:43:29]execute_cgi json_proto POST (null) [08:43:29]execute_cgi path=json_proto method=POST [08:43:29]POST find Content-Length [08:43:29]Host: 172.17.54.195:8080 [08:43:29]Content-Length: 666 [08:43:29]Content-Type: application/json [08:43:29] [08:43:29]POST finish read [08:43:29]Found Content-Length = 666 [08:43:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.240, "sum" : 290.02, "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" ] } } [08:43:29]execute_script... [08:43:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.240, "sum" : 290.02, "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" ] } } [08:43:29]POST & json_proto [08:43:29]process_json_proto [08:43:29]json parsed OK: [08:43:29]protocol is kg_v1.0 [08:43:29]action value=close_receipt [08:43:29]process_action close_receipt [08:43:29]cmd_close_receipt [08:43:29]MH_GetDate [08:43:29]Write to MH i2c: F0 00 00 3C 3B 66 [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: F0 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: F0 09 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: F0 09 00 3C 3B 00 3B A0 20 67 8D 90 A3 66 F7 [08:43:29]GetLastDocTimeStamp 1730190381 [08:43:29]current date 1730191419 [08:43:29]FM_GetShiftState [08:43:29]SAM_PROTO_GetShiftState [08:43:29]wFMCommunicate request_size=4 [08:43:29]MH_SAM_APDU [08:43:29]CAPDU: 80 13 01 00 [08:43:29]Write to MH i2c: E2 08 00 3D 3B 80 13 01 00 00 00 00 00 F5 [08:43:29]Write i2c OK [08:43:29]MH_I2C_Read... [08:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:29]Read from MH i2c: E2 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 0E 00 [08:43:29]MH_I2C_Read... [08:43:29]Read from MH i2c: E2 0E 00 3D 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4A [08:43:29]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:43:29]wFMCommunicate OK [08:43:29]SAM_PROTO_GetShiftState done [08:43:29]FM_GetShiftState done [08:43:29]opened in 1730161559 [08:43:29]opened+sec_in_day 1730247959 [08:43:29]quantity*price = 29001 [08:43:29]sum+1 = 29003 [08:43:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 20 29.10.2024 08:43 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15674 ФПД: 124319290183848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084339&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15674&fm=124319290183848&tin=02508201610067®Number=0000000000161798&sum=29000 [08:43:30]StoreToDocumentArchive [08:43:30]shift 172 fd 15674 [08:43:30]save to /storage/0172/doc_00015674 [08:43:30]save last doc name /storage/0172/doc_00015674 to /storage/kkm_last_doc_name [08:43:30]save OK [08:43:30]Clear old archive folders... [08:43:30]ProcessDocumentItem done err = 0, tmpTLVsize=249 [08:43:30]tlvbuf is B6F1F0E0 [08:43:30]SAM_PROTO_ClearQueue [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 09 00 00 [08:43:30]Write to MH i2c: E2 08 00 4A 3B 80 09 00 00 00 00 00 00 F7 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 4A 3B 00 90 00 F9 [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]SAM_PROTO_ClearQueue done [08:43:30]KKMCreateOFDPacket [08:43:30]OFDProtocolAddRootSTLVToBuf [08:43:30]FM_MakeSignedData [08:43:30]FM_MakeSignedData [08:43:30]SAM_PROTO_SignData [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 01 02 [08:43:30]Write to MH i2c: E2 08 00 4B 3B 80 0D 01 02 00 00 00 00 FF [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 4B 3B 00 90 00 FA [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=255 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4A 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 08 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 14 00 00 00 F4 03 04 00 3B A0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3A 3D 00 00 35 04 06 00 71 11 57 [08:43:30]Write to MH i2c: E2 02 01 4C 3B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4A 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 08 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 14 00 00 00 F4 03 04 00 3B A0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3A 3D 00 00 35 04 06 00 71 11 57 00 00 28 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 4C 3B 00 90 00 FB [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=8 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 02 02 03 21 50 A8 [08:43:30]Write to MH i2c: E2 0B 00 4D 3B 80 0D 02 02 03 00 21 50 A8 00 00 21 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:30]Read from MH i2c: E2 03 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 03 00 4D 3B 00 90 00 FC [08:43:30]RAPDU: 90 00 [08:43:30]wFMCommunicate OK [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 0D 03 02 [08:43:30]Write to MH i2c: E2 08 00 4E 3B 80 0D 03 02 00 00 00 00 04 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 0B 00 4E 3B 00 04 D8 E2 06 4D 7C 6F 2F 90 00 30 [08:43:30]RAPDU: 04 D8 E2 06 4D 7C 6F 2F 90 00 [08:43:30]wFMCommunicate OK [08:43:30]SAM_PROTO_SignData done [08:43:30]FM_MakeSignedData done [08:43:30]CreateOFDProtocolMessage [08:43:30]wFMCommunicate request_size=4 [08:43:30]MH_SAM_APDU [08:43:30]CAPDU: 80 11 00 00 [08:43:30]Write to MH i2c: E2 08 00 4F 3B 80 11 00 00 00 00 00 00 04 [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:30]Read from MH i2c: E2 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 17 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: E2 17 00 4F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 53 [08:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:43:30]wFMCommunicate OK [08:43:30]CreateOFDProtocolMessage done [08:43:30]OFDSenderStorePacket 15674 [08:43:30]StoreOFDPacket docnum=15674 [08:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FE DA 05 01 5F B8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4A 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 08 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 14 00 00 00 F4 03 04 00 3B A0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3A 3D 00 00 35 04 06 00 71 11 57 21 50 A8 04 D8 E2 06 4D 7C 6F 2F [08:43:30]CheckFolder [08:43:30]dirname=/storage/ofd_packets [08:43:30]CheckFolder done [08:43:30]ProducePacketName [08:43:30]name=ofd_packets/00015674 [08:43:30]NVStorageSaveData ofd_packets/00015674 [08:43:30]File name is /storage/ofd_packets/00015674 [08:43:30]Write 299 bytes [08:43:30]NVStorageSaveData done [08:43:30]OFDSenderStorePacket done [08:43:30]KKMCreateOFDPacket done [08:43:30]NVStorageSaveData kkm_last_timestamp [08:43:30]File name is /storage/kkm_last_timestamp [08:43:30]Write 4 bytes [08:43:30]NVStorageSaveData done [08:43:30]ExternCall_PrintAddStr [08:43:30]wPrintStart [08:43:30]Write to MH i2c: 01 00 00 50 3B 8B [08:43:30]Write i2c OK [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 [08:43:30]MH_I2C_Read... [08:43:30]Read from MH i2c: 01 07 00 50 3B 00 00 00 00 00 FF 0F A0 [08:43:30]RasterBufferAndPrint [08:43:30]line Счет N : (1)16223 [08:43:30]line ИНН: 02508201610067 [08:43:30]line Контрольно-Кассовый Чек [08:43:30]line ПРОДАЖА [08:43:30]line ТРК (МРК, ГНК) : 12 [08:43:30]line Товар: 50.50.0 [08:43:30]line SUPER 92-К-5 [08:43:30]line 4.240 * 68.40 [08:43:30]line = 290.02 [08:43:30]line НДС 12% НСП 1% [08:43:30]line > о реализуемом товаре [08:43:30]line ОКРУГЛЕНИЕ: -0.02 [08:43:30]line ИТОГО: 290.00 [08:43:30]line Внесено: 290.00 [08:43:30]line СДАЧА: 0.00 [08:43:30]line НСП 1% : 2.57 [08:43:30]line НДС 12% : 30.80 [08:43:30]line Наличными: 290.00 [08:43:30]line Безнал.: 0.00 [08:43:30]line Место: АЗС № 178 "Партнер Нефть" [08:43:30]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [08:43:30]line СНО: Общий режим [08:43:30]line Чек 20 29.10.2024 08:43 [08:43:30]line Смена: 172 ФФД: 1.0 [08:43:30]line ЗНМ: 0300000014 [08:43:30]line РНМ: 0000000000161798 [08:43:30]line Версия ККМ: v1.0 [08:43:30]line ФМ: 0000000000963325 [08:43:30]line ФД: 15674 [08:43:30]line ФПД: 124319290183848 [08:43:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T084339&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15674&fm=124319290183848&tin=02508201610067®Number=0000000000161798&sum=29000 [08:43:31]OFD Sender: Processing packet 15674 [packets to send 4, broken 3] [08:43:31]ProducePacketName [08:43:31]name=ofd_packets/00015674 [08:43:31]OFD Sender: To server: pG, [08:43:31]CommunicateWithHost lk.salyk.kg:30040 [08:43:31]ConnectInit lk.salyk.kg [08:43:31]written 0, free lines is 4095 [08:43:31]Connected sock=8 [08:43:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FE DA 05 01 5F B8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 10 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4A 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 08 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 14 00 00 00 F4 03 04 00 3B A0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3A 3D 00 00 35 04 06 00 71 11 57 21 50 A8 04 D8 E2 06 4D 7C 6F 2F [08:43:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 D2 32 47 00 F1 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 30 39 36 33 33 32 35 10 04 04 00 3A 3D 00 00 F4 03 04 00 28 4B 20 67 B6 04 01 00 00 D8 2A DD 7E 92 9D FC 25 [08:43:31]CommunicateWithHost err = 0 [08:43:31]CheckOFDResponse [08:43:31]1017 (14) - 77093643461234 [08:43:31]1041 (16) - 0000000000963325 [08:43:31]1040 (4) - 15674 [08:43:31]1012 (4) - 29.10.2024 02:40 [08:43:31]1206 (1) - 0 [08:43:31]OFD Sender: Remove packet 15674 [08:43:31]ProducePacketName [08:43:31]name=ofd_packets/00015674 [08:43:31]NVStorageDeleteData [08:43:31]Write to MH i2c: 01 00 00 7B 3B B6 [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: 01 07 00 7B 3B 00 00 00 00 00 FD 0C C6 [08:43:31]RasterBufferAndPrint [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]line [08:43:31]written 0, free lines is 3331 [08:43:31]MH_Cut [08:43:31]Write to MH i2c: D1 01 00 82 3B 01 8F [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 [08:43:31]MH_I2C_Read... [08:43:31]Read from MH i2c: D1 01 00 82 3B 00 8E [08:43:31]Write to MH i2c: 01 00 00 83 3B BE [08:43:31]Write i2c OK [08:43:31]MH_I2C_Read... [08:43:31]OFD Sender: No OFD packet to send [08:43:32]*** Cut start [08:43:32]*** Partial cut [08:43:32]*** CUTSNS_PIN = 1 [08:43:32]*** CUTSNS_PIN = 0 [08:43:32]*** Brake cut motor [08:43:32]Read from MH i2c: 01 [08:43:32]MH_I2C_Read... [08:43:32]*** Stop cut motor [08:43:32]*** Cut end [08:43:32]Read from MH i2c: 01 07 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: 01 07 00 83 3B 00 00 00 00 00 FF 0F D3 [08:43:32]process_action close_receipt done [08:43:32]requested_data is exist [08:43:32]produce_requested_data [08:43:32]requested_item fm.sn is exist - process it [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 11 00 00 [08:43:32]Write to MH i2c: E2 08 00 84 3B 80 11 00 00 00 00 00 00 39 [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:32]Read from MH i2c: E2 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 [08:43:32]MH_I2C_Read... [08:43:32]Read from MH i2c: E2 17 00 84 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 88 [08:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [08:43:32]wFMCommunicate OK [08:43:32]requested_item fd.num is exist - process it [08:43:32]SAM_PROTO_GetFieldsCounters [08:43:32]wFMCommunicate request_size=4 [08:43:32]MH_SAM_APDU [08:43:32]CAPDU: 80 13 00 00 [08:43:32]Write to MH i2c: E2 08 00 85 3B 80 13 00 00 00 00 00 00 3C [08:43:32]Write i2c OK [08:43:32]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 62 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 62 00 85 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3A 3D 00 00 0E 04 04 00 AC 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 BF [08:43:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3A 3D 00 00 0E 04 04 00 AC 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:43:33]wFMCommunicate OK [08:43:33]SAM_PROTO_GetFieldsCounters done [08:43:33]requested_item shift.num is exist - process it [08:43:33]requested_item shift.opened is exist - process it [08:43:33]req_shift_opened [08:43:33]FM_GetShiftState [08:43:33]SAM_PROTO_GetShiftState [08:43:33]wFMCommunicate request_size=4 [08:43:33]MH_SAM_APDU [08:43:33]CAPDU: 80 13 01 00 [08:43:33]Write to MH i2c: E2 08 00 86 3B 80 13 01 00 00 00 00 00 3E [08:43:33]Write i2c OK [08:43:33]MH_I2C_Read... [08:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:33]Read from MH i2c: E2 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 0E 00 [08:43:33]MH_I2C_Read... [08:43:33]Read from MH i2c: E2 0E 00 86 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 93 [08:43:33]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [08:43:33]wFMCommunicate OK [08:43:33]SAM_PROTO_GetShiftState done [08:43:33]FM_GetShiftState done [08:43:33]req_shift_opened done [08:43:33]requested_item shift.open_date is exist - process it [08:43:33]req_shift_open_date [08:43:33]req_shift_open_date done [08:43:33]produce_requested_data done [08:43:33]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15674,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [08:43:33]process_action_free close_receipt [08:43:33]json_value_free [08:43:33]json_value_free done [08:43:33]process_json_proto returns [08:43:33]Send response to host [08:43:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15674,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [08:43:33]free response buf [08:43:33]execute_script done [08:43:33]execute_script returns [08:43:33]free content buf [08:43:33]Sock 9.Close socket [08:43:33]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]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:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:53]OFD Sender: No OFD packet to send [09:13:58]OFD Sender: No OFD packet to send [09:14:03]OFD Sender: No OFD packet to send [09:14:08]OFD Sender: No OFD packet to send [09:14:13]OFD Sender: No OFD packet to send [09:14:18]OFD Sender: No OFD packet to send [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:06]accept exits with 10 [09:26:06]New connection [09:26:06]New thread 3066588516 created [09:26:06]Thread 3066731876 joined [09:26:06]Waiting for new connection... [09:26:06] Sock 10.Parse request [09:26:06]Sock 10.Check first char [09:26:06]Sock 10.First char is OK [09:26:06]request: POST /json_proto HTTP/1.0 [09:26:06]Method: POST [09:26:06]URL: /json_proto [09:26:06]Method is POST - this is cgi request [09:26:06]url: /json_proto [09:26:06]query_string will be loaded in cgi processing [09:26:06]execute_cgi json_proto POST (null) [09:26:06]execute_cgi path=json_proto method=POST [09:26:06]POST find Content-Length [09:26:06]Host: 172.17.54.195:8080 [09:26:06]Content-Length: 666 [09:26:06]Content-Type: application/json [09:26:06] [09:26:06]POST finish read [09:26:06]Found Content-Length = 666 [09:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [09:26:06]execute_script... [09:26: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)16224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [09:26:06]POST & json_proto [09:26:06]process_json_proto [09:26:06]json parsed OK: [09:26:06]protocol is kg_v1.0 [09:26:06]action value=close_receipt [09:26:06]process_action close_receipt [09:26:06]cmd_close_receipt [09:26:06]MH_GetDate [09:26:06]Write to MH i2c: F0 00 00 87 3B B1 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: F0 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: F0 09 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: F0 09 00 87 3B 00 38 AA 20 67 8D 90 A3 66 49 [09:26:06]GetLastDocTimeStamp 1730191419 [09:26:06]current date 1730193976 [09:26:06]FM_GetShiftState [09:26:06]SAM_PROTO_GetShiftState [09:26:06]wFMCommunicate request_size=4 [09:26:06]MH_SAM_APDU [09:26:06]CAPDU: 80 13 01 00 [09:26:06]Write to MH i2c: E2 08 00 88 3B 80 13 01 00 00 00 00 00 40 [09:26:06]Write i2c OK [09:26:06]MH_I2C_Read... [09:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:06]Read from MH i2c: E2 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 0E 00 [09:26:06]MH_I2C_Read... [09:26:06]Read from MH i2c: E2 0E 00 88 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 95 [09:26:06]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:26:06]wFMCommunicate OK [09:26:06]SAM_PROTO_GetShiftState done [09:26:06]FM_GetShiftState done [09:26:06]opened in 1730161559 [09:26:06]opened+sec_in_day 1730247959 [09:26:06]quantity*price = 35020 [09:26:06]sum+1 = 35022 [09:26:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 21 29.10.2024 09:26 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15675 ФПД: 84234841642706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092616&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15675&fm=84234841642706&tin=02508201610067®Number=0000000000161798&sum=35000 [09:26:07]StoreToDocumentArchive [09:26:07]shift 172 fd 15675 [09:26:07]save to /storage/0172/doc_00015675 [09:26:07]save last doc name /storage/0172/doc_00015675 to /storage/kkm_last_doc_name [09:26:07]save OK [09:26:07]Clear old archive folders... [09:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=249 [09:26:07]tlvbuf is 0031F960 [09:26:07]SAM_PROTO_ClearQueue [09:26:07]wFMCommunicate request_size=4 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 09 00 00 [09:26:07]Write to MH i2c: E2 08 00 95 3B 80 09 00 00 00 00 00 00 42 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [09:26:07]RAPDU: 90 00 [09:26:07]wFMCommunicate OK [09:26:07]SAM_PROTO_ClearQueue done [09:26:07]KKMCreateOFDPacket [09:26:07]OFDProtocolAddRootSTLVToBuf [09:26:07]FM_MakeSignedData [09:26:07]FM_MakeSignedData [09:26:07]SAM_PROTO_SignData [09:26:07]wFMCommunicate request_size=4 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 0D 01 02 [09:26:07]Write to MH i2c: E2 08 00 96 3B 80 0D 01 02 00 00 00 00 4A [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:07]Read from MH i2c: E2 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 [09:26:07]MH_I2C_Read... [09:26:07]Read from MH i2c: E2 03 00 96 3B 00 90 00 45 [09:26:07]RAPDU: 90 00 [09:26:07]wFMCommunicate OK [09:26:07]wFMCommunicate request_size=255 [09:26:07]MH_SAM_APDU [09:26:07]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 15 00 00 00 F4 03 04 00 38 AA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3B 3D 00 00 35 04 06 00 4C 9C 73 [09:26:07]Write to MH i2c: E2 02 01 97 3B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 15 00 00 00 F4 03 04 00 38 AA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3B 3D 00 00 35 04 06 00 4C 9C 73 00 00 D0 [09:26:07]Write i2c OK [09:26:07]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 97 3B 00 90 00 46 [09:26:08]RAPDU: 90 00 [09:26:08]wFMCommunicate OK [09:26:08]wFMCommunicate request_size=8 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 0D 02 02 03 D0 56 D2 [09:26:08]Write to MH i2c: E2 0B 00 98 3B 80 0D 02 02 03 00 D0 56 D2 00 00 4B [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 03 00 98 3B 00 90 00 47 [09:26:08]RAPDU: 90 00 [09:26:08]wFMCommunicate OK [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 0D 03 02 [09:26:08]Write to MH i2c: E2 08 00 99 3B 80 0D 03 02 00 00 00 00 4F [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0B 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 0B 00 99 3B 00 39 6D 8F 9C 17 48 E1 06 90 00 67 [09:26:08]RAPDU: 39 6D 8F 9C 17 48 E1 06 90 00 [09:26:08]wFMCommunicate OK [09:26:08]SAM_PROTO_SignData done [09:26:08]FM_MakeSignedData done [09:26:08]CreateOFDProtocolMessage [09:26:08]wFMCommunicate request_size=4 [09:26:08]MH_SAM_APDU [09:26:08]CAPDU: 80 11 00 00 [09:26:08]Write to MH i2c: E2 08 00 9A 3B 80 11 00 00 00 00 00 00 4F [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:08]Read from MH i2c: E2 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: E2 17 00 9A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9E [09:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:26:08]wFMCommunicate OK [09:26:08]CreateOFDProtocolMessage done [09:26:08]OFDSenderStorePacket 15675 [09:26:08]StoreOFDPacket docnum=15675 [09:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 46 26 05 01 8E 84 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 15 00 00 00 F4 03 04 00 38 AA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3B 3D 00 00 35 04 06 00 4C 9C 73 D0 56 D2 39 6D 8F 9C 17 48 E1 06 [09:26:08]CheckFolder [09:26:08]dirname=/storage/ofd_packets [09:26:08]CheckFolder done [09:26:08]ProducePacketName [09:26:08]name=ofd_packets/00015675 [09:26:08]NVStorageSaveData ofd_packets/00015675 [09:26:08]File name is /storage/ofd_packets/00015675 [09:26:08]Write 299 bytes [09:26:08]NVStorageSaveData done [09:26:08]OFDSenderStorePacket done [09:26:08]KKMCreateOFDPacket done [09:26:08]NVStorageSaveData kkm_last_timestamp [09:26:08]File name is /storage/kkm_last_timestamp [09:26:08]Write 4 bytes [09:26:08]NVStorageSaveData done [09:26:08]ExternCall_PrintAddStr [09:26:08]wPrintStart [09:26:08]Write to MH i2c: 01 00 00 9B 3B D6 [09:26:08]Write i2c OK [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 07 00 [09:26:08]MH_I2C_Read... [09:26:08]Read from MH i2c: 01 07 00 9B 3B 00 00 00 00 00 FF 0F EB [09:26:08]RasterBufferAndPrint [09:26:08]line Счет N : (1)16224 [09:26:08]line ИНН: 02508201610067 [09:26:08]line Контрольно-Кассовый Чек [09:26:08]line ПРОДАЖА [09:26:08]line ТРК (МРК, ГНК) : 12 [09:26:08]line Товар: 50.50.0 [09:26:08]line SUPER 92-К-5 [09:26:08]line 5.120 * 68.40 [09:26:08]line = 350.21 [09:26:08]line НДС 12% НСП 1% [09:26:08]line > о реализуемом товаре [09:26:08]line ОКРУГЛЕНИЕ: -0.21 [09:26:08]line ИТОГО: 350.00 [09:26:08]line Внесено: 350.00 [09:26:08]line СДАЧА: 0.00 [09:26:08]line НСП 1% : 3.10 [09:26:08]line НДС 12% : 37.19 [09:26:08]line Наличными: 350.00 [09:26:08]line Безнал.: 0.00 [09:26:08]line Место: АЗС № 178 "Партнер Нефть" [09:26:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [09:26:08]line СНО: Общий режим [09:26:08]line Чек 21 29.10.2024 09:26 [09:26:08]line Смена: 172 ФФД: 1.0 [09:26:08]line ЗНМ: 0300000014 [09:26:08]line РНМ: 0000000000161798 [09:26:08]line Версия ККМ: v1.0 [09:26:08]line ФМ: 0000000000963325 [09:26:08]line ФД: 15675 [09:26:08]line ФПД: 84234841642706 [09:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T092616&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15675&fm=84234841642706&tin=02508201610067®Number=0000000000161798&sum=35000 [09:26:08]OFD Sender: Processing packet 15675 [packets to send 4, broken 3] [09:26:08]ProducePacketName [09:26:08]name=ofd_packets/00015675 [09:26:08]OFD Sender: To server: pG, [09:26:08]CommunicateWithHost lk.salyk.kg:30040 [09:26:08]ConnectInit lk.salyk.kg [09:26:08]written 0, free lines is 4095 [09:26:08]Connected sock=9 [09:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 46 26 05 01 8E 84 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 15 00 00 00 F4 03 04 00 38 AA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3B 3D 00 00 35 04 06 00 4C 9C 73 D0 56 D2 39 6D 8F 9C 17 48 E1 06 [09:26:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 80 63 47 00 11 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3B 3D 00 00 F4 03 04 00 26 55 20 67 B6 04 01 00 00 97 5F 64 B9 79 51 2B 1F [09:26:08]CommunicateWithHost err = 0 [09:26:08]CheckOFDResponse [09:26:08]1017 (14) - 77093643461234 [09:26:08]1041 (16) - 0000000000963325 [09:26:08]1040 (4) - 15675 [09:26:08]1012 (4) - 29.10.2024 03:23 [09:26:08]1206 (1) - 0 [09:26:08]OFD Sender: Remove packet 15675 [09:26:08]ProducePacketName [09:26:08]name=ofd_packets/00015675 [09:26:08]NVStorageDeleteData [09:26:09]Write to MH i2c: 01 00 00 C6 3B 01 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: 01 07 00 C6 3B 00 00 00 00 00 02 0D 17 [09:26:09]RasterBufferAndPrint [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]line [09:26:09]written 0, free lines is 3336 [09:26:09]MH_Cut [09:26:09]Write to MH i2c: D1 01 00 CD 3B 01 DA [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 01 00 [09:26:09]MH_I2C_Read... [09:26:09]Read from MH i2c: D1 01 00 CD 3B 00 D9 [09:26:09]Write to MH i2c: 01 00 00 CE 3B 09 [09:26:09]Write i2c OK [09:26:09]MH_I2C_Read... [09:26:09]OFD Sender: No OFD packet to send [09:26:09]*** Cut start [09:26:09]*** Partial cut [09:26:09]*** CUTSNS_PIN = 1 [09:26:09]*** CUTSNS_PIN = 0 [09:26:10]*** Brake cut motor [09:26:10]Read from MH i2c: 01 [09:26:10]MH_I2C_Read... [09:26:10]*** Stop cut motor [09:26:10]*** Cut end [09:26:10]Read from MH i2c: 01 07 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: 01 07 00 CE 3B 00 00 00 00 00 FF 0F 1E [09:26:10]process_action close_receipt done [09:26:10]requested_data is exist [09:26:10]produce_requested_data [09:26:10]requested_item fm.sn is exist - process it [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 11 00 00 [09:26:10]Write to MH i2c: E2 08 00 CF 3B 80 11 00 00 00 00 00 00 84 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 17 00 CF 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D3 [09:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:26:10]wFMCommunicate OK [09:26:10]requested_item fd.num is exist - process it [09:26:10]SAM_PROTO_GetFieldsCounters [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 13 00 00 [09:26:10]Write to MH i2c: E2 08 00 D0 3B 80 13 00 00 00 00 00 00 87 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 62 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 62 00 D0 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3B 3D 00 00 0E 04 04 00 AC 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 0E [09:26:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3B 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_GetFieldsCounters done [09:26:10]requested_item shift.num is exist - process it [09:26:10]requested_item shift.opened is exist - process it [09:26:10]req_shift_opened [09:26:10]FM_GetShiftState [09:26:10]SAM_PROTO_GetShiftState [09:26:10]wFMCommunicate request_size=4 [09:26:10]MH_SAM_APDU [09:26:10]CAPDU: 80 13 01 00 [09:26:10]Write to MH i2c: E2 08 00 D1 3B 80 13 01 00 00 00 00 00 89 [09:26:10]Write i2c OK [09:26:10]MH_I2C_Read... [09:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:10]Read from MH i2c: E2 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0E 00 [09:26:10]MH_I2C_Read... [09:26:10]Read from MH i2c: E2 0E 00 D1 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 DE [09:26:10]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:26:10]wFMCommunicate OK [09:26:10]SAM_PROTO_GetShiftState done [09:26:10]FM_GetShiftState done [09:26:10]req_shift_opened done [09:26:10]requested_item shift.open_date is exist - process it [09:26:10]req_shift_open_date [09:26:10]req_shift_open_date done [09:26:10]produce_requested_data done [09:26:10]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15675,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [09:26:10]process_action_free close_receipt [09:26:10]json_value_free [09:26:10]json_value_free done [09:26:10]process_json_proto returns [09:26:10]Send response to host [09:26:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15675,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [09:26:10]free response buf [09:26:10]execute_script done [09:26:10]execute_script returns [09:26:10]free content buf [09:26:10]Sock 10.Close socket [09:26:10]Sock 10.Thread stoped [09:26:14]OFD Sender: No OFD packet to send [09:26:19]OFD Sender: No OFD packet to send [09:26:24]OFD Sender: No OFD packet to send [09:26:29]OFD Sender: No OFD packet to send [09:26:34]OFD Sender: No OFD packet to send [09:26:39]OFD Sender: No OFD packet to send [09:26:44]OFD Sender: No OFD packet to send [09:26:49]OFD Sender: No OFD packet to send [09:26:54]OFD Sender: No OFD packet to send [09:26:59]OFD Sender: No OFD packet to send [09:27:04]OFD Sender: No OFD packet to send [09:27:09]OFD Sender: No OFD packet to send [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]OFD Sender: No OFD packet to send [09:28:04]OFD Sender: No OFD packet to send [09:28:09]OFD Sender: No OFD packet to send [09:28:14]OFD Sender: No OFD packet to send [09:28:19]OFD Sender: No OFD packet to send [09:28:24]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:46]accept exits with 8 [09:33:46]New connection [09:33:46]New thread 3066731876 created [09:33:46]Thread 3066588516 joined [09:33:46]Waiting for new connection... [09:33:46] Sock 8.Parse request [09:33:46]Sock 8.Check first char [09:33:46]Sock 8.First char is OK [09:33:46]request: POST /json_proto HTTP/1.0 [09:33:46]Method: POST [09:33:46]URL: /json_proto [09:33:46]Method is POST - this is cgi request [09:33:46]url: /json_proto [09:33:46]query_string will be loaded in cgi processing [09:33:46]execute_cgi json_proto POST (null) [09:33:46]execute_cgi path=json_proto method=POST [09:33:46]POST find Content-Length [09:33:46]Host: 172.17.54.195:8080 [09:33:46]Content-Length: 671 [09:33:46]Content-Type: application/json [09:33:46] [09:33:46]POST finish read [09:33:46]Found Content-Length = 671 [09:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:33:46]execute_script... [09:33:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:33:46]POST & json_proto [09:33:46]process_json_proto [09:33:46]json parsed OK: [09:33:46]protocol is kg_v1.0 [09:33:46]action value=close_receipt [09:33:46]process_action close_receipt [09:33:46]cmd_close_receipt [09:33:46]MH_GetDate [09:33:46]Write to MH i2c: F0 00 00 D2 3B FC [09:33:46]Write i2c OK [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 09 00 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 09 00 D2 3B 00 04 AC 20 67 8D 90 A3 66 62 [09:33:46]GetLastDocTimeStamp 1730193976 [09:33:46]current date 1730194436 [09:33:46]FM_GetShiftState [09:33:46]SAM_PROTO_GetShiftState [09:33:46]wFMCommunicate request_size=4 [09:33:46]MH_SAM_APDU [09:33:46]CAPDU: 80 13 01 00 [09:33:46]Write to MH i2c: E2 08 00 D3 3B 80 13 01 00 00 00 00 00 8B [09:33:46]Write i2c OK [09:33:46]MH_I2C_Read... [09:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:46]Read from MH i2c: E2 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: E2 0E 00 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: E2 0E 00 D3 3B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E0 [09:33:46]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:33:46]wFMCommunicate OK [09:33:46]SAM_PROTO_GetShiftState done [09:33:46]FM_GetShiftState done [09:33:46]opened in 1730161559 [09:33:46]opened+sec_in_day 1730247959 [09:33:46]quantity*price = 100000 [09:33:46]sum+1 = 100002 [09:33:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 22 29.10.2024 09:33 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15676 ФПД: 240584091892480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093357&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15676&fm=240584091892480&tin=02508201610067®Number=0000000000161798&sum=100000 [09:33:47]StoreToDocumentArchive [09:33:47]shift 172 fd 15676 [09:33:47]save to /storage/0172/doc_00015676 [09:33:47]save last doc name /storage/0172/doc_00015676 to /storage/kkm_last_doc_name [09:33:47]save OK [09:33:47]Clear old archive folders... [09:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=249 [09:33:47]tlvbuf is 00400840 [09:33:47]SAM_PROTO_ClearQueue [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 09 00 00 [09:33:47]Write to MH i2c: E2 08 00 E0 3B 80 09 00 00 00 00 00 00 8D [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 E0 3B 00 90 00 8F [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]SAM_PROTO_ClearQueue done [09:33:47]KKMCreateOFDPacket [09:33:47]OFDProtocolAddRootSTLVToBuf [09:33:47]FM_MakeSignedData [09:33:47]FM_MakeSignedData [09:33:47]SAM_PROTO_SignData [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 01 02 [09:33:47]Write to MH i2c: E2 08 00 E1 3B 80 0D 01 02 00 00 00 00 95 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 E1 3B 00 90 00 90 [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]wFMCommunicate request_size=255 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 05 AC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3C 3D 00 00 35 04 06 00 DA CF 59 [09:33:47]Write to MH i2c: E2 02 01 E2 3B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 05 AC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3C 3D 00 00 35 04 06 00 DA CF 59 00 00 C6 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 03 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 03 00 E2 3B 00 90 00 91 [09:33:48]RAPDU: 90 00 [09:33:48]wFMCommunicate OK [09:33:48]wFMCommunicate request_size=8 [09:33:48]MH_SAM_APDU [09:33:48]CAPDU: 80 0D 02 02 03 55 FB 00 [09:33:48]Write to MH i2c: E2 0B 00 E3 3B 80 0D 02 02 03 00 55 FB 00 00 00 EE [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 03 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 03 00 E3 3B 00 90 00 92 [09:33:48]RAPDU: 90 00 [09:33:48]wFMCommunicate OK [09:33:48]wFMCommunicate request_size=4 [09:33:48]MH_SAM_APDU [09:33:48]CAPDU: 80 0D 03 02 [09:33:48]Write to MH i2c: E2 08 00 E4 3B 80 0D 03 02 00 00 00 00 9A [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0B 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 0B 00 E4 3B 00 42 EB A7 5D 80 D4 8A E0 90 00 8A [09:33:48]RAPDU: 42 EB A7 5D 80 D4 8A E0 90 00 [09:33:48]wFMCommunicate OK [09:33:48]SAM_PROTO_SignData done [09:33:48]FM_MakeSignedData done [09:33:48]CreateOFDProtocolMessage [09:33:48]wFMCommunicate request_size=4 [09:33:48]MH_SAM_APDU [09:33:48]CAPDU: 80 11 00 00 [09:33:48]Write to MH i2c: E2 08 00 E5 3B 80 11 00 00 00 00 00 00 9A [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:48]Read from MH i2c: E2 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 17 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: E2 17 00 E5 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E9 [09:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:33:48]wFMCommunicate OK [09:33:48]CreateOFDProtocolMessage done [09:33:48]OFDSenderStorePacket 15676 [09:33:48]StoreOFDPacket docnum=15676 [09:33:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 45 40 05 01 23 31 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 05 AC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3C 3D 00 00 35 04 06 00 DA CF 59 55 FB 00 42 EB A7 5D 80 D4 8A E0 [09:33:48]CheckFolder [09:33:48]dirname=/storage/ofd_packets [09:33:48]CheckFolder done [09:33:48]ProducePacketName [09:33:48]name=ofd_packets/00015676 [09:33:48]NVStorageSaveData ofd_packets/00015676 [09:33:48]File name is /storage/ofd_packets/00015676 [09:33:48]Write 299 bytes [09:33:48]NVStorageSaveData done [09:33:48]OFDSenderStorePacket done [09:33:48]KKMCreateOFDPacket done [09:33:48]NVStorageSaveData kkm_last_timestamp [09:33:48]File name is /storage/kkm_last_timestamp [09:33:48]Write 4 bytes [09:33:48]NVStorageSaveData done [09:33:48]ExternCall_PrintAddStr [09:33:48]wPrintStart [09:33:48]Write to MH i2c: 01 00 00 E6 3B 21 [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 E6 3B 00 00 00 00 00 FF 0F 36 [09:33:48]RasterBufferAndPrint [09:33:48]line Счет N : (1)16225 [09:33:48]line ИНН: 02508201610067 [09:33:48]line Контрольно-Кассовый Чек [09:33:48]line ПРОДАЖА [09:33:48]line ТРК (МРК, ГНК) : 12 [09:33:48]line Товар: 50.50.0 [09:33:48]line SUPER 92-К-5 [09:33:48]line 14.620 * 68.40 [09:33:48]line = 1000.01 [09:33:48]line НДС 12% НСП 1% [09:33:48]line > о реализуемом товаре [09:33:48]line ОКРУГЛЕНИЕ: -0.01 [09:33:48]line ИТОГО: 1000.00 [09:33:48]line Внесено: 1000.00 [09:33:48]line СДАЧА: 0.00 [09:33:48]line НСП 1% : 8.85 [09:33:48]line НДС 12% : 106.20 [09:33:48]line Наличными: 1000.00 [09:33:48]line Безнал.: 0.00 [09:33:48]line Место: АЗС № 178 "Партнер Нефть" [09:33:48]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [09:33:48]line СНО: Общий режим [09:33:48]line Чек 22 29.10.2024 09:33 [09:33:48]line Смена: 172 ФФД: 1.0 [09:33:48]line ЗНМ: 0300000014 [09:33:48]line РНМ: 0000000000161798 [09:33:48]line Версия ККМ: v1.0 [09:33:48]line ФМ: 0000000000963325 [09:33:48]line ФД: 15676 [09:33:48]line ФПД: 240584091892480 [09:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T093357&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15676&fm=240584091892480&tin=02508201610067®Number=0000000000161798&sum=100000 [09:33:48]OFD Sender: Processing packet 15676 [packets to send 4, broken 3] [09:33:48]ProducePacketName [09:33:48]name=ofd_packets/00015676 [09:33:48]OFD Sender: To server: pG, [09:33:48]CommunicateWithHost lk.salyk.kg:30040 [09:33:48]ConnectInit lk.salyk.kg [09:33:48]written 0, free lines is 4095 [09:33:48]Connected sock=10 [09:33:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 45 40 05 01 23 31 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 05 AC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3C 3D 00 00 35 04 06 00 DA CF 59 55 FB 00 42 EB A7 5D 80 D4 8A E0 [09:33:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 E6 74 47 00 3D C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3C 3D 00 00 F4 03 04 00 F2 56 20 67 B6 04 01 00 00 C3 84 93 C6 0D 01 19 66 [09:33:48]CommunicateWithHost err = 0 [09:33:48]CheckOFDResponse [09:33:48]1017 (14) - 77093643461234 [09:33:48]1041 (16) - 0000000000963325 [09:33:48]1040 (4) - 15676 [09:33:48]1012 (4) - 29.10.2024 03:30 [09:33:48]1206 (1) - 0 [09:33:48]OFD Sender: Remove packet 15676 [09:33:48]ProducePacketName [09:33:48]name=ofd_packets/00015676 [09:33:48]NVStorageDeleteData [09:33:49]Write to MH i2c: 01 00 00 11 3C 4D [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: 01 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: 01 07 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: 01 07 00 11 3C 00 00 00 00 00 EC 0C 4C [09:33:49]RasterBufferAndPrint [09:33:49]line [09:33:49]line [09:33:49]line [09:33:49]line [09:33:49]line [09:33:49]written 0, free lines is 3318 [09:33:49]MH_Cut [09:33:49]Write to MH i2c: D1 01 00 18 3C 01 26 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: D1 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: D1 01 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: D1 01 00 18 3C 00 25 [09:33:49]Write to MH i2c: 01 00 00 19 3C 55 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]OFD Sender: No OFD packet to send [09:33:49]*** Cut start [09:33:49]*** Partial cut [09:33:49]*** CUTSNS_PIN = 1 [09:33:49]*** CUTSNS_PIN = 0 [09:33:50]*** Brake cut motor [09:33:50]Read from MH i2c: 01 [09:33:50]MH_I2C_Read... [09:33:50]*** Stop cut motor [09:33:50]*** Cut end [09:33:50]Read from MH i2c: 01 07 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: 01 07 00 19 3C 00 00 00 00 00 FF 0F 6A [09:33:50]process_action close_receipt done [09:33:50]requested_data is exist [09:33:50]produce_requested_data [09:33:50]requested_item fm.sn is exist - process it [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 11 00 00 [09:33:50]Write to MH i2c: E2 08 00 1A 3C 80 11 00 00 00 00 00 00 D0 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 17 00 1A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1F [09:33:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:33:50]wFMCommunicate OK [09:33:50]requested_item fd.num is exist - process it [09:33:50]SAM_PROTO_GetFieldsCounters [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 13 00 00 [09:33:50]Write to MH i2c: E2 08 00 1B 3C 80 13 00 00 00 00 00 00 D3 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 62 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 62 00 1B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3C 3D 00 00 0E 04 04 00 AC 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 5E [09:33:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3C 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_GetFieldsCounters done [09:33:50]requested_item shift.num is exist - process it [09:33:50]requested_item shift.opened is exist - process it [09:33:50]req_shift_opened [09:33:50]FM_GetShiftState [09:33:50]SAM_PROTO_GetShiftState [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 13 01 00 [09:33:50]Write to MH i2c: E2 08 00 1C 3C 80 13 01 00 00 00 00 00 D5 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 1C 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2A [09:33:50]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_GetShiftState done [09:33:50]FM_GetShiftState done [09:33:50]req_shift_opened done [09:33:50]requested_item shift.open_date is exist - process it [09:33:50]req_shift_open_date [09:33:50]req_shift_open_date done [09:33:50]produce_requested_data done [09:33:50]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15676,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [09:33:50]process_action_free close_receipt [09:33:50]json_value_free [09:33:50]json_value_free done [09:33:50]process_json_proto returns [09:33:50]Send response to host [09:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15676,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [09:33:50]free response buf [09:33:50]execute_script done [09:33:50]execute_script returns [09:33:50]free content buf [09:33:50]Sock 8.Close socket [09:33:50]Sock 8.Thread stoped [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [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:47]accept exits with 9 [09:48:47]New connection [09:48:47]New thread 3066588516 created [09:48:47]Thread 3066731876 joined [09:48:47]Waiting for new connection... [09:48:47] Sock 9.Parse request [09:48:47]Sock 9.Check first char [09:48:47]Sock 9.First char is OK [09:48:47]request: POST /json_proto HTTP/1.0 [09:48:47]Method: POST [09:48:47]URL: /json_proto [09:48:47]Method is POST - this is cgi request [09:48:47]url: /json_proto [09:48:47]query_string will be loaded in cgi processing [09:48:47]execute_cgi json_proto POST (null) [09:48:47]execute_cgi path=json_proto method=POST [09:48:47]POST find Content-Length [09:48:47]Host: 172.17.54.195:8080 [09:48:47]Content-Length: 784 [09:48:47]Content-Type: application/json [09:48:47] [09:48:47]POST finish read [09:48:47]Found Content-Length = 784 [09:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: Mbank", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:47]execute_script... [09:48: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)16226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.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: Mbank", "total" : 1500.00, "payments": [ { "type": 1, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:47]POST & json_proto [09:48:47]process_json_proto [09:48:47]json parsed OK: [09:48:47]protocol is kg_v1.0 [09:48:47]action value=close_receipt [09:48:47]process_action close_receipt [09:48:47]cmd_close_receipt [09:48:47]MH_GetDate [09:48:47]Write to MH i2c: F0 00 00 1D 3C 48 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 09 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: F0 09 00 1D 3C 00 89 AF 20 67 8D 90 A3 66 36 [09:48:47]GetLastDocTimeStamp 1730194437 [09:48:47]current date 1730195337 [09:48:47]FM_GetShiftState [09:48:47]SAM_PROTO_GetShiftState [09:48:47]wFMCommunicate request_size=4 [09:48:47]MH_SAM_APDU [09:48:47]CAPDU: 80 13 01 00 [09:48:47]Write to MH i2c: E2 08 00 1E 3C 80 13 01 00 00 00 00 00 D7 [09:48:47]Write i2c OK [09:48:47]MH_I2C_Read... [09:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:47]Read from MH i2c: E2 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 [09:48:47]MH_I2C_Read... [09:48:47]Read from MH i2c: E2 0E 00 1E 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2C [09:48:47]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:48:47]wFMCommunicate OK [09:48:47]SAM_PROTO_GetShiftState done [09:48:47]FM_GetShiftState done [09:48:47]opened in 1730161559 [09:48:47]opened+sec_in_day 1730247959 [09:48:47]quantity*price = 150037 [09:48:47]sum+1 = 150039 [09:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 23 29.10.2024 09:48 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15677 ФПД: 171601555329441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T094857&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15677&fm=171601555329441&tin=02508201610067®Number=0000000000161798&sum=150000 [09:48:48]StoreToDocumentArchive [09:48:48]shift 172 fd 15677 [09:48:48]save to /storage/0172/doc_00015677 [09:48:48]save last doc name /storage/0172/doc_00015677 to /storage/kkm_last_doc_name [09:48:48]save OK [09:48:48]Clear old archive folders... [09:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:48]tlvbuf is 00400970 [09:48:48]SAM_PROTO_ClearQueue [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 09 00 00 [09:48:48]Write to MH i2c: E2 08 00 2B 3C 80 09 00 00 00 00 00 00 D9 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_ClearQueue done [09:48:48]KKMCreateOFDPacket [09:48:48]OFDProtocolAddRootSTLVToBuf [09:48:48]FM_MakeSignedData [09:48:48]FM_MakeSignedData [09:48:48]SAM_PROTO_SignData [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 01 02 [09:48:48]Write to MH i2c: E2 08 00 2C 3C 80 0D 01 02 00 00 00 00 E1 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 2C 3C 00 90 00 DC [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=255 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 89 AF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3D 3D 00 00 35 04 06 00 9C 12 19 BF [09:48:48]Write to MH i2c: E2 02 01 2D 3C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 89 AF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3D 3D 00 00 35 04 06 00 9C 12 19 BF 00 00 62 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 2D 3C 00 90 00 DD [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=7 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 02 02 02 91 A1 [09:48:48]Write to MH i2c: E2 0A 00 2E 3C 80 0D 02 02 02 00 91 A1 00 00 1A [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 03 00 2E 3C 00 90 00 DE [09:48:48]RAPDU: 90 00 [09:48:48]wFMCommunicate OK [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 0D 03 02 [09:48:48]Write to MH i2c: E2 08 00 2F 3C 80 0D 03 02 00 00 00 00 E6 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0B 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 0B 00 2F 3C 00 89 1E 85 06 F9 33 79 77 90 00 35 [09:48:48]RAPDU: 89 1E 85 06 F9 33 79 77 90 00 [09:48:48]wFMCommunicate OK [09:48:48]SAM_PROTO_SignData done [09:48:48]FM_MakeSignedData done [09:48:48]CreateOFDProtocolMessage [09:48:48]wFMCommunicate request_size=4 [09:48:48]MH_SAM_APDU [09:48:48]CAPDU: 80 11 00 00 [09:48:48]Write to MH i2c: E2 08 00 30 3C 80 11 00 00 00 00 00 00 E6 [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:48]Read from MH i2c: E2 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 17 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: E2 17 00 30 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 35 [09:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:48:48]wFMCommunicate OK [09:48:48]CreateOFDProtocolMessage done [09:48:48]OFDSenderStorePacket 15677 [09:48:48]StoreOFDPacket docnum=15677 [09:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 2C 93 04 01 58 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 35 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 89 AF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3D 3D 00 00 35 04 06 00 9C 12 19 BF 91 A1 89 1E 85 06 F9 33 79 77 [09:48:48]CheckFolder [09:48:48]dirname=/storage/ofd_packets [09:48:48]CheckFolder done [09:48:48]ProducePacketName [09:48:48]name=ofd_packets/00015677 [09:48:48]NVStorageSaveData ofd_packets/00015677 [09:48:48]File name is /storage/ofd_packets/00015677 [09:48:48]Write 298 bytes [09:48:48]NVStorageSaveData done [09:48:48]OFDSenderStorePacket done [09:48:48]KKMCreateOFDPacket done [09:48:48]NVStorageSaveData kkm_last_timestamp [09:48:48]File name is /storage/kkm_last_timestamp [09:48:48]Write 4 bytes [09:48:48]NVStorageSaveData done [09:48:48]ExternCall_PrintAddStr [09:48:48]wPrintStart [09:48:48]Write to MH i2c: 01 00 00 31 3C 6D [09:48:48]Write i2c OK [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 [09:48:48]MH_I2C_Read... [09:48:48]Read from MH i2c: 01 07 00 31 3C 00 00 00 00 00 FF 0F 82 [09:48:48]RasterBufferAndPrint [09:48:48]line Счет N : (1)16226 [09:48:48]line ИНН: 02508201610067 [09:48:48]line Контрольно-Кассовый Чек [09:48:48]line ПРОДАЖА [09:48:48]line ТРК (МРК, ГНК) : 31 [09:48:48]line Товар: 2710194210 [09:48:48]line ДТ-К-5 [09:48:48]line 19.690 * 76.20 [09:48:48]line = 1500.38 [09:48:48]line НДС 12% НСП 1% [09:48:48]line > о реализуемом товаре [09:48:48]line ОКРУГЛЕНИЕ: -0.38 [09:48:48]line ИТОГО: 1500.00 [09:48:48]line НСП 1% : 13.28 [09:48:48]line НДС 12% : 159.33 [09:48:48]line Наличными: 0.00 [09:48:48]line Безнал.: 1500.00 [09:48:48]line Место: АЗС № 178 "Партнер Нефть" [09:48:48]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [09:48:48]line СНО: Общий режим [09:48:48]line Чек 23 29.10.2024 09:48 [09:48:48]line Смена: 172 ФФД: 1.0 [09:48:48]line ЗНМ: 0300000014 [09:48:48]line РНМ: 0000000000161798 [09:48:48]line Версия ККМ: v1.0 [09:48:48]line Платежная система: Mbank [09:48:48]line ФМ: 0000000000963325 [09:48:48]line ФД: 15677 [09:48:48]line ФПД: 171601555329441 [09:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T094857&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15677&fm=171601555329441&tin=02508201610067®Number=0000000000161798&sum=150000 [09:48:49]OFD Sender: Processing packet 15677 [packets to send 4, broken 3] [09:48:49]ProducePacketName [09:48:49]name=ofd_packets/00015677 [09:48:49]OFD Sender: To server: pG, [09:48:49]CommunicateWithHost lk.salyk.kg:30040 [09:48:49]ConnectInit lk.salyk.kg [09:48:49]written 0, free lines is 4095 [09:48:49]Connected sock=10 [09:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 2C 93 04 01 58 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 35 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 00 00 00 00 00 00 39 04 06 00 F0 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 89 AF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3D 3D 00 00 35 04 06 00 9C 12 19 BF 91 A1 89 1E 85 06 F9 33 79 77 [09:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C6 67 47 00 67 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3D 3D 00 00 F4 03 04 00 76 5A 20 67 B6 04 01 00 00 81 16 DF 3F CB 56 2A 75 [09:48:49]CommunicateWithHost err = 0 [09:48:49]CheckOFDResponse [09:48:49]1017 (14) - 77093643461234 [09:48:49]1041 (16) - 0000000000963325 [09:48:49]1040 (4) - 15677 [09:48:49]1012 (4) - 29.10.2024 03:45 [09:48:49]1206 (1) - 0 [09:48:49]OFD Sender: Remove packet 15677 [09:48:49]ProducePacketName [09:48:49]name=ofd_packets/00015677 [09:48:49]NVStorageDeleteData [09:48:49]Write to MH i2c: 01 00 00 5B 3C 97 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: 01 07 00 5B 3C 00 00 00 00 00 03 0D AE [09:48:49]RasterBufferAndPrint [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]line [09:48:49]written 0, free lines is 3337 [09:48:49]MH_Cut [09:48:49]Write to MH i2c: D1 01 00 62 3C 01 70 [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 01 00 [09:48:49]MH_I2C_Read... [09:48:49]Read from MH i2c: D1 01 00 62 3C 00 6F [09:48:49]Write to MH i2c: 01 00 00 63 3C 9F [09:48:49]Write i2c OK [09:48:49]MH_I2C_Read... [09:48:49]OFD Sender: No OFD packet to send [09:48:50]*** Cut start [09:48:50]*** Partial cut [09:48:50]*** CUTSNS_PIN = 1 [09:48:50]*** CUTSNS_PIN = 0 [09:48:50]*** Brake cut motor [09:48:50]Read from MH i2c: 01 [09:48:50]MH_I2C_Read... [09:48:50]*** Stop cut motor [09:48:50]*** Cut end [09:48:50]Read from MH i2c: 01 07 00 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: 01 07 00 63 3C 00 00 00 00 00 FF 0F B4 [09:48:50]process_action close_receipt done [09:48:50]requested_data is exist [09:48:50]produce_requested_data [09:48:50]requested_item fm.sn is exist - process it [09:48:50]wFMCommunicate request_size=4 [09:48:50]MH_SAM_APDU [09:48:50]CAPDU: 80 11 00 00 [09:48:50]Write to MH i2c: E2 08 00 64 3C 80 11 00 00 00 00 00 00 1A [09:48:50]Write i2c OK [09:48:50]MH_I2C_Read... [09:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:50]Read from MH i2c: E2 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 17 00 [09:48:50]MH_I2C_Read... [09:48:50]Read from MH i2c: E2 17 00 64 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 69 [09:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [09:48:50]wFMCommunicate OK [09:48:50]requested_item fd.num is exist - process it [09:48:50]SAM_PROTO_GetFieldsCounters [09:48:50]wFMCommunicate request_size=4 [09:48:50]MH_SAM_APDU [09:48:50]CAPDU: 80 13 00 00 [09:48:50]Write to MH i2c: E2 08 00 65 3C 80 13 00 00 00 00 00 00 1D [09:48:50]Write i2c OK [09:48:50]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 62 00 65 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3D 3D 00 00 0E 04 04 00 AC 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 AC [09:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3D 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetFieldsCounters done [09:48:51]requested_item shift.num is exist - process it [09:48:51]requested_item shift.opened is exist - process it [09:48:51]req_shift_opened [09:48:51]FM_GetShiftState [09:48:51]SAM_PROTO_GetShiftState [09:48:51]wFMCommunicate request_size=4 [09:48:51]MH_SAM_APDU [09:48:51]CAPDU: 80 13 01 00 [09:48:51]Write to MH i2c: E2 08 00 66 3C 80 13 01 00 00 00 00 00 1F [09:48:51]Write i2c OK [09:48:51]MH_I2C_Read... [09:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:51]Read from MH i2c: E2 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 [09:48:51]MH_I2C_Read... [09:48:51]Read from MH i2c: E2 0E 00 66 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 74 [09:48:51]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [09:48:51]wFMCommunicate OK [09:48:51]SAM_PROTO_GetShiftState done [09:48:51]FM_GetShiftState done [09:48:51]req_shift_opened done [09:48:51]requested_item shift.open_date is exist - process it [09:48:51]req_shift_open_date [09:48:51]req_shift_open_date done [09:48:51]produce_requested_data done [09:48:51]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15677,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [09:48:51]process_action_free close_receipt [09:48:51]json_value_free [09:48:51]json_value_free done [09:48:51]process_json_proto returns [09:48:51]Send response to host [09:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15677,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [09:48:51]free response buf [09:48:51]execute_script done [09:48:51]execute_script returns [09:48:51]free content buf [09:48:51]Sock 9.Close socket [09:48:51]Sock 9.Thread stoped [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51: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:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]ConnectInit Can't connect to host [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:22]accept exits with 8 [10:01:22]New connection [10:01:22]New thread 3066731876 created [10:01:22]Thread 3066588516 joined [10:01:22]Waiting for new connection... [10:01:22] Sock 8.Parse request [10:01:22]Sock 8.Check first char [10:01:22]Sock 8.First char is OK [10:01:22]request: POST /json_proto HTTP/1.0 [10:01:22]Method: POST [10:01:22]URL: /json_proto [10:01:22]Method is POST - this is cgi request [10:01:22]url: /json_proto [10:01:22]query_string will be loaded in cgi processing [10:01:22]execute_cgi json_proto POST (null) [10:01:22]execute_cgi path=json_proto method=POST [10:01:22]POST find Content-Length [10:01:22]Host: 172.17.54.195:8080 [10:01:22]Content-Length: 680 [10:01:22]Content-Type: application/json [10:01:22] [10:01:22]POST finish read [10:01:22]Found Content-Length = 680 [10:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:22]execute_script... [10:01: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)16227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 20.570, "sum" : 800.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:22]POST & json_proto [10:01:22]process_json_proto [10:01:22]json parsed OK: [10:01:22]protocol is kg_v1.0 [10:01:22]action value=close_receipt [10:01:22]process_action close_receipt [10:01:22]cmd_close_receipt [10:01:22]MH_GetDate [10:01:22]Write to MH i2c: F0 00 00 67 3C 92 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: F0 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: F0 09 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: F0 09 00 67 3C 00 7C B2 20 67 8D 90 A3 66 76 [10:01:22]GetLastDocTimeStamp 1730195337 [10:01:22]current date 1730196092 [10:01:22]FM_GetShiftState [10:01:22]SAM_PROTO_GetShiftState [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 13 01 00 [10:01:22]Write to MH i2c: E2 08 00 68 3C 80 13 01 00 00 00 00 00 21 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0E 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0E 00 68 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 76 [10:01:22]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:01:22]wFMCommunicate OK [10:01:22]SAM_PROTO_GetShiftState done [10:01:22]FM_GetShiftState done [10:01:22]opened in 1730161559 [10:01:22]opened+sec_in_day 1730247959 [10:01:22]quantity*price = 80017 [10:01:22]sum+1 = 80018 [10:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 24 29.10.2024 10:01 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15678 ФПД: 15305950135326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100132&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15678&fm=15305950135326&tin=02508201610067®Number=0000000000161798&sum=80000 [10:01:23]StoreToDocumentArchive [10:01:23]shift 172 fd 15678 [10:01:23]save to /storage/0172/doc_00015678 [10:01:23]save last doc name /storage/0172/doc_00015678 to /storage/kkm_last_doc_name [10:01:23]save OK [10:01:23]Clear old archive folders... [10:01:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:01:23]tlvbuf is B6D72190 [10:01:23]SAM_PROTO_ClearQueue [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 09 00 00 [10:01:23]Write to MH i2c: E2 08 00 75 3C 80 09 00 00 00 00 00 00 23 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 75 3C 00 90 00 25 [10:01:23]RAPDU: 90 00 [10:01:23]wFMCommunicate OK [10:01:23]SAM_PROTO_ClearQueue done [10:01:23]KKMCreateOFDPacket [10:01:23]OFDProtocolAddRootSTLVToBuf [10:01:23]FM_MakeSignedData [10:01:23]FM_MakeSignedData [10:01:23]SAM_PROTO_SignData [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 0D 01 02 [10:01:23]Write to MH i2c: E2 08 00 76 3C 80 0D 01 02 00 00 00 00 2B [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 76 3C 00 90 00 26 [10:01:23]RAPDU: 90 00 [10:01:23]wFMCommunicate OK [10:01:23]wFMCommunicate request_size=255 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 18 00 00 00 F4 03 04 00 7C B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3E 3D 00 00 35 04 06 00 0D EB [10:01:23]Write to MH i2c: E2 02 01 77 3C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 18 00 00 00 F4 03 04 00 7C B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3E 3D 00 00 35 04 06 00 0D EB 00 00 0A [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 77 3C 00 90 00 27 [10:01:23]RAPDU: 90 00 [10:01:23]wFMCommunicate OK [10:01:23]wFMCommunicate request_size=9 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 0D 02 02 04 B1 B8 84 1E [10:01:23]Write to MH i2c: E2 0C 00 78 3C 80 0D 02 02 04 00 B1 B8 84 1E 00 00 41 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 03 00 78 3C 00 90 00 28 [10:01:23]RAPDU: 90 00 [10:01:23]wFMCommunicate OK [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 0D 03 02 [10:01:23]Write to MH i2c: E2 08 00 79 3C 80 0D 03 02 00 00 00 00 30 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0B 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 0B 00 79 3C 00 0B 7F 2D D8 88 F1 80 7A 90 00 33 [10:01:24]RAPDU: 0B 7F 2D D8 88 F1 80 7A 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_SignData done [10:01:24]FM_MakeSignedData done [10:01:24]CreateOFDProtocolMessage [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 11 00 00 [10:01:24]Write to MH i2c: E2 08 00 7A 3C 80 11 00 00 00 00 00 00 30 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 17 00 7A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7F [10:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:01:24]wFMCommunicate OK [10:01:24]CreateOFDProtocolMessage done [10:01:24]OFDSenderStorePacket 15678 [10:01:24]StoreOFDPacket docnum=15678 [10:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 04 25 06 01 25 CB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 18 00 00 00 F4 03 04 00 7C B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3E 3D 00 00 35 04 06 00 0D EB B1 B8 84 1E 0B 7F 2D D8 88 F1 80 7A [10:01:24]CheckFolder [10:01:24]dirname=/storage/ofd_packets [10:01:24]CheckFolder done [10:01:24]ProducePacketName [10:01:24]name=ofd_packets/00015678 [10:01:24]NVStorageSaveData ofd_packets/00015678 [10:01:24]File name is /storage/ofd_packets/00015678 [10:01:24]Write 300 bytes [10:01:24]NVStorageSaveData done [10:01:24]OFDSenderStorePacket done [10:01:24]KKMCreateOFDPacket done [10:01:24]NVStorageSaveData kkm_last_timestamp [10:01:24]File name is /storage/kkm_last_timestamp [10:01:24]Write 4 bytes [10:01:24]NVStorageSaveData done [10:01:24]ExternCall_PrintAddStr [10:01:24]wPrintStart [10:01:24]Write to MH i2c: 01 00 00 7B 3C B7 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 7B 3C 00 00 00 00 00 FF 0F CC [10:01:24]RasterBufferAndPrint [10:01:24]line Счет N : (1)16227 [10:01:24]line ИНН: 02508201610067 [10:01:24]line Контрольно-Кассовый Чек [10:01:24]line ПРОДАЖА [10:01:24]line ТРК (МРК, ГНК) : 41 [10:01:24]line Товар: 2711190000 [10:01:24]line ГАЗ-К-5 [10:01:24]line 20.570 * 38.90 [10:01:24]line = 800.17 [10:01:24]line НДС 12% НСП 1% [10:01:24]line > о реализуемом товаре [10:01:24]line ОКРУГЛЕНИЕ: -0.17 [10:01:24]line ИТОГО: 800.00 [10:01:24]line Внесено: 800.00 [10:01:24]line СДАЧА: 0.00 [10:01:24]line НСП 1% : 7.08 [10:01:24]line НДС 12% : 84.97 [10:01:24]line Наличными: 800.00 [10:01:24]line Безнал.: 0.00 [10:01:24]line Место: АЗС № 178 "Партнер Нефть" [10:01:24]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:01:24]line СНО: Общий режим [10:01:24]line Чек 24 29.10.2024 10:01 [10:01:24]line Смена: 172 ФФД: 1.0 [10:01:24]line ЗНМ: 0300000014 [10:01:24]line РНМ: 0000000000161798 [10:01:24]line Версия ККМ: v1.0 [10:01:24]line ФМ: 0000000000963325 [10:01:24]line ФД: 15678 [10:01:24]line ФПД: 15305950135326 [10:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100132&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15678&fm=15305950135326&tin=02508201610067®Number=0000000000161798&sum=80000 [10:01:24]written 0, free lines is 4095 [10:01:24]OFD Sender: Processing packet 15678 [packets to send 4, broken 3] [10:01:24]ProducePacketName [10:01:24]name=ofd_packets/00015678 [10:01:24]OFD Sender: To server: pG, [10:01:24]CommunicateWithHost lk.salyk.kg:30040 [10:01:24]ConnectInit lk.salyk.kg [10:01:24]Connected sock=10 [10:01:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 04 25 06 01 25 CB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 50 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 91 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 18 00 00 00 F4 03 04 00 7C B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3E 3D 00 00 35 04 06 00 0D EB B1 B8 84 1E 0B 7F 2D D8 88 F1 80 7A [10:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 9E 90 47 00 FD E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3E 3D 00 00 F4 03 04 00 6A 5D 20 67 B6 04 01 00 00 93 12 86 E9 93 75 8F 13 [10:01:24]CommunicateWithHost err = 0 [10:01:24]CheckOFDResponse [10:01:24]1017 (14) - 77093643461234 [10:01:24]1041 (16) - 0000000000963325 [10:01:24]1040 (4) - 15678 [10:01:24]1012 (4) - 29.10.2024 03:58 [10:01:24]1206 (1) - 0 [10:01:24]OFD Sender: Remove packet 15678 [10:01:24]ProducePacketName [10:01:24]name=ofd_packets/00015678 [10:01:24]NVStorageDeleteData [10:01:24]Write to MH i2c: 01 00 00 A6 3C E2 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: 01 07 00 A6 3C 00 00 00 00 00 EA 0C DF [10:01:24]RasterBufferAndPrint [10:01:24]line [10:01:24]line [10:01:24]line [10:01:24]line [10:01:24]line [10:01:24]written 0, free lines is 3312 [10:01:24]MH_Cut [10:01:24]Write to MH i2c: D1 01 00 AD 3C 01 BB [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: D1 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: D1 01 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: D1 01 00 AD 3C 00 BA [10:01:24]Write to MH i2c: 01 00 00 AE 3C EA [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:25]OFD Sender: No OFD packet to send [10:01:25]*** Cut start [10:01:25]*** Partial cut [10:01:25]*** CUTSNS_PIN = 1 [10:01:25]*** CUTSNS_PIN = 0 [10:01:25]*** Brake cut motor [10:01:26]Read from MH i2c: 01 [10:01:26]MH_I2C_Read... [10:01:26]*** Stop cut motor [10:01:26]*** Cut end [10:01:26]Read from MH i2c: 01 07 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 AE 3C 00 00 00 00 00 FF 0F FF [10:01:26]process_action close_receipt done [10:01:26]requested_data is exist [10:01:26]produce_requested_data [10:01:26]requested_item fm.sn is exist - process it [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 11 00 00 [10:01:26]Write to MH i2c: E2 08 00 AF 3C 80 11 00 00 00 00 00 00 65 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 17 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 17 00 AF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B4 [10:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:01:26]wFMCommunicate OK [10:01:26]requested_item fd.num is exist - process it [10:01:26]SAM_PROTO_GetFieldsCounters [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 13 00 00 [10:01:26]Write to MH i2c: E2 08 00 B0 3C 80 13 00 00 00 00 00 00 68 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 62 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 62 00 B0 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3E 3D 00 00 0E 04 04 00 AC 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 FB [10:01:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3E 3D 00 00 0E 04 04 00 AC 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 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_GetFieldsCounters done [10:01:26]requested_item shift.num is exist - process it [10:01:26]requested_item shift.opened is exist - process it [10:01:26]req_shift_opened [10:01:26]FM_GetShiftState [10:01:26]SAM_PROTO_GetShiftState [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 13 01 00 [10:01:26]Write to MH i2c: E2 08 00 B1 3C 80 13 01 00 00 00 00 00 6A [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 B1 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BF [10:01:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_GetShiftState done [10:01:26]FM_GetShiftState done [10:01:26]req_shift_opened done [10:01:26]requested_item shift.open_date is exist - process it [10:01:26]req_shift_open_date [10:01:26]req_shift_open_date done [10:01:26]produce_requested_data done [10:01:26]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15678,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:01:26]process_action_free close_receipt [10:01:26]json_value_free [10:01:26]json_value_free done [10:01:26]process_json_proto returns [10:01:26]Send response to host [10:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15678,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:01:26]free response buf [10:01:26]execute_script done [10:01:26]execute_script returns [10:01:26]free content buf [10:01:26]Sock 8.Close socket [10:01:26]Sock 8.Thread stoped [10:01:27]accept exits with 9 [10:01:27]New connection [10:01:27]New thread 3066588516 created [10:01:27]Thread 3066731876 joined [10:01:27]Waiting for new connection... [10:01:27] Sock 9.Parse request [10:01:27]Sock 9.Check first char [10:01:27]Sock 9.First char is OK [10:01:27]request: POST /json_proto HTTP/1.0 [10:01:27]Method: POST [10:01:27]URL: /json_proto [10:01:27]Method is POST - this is cgi request [10:01:27]url: /json_proto [10:01:27]query_string will be loaded in cgi processing [10:01:27]execute_cgi json_proto POST (null) [10:01:27]execute_cgi path=json_proto method=POST [10:01:27]POST find Content-Length [10:01:27]Host: 172.17.54.195:8080 [10:01:27]Content-Length: 666 [10:01:27]Content-Type: application/json [10:01:27] [10:01:27]POST finish read [10:01:27]Found Content-Length = 666 [10:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [10:01:27]execute_script... [10:01: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)16228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [10:01:27]POST & json_proto [10:01:27]process_json_proto [10:01:27]json parsed OK: [10:01:27]protocol is kg_v1.0 [10:01:27]action value=close_receipt [10:01:27]process_action close_receipt [10:01:27]cmd_close_receipt [10:01:27]MH_GetDate [10:01:27]Write to MH i2c: F0 00 00 B2 3C DD [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: F0 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: F0 09 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: F0 09 00 B2 3C 00 82 B2 20 67 8D 90 A3 66 C7 [10:01:27]GetLastDocTimeStamp 1730196092 [10:01:27]current date 1730196098 [10:01:27]FM_GetShiftState [10:01:27]SAM_PROTO_GetShiftState [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 13 01 00 [10:01:27]Write to MH i2c: E2 08 00 B3 3C 80 13 01 00 00 00 00 00 6C [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 B3 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 C1 [10:01:27]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_GetShiftState done [10:01:27]FM_GetShiftState done [10:01:27]opened in 1730161559 [10:01:27]opened+sec_in_day 1730247959 [10:01:27]quantity*price = 20041 [10:01:27]sum+1 = 20042 [10:01:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 25 29.10.2024 10:01 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15679 ФПД: 99858876208120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100138&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15679&fm=99858876208120&tin=02508201610067®Number=0000000000161798&sum=20000 [10:01:29]StoreToDocumentArchive [10:01:29]shift 172 fd 15679 [10:01:29]save to /storage/0172/doc_00015679 [10:01:29]save last doc name /storage/0172/doc_00015679 to /storage/kkm_last_doc_name [10:01:29]save OK [10:01:29]Clear old archive folders... [10:01:29]ProcessDocumentItem done err = 0, tmpTLVsize=249 [10:01:29]tlvbuf is 00440CF0 [10:01:29]SAM_PROTO_ClearQueue [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 09 00 00 [10:01:29]Write to MH i2c: E2 08 00 C0 3C 80 09 00 00 00 00 00 00 6E [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 C0 3C 00 90 00 70 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_ClearQueue done [10:01:29]KKMCreateOFDPacket [10:01:29]OFDProtocolAddRootSTLVToBuf [10:01:29]FM_MakeSignedData [10:01:29]FM_MakeSignedData [10:01:29]SAM_PROTO_SignData [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 01 02 [10:01:29]Write to MH i2c: E2 08 00 C1 3C 80 0D 01 02 00 00 00 00 76 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 C1 3C 00 90 00 71 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=255 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 19 00 00 00 F4 03 04 00 82 B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3F 3D 00 00 35 04 06 00 5A D2 34 [10:01:29]Write to MH i2c: E2 02 01 C2 3C 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 19 00 00 00 F4 03 04 00 82 B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3F 3D 00 00 35 04 06 00 5A D2 34 00 00 9F [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 C2 3C 00 90 00 72 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=8 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 02 02 03 D8 13 F8 [10:01:29]Write to MH i2c: E2 0B 00 C3 3C 80 0D 02 02 03 00 D8 13 F8 00 00 62 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 03 00 C3 3C 00 90 00 73 [10:01:29]RAPDU: 90 00 [10:01:29]wFMCommunicate OK [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 0D 03 02 [10:01:29]Write to MH i2c: E2 08 00 C4 3C 80 0D 03 02 00 00 00 00 7B [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0B 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 0B 00 C4 3C 00 09 50 8A 91 E7 7B 85 42 90 00 19 [10:01:29]RAPDU: 09 50 8A 91 E7 7B 85 42 90 00 [10:01:29]wFMCommunicate OK [10:01:29]SAM_PROTO_SignData done [10:01:29]FM_MakeSignedData done [10:01:29]CreateOFDProtocolMessage [10:01:29]wFMCommunicate request_size=4 [10:01:29]MH_SAM_APDU [10:01:29]CAPDU: 80 11 00 00 [10:01:29]Write to MH i2c: E2 08 00 C5 3C 80 11 00 00 00 00 00 00 7B [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:29]Read from MH i2c: E2 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: E2 17 00 C5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CA [10:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:01:29]wFMCommunicate OK [10:01:29]CreateOFDProtocolMessage done [10:01:29]OFDSenderStorePacket 15679 [10:01:29]StoreOFDPacket docnum=15679 [10:01:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FA 4B 05 01 36 E5 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 19 00 00 00 F4 03 04 00 82 B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3F 3D 00 00 35 04 06 00 5A D2 34 D8 13 F8 09 50 8A 91 E7 7B 85 42 [10:01:29]CheckFolder [10:01:29]dirname=/storage/ofd_packets [10:01:29]CheckFolder done [10:01:29]ProducePacketName [10:01:29]name=ofd_packets/00015679 [10:01:29]NVStorageSaveData ofd_packets/00015679 [10:01:29]File name is /storage/ofd_packets/00015679 [10:01:29]Write 299 bytes [10:01:29]NVStorageSaveData done [10:01:29]OFDSenderStorePacket done [10:01:29]KKMCreateOFDPacket done [10:01:29]NVStorageSaveData kkm_last_timestamp [10:01:29]File name is /storage/kkm_last_timestamp [10:01:29]Write 4 bytes [10:01:29]NVStorageSaveData done [10:01:29]ExternCall_PrintAddStr [10:01:29]wPrintStart [10:01:29]Write to MH i2c: 01 00 00 C6 3C 02 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 C6 3C 00 00 00 00 00 FF 0F 17 [10:01:29]RasterBufferAndPrint [10:01:29]line Счет N : (1)16228 [10:01:29]line ИНН: 02508201610067 [10:01:29]line Контрольно-Кассовый Чек [10:01:29]line ПРОДАЖА [10:01:29]line ТРК (МРК, ГНК) : 12 [10:01:29]line Товар: 50.50.0 [10:01:29]line SUPER 92-К-5 [10:01:29]line 2.930 * 68.40 [10:01:29]line = 200.41 [10:01:29]line НДС 12% НСП 1% [10:01:29]line > о реализуемом товаре [10:01:29]line ОКРУГЛЕНИЕ: -0.41 [10:01:29]line ИТОГО: 200.00 [10:01:29]line Внесено: 200.00 [10:01:29]line СДАЧА: 0.00 [10:01:29]line НСП 1% : 1.77 [10:01:29]line НДС 12% : 21.28 [10:01:29]line Наличными: 200.00 [10:01:29]line Безнал.: 0.00 [10:01:29]line Место: АЗС № 178 "Партнер Нефть" [10:01:29]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:01:29]line СНО: Общий режим [10:01:29]line Чек 25 29.10.2024 10:01 [10:01:29]line Смена: 172 ФФД: 1.0 [10:01:29]line ЗНМ: 0300000014 [10:01:29]line РНМ: 0000000000161798 [10:01:29]line Версия ККМ: v1.0 [10:01:29]line ФМ: 0000000000963325 [10:01:29]line ФД: 15679 [10:01:29]line ФПД: 99858876208120 [10:01:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T100138&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15679&fm=99858876208120&tin=02508201610067®Number=0000000000161798&sum=20000 [10:01:29]written 0, free lines is 4095 [10:01:29]OFD Sender: Processing packet 15679 [packets to send 4, broken 3] [10:01:29]ProducePacketName [10:01:29]name=ofd_packets/00015679 [10:01:29]OFD Sender: To server: pG, [10:01:29]CommunicateWithHost lk.salyk.kg:30040 [10:01:29]ConnectInit lk.salyk.kg [10:01:29]Connected sock=10 [10:01:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FA 4B 05 01 36 E5 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 19 00 00 00 F4 03 04 00 82 B2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 3F 3D 00 00 35 04 06 00 5A D2 34 D8 13 F8 09 50 8A 91 E7 7B 85 42 [10:01:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 E1 E6 47 00 F3 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 30 39 36 33 33 32 35 10 04 04 00 3F 3D 00 00 F4 03 04 00 6F 5D 20 67 B6 04 01 00 00 70 1D 3D CD DA 03 FB EB [10:01:30]CommunicateWithHost err = 0 [10:01:30]CheckOFDResponse [10:01:30]1017 (14) - 77093643461234 [10:01:30]1041 (16) - 0000000000963325 [10:01:30]1040 (4) - 15679 [10:01:30]1012 (4) - 29.10.2024 03:58 [10:01:30]1206 (1) - 0 [10:01:30]OFD Sender: Remove packet 15679 [10:01:30]ProducePacketName [10:01:30]name=ofd_packets/00015679 [10:01:30]NVStorageDeleteData [10:01:30]Write to MH i2c: 01 00 00 F1 3C 2D [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 F1 3C 00 00 00 00 00 0A 0D 4B [10:01:30]RasterBufferAndPrint [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]line [10:01:30]written 0, free lines is 3347 [10:01:30]MH_Cut [10:01:30]Write to MH i2c: D1 01 00 F8 3C 01 06 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 01 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: D1 01 00 F8 3C 00 05 [10:01:30]Write to MH i2c: 01 00 00 F9 3C 35 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]OFD Sender: No OFD packet to send [10:01:31]*** Cut start [10:01:31]*** Partial cut [10:01:31]*** CUTSNS_PIN = 1 [10:01:31]*** CUTSNS_PIN = 0 [10:01:31]*** Brake cut motor [10:01:31]Read from MH i2c: 01 [10:01:31]MH_I2C_Read... [10:01:31]*** Stop cut motor [10:01:31]*** Cut end [10:01:31]Read from MH i2c: 01 07 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: 01 07 00 F9 3C 00 00 00 00 00 FF 0F 4A [10:01:31]process_action close_receipt done [10:01:31]requested_data is exist [10:01:31]produce_requested_data [10:01:31]requested_item fm.sn is exist - process it [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 11 00 00 [10:01:31]Write to MH i2c: E2 08 00 FA 3C 80 11 00 00 00 00 00 00 B0 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 17 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 17 00 FA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 FF [10:01:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:01:31]wFMCommunicate OK [10:01:31]requested_item fd.num is exist - process it [10:01:31]SAM_PROTO_GetFieldsCounters [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 13 00 00 [10:01:31]Write to MH i2c: E2 08 00 FB 3C 80 13 00 00 00 00 00 00 B3 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 62 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 62 00 FB 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3F 3D 00 00 0E 04 04 00 AC 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 4A [10:01:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 3F 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:31]wFMCommunicate OK [10:01:31]SAM_PROTO_GetFieldsCounters done [10:01:31]requested_item shift.num is exist - process it [10:01:31]requested_item shift.opened is exist - process it [10:01:31]req_shift_opened [10:01:31]FM_GetShiftState [10:01:31]SAM_PROTO_GetShiftState [10:01:31]wFMCommunicate request_size=4 [10:01:31]MH_SAM_APDU [10:01:31]CAPDU: 80 13 01 00 [10:01:31]Write to MH i2c: E2 08 00 FC 3C 80 13 01 00 00 00 00 00 B5 [10:01:31]Write i2c OK [10:01:31]MH_I2C_Read... [10:01:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:31]Read from MH i2c: E2 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 0E 00 [10:01:31]MH_I2C_Read... [10:01:31]Read from MH i2c: E2 0E 00 FC 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 0A [10:01:31]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:01:31]wFMCommunicate OK [10:01:31]SAM_PROTO_GetShiftState done [10:01:31]FM_GetShiftState done [10:01:31]req_shift_opened done [10:01:32]requested_item shift.open_date is exist - process it [10:01:32]req_shift_open_date [10:01:32]req_shift_open_date done [10:01:32]produce_requested_data done [10:01:32]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15679,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:01:32]process_action_free close_receipt [10:01:32]json_value_free [10:01:32]json_value_free done [10:01:32]process_json_proto returns [10:01:32]Send response to host [10:01:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15679,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:01:32]free response buf [10:01:32]execute_script done [10:01:32]execute_script returns [10:01:32]free content buf [10:01:32]Sock 9.Close socket [10:01:32]Sock 9.Thread stoped [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:43]accept exits with 8 [10:15:43]New connection [10:15:43]New thread 3066731876 created [10:15:43]Thread 3066588516 joined [10:15:43]Waiting for new connection... [10:15:43] Sock 8.Parse request [10:15:43]Sock 8.Check first char [10:15:43]Sock 8.First char is OK [10:15:43]request: POST /json_proto HTTP/1.0 [10:15:43]Method: POST [10:15:43]URL: /json_proto [10:15:43]Method is POST - this is cgi request [10:15:43]url: /json_proto [10:15:43]query_string will be loaded in cgi processing [10:15:43]execute_cgi json_proto POST (null) [10:15:43]execute_cgi path=json_proto method=POST [10:15:43]POST find Content-Length [10:15:43]Host: 172.17.54.195:8080 [10:15:43]Content-Length: 983 [10:15:43]Content-Type: application/json [10:15:43] [10:15:43]POST finish read [10:15:43]Found Content-Length = 983 [10:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.490, "sum" : 1350.29, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.49 \u0441\u043E\u043C", "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:43]execute_script... [10:15: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)16229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 20.490, "sum" : 1350.29, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 20.49 \u0441\u043E\u043C", "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:43]POST & json_proto [10:15:43]process_json_proto [10:15:43]json parsed OK: [10:15:43]protocol is kg_v1.0 [10:15:43]action value=close_receipt [10:15:43]process_action close_receipt [10:15:43]cmd_close_receipt [10:15:43]MH_GetDate [10:15:43]Write to MH i2c: F0 00 00 FD 3C 28 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: F0 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: F0 09 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: F0 09 00 FD 3C 00 DA B5 20 67 8D 90 A3 66 6D [10:15:43]GetLastDocTimeStamp 1730196098 [10:15:43]current date 1730196954 [10:15:43]FM_GetShiftState [10:15:43]SAM_PROTO_GetShiftState [10:15:43]wFMCommunicate request_size=4 [10:15:43]MH_SAM_APDU [10:15:43]CAPDU: 80 13 01 00 [10:15:43]Write to MH i2c: E2 08 00 FE 3C 80 13 01 00 00 00 00 00 B7 [10:15:43]Write i2c OK [10:15:43]MH_I2C_Read... [10:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:43]Read from MH i2c: E2 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0E 00 [10:15:43]MH_I2C_Read... [10:15:43]Read from MH i2c: E2 0E 00 FE 3C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 0C [10:15:43]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:15:43]wFMCommunicate OK [10:15:43]SAM_PROTO_GetShiftState done [10:15:43]FM_GetShiftState done [10:15:43]opened in 1730161559 [10:15:43]opened+sec_in_day 1730247959 [10:15:43]quantity*price = 135029 [10:15:43]sum+1 = 135030 [10:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.39 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 26 29.10.2024 10:15 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 178 сэкономлено 20.49 сом ФМ: 0000000000963325 ФД: 15680 ФПД: 41393372250021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101554&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15680&fm=41393372250021&tin=02508201610067®Number=0000000000161798&sum=135000 [10:15:45]StoreToDocumentArchive [10:15:45]shift 172 fd 15680 [10:15:45]save to /storage/0172/doc_00015680 [10:15:45]save last doc name /storage/0172/doc_00015680 to /storage/kkm_last_doc_name [10:15:45]save OK [10:15:45]Clear old archive folders... [10:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:45]tlvbuf is 003DB7E0 [10:15:45]SAM_PROTO_ClearQueue [10:15:45]wFMCommunicate request_size=4 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 09 00 00 [10:15:45]Write to MH i2c: E2 08 00 0B 3D 80 09 00 00 00 00 00 00 BA [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 0B 3D 00 90 00 BC [10:15:45]RAPDU: 90 00 [10:15:45]wFMCommunicate OK [10:15:45]SAM_PROTO_ClearQueue done [10:15:45]KKMCreateOFDPacket [10:15:45]OFDProtocolAddRootSTLVToBuf [10:15:45]FM_MakeSignedData [10:15:45]FM_MakeSignedData [10:15:45]SAM_PROTO_SignData [10:15:45]wFMCommunicate request_size=4 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 0D 01 02 [10:15:45]Write to MH i2c: E2 08 00 0C 3D 80 0D 01 02 00 00 00 00 C2 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 0C 3D 00 90 00 BD [10:15:45]RAPDU: 90 00 [10:15:45]wFMCommunicate OK [10:15:45]wFMCommunicate request_size=255 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 DA B5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 40 3D 00 00 35 04 06 00 25 [10:15:45]Write to MH i2c: E2 02 01 0D 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 DA B5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 40 3D 00 00 35 04 06 00 25 00 00 C0 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 0D 3D 00 90 00 BE [10:15:45]RAPDU: 90 00 [10:15:45]wFMCommunicate OK [10:15:45]wFMCommunicate request_size=10 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 0D 02 02 05 A5 A5 3F BF A5 [10:15:45]Write to MH i2c: E2 0D 00 0E 3D 80 0D 02 02 05 00 A5 A5 3F BF A5 00 00 BC [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 03 00 0E 3D 00 90 00 BF [10:15:45]RAPDU: 90 00 [10:15:45]wFMCommunicate OK [10:15:45]wFMCommunicate request_size=4 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 0D 03 02 [10:15:45]Write to MH i2c: E2 08 00 0F 3D 80 0D 03 02 00 00 00 00 C7 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 0B 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 0B 00 0F 3D 00 53 31 8D BC E4 3F 82 8B 90 00 C5 [10:15:45]RAPDU: 53 31 8D BC E4 3F 82 8B 90 00 [10:15:45]wFMCommunicate OK [10:15:45]SAM_PROTO_SignData done [10:15:45]FM_MakeSignedData done [10:15:45]CreateOFDProtocolMessage [10:15:45]wFMCommunicate request_size=4 [10:15:45]MH_SAM_APDU [10:15:45]CAPDU: 80 11 00 00 [10:15:45]Write to MH i2c: E2 08 00 10 3D 80 11 00 00 00 00 00 00 C7 [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:45]Read from MH i2c: E2 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 17 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: E2 17 00 10 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 16 [10:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:15:45]wFMCommunicate OK [10:15:45]CreateOFDProtocolMessage done [10:15:45]OFDSenderStorePacket 15680 [10:15:45]StoreOFDPacket docnum=15680 [10:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 F6 45 07 01 84 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 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 DA B5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 40 3D 00 00 35 04 06 00 25 A5 A5 3F BF A5 53 31 8D BC E4 3F 82 8B [10:15:45]CheckFolder [10:15:45]dirname=/storage/ofd_packets [10:15:45]CheckFolder done [10:15:45]ProducePacketName [10:15:45]name=ofd_packets/00015680 [10:15:45]NVStorageSaveData ofd_packets/00015680 [10:15:45]File name is /storage/ofd_packets/00015680 [10:15:45]Write 301 bytes [10:15:45]NVStorageSaveData done [10:15:45]OFDSenderStorePacket done [10:15:45]KKMCreateOFDPacket done [10:15:45]NVStorageSaveData kkm_last_timestamp [10:15:45]File name is /storage/kkm_last_timestamp [10:15:45]Write 4 bytes [10:15:45]NVStorageSaveData done [10:15:45]ExternCall_PrintAddStr [10:15:45]wPrintStart [10:15:45]Write to MH i2c: 01 00 00 11 3D 4E [10:15:45]Write i2c OK [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 07 00 [10:15:45]MH_I2C_Read... [10:15:45]Read from MH i2c: 01 07 00 11 3D 00 00 00 00 00 FF 0F 63 [10:15:45]RasterBufferAndPrint [10:15:45]line Счет N : (1)16229 [10:15:45]line ИНН: 02508201610067 [10:15:45]line Контрольно-Кассовый Чек [10:15:45]line ПРОДАЖА [10:15:45]line ТРК (МРК, ГНК) : 21 [10:15:45]line Товар: 2710124130 [10:15:45]line Аи-92-К-5 [10:15:45]line 20.490 * 65.90 [10:15:45]line = 1350.29 [10:15:45]line НДС 12% НСП 1% [10:15:45]line > о реализуемом товаре [10:15:45]line ОКРУГЛЕНИЕ: -0.29 [10:15:45]line ИТОГО: 1350.00 [10:15:45]line Внесено: 1350.00 [10:15:45]line СДАЧА: 0.00 [10:15:45]line НСП 1% : 11.95 [10:15:45]line НДС 12% : 143.39 [10:15:45]line Наличными: 1350.00 [10:15:45]line Безнал.: 0.00 [10:15:45]line Место: АЗС № 178 "Партнер Нефть" [10:15:45]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:15:45]line СНО: Общий режим [10:15:45]line Чек 26 29.10.2024 10:15 [10:15:45]line Смена: 172 ФФД: 1.0 [10:15:45]line ЗНМ: 0300000014 [10:15:45]line РНМ: 0000000000161798 [10:15:45]line Версия ККМ: v1.0 [10:15:45]line [10:15:45]line Дисконтная программа [10:15:45]line АИ-92 [10:15:45]line номер 178 [10:15:45]line сэкономлено 20.49 сом [10:15:45]line ФМ: 0000000000963325 [10:15:45]line ФД: 15680 [10:15:45]line ФПД: 41393372250021 [10:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101554&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15680&fm=41393372250021&tin=02508201610067®Number=0000000000161798&sum=135000 [10:15:45]OFD Sender: Processing packet 15680 [packets to send 4, broken 3] [10:15:45]ProducePacketName [10:15:45]name=ofd_packets/00015680 [10:15:45]OFD Sender: To server: pG, [10:15:45]CommunicateWithHost lk.salyk.kg:30040 [10:15:45]ConnectInit lk.salyk.kg [10:15:45]written 0, free lines is 4095 [10:15:46]Connected sock=10 [10:15:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 F6 45 07 01 84 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 35 FF 03 08 00 03 0A 50 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 75 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 38 00 00 00 00 07 04 06 00 58 0F 02 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 DA B5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 40 3D 00 00 35 04 06 00 25 A5 A5 3F BF A5 53 31 8D BC E4 3F 82 8B [10:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C2 E2 47 00 D4 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 40 3D 00 00 F4 03 04 00 C7 60 20 67 B6 04 01 00 00 59 C5 F9 AF 76 05 55 96 [10:15:46]CommunicateWithHost err = 0 [10:15:46]CheckOFDResponse [10:15:46]1017 (14) - 77093643461234 [10:15:46]1041 (16) - 0000000000963325 [10:15:46]1040 (4) - 15680 [10:15:46]1012 (4) - 29.10.2024 04:12 [10:15:46]1206 (1) - 0 [10:15:46]OFD Sender: Remove packet 15680 [10:15:46]ProducePacketName [10:15:46]name=ofd_packets/00015680 [10:15:46]NVStorageDeleteData [10:15:46]Write to MH i2c: 01 00 00 41 3D 7E [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 07 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: 01 07 00 41 3D 00 00 00 00 00 9C 0C 2D [10:15:46]RasterBufferAndPrint [10:15:46]line [10:15:46]line [10:15:46]line [10:15:46]line [10:15:46]line [10:15:46]written 0, free lines is 3238 [10:15:46]MH_Cut [10:15:46]Write to MH i2c: D1 01 00 48 3D 01 57 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: D1 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: D1 01 00 [10:15:46]MH_I2C_Read... [10:15:46]Read from MH i2c: D1 01 00 48 3D 00 56 [10:15:46]Write to MH i2c: 01 00 00 49 3D 86 [10:15:46]Write i2c OK [10:15:46]MH_I2C_Read... [10:15:46]OFD Sender: No OFD packet to send [10:15:47]*** Cut start [10:15:47]*** Partial cut [10:15:47]*** CUTSNS_PIN = 1 [10:15:47]*** CUTSNS_PIN = 0 [10:15:47]*** Brake cut motor [10:15:47]Read from MH i2c: 01 [10:15:47]MH_I2C_Read... [10:15:47]*** Stop cut motor [10:15:47]*** Cut end [10:15:47]Read from MH i2c: 01 07 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: 01 07 00 49 3D 00 00 00 00 00 FF 0F 9B [10:15:47]process_action close_receipt done [10:15:47]requested_data is exist [10:15:47]produce_requested_data [10:15:47]requested_item fm.sn is exist - process it [10:15:47]wFMCommunicate request_size=4 [10:15:47]MH_SAM_APDU [10:15:47]CAPDU: 80 11 00 00 [10:15:47]Write to MH i2c: E2 08 00 4A 3D 80 11 00 00 00 00 00 00 01 [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:47]Read from MH i2c: E2 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: E2 17 00 [10:15:47]MH_I2C_Read... [10:15:47]Read from MH i2c: E2 17 00 4A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 50 [10:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:15:47]wFMCommunicate OK [10:15:47]requested_item fd.num is exist - process it [10:15:47]SAM_PROTO_GetFieldsCounters [10:15:47]wFMCommunicate request_size=4 [10:15:47]MH_SAM_APDU [10:15:47]CAPDU: 80 13 00 00 [10:15:47]Write to MH i2c: E2 08 00 4B 3D 80 13 00 00 00 00 00 00 04 [10:15:47]Write i2c OK [10:15:47]MH_I2C_Read... [10:15:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:48]Read from MH i2c: E2 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 62 00 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 62 00 4B 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 40 3D 00 00 0E 04 04 00 AC 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 9F [10:15:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 40 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:48]wFMCommunicate OK [10:15:48]SAM_PROTO_GetFieldsCounters done [10:15:48]requested_item shift.num is exist - process it [10:15:48]requested_item shift.opened is exist - process it [10:15:48]req_shift_opened [10:15:48]FM_GetShiftState [10:15:48]SAM_PROTO_GetShiftState [10:15:48]wFMCommunicate request_size=4 [10:15:48]MH_SAM_APDU [10:15:48]CAPDU: 80 13 01 00 [10:15:48]Write to MH i2c: E2 08 00 4C 3D 80 13 01 00 00 00 00 00 06 [10:15:48]Write i2c OK [10:15:48]MH_I2C_Read... [10:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:48]Read from MH i2c: E2 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 0E 00 [10:15:48]MH_I2C_Read... [10:15:48]Read from MH i2c: E2 0E 00 4C 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 5B [10:15:48]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:15:48]wFMCommunicate OK [10:15:48]SAM_PROTO_GetShiftState done [10:15:48]FM_GetShiftState done [10:15:48]req_shift_opened done [10:15:48]requested_item shift.open_date is exist - process it [10:15:48]req_shift_open_date [10:15:48]req_shift_open_date done [10:15:48]produce_requested_data done [10:15:48]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15680,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:15:48]process_action_free close_receipt [10:15:48]json_value_free [10:15:48]json_value_free done [10:15:48]process_json_proto returns [10:15:48]Send response to host [10:15:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15680,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:15:48]free response buf [10:15:48]execute_script done [10:15:48]execute_script returns [10:15:48]free content buf [10:15:48]Sock 8.Close socket [10:15:48]Sock 8.Thread stoped [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:11]accept exits with 9 [10:18:11]New connection [10:18:11]New thread 3066588516 created [10:18:11]Thread 3066731876 joined [10:18:11]Waiting for new connection... [10:18:11] Sock 9.Parse request [10:18:11]Sock 9.Check first char [10:18:11]Sock 9.First char is OK [10:18:11]request: POST /json_proto HTTP/1.0 [10:18:11]Method: POST [10:18:11]URL: /json_proto [10:18:11]Method is POST - this is cgi request [10:18:11]url: /json_proto [10:18:11]query_string will be loaded in cgi processing [10:18:11]execute_cgi json_proto POST (null) [10:18:11]execute_cgi path=json_proto method=POST [10:18:11]POST find Content-Length [10:18:11]Host: 172.17.54.195:8080 [10:18:11]Content-Length: 676 [10:18:11]Content-Type: application/json [10:18:11] [10:18:11]POST finish read [10:18:11]Found Content-Length = 676 [10:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:18:11]execute_script... [10:18: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)16230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:18:11]POST & json_proto [10:18:11]process_json_proto [10:18:11]json parsed OK: [10:18:11]protocol is kg_v1.0 [10:18:11]action value=close_receipt [10:18:11]process_action close_receipt [10:18:11]cmd_close_receipt [10:18:11]MH_GetDate [10:18:11]Write to MH i2c: F0 00 00 4D 3D 79 [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: F0 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: F0 09 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: F0 09 00 4D 3D 00 6E B6 20 67 8D 90 A3 66 53 [10:18:11]GetLastDocTimeStamp 1730196954 [10:18:11]current date 1730197102 [10:18:11]FM_GetShiftState [10:18:11]SAM_PROTO_GetShiftState [10:18:11]wFMCommunicate request_size=4 [10:18:11]MH_SAM_APDU [10:18:11]CAPDU: 80 13 01 00 [10:18:11]Write to MH i2c: E2 08 00 4E 3D 80 13 01 00 00 00 00 00 08 [10:18:11]Write i2c OK [10:18:11]MH_I2C_Read... [10:18:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:11]Read from MH i2c: E2 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 0E 00 [10:18:11]MH_I2C_Read... [10:18:11]Read from MH i2c: E2 0E 00 4E 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 5D [10:18:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:18:11]wFMCommunicate OK [10:18:11]SAM_PROTO_GetShiftState done [10:18:11]FM_GetShiftState done [10:18:11]opened in 1730161559 [10:18:11]opened+sec_in_day 1730247959 [10:18:11]quantity*price = 30038 [10:18:11]sum+1 = 30039 [10:18:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 27 29.10.2024 10:18 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15681 ФПД: 5854838274917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101822&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15681&fm=5854838274917&tin=02508201610067®Number=0000000000161798&sum=30000 [10:18:13]StoreToDocumentArchive [10:18:13]shift 172 fd 15681 [10:18:13]save to /storage/0172/doc_00015681 [10:18:13]save last doc name /storage/0172/doc_00015681 to /storage/kkm_last_doc_name [10:18:13]save OK [10:18:13]Clear old archive folders... [10:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:13]tlvbuf is 0031F5C0 [10:18:13]SAM_PROTO_ClearQueue [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 09 00 00 [10:18:13]Write to MH i2c: E2 08 00 5B 3D 80 09 00 00 00 00 00 00 0A [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 5B 3D 00 90 00 0C [10:18:13]RAPDU: 90 00 [10:18:13]wFMCommunicate OK [10:18:13]SAM_PROTO_ClearQueue done [10:18:13]KKMCreateOFDPacket [10:18:13]OFDProtocolAddRootSTLVToBuf [10:18:13]FM_MakeSignedData [10:18:13]FM_MakeSignedData [10:18:13]SAM_PROTO_SignData [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 0D 01 02 [10:18:13]Write to MH i2c: E2 08 00 5C 3D 80 0D 01 02 00 00 00 00 12 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 5C 3D 00 90 00 0D [10:18:13]RAPDU: 90 00 [10:18:13]wFMCommunicate OK [10:18:13]wFMCommunicate request_size=255 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 6E B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 41 3D 00 00 35 04 06 00 05 [10:18:13]Write to MH i2c: E2 02 01 5D 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 6E B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 41 3D 00 00 35 04 06 00 05 00 00 8D [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 5D 3D 00 90 00 0E [10:18:13]RAPDU: 90 00 [10:18:13]wFMCommunicate OK [10:18:13]wFMCommunicate request_size=10 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 0D 02 02 05 53 2F 8E 3B 65 [10:18:13]Write to MH i2c: E2 0D 00 5E 3D 80 0D 02 02 05 00 53 2F 8E 3B 65 00 00 CF [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 03 00 5E 3D 00 90 00 0F [10:18:13]RAPDU: 90 00 [10:18:13]wFMCommunicate OK [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 0D 03 02 [10:18:13]Write to MH i2c: E2 08 00 5F 3D 80 0D 03 02 00 00 00 00 17 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0B 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 0B 00 5F 3D 00 71 72 2C B1 0C 95 F7 42 90 00 B2 [10:18:13]RAPDU: 71 72 2C B1 0C 95 F7 42 90 00 [10:18:13]wFMCommunicate OK [10:18:13]SAM_PROTO_SignData done [10:18:13]FM_MakeSignedData done [10:18:13]CreateOFDProtocolMessage [10:18:13]wFMCommunicate request_size=4 [10:18:13]MH_SAM_APDU [10:18:13]CAPDU: 80 11 00 00 [10:18:13]Write to MH i2c: E2 08 00 60 3D 80 11 00 00 00 00 00 00 17 [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:13]Read from MH i2c: E2 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 17 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: E2 17 00 60 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 66 [10:18:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:18:13]wFMCommunicate OK [10:18:13]CreateOFDProtocolMessage done [10:18:13]OFDSenderStorePacket 15681 [10:18:13]StoreOFDPacket docnum=15681 [10:18:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 D4 F1 07 01 30 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 6E B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 41 3D 00 00 35 04 06 00 05 53 2F 8E 3B 65 71 72 2C B1 0C 95 F7 42 [10:18:13]CheckFolder [10:18:13]dirname=/storage/ofd_packets [10:18:13]CheckFolder done [10:18:13]ProducePacketName [10:18:13]name=ofd_packets/00015681 [10:18:13]NVStorageSaveData ofd_packets/00015681 [10:18:13]File name is /storage/ofd_packets/00015681 [10:18:13]Write 301 bytes [10:18:13]NVStorageSaveData done [10:18:13]OFDSenderStorePacket done [10:18:13]KKMCreateOFDPacket done [10:18:13]NVStorageSaveData kkm_last_timestamp [10:18:13]File name is /storage/kkm_last_timestamp [10:18:13]Write 4 bytes [10:18:13]NVStorageSaveData done [10:18:13]ExternCall_PrintAddStr [10:18:13]wPrintStart [10:18:13]Write to MH i2c: 01 00 00 61 3D 9E [10:18:13]Write i2c OK [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: 01 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: 01 07 00 [10:18:13]MH_I2C_Read... [10:18:13]Read from MH i2c: 01 07 00 61 3D 00 00 00 00 00 FF 0F B3 [10:18:13]RasterBufferAndPrint [10:18:13]line Счет N : (1)16230 [10:18:13]line ИНН: 02508201610067 [10:18:13]line Контрольно-Кассовый Чек [10:18:13]line ПРОДАЖА [10:18:13]line ТРК (МРК, ГНК) : 21 [10:18:13]line Товар: 2710124130 [10:18:13]line Аи-92-К-5 [10:18:13]line 4.490 * 66.90 [10:18:13]line = 300.38 [10:18:13]line НДС 12% НСП 1% [10:18:13]line > о реализуемом товаре [10:18:13]line ОКРУГЛЕНИЕ: -0.38 [10:18:13]line ИТОГО: 300.00 [10:18:13]line Внесено: 300.00 [10:18:13]line СДАЧА: 0.00 [10:18:13]line НСП 1% : 2.66 [10:18:13]line НДС 12% : 31.90 [10:18:13]line Наличными: 300.00 [10:18:13]line Безнал.: 0.00 [10:18:13]line Место: АЗС № 178 "Партнер Нефть" [10:18:13]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:18:13]line СНО: Общий режим [10:18:13]line Чек 27 29.10.2024 10:18 [10:18:13]line Смена: 172 ФФД: 1.0 [10:18:13]line ЗНМ: 0300000014 [10:18:13]line РНМ: 0000000000161798 [10:18:13]line Версия ККМ: v1.0 [10:18:13]line ФМ: 0000000000963325 [10:18:13]line ФД: 15681 [10:18:13]line ФПД: 5854838274917 [10:18:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101822&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15681&fm=5854838274917&tin=02508201610067®Number=0000000000161798&sum=30000 [10:18:13]OFD Sender: Processing packet 15681 [packets to send 4, broken 3] [10:18:13]ProducePacketName [10:18:13]name=ofd_packets/00015681 [10:18:13]OFD Sender: To server: pG, [10:18:13]CommunicateWithHost lk.salyk.kg:30040 [10:18:13]ConnectInit lk.salyk.kg [10:18:13]written 0, free lines is 4095 [10:18:14]Connected sock=10 [10:18:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 D4 F1 07 01 30 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1B 00 00 00 F4 03 04 00 6E B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 41 3D 00 00 35 04 06 00 05 53 2F 8E 3B 65 71 72 2C B1 0C 95 F7 42 [10:18:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DE 5B 47 00 BF 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 41 3D 00 00 F4 03 04 00 5B 61 20 67 B6 04 01 00 00 5F 23 B9 02 42 35 71 A3 [10:18:14]CommunicateWithHost err = 0 [10:18:14]CheckOFDResponse [10:18:14]1017 (14) - 77093643461234 [10:18:14]1041 (16) - 0000000000963325 [10:18:14]1040 (4) - 15681 [10:18:14]1012 (4) - 29.10.2024 04:15 [10:18:14]1206 (1) - 0 [10:18:14]OFD Sender: Remove packet 15681 [10:18:14]ProducePacketName [10:18:14]name=ofd_packets/00015681 [10:18:14]NVStorageDeleteData [10:18:14]Write to MH i2c: 01 00 00 8C 3D C9 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: 01 07 00 8C 3D 00 00 00 00 00 EC 0C C8 [10:18:14]RasterBufferAndPrint [10:18:14]line [10:18:14]line [10:18:14]line [10:18:14]line [10:18:14]line [10:18:14]written 0, free lines is 3314 [10:18:14]MH_Cut [10:18:14]Write to MH i2c: D1 01 00 93 3D 01 A2 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: D1 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: D1 01 00 [10:18:14]MH_I2C_Read... [10:18:14]Read from MH i2c: D1 01 00 93 3D 00 A1 [10:18:14]Write to MH i2c: 01 00 00 94 3D D1 [10:18:14]Write i2c OK [10:18:14]MH_I2C_Read... [10:18:14]OFD Sender: No OFD packet to send [10:18:15]*** Cut start [10:18:15]*** Partial cut [10:18:15]*** CUTSNS_PIN = 1 [10:18:15]*** CUTSNS_PIN = 0 [10:18:15]*** Brake cut motor [10:18:15]Read from MH i2c: 01 [10:18:15]MH_I2C_Read... [10:18:15]*** Stop cut motor [10:18:15]*** Cut end [10:18:15]Read from MH i2c: 01 07 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: 01 07 00 94 3D 00 00 00 00 00 FF 0F E6 [10:18:15]process_action close_receipt done [10:18:15]requested_data is exist [10:18:15]produce_requested_data [10:18:15]requested_item fm.sn is exist - process it [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 11 00 00 [10:18:15]Write to MH i2c: E2 08 00 95 3D 80 11 00 00 00 00 00 00 4C [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 17 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 17 00 95 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9B [10:18:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:18:15]wFMCommunicate OK [10:18:15]requested_item fd.num is exist - process it [10:18:15]SAM_PROTO_GetFieldsCounters [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 00 00 [10:18:15]Write to MH i2c: E2 08 00 96 3D 80 13 00 00 00 00 00 00 4F [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:15]Read from MH i2c: E2 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 62 00 [10:18:15]MH_I2C_Read... [10:18:15]Read from MH i2c: E2 62 00 96 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 41 3D 00 00 0E 04 04 00 AC 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 EE [10:18:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 41 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:15]wFMCommunicate OK [10:18:15]SAM_PROTO_GetFieldsCounters done [10:18:15]requested_item shift.num is exist - process it [10:18:15]requested_item shift.opened is exist - process it [10:18:15]req_shift_opened [10:18:15]FM_GetShiftState [10:18:15]SAM_PROTO_GetShiftState [10:18:15]wFMCommunicate request_size=4 [10:18:15]MH_SAM_APDU [10:18:15]CAPDU: 80 13 01 00 [10:18:15]Write to MH i2c: E2 08 00 97 3D 80 13 01 00 00 00 00 00 51 [10:18:15]Write i2c OK [10:18:15]MH_I2C_Read... [10:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:16]Read from MH i2c: E2 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0E 00 [10:18:16]MH_I2C_Read... [10:18:16]Read from MH i2c: E2 0E 00 97 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A6 [10:18:16]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:18:16]wFMCommunicate OK [10:18:16]SAM_PROTO_GetShiftState done [10:18:16]FM_GetShiftState done [10:18:16]req_shift_opened done [10:18:16]requested_item shift.open_date is exist - process it [10:18:16]req_shift_open_date [10:18:16]req_shift_open_date done [10:18:16]produce_requested_data done [10:18:16]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15681,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:18:16]process_action_free close_receipt [10:18:16]json_value_free [10:18:16]json_value_free done [10:18:16]process_json_proto returns [10:18:16]Send response to host [10:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15681,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:18:16]free response buf [10:18:16]execute_script done [10:18:16]execute_script returns [10:18:16]free content buf [10:18:16]Sock 9.Close socket [10:18:16]Sock 9.Thread stoped [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:05]accept exits with 8 [10:19:05]New connection [10:19:05]New thread 3066731876 created [10:19:05]Thread 3066588516 joined [10:19:05]Waiting for new connection... [10:19:05] Sock 8.Parse request [10:19:05]Sock 8.Check first char [10:19:05]Sock 8.First char is OK [10:19:05]request: POST /json_proto HTTP/1.0 [10:19:05]Method: POST [10:19:05]URL: /json_proto [10:19:05]Method is POST - this is cgi request [10:19:05]url: /json_proto [10:19:05]query_string will be loaded in cgi processing [10:19:05]execute_cgi json_proto POST (null) [10:19:05]execute_cgi path=json_proto method=POST [10:19:05]POST find Content-Length [10:19:05]Host: 172.17.54.195:8080 [10:19:05]Content-Length: 681 [10:19:05]Content-Type: application/json [10:19:05] [10:19:05]POST finish read [10:19:05]Found Content-Length = 681 [10:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [10:19:05]execute_script... [10:19:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [10:19:05]POST & json_proto [10:19:05]process_json_proto [10:19:05]json parsed OK: [10:19:05]protocol is kg_v1.0 [10:19:05]action value=close_receipt [10:19:05]process_action close_receipt [10:19:05]cmd_close_receipt [10:19:05]MH_GetDate [10:19:05]Write to MH i2c: F0 00 00 98 3D C4 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 98 3D 00 A3 B6 20 67 8D 90 A3 66 D3 [10:19:05]GetLastDocTimeStamp 1730197102 [10:19:05]current date 1730197155 [10:19:05]FM_GetShiftState [10:19:05]SAM_PROTO_GetShiftState [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 13 01 00 [10:19:05]Write to MH i2c: E2 08 00 99 3D 80 13 01 00 00 00 00 00 53 [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 99 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A8 [10:19:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_GetShiftState done [10:19:05]FM_GetShiftState done [10:19:05]opened in 1730161559 [10:19:05]opened+sec_in_day 1730247959 [10:19:05]quantity*price = 100021 [10:19:05]sum+1 = 100023 [10:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 28 29.10.2024 10:19 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15682 ФПД: 49169173729941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101915&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15682&fm=49169173729941&tin=02508201610067®Number=0000000000161798&sum=100000 [10:19:06]StoreToDocumentArchive [10:19:06]shift 172 fd 15682 [10:19:06]save to /storage/0172/doc_00015682 [10:19:06]save last doc name /storage/0172/doc_00015682 to /storage/kkm_last_doc_name [10:19:06]save OK [10:19:06]Clear old archive folders... [10:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:06]tlvbuf is 0031F390 [10:19:06]SAM_PROTO_ClearQueue [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 09 00 00 [10:19:06]Write to MH i2c: E2 08 00 A6 3D 80 09 00 00 00 00 00 00 55 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 A6 3D 00 90 00 57 [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]SAM_PROTO_ClearQueue done [10:19:06]KKMCreateOFDPacket [10:19:06]OFDProtocolAddRootSTLVToBuf [10:19:06]FM_MakeSignedData [10:19:06]FM_MakeSignedData [10:19:06]SAM_PROTO_SignData [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 0D 01 02 [10:19:06]Write to MH i2c: E2 08 00 A7 3D 80 0D 01 02 00 00 00 00 5D [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 A7 3D 00 90 00 58 [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]wFMCommunicate request_size=255 [10:19:06]MH_SAM_APDU [10:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 1C 00 00 00 F4 03 04 00 A3 B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 42 3D 00 00 35 04 06 00 2C [10:19:06]Write to MH i2c: E2 02 01 A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 1C 00 00 00 F4 03 04 00 A3 B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 42 3D 00 00 35 04 06 00 2C 00 00 5F [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 A8 3D 00 90 00 59 [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]wFMCommunicate request_size=10 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 0D 02 02 05 B8 17 22 52 95 [10:19:06]Write to MH i2c: E2 0D 00 A9 3D 80 0D 02 02 05 00 B8 17 22 52 95 00 00 42 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 03 00 A9 3D 00 90 00 5A [10:19:06]RAPDU: 90 00 [10:19:06]wFMCommunicate OK [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 0D 03 02 [10:19:06]Write to MH i2c: E2 08 00 AA 3D 80 0D 03 02 00 00 00 00 62 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 0B 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 0B 00 AA 3D 00 F4 E2 DC F3 A9 0D 21 19 90 00 F8 [10:19:06]RAPDU: F4 E2 DC F3 A9 0D 21 19 90 00 [10:19:06]wFMCommunicate OK [10:19:06]SAM_PROTO_SignData done [10:19:06]FM_MakeSignedData done [10:19:06]CreateOFDProtocolMessage [10:19:06]wFMCommunicate request_size=4 [10:19:06]MH_SAM_APDU [10:19:06]CAPDU: 80 11 00 00 [10:19:06]Write to MH i2c: E2 08 00 AB 3D 80 11 00 00 00 00 00 00 62 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:06]Read from MH i2c: E2 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 17 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: E2 17 00 AB 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B1 [10:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:19:06]wFMCommunicate OK [10:19:06]CreateOFDProtocolMessage done [10:19:06]OFDSenderStorePacket 15682 [10:19:06]StoreOFDPacket docnum=15682 [10:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B6 5C 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 1C 00 00 00 F4 03 04 00 A3 B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 42 3D 00 00 35 04 06 00 2C B8 17 22 52 95 F4 E2 DC F3 A9 0D 21 19 [10:19:06]CheckFolder [10:19:06]dirname=/storage/ofd_packets [10:19:06]CheckFolder done [10:19:06]ProducePacketName [10:19:06]name=ofd_packets/00015682 [10:19:06]NVStorageSaveData ofd_packets/00015682 [10:19:06]File name is /storage/ofd_packets/00015682 [10:19:06]Write 301 bytes [10:19:06]NVStorageSaveData done [10:19:06]OFDSenderStorePacket done [10:19:06]KKMCreateOFDPacket done [10:19:06]NVStorageSaveData kkm_last_timestamp [10:19:06]File name is /storage/kkm_last_timestamp [10:19:06]Write 4 bytes [10:19:06]NVStorageSaveData done [10:19:06]ExternCall_PrintAddStr [10:19:06]wPrintStart [10:19:06]Write to MH i2c: 01 00 00 AC 3D E9 [10:19:06]Write i2c OK [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 07 00 [10:19:06]MH_I2C_Read... [10:19:06]Read from MH i2c: 01 07 00 AC 3D 00 00 00 00 00 FF 0F FE [10:19:06]RasterBufferAndPrint [10:19:06]line Счет N : (1)16232 [10:19:06]line ИНН: 02508201610067 [10:19:06]line Контрольно-Кассовый Чек [10:19:06]line ПРОДАЖА [10:19:06]line ТРК (МРК, ГНК) : 11 [10:19:06]line Товар: 2710124500 [10:19:06]line Аи-95-К-5 [10:19:06]line 13.480 * 74.20 [10:19:06]line = 1000.22 [10:19:06]line НДС 12% НСП 1% [10:19:06]line > о реализуемом товаре [10:19:06]line ОКРУГЛЕНИЕ: -0.22 [10:19:06]line ИТОГО: 1000.00 [10:19:06]line Внесено: 1000.00 [10:19:06]line СДАЧА: 0.00 [10:19:06]line НСП 1% : 8.85 [10:19:06]line НДС 12% : 106.22 [10:19:06]line Наличными: 1000.00 [10:19:06]line Безнал.: 0.00 [10:19:06]line Место: АЗС № 178 "Партнер Нефть" [10:19:06]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:19:06]line СНО: Общий режим [10:19:06]line Чек 28 29.10.2024 10:19 [10:19:06]line Смена: 172 ФФД: 1.0 [10:19:06]line ЗНМ: 0300000014 [10:19:06]line РНМ: 0000000000161798 [10:19:06]line Версия ККМ: v1.0 [10:19:06]line ФМ: 0000000000963325 [10:19:06]line ФД: 15682 [10:19:06]line ФПД: 49169173729941 [10:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T101915&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15682&fm=49169173729941&tin=02508201610067®Number=0000000000161798&sum=100000 [10:19:07]OFD Sender: Processing packet 15682 [packets to send 4, broken 3] [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00015682 [10:19:07]OFD Sender: To server: pG, [10:19:07]CommunicateWithHost lk.salyk.kg:30040 [10:19:07]ConnectInit lk.salyk.kg [10:19:07]written 0, free lines is 4095 [10:19:07]Connected sock=10 [10:19:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B6 5C 07 01 71 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 1C 00 00 00 F4 03 04 00 A3 B6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 42 3D 00 00 35 04 06 00 2C B8 17 22 52 95 F4 E2 DC F3 A9 0D 21 19 [10:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DC AC 47 00 7A 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 42 3D 00 00 F4 03 04 00 91 61 20 67 B6 04 01 00 00 80 DD 08 4A A5 F1 35 0E [10:19:07]CommunicateWithHost err = 0 [10:19:07]CheckOFDResponse [10:19:07]1017 (14) - 77093643461234 [10:19:07]1041 (16) - 0000000000963325 [10:19:07]1040 (4) - 15682 [10:19:07]1012 (4) - 29.10.2024 04:16 [10:19:07]1206 (1) - 0 [10:19:07]OFD Sender: Remove packet 15682 [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00015682 [10:19:07]NVStorageDeleteData [10:19:07]Write to MH i2c: 01 00 00 D7 3D 14 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 D7 3D 00 00 00 00 00 EE 0C 15 [10:19:07]RasterBufferAndPrint [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]line [10:19:07]written 0, free lines is 3319 [10:19:07]MH_Cut [10:19:07]Write to MH i2c: D1 01 00 DE 3D 01 ED [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 01 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: D1 01 00 DE 3D 00 EC [10:19:07]Write to MH i2c: 01 00 00 DF 3D 1C [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:08]OFD Sender: No OFD packet to send [10:19:08]*** Cut start [10:19:08]*** Partial cut [10:19:08]*** CUTSNS_PIN = 1 [10:19:08]*** CUTSNS_PIN = 0 [10:19:08]*** Brake cut motor [10:19:09]Read from MH i2c: 01 [10:19:09]MH_I2C_Read... [10:19:09]*** Stop cut motor [10:19:09]*** Cut end [10:19:09]Read from MH i2c: 01 07 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: 01 07 00 DF 3D 00 00 00 00 00 FF 0F 31 [10:19:09]process_action close_receipt done [10:19:09]requested_data is exist [10:19:09]produce_requested_data [10:19:09]requested_item fm.sn is exist - process it [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 11 00 00 [10:19:09]Write to MH i2c: E2 08 00 E0 3D 80 11 00 00 00 00 00 00 97 [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 17 00 E0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E6 [10:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:19:09]wFMCommunicate OK [10:19:09]requested_item fd.num is exist - process it [10:19:09]SAM_PROTO_GetFieldsCounters [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 00 00 [10:19:09]Write to MH i2c: E2 08 00 E1 3D 80 13 00 00 00 00 00 00 9A [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 62 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 62 00 E1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 42 3D 00 00 0E 04 04 00 AC 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 3D [10:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 42 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetFieldsCounters done [10:19:09]requested_item shift.num is exist - process it [10:19:09]requested_item shift.opened is exist - process it [10:19:09]req_shift_opened [10:19:09]FM_GetShiftState [10:19:09]SAM_PROTO_GetShiftState [10:19:09]wFMCommunicate request_size=4 [10:19:09]MH_SAM_APDU [10:19:09]CAPDU: 80 13 01 00 [10:19:09]Write to MH i2c: E2 08 00 E2 3D 80 13 01 00 00 00 00 00 9C [10:19:09]Write i2c OK [10:19:09]MH_I2C_Read... [10:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:09]Read from MH i2c: E2 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 [10:19:09]MH_I2C_Read... [10:19:09]Read from MH i2c: E2 0E 00 E2 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F1 [10:19:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:19:09]wFMCommunicate OK [10:19:09]SAM_PROTO_GetShiftState done [10:19:09]FM_GetShiftState done [10:19:09]req_shift_opened done [10:19:09]requested_item shift.open_date is exist - process it [10:19:09]req_shift_open_date [10:19:09]req_shift_open_date done [10:19:09]produce_requested_data done [10:19:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15682,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:19:09]process_action_free close_receipt [10:19:09]json_value_free [10:19:09]json_value_free done [10:19:09]process_json_proto returns [10:19:09]Send response to host [10:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15682,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:19:09]free response buf [10:19:09]execute_script done [10:19:09]execute_script returns [10:19:09]free content buf [10:19:09]Sock 8.Close socket [10:19:09]Sock 8.Thread stoped [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:26]accept exits with 9 [10:21:26]New connection [10:21:26]New thread 3066588516 created [10:21:26]Thread 3066731876 joined [10:21:26]Waiting for new connection... [10:21:26] Sock 9.Parse request [10:21:26]Sock 9.Check first char [10:21:26]Sock 9.First char is OK [10:21:26]request: POST /json_proto HTTP/1.0 [10:21:26]Method: POST [10:21:26]URL: /json_proto [10:21:26]Method is POST - this is cgi request [10:21:26]url: /json_proto [10:21:26]query_string will be loaded in cgi processing [10:21:26]execute_cgi json_proto POST (null) [10:21:26]execute_cgi path=json_proto method=POST [10:21:26]POST find Content-Length [10:21:26]Host: 172.17.54.195:8080 [10:21:26]Content-Length: 684 [10:21:26]Content-Type: application/json [10:21:26] [10:21:26]POST finish read [10:21:26]Found Content-Length = 684 [10:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:26]execute_script... [10:21: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)16231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:26]POST & json_proto [10:21:26]process_json_proto [10:21:26]json parsed OK: [10:21:26]protocol is kg_v1.0 [10:21:26]action value=close_receipt [10:21:26]process_action close_receipt [10:21:26]cmd_close_receipt [10:21:26]MH_GetDate [10:21:26]Write to MH i2c: F0 00 00 E3 3D 0F [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: F0 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: F0 09 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: F0 09 00 E3 3D 00 31 B7 20 67 8D 90 A3 66 AD [10:21:26]GetLastDocTimeStamp 1730197155 [10:21:26]current date 1730197297 [10:21:26]FM_GetShiftState [10:21:26]SAM_PROTO_GetShiftState [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 13 01 00 [10:21:26]Write to MH i2c: E2 08 00 E4 3D 80 13 01 00 00 00 00 00 9E [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0E 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 0E 00 E4 3D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F3 [10:21:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_GetShiftState done [10:21:26]FM_GetShiftState done [10:21:26]opened in 1730161559 [10:21:26]opened+sec_in_day 1730247959 [10:21:26]quantity*price = 200023 [10:21:26]sum+1 = 200025 [10:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 29 29.10.2024 10:21 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15683 ФПД: 191358652011249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102137&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15683&fm=191358652011249&tin=02508201610067®Number=0000000000161798&sum=200000 [10:21:27]StoreToDocumentArchive [10:21:27]shift 172 fd 15683 [10:21:27]save to /storage/0172/doc_00015683 [10:21:27]save last doc name /storage/0172/doc_00015683 to /storage/kkm_last_doc_name [10:21:27]save OK [10:21:27]Clear old archive folders... [10:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:21:27]tlvbuf is 00348710 [10:21:27]SAM_PROTO_ClearQueue [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 09 00 00 [10:21:27]Write to MH i2c: E2 08 00 F1 3D 80 09 00 00 00 00 00 00 A0 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 F1 3D 00 90 00 A2 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]SAM_PROTO_ClearQueue done [10:21:27]KKMCreateOFDPacket [10:21:27]OFDProtocolAddRootSTLVToBuf [10:21:27]FM_MakeSignedData [10:21:27]FM_MakeSignedData [10:21:27]SAM_PROTO_SignData [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 01 02 [10:21:27]Write to MH i2c: E2 08 00 F2 3D 80 0D 01 02 00 00 00 00 A8 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 F2 3D 00 90 00 A3 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=255 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 1D 00 00 00 F4 03 04 00 31 B7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 43 3D 00 00 35 04 06 00 AE 0A [10:21:27]Write to MH i2c: E2 02 01 F3 3D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 1D 00 00 00 F4 03 04 00 31 B7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 43 3D 00 00 35 04 06 00 AE 0A 00 00 F4 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 03 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 03 00 F3 3D 00 90 00 A4 [10:21:28]RAPDU: 90 00 [10:21:28]wFMCommunicate OK [10:21:28]wFMCommunicate request_size=9 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 0D 02 02 04 28 7A 52 F1 [10:21:28]Write to MH i2c: E2 0C 00 F4 3D 80 0D 02 02 04 00 28 7A 52 F1 00 00 98 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 03 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 03 00 F4 3D 00 90 00 A5 [10:21:28]RAPDU: 90 00 [10:21:28]wFMCommunicate OK [10:21:28]wFMCommunicate request_size=4 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 0D 03 02 [10:21:28]Write to MH i2c: E2 08 00 F5 3D 80 0D 03 02 00 00 00 00 AD [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 0B 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 0B 00 F5 3D 00 D0 8B 70 94 91 80 1A 32 90 00 6A [10:21:28]RAPDU: D0 8B 70 94 91 80 1A 32 90 00 [10:21:28]wFMCommunicate OK [10:21:28]SAM_PROTO_SignData done [10:21:28]FM_MakeSignedData done [10:21:28]CreateOFDProtocolMessage [10:21:28]wFMCommunicate request_size=4 [10:21:28]MH_SAM_APDU [10:21:28]CAPDU: 80 11 00 00 [10:21:28]Write to MH i2c: E2 08 00 F6 3D 80 11 00 00 00 00 00 00 AD [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]OFD Sender: No OFD packet to send [10:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:28]Read from MH i2c: E2 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 17 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: E2 17 00 F6 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 FC [10:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:21:28]wFMCommunicate OK [10:21:28]CreateOFDProtocolMessage done [10:21:28]OFDSenderStorePacket 15683 [10:21:28]StoreOFDPacket docnum=15683 [10:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 41 DE 06 01 6C 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 1D 00 00 00 F4 03 04 00 31 B7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 43 3D 00 00 35 04 06 00 AE 0A 28 7A 52 F1 D0 8B 70 94 91 80 1A 32 [10:21:28]CheckFolder [10:21:28]dirname=/storage/ofd_packets [10:21:28]CheckFolder done [10:21:28]ProducePacketName [10:21:28]name=ofd_packets/00015683 [10:21:28]NVStorageSaveData ofd_packets/00015683 [10:21:28]File name is /storage/ofd_packets/00015683 [10:21:28]Write 300 bytes [10:21:28]NVStorageSaveData done [10:21:28]OFDSenderStorePacket done [10:21:28]KKMCreateOFDPacket done [10:21:28]NVStorageSaveData kkm_last_timestamp [10:21:28]File name is /storage/kkm_last_timestamp [10:21:28]Write 4 bytes [10:21:28]NVStorageSaveData done [10:21:28]ExternCall_PrintAddStr [10:21:28]wPrintStart [10:21:28]Write to MH i2c: 01 00 00 F7 3D 34 [10:21:28]Write i2c OK [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 07 00 [10:21:28]MH_I2C_Read... [10:21:28]Read from MH i2c: 01 07 00 F7 3D 00 00 00 00 00 FF 0F 49 [10:21:28]RasterBufferAndPrint [10:21:28]line Счет N : (1)16231 [10:21:28]line ИНН: 02508201610067 [10:21:28]line Контрольно-Кассовый Чек [10:21:28]line ПРОДАЖА [10:21:28]line ТРК (МРК, ГНК) : 41 [10:21:28]line Товар: 2711190000 [10:21:28]line ГАЗ-К-5 [10:21:28]line 51.420 * 38.90 [10:21:28]line = 2000.24 [10:21:28]line НДС 12% НСП 1% [10:21:28]line > о реализуемом товаре [10:21:28]line ОКРУГЛЕНИЕ: -0.24 [10:21:28]line ИТОГО: 2000.00 [10:21:28]line Внесено: 2000.00 [10:21:28]line СДАЧА: 0.00 [10:21:28]line НСП 1% : 17.70 [10:21:28]line НДС 12% : 212.41 [10:21:28]line Наличными: 2000.00 [10:21:28]line Безнал.: 0.00 [10:21:28]line Место: АЗС № 178 "Партнер Нефть" [10:21:28]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:21:28]line СНО: Общий режим [10:21:28]line Чек 29 29.10.2024 10:21 [10:21:28]line Смена: 172 ФФД: 1.0 [10:21:28]line ЗНМ: 0300000014 [10:21:28]line РНМ: 0000000000161798 [10:21:28]line Версия ККМ: v1.0 [10:21:28]line ФМ: 0000000000963325 [10:21:28]line ФД: 15683 [10:21:28]line ФПД: 191358652011249 [10:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102137&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15683&fm=191358652011249&tin=02508201610067®Number=0000000000161798&sum=200000 [10:21:28]OFD Sender: Processing packet 15683 [packets to send 4, broken 3] [10:21:28]ProducePacketName [10:21:28]name=ofd_packets/00015683 [10:21:28]OFD Sender: To server: pG, [10:21:28]CommunicateWithHost lk.salyk.kg:30040 [10:21:28]ConnectInit lk.salyk.kg [10:21:28]written 0, free lines is 4095 [10:21:28]Connected sock=10 [10:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 41 DE 06 01 6C 29 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 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 1D 00 00 00 F4 03 04 00 31 B7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 43 3D 00 00 35 04 06 00 AE 0A 28 7A 52 F1 D0 8B 70 94 91 80 1A 32 [10:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 25 5F 47 00 29 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 43 3D 00 00 F4 03 04 00 1E 62 20 67 B6 04 01 00 00 47 90 A3 BA D0 D7 A7 B5 [10:21:28]CommunicateWithHost err = 0 [10:21:28]CheckOFDResponse [10:21:28]1017 (14) - 77093643461234 [10:21:28]1041 (16) - 0000000000963325 [10:21:28]1040 (4) - 15683 [10:21:28]1012 (4) - 29.10.2024 04:18 [10:21:28]1206 (1) - 0 [10:21:28]OFD Sender: Remove packet 15683 [10:21:28]ProducePacketName [10:21:28]name=ofd_packets/00015683 [10:21:28]NVStorageDeleteData [10:21:29]Write to MH i2c: 01 00 00 22 3E 60 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 07 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 FA 0C 6D [10:21:29]RasterBufferAndPrint [10:21:29]line [10:21:29]line [10:21:29]line [10:21:29]line [10:21:29]line [10:21:29]written 0, free lines is 3332 [10:21:29]MH_Cut [10:21:29]Write to MH i2c: D1 01 00 29 3E 01 39 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: D1 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: D1 01 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: D1 01 00 29 3E 00 38 [10:21:29]Write to MH i2c: 01 00 00 2A 3E 68 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]OFD Sender: No OFD packet to send [10:21:29]*** Cut start [10:21:29]*** Partial cut [10:21:29]*** CUTSNS_PIN = 1 [10:21:29]*** CUTSNS_PIN = 0 [10:21:30]*** Brake cut motor [10:21:30]Read from MH i2c: 01 [10:21:30]MH_I2C_Read... [10:21:30]*** Stop cut motor [10:21:30]*** Cut end [10:21:30]Read from MH i2c: 01 07 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: 01 07 00 2A 3E 00 00 00 00 00 FF 0F 7D [10:21:30]process_action close_receipt done [10:21:30]requested_data is exist [10:21:30]produce_requested_data [10:21:30]requested_item fm.sn is exist - process it [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 11 00 00 [10:21:30]Write to MH i2c: E2 08 00 2B 3E 80 11 00 00 00 00 00 00 E3 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 17 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 17 00 2B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 32 [10:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:21:30]wFMCommunicate OK [10:21:30]requested_item fd.num is exist - process it [10:21:30]SAM_PROTO_GetFieldsCounters [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 13 00 00 [10:21:30]Write to MH i2c: E2 08 00 2C 3E 80 13 00 00 00 00 00 00 E6 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 62 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 62 00 2C 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 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 8D [10:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_GetFieldsCounters done [10:21:30]requested_item shift.num is exist - process it [10:21:30]requested_item shift.opened is exist - process it [10:21:30]req_shift_opened [10:21:30]FM_GetShiftState [10:21:30]SAM_PROTO_GetShiftState [10:21:30]wFMCommunicate request_size=4 [10:21:30]MH_SAM_APDU [10:21:30]CAPDU: 80 13 01 00 [10:21:30]Write to MH i2c: E2 08 00 2D 3E 80 13 01 00 00 00 00 00 E8 [10:21:30]Write i2c OK [10:21:30]MH_I2C_Read... [10:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:30]Read from MH i2c: E2 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 [10:21:30]MH_I2C_Read... [10:21:30]Read from MH i2c: E2 0E 00 2D 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 3D [10:21:30]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:21:30]wFMCommunicate OK [10:21:30]SAM_PROTO_GetShiftState done [10:21:30]FM_GetShiftState done [10:21:30]req_shift_opened done [10:21:30]requested_item shift.open_date is exist - process it [10:21:30]req_shift_open_date [10:21:30]req_shift_open_date done [10:21:30]produce_requested_data done [10:21:30]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:21:30]process_action_free close_receipt [10:21:30]json_value_free [10:21:30]json_value_free done [10:21:30]process_json_proto returns [10:21:30]Send response to host [10:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:21:30]free response buf [10:21:30]execute_script done [10:21:30]execute_script returns [10:21:30]free content buf [10:21:30]Sock 9.Close socket [10:21:30]Sock 9.Thread stoped [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:39]int [10:21:39]Write to MH i2c: 01 00 00 2E 3E 6C [10:21:39]*** FLAG_PRN_PAP1 set [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 2E 3E 00 01 00 00 00 FF 0F 82 [10:21:39]state=0 [10:21:39]No paper [10:21:39]int [10:21:39]Write to MH i2c: 01 00 00 2F 3E 6D [10:21:39]*** FLAG_PRN_PAP2 set [10:21:39]Write i2c OK [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 [10:21:39]MH_I2C_Read... [10:21:39]Read from MH i2c: 01 07 00 2F 3E 00 03 00 00 00 FF 0F 85 [10:21:39]state=0 [10:21:39]No paper [10:21:39]Cover opened [10:21:44]OFD Sender: No OFD packet to send [10:21:44]Write to MH i2c: 01 00 00 30 3E 6E [10:21:44]Write i2c OK [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 07 00 [10:21:44]MH_I2C_Read... [10:21:44]Read from MH i2c: 01 07 00 30 3E 00 03 00 00 00 FF 0F 86 [10:21:44]state=3 [10:21:44]No paper [10:21:44]Cover opened [10:21:49]OFD Sender: No OFD packet to send [10:21:49]Write to MH i2c: 01 00 00 31 3E 6F [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: 01 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: 01 07 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: 01 07 00 31 3E 00 03 00 00 00 FF 0F 87 [10:21:49]state=3 [10:21:49]No paper [10:21:49]Cover opened [10:21:52]int [10:21:52]Write to MH i2c: 01 00 00 32 3E 70 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]*** FLAG_PRN_PAP2 reset [10:21:52]*** FLAG_PRN_PAP1 reset [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 32 3E 00 00 00 00 00 FF 0F 85 [10:21:52]state=3 [10:21:52]Cover closed [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:07]accept exits with 8 [10:22:07]New connection [10:22:07]New thread 3066731876 created [10:22:07]Thread 3066588516 joined [10:22:07]Waiting for new connection... [10:22:07] Sock 8.Parse request [10:22:07]Sock 8.Check first char [10:22:07]Sock 8.First char is OK [10:22:07]request: POST /json_proto HTTP/1.0 [10:22:07]Method: POST [10:22:07]URL: /json_proto [10:22:07]Method is POST - this is cgi request [10:22:07]url: /json_proto [10:22:07]query_string will be loaded in cgi processing [10:22:07]execute_cgi json_proto POST (null) [10:22:07]execute_cgi path=json_proto method=POST [10:22:07]POST find Content-Length [10:22:07]Host: 172.17.54.195:8080 [10:22:07]Content-Length: 215 [10:22:07]Content-Type: application/json [10:22:07] [10:22:07]POST finish read [10:22:07]Found Content-Length = 215 [10:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:07]execute_script... [10:22:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:07]POST & json_proto [10:22:07]process_json_proto [10:22:07]json parsed OK: [10:22:07]protocol is kg_v1.0 [10:22:07]action value=get_value [10:22:07]process_action get_value [10:22:07]cmd_get_value [10:22:07]process_action get_value done [10:22:07]requested_data is exist [10:22:07]produce_requested_data [10:22:07]requested_item kkm.sn is exist - process it [10:22:07]requested_item kkm.ver is exist - process it [10:22:07]requested_item fm.sn is exist - process it [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 11 00 00 [10:22:07]Write to MH i2c: E2 08 00 33 3E 80 11 00 00 00 00 00 00 EB [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:07]Read from MH i2c: E2 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 17 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 17 00 33 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3A [10:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:22:07]wFMCommunicate OK [10:22:07]requested_item fd.num is exist - process it [10:22:07]SAM_PROTO_GetFieldsCounters [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 13 00 00 [10:22:07]Write to MH i2c: E2 08 00 34 3E 80 13 00 00 00 00 00 00 EE [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:07]Read from MH i2c: E2 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 62 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 62 00 34 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:07]wFMCommunicate OK [10:22:07]SAM_PROTO_GetFieldsCounters done [10:22:07]requested_item shift.num is exist - process it [10:22:07]requested_item shift.opened is exist - process it [10:22:07]req_shift_opened [10:22:07]FM_GetShiftState [10:22:07]SAM_PROTO_GetShiftState [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 13 01 00 [10:22:07]Write to MH i2c: E2 08 00 35 3E 80 13 01 00 00 00 00 00 F0 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:07]Read from MH i2c: E2 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 0E 00 [10:22:07]MH_I2C_Read... [10:22:07]Read from MH i2c: E2 0E 00 35 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 45 [10:22:07]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:22:07]wFMCommunicate OK [10:22:07]SAM_PROTO_GetShiftState done [10:22:07]FM_GetShiftState done [10:22:07]req_shift_opened done [10:22:07]requested_item shift.open_date is exist - process it [10:22:07]req_shift_open_date [10:22:07]req_shift_open_date done [10:22:07]produce_requested_data done [10:22:07]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:22:07]process_action_free get_value [10:22:07]json_value_free [10:22:07]json_value_free done [10:22:07]process_json_proto returns [10:22:07]Send response to host [10:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:22:07]free response buf [10:22:07]execute_script done [10:22:07]execute_script returns [10:22:07]free content buf [10:22:07]Sock 8.Close socket [10:22:07]Sock 8.Thread stoped [10:22:07]accept exits with 9 [10:22:07]New connection [10:22:07]New thread 3066588516 created [10:22:07]Thread 3066731876 joined [10:22:07]Waiting for new connection... [10:22:07] Sock 9.Parse request [10:22:07]Sock 9.Check first char [10:22:07]Sock 9.First char is OK [10:22:07]request: POST /json_proto HTTP/1.0 [10:22:07]Method: POST [10:22:07]URL: /json_proto [10:22:07]Method is POST - this is cgi request [10:22:07]url: /json_proto [10:22:07]query_string will be loaded in cgi processing [10:22:07]execute_cgi json_proto POST (null) [10:22:07]execute_cgi path=json_proto method=POST [10:22:07]POST find Content-Length [10:22:07]Host: 172.17.54.195:8080 [10:22:07]Content-Length: 331 [10:22:07]Content-Type: application/json [10:22:07] [10:22:07]POST finish read [10:22:07]Found Content-Length = 331 [10:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:22:07]execute_script... [10:22:07]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" ] } } [10:22:07]POST & json_proto [10:22:07]process_json_proto [10:22:07]json parsed OK: [10:22:07]protocol is kg_v1.0 [10:22:07]action value=get_value [10:22:07]process_action get_value [10:22:07]cmd_get_value [10:22:07]process_action get_value done [10:22:07]requested_data is exist [10:22:07]produce_requested_data [10:22:07]requested_item fm.sale.total is exist - process it [10:22:07]SAM_PROTO_GetFMData [10:22:07]wFMCommunicate request_size=4 [10:22:07]MH_SAM_APDU [10:22:07]CAPDU: 80 13 03 00 [10:22:07]Write to MH i2c: E2 08 00 36 3E 80 13 03 00 00 00 00 00 F3 [10:22:07]Write i2c OK [10:22:07]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 36 3E 00 BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 B5 [10:22:08]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [10:22:08]wFMCommunicate OK [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 17 00 00 [10:22:08]Write to MH i2c: E2 08 00 37 3E 80 17 00 00 00 00 00 00 F5 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 37 3E 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 5E [10:22:08]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [10:22:08]wFMCommunicate OK [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 17 00 00 [10:22:08]Write to MH i2c: E2 08 00 38 3E 80 17 00 00 00 00 00 00 F6 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:08]Read from MH i2c: E2 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 [10:22:08]MH_I2C_Read... [10:22:08]Read from MH i2c: E2 FD 00 38 3E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9A [10:22:08]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 [10:22:08]wFMCommunicate OK [10:22:08]wFMCommunicate request_size=4 [10:22:08]MH_SAM_APDU [10:22:08]CAPDU: 80 17 00 00 [10:22:08]Write to MH i2c: E2 08 00 39 3E 80 17 00 00 00 00 00 00 F7 [10:22:08]Write i2c OK [10:22:08]MH_I2C_Read... [10:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 FD 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 FD 00 39 3E 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 71 [10:22:09]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [10:22:09]wFMCommunicate OK [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 17 00 00 [10:22:09]Write to MH i2c: E2 08 00 3A 3E 80 17 00 00 00 00 00 00 F8 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 DC 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 DC 00 3A 3E 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 DC [10:22:09]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:22:09]wFMCommunicate OK [10:22:09]SAM_PROTO_GetFMData done [10:22:09]requested_item fm.sale_refund.total is exist - process it [10:22:09]requested_item fm.buy.total is exist - process it [10:22:09]requested_item shift.sale.total is exist - process it [10:22:09]SAM_PROTO_GetShiftData [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 13 02 00 [10:22:09]Write to MH i2c: E2 08 00 3B 3E 80 13 02 00 00 00 00 00 F7 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]OFD Sender: No OFD packet to send [10:22:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 FD 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 FD 00 3B 3E 00 AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 61 [10:22:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:22:09]wFMCommunicate OK [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 17 00 00 [10:22:09]Write to MH i2c: E2 08 00 3C 3E 80 17 00 00 00 00 00 00 FA [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 3C 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 1C [10:22:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 17 00 00 [10:22:10]Write to MH i2c: E2 08 00 3D 3E 80 17 00 00 00 00 00 00 FB [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 3D 3E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 B2 [10:22:10]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 17 00 00 [10:22:10]Write to MH i2c: E2 08 00 3E 3E 80 17 00 00 00 00 00 00 FC [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 FD 00 3E 3E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 6E [10:22:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 17 00 00 [10:22:10]Write to MH i2c: E2 08 00 3F 3E 80 17 00 00 00 00 00 00 FD [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:22:11]Read from MH i2c: E2 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 CB 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: E2 CB 00 3F 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E6 [10:22:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:22:11]wFMCommunicate OK [10:22:11]SAM_PROTO_GetShiftData done [10:22:11]requested_item shift.sale.total_cash is exist - process it [10:22:11]requested_item shift.sale_refund.total is exist - process it [10:22:11]requested_item shift.sale_refund.total_cash is exist - process it [10:22:11]requested_item shift.buy.total is exist - process it [10:22:11]requested_item shift.buy.total_cash is exist - process it [10:22:11]produce_requested_data done [10:22:11]produce_requested_data return {"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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} [10:22:11]process_action_free get_value [10:22:11]json_value_free [10:22:11]json_value_free done [10:22:11]process_json_proto returns [10:22:11]Send response to host [10:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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}}} [10:22:11]free response buf [10:22:11]execute_script done [10:22:11]execute_script returns [10:22:11]free content buf [10:22:11]Sock 9.Close socket [10:22:11]Sock 9.Thread stoped [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:25]accept exits with 8 [10:22:25]New connection [10:22:25]New thread 3066731876 created [10:22:25]Thread 3066588516 joined [10:22:25]Waiting for new connection... [10:22:25] Sock 8.Parse request [10:22:25]Sock 8.Check first char [10:22:25]Sock 8.First char is OK [10:22:25]request: POST /json_proto HTTP/1.0 [10:22:25]Method: POST [10:22:25]URL: /json_proto [10:22:25]Method is POST - this is cgi request [10:22:25]url: /json_proto [10:22:25]query_string will be loaded in cgi processing [10:22:25]execute_cgi json_proto POST (null) [10:22:25]execute_cgi path=json_proto method=POST [10:22:25]POST find Content-Length [10:22:25]Host: 172.17.54.195:8080 [10:22:25]Content-Length: 215 [10:22:25]Content-Type: application/json [10:22:25] [10:22:25]POST finish read [10:22:25]Found Content-Length = 215 [10:22:25]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" ] } } [10:22:25]execute_script... [10:22:25]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" ] } } [10:22:25]POST & json_proto [10:22:25]process_json_proto [10:22:25]json parsed OK: [10:22:25]protocol is kg_v1.0 [10:22:25]action value=get_value [10:22:25]process_action get_value [10:22:25]cmd_get_value [10:22:25]process_action get_value done [10:22:25]requested_data is exist [10:22:25]produce_requested_data [10:22:25]requested_item kkm.sn is exist - process it [10:22:25]requested_item kkm.ver is exist - process it [10:22:25]requested_item fm.sn is exist - process it [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 11 00 00 [10:22:25]Write to MH i2c: E2 08 00 40 3E 80 11 00 00 00 00 00 00 F8 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 40 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 47 [10:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:22:25]wFMCommunicate OK [10:22:25]requested_item fd.num is exist - process it [10:22:25]SAM_PROTO_GetFieldsCounters [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 13 00 00 [10:22:25]Write to MH i2c: E2 08 00 41 3E 80 13 00 00 00 00 00 00 FB [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 62 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 62 00 41 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 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 A2 [10:22:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:26]wFMCommunicate OK [10:22:26]SAM_PROTO_GetFieldsCounters done [10:22:26]requested_item shift.num is exist - process it [10:22:26]requested_item shift.opened is exist - process it [10:22:26]req_shift_opened [10:22:26]FM_GetShiftState [10:22:26]SAM_PROTO_GetShiftState [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 13 01 00 [10:22:26]Write to MH i2c: E2 08 00 42 3E 80 13 01 00 00 00 00 00 FD [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 0E 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 0E 00 42 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 52 [10:22:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:22:26]wFMCommunicate OK [10:22:26]SAM_PROTO_GetShiftState done [10:22:26]FM_GetShiftState done [10:22:26]req_shift_opened done [10:22:26]requested_item shift.open_date is exist - process it [10:22:26]req_shift_open_date [10:22:26]req_shift_open_date done [10:22:26]produce_requested_data done [10:22:26]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:22:26]process_action_free get_value [10:22:26]json_value_free [10:22:26]json_value_free done [10:22:26]process_json_proto returns [10:22:26]Send response to host [10:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:22:26]free response buf [10:22:26]execute_script done [10:22:26]execute_script returns [10:22:26]free content buf [10:22:26]Sock 8.Close socket [10:22:26]Sock 8.Thread stoped [10:22:26]accept exits with 9 [10:22:26]New connection [10:22:26]New thread 3066588516 created [10:22:26]Thread 3066731876 joined [10:22:26]Waiting for new connection... [10:22:26] Sock 9.Parse request [10:22:26]Sock 9.Check first char [10:22:26]Sock 9.First char is OK [10:22:26]request: POST /json_proto HTTP/1.0 [10:22:26]Method: POST [10:22:26]URL: /json_proto [10:22:26]Method is POST - this is cgi request [10:22:26]url: /json_proto [10:22:26]query_string will be loaded in cgi processing [10:22:26]execute_cgi json_proto POST (null) [10:22:26]execute_cgi path=json_proto method=POST [10:22:26]POST find Content-Length [10:22:26]Host: 172.17.54.195:8080 [10:22:26]Content-Length: 331 [10:22:26]Content-Type: application/json [10:22:26] [10:22:26]POST finish read [10:22:26]Found Content-Length = 331 [10:22:26]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" ] } } [10:22:26]execute_script... [10:22:26]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" ] } } [10:22:26]POST & json_proto [10:22:26]process_json_proto [10:22:26]json parsed OK: [10:22:26]protocol is kg_v1.0 [10:22:26]action value=get_value [10:22:26]process_action get_value [10:22:26]cmd_get_value [10:22:26]process_action get_value done [10:22:26]requested_data is exist [10:22:26]produce_requested_data [10:22:26]requested_item fm.sale.total is exist - process it [10:22:26]SAM_PROTO_GetFMData [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 13 03 00 [10:22:26]Write to MH i2c: E2 08 00 43 3E 80 13 03 00 00 00 00 00 00 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:22:26]Read from MH i2c: E2 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 FD 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: E2 FD 00 43 3E 00 BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 C2 [10:22:26]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [10:22:26]wFMCommunicate OK [10:22:26]wFMCommunicate request_size=4 [10:22:26]MH_SAM_APDU [10:22:26]CAPDU: 80 17 00 00 [10:22:26]Write to MH i2c: E2 08 00 44 3E 80 17 00 00 00 00 00 00 02 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:27]Read from MH i2c: E2 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 44 3E 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 6B [10:22:27]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [10:22:27]wFMCommunicate OK [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 17 00 00 [10:22:27]Write to MH i2c: E2 08 00 45 3E 80 17 00 00 00 00 00 00 03 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:27]Read from MH i2c: E2 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 45 3E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A7 [10:22:27]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 [10:22:27]wFMCommunicate OK [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 17 00 00 [10:22:27]Write to MH i2c: E2 08 00 46 3E 80 17 00 00 00 00 00 00 04 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:27]Read from MH i2c: E2 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 FD 00 46 3E 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 7E [10:22:27]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 [10:22:27]wFMCommunicate OK [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 17 00 00 [10:22:27]Write to MH i2c: E2 08 00 47 3E 80 17 00 00 00 00 00 00 05 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:22:27]Read from MH i2c: E2 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 DC 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: E2 DC 00 47 3E 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 E9 [10:22:27]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 [10:22:27]wFMCommunicate OK [10:22:27]SAM_PROTO_GetFMData done [10:22:27]requested_item fm.sale_refund.total is exist - process it [10:22:27]requested_item fm.buy.total is exist - process it [10:22:27]requested_item shift.sale.total is exist - process it [10:22:27]SAM_PROTO_GetShiftData [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 13 02 00 [10:22:27]Write to MH i2c: E2 08 00 48 3E 80 13 02 00 00 00 00 00 04 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 48 3E 00 AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6E [10:22:28]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:22:28]wFMCommunicate OK [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 17 00 00 [10:22:28]Write to MH i2c: E2 08 00 49 3E 80 17 00 00 00 00 00 00 07 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 49 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 29 [10:22:28]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:22:28]wFMCommunicate OK [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 17 00 00 [10:22:28]Write to MH i2c: E2 08 00 4A 3E 80 17 00 00 00 00 00 00 08 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 FD 00 4A 3E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 BF [10:22:28]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:22:28]wFMCommunicate OK [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 17 00 00 [10:22:28]Write to MH i2c: E2 08 00 4B 3E 80 17 00 00 00 00 00 00 09 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 FD 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 FD 00 4B 3E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 7B [10:22:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:22:29]wFMCommunicate OK [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 17 00 00 [10:22:29]Write to MH i2c: E2 08 00 4C 3E 80 17 00 00 00 00 00 00 0A [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:22:29]Read from MH i2c: E2 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 CB 00 [10:22:29]MH_I2C_Read... [10:22:29]Read from MH i2c: E2 CB 00 4C 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F3 [10:22:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:22:29]wFMCommunicate OK [10:22:29]SAM_PROTO_GetShiftData done [10:22:29]requested_item shift.sale.total_cash is exist - process it [10:22:29]requested_item shift.sale_refund.total is exist - process it [10:22:29]requested_item shift.sale_refund.total_cash is exist - process it [10:22:29]requested_item shift.buy.total is exist - process it [10:22:29]requested_item shift.buy.total_cash is exist - process it [10:22:29]produce_requested_data done [10:22:29]produce_requested_data return {"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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} [10:22:29]process_action_free get_value [10:22:29]json_value_free [10:22:29]json_value_free done [10:22:29]process_json_proto returns [10:22:29]Send response to host [10:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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}}} [10:22:29]free response buf [10:22:29]execute_script done [10:22:29]execute_script returns [10:22:29]free content buf [10:22:29]Sock 9.Close socket [10:22:29]Sock 9.Thread stoped [10:22:29]OFD Sender: No OFD packet to send [10:22:29]accept exits with 8 [10:22:29]New connection [10:22:29]New thread 3066731876 created [10:22:29]Thread 3066588516 joined [10:22:29]Waiting for new connection... [10:22:29] Sock 8.Parse request [10:22:29]Sock 8.Check first char [10:22:29]Sock 8.First char is OK [10:22:29]request: POST /json_proto HTTP/1.0 [10:22:29]Method: POST [10:22:29]URL: /json_proto [10:22:29]Method is POST - this is cgi request [10:22:29]url: /json_proto [10:22:29]query_string will be loaded in cgi processing [10:22:29]execute_cgi json_proto POST (null) [10:22:29]execute_cgi path=json_proto method=POST [10:22:29]POST find Content-Length [10:22:29]Host: 172.17.54.195:8080 [10:22:29]Content-Length: 331 [10:22:29]Content-Type: application/json [10:22:29] [10:22:29]POST finish read [10:22:29]Found Content-Length = 331 [10:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:22:29]execute_script... [10:22:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:22:29]POST & json_proto [10:22:29]process_json_proto [10:22:29]json parsed OK: [10:22:29]protocol is kg_v1.0 [10:22:29]action value=get_value [10:22:29]process_action get_value [10:22:29]cmd_get_value [10:22:29]process_action get_value done [10:22:29]requested_data is exist [10:22:29]produce_requested_data [10:22:29]requested_item fm.sale.total is exist - process it [10:22:29]SAM_PROTO_GetFMData [10:22:29]wFMCommunicate request_size=4 [10:22:29]MH_SAM_APDU [10:22:29]CAPDU: 80 13 03 00 [10:22:29]Write to MH i2c: E2 08 00 4D 3E 80 13 03 00 00 00 00 00 0A [10:22:29]Write i2c OK [10:22:29]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:22:30]Read from MH i2c: E2 FD 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 FD 00 4D 3E 00 BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 CC [10:22:30]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 17 00 00 [10:22:30]Write to MH i2c: E2 08 00 4E 3E 80 17 00 00 00 00 00 00 0C [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 FD 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 FD 00 4E 3E 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 75 [10:22:30]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 17 00 00 [10:22:30]Write to MH i2c: E2 08 00 4F 3E 80 17 00 00 00 00 00 00 0D [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:30]Read from MH i2c: E2 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 FD 00 [10:22:30]MH_I2C_Read... [10:22:30]Read from MH i2c: E2 FD 00 4F 3E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B1 [10:22:30]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 [10:22:30]wFMCommunicate OK [10:22:30]wFMCommunicate request_size=4 [10:22:30]MH_SAM_APDU [10:22:30]CAPDU: 80 17 00 00 [10:22:30]Write to MH i2c: E2 08 00 50 3E 80 17 00 00 00 00 00 00 0E [10:22:30]Write i2c OK [10:22:30]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:31]Read from MH i2c: E2 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 FD 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 FD 00 50 3E 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 88 [10:22:31]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 [10:22:31]wFMCommunicate OK [10:22:31]wFMCommunicate request_size=4 [10:22:31]MH_SAM_APDU [10:22:31]CAPDU: 80 17 00 00 [10:22:31]Write to MH i2c: E2 08 00 51 3E 80 17 00 00 00 00 00 00 0F [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:22:31]Read from MH i2c: E2 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 DC 00 [10:22:31]MH_I2C_Read... [10:22:31]Read from MH i2c: E2 DC 00 51 3E 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 F3 [10:22:31]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 [10:22:31]wFMCommunicate OK [10:22:31]SAM_PROTO_GetFMData done [10:22:31]requested_item fm.sale_refund.total is exist - process it [10:22:31]requested_item fm.buy.total is exist - process it [10:22:31]requested_item shift.sale.total is exist - process it [10:22:31]SAM_PROTO_GetShiftData [10:22:31]wFMCommunicate request_size=4 [10:22:31]MH_SAM_APDU [10:22:31]CAPDU: 80 13 02 00 [10:22:31]Write to MH i2c: E2 08 00 52 3E 80 13 02 00 00 00 00 00 0E [10:22:31]Write i2c OK [10:22:31]MH_I2C_Read... [10:22:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 52 3E 00 AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 78 [10:22:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:22:32]wFMCommunicate OK [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 17 00 00 [10:22:32]Write to MH i2c: E2 08 00 53 3E 80 17 00 00 00 00 00 00 11 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 53 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 33 [10:22:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:22:32]wFMCommunicate OK [10:22:32]wFMCommunicate request_size=4 [10:22:32]MH_SAM_APDU [10:22:32]CAPDU: 80 17 00 00 [10:22:32]Write to MH i2c: E2 08 00 54 3E 80 17 00 00 00 00 00 00 12 [10:22:32]Write i2c OK [10:22:32]MH_I2C_Read... [10:22:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:32]Read from MH i2c: E2 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 [10:22:32]MH_I2C_Read... [10:22:32]Read from MH i2c: E2 FD 00 54 3E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 C9 [10:22:32]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:22:33]wFMCommunicate OK [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 17 00 00 [10:22:33]Write to MH i2c: E2 08 00 55 3E 80 17 00 00 00 00 00 00 13 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 FD 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 FD 00 55 3E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 85 [10:22:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:22:33]wFMCommunicate OK [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 17 00 00 [10:22:33]Write to MH i2c: E2 08 00 56 3E 80 17 00 00 00 00 00 00 14 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 CB 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 CB 00 56 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 FD [10:22:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetShiftData done [10:22:33]requested_item shift.sale.total_cash is exist - process it [10:22:33]requested_item shift.sale_refund.total is exist - process it [10:22:33]requested_item shift.sale_refund.total_cash is exist - process it [10:22:33]requested_item shift.buy.total is exist - process it [10:22:33]requested_item shift.buy.total_cash is exist - process it [10:22:33]produce_requested_data done [10:22:33]produce_requested_data return {"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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} [10:22:33]process_action_free get_value [10:22:33]json_value_free [10:22:33]json_value_free done [10:22:33]process_json_proto returns [10:22:33]Send response to host [10:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":15942122.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":44790.00,"shift.sale.total_cash":33890.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}}} [10:22:33]free response buf [10:22:33]execute_script done [10:22:33]execute_script returns [10:22:33]free content buf [10:22:33]Sock 8.Close socket [10:22:33]Sock 8.Thread stoped [10:22:33]accept exits with 9 [10:22:33]New connection [10:22:33]New thread 3066588516 created [10:22:33]Thread 3066731876 joined [10:22:33]Waiting for new connection... [10:22:33] Sock 9.Parse request [10:22:33]Sock 9.Check first char [10:22:33]Sock 9.First char is OK [10:22:33]request: POST /json_proto HTTP/1.0 [10:22:33]Method: POST [10:22:33]URL: /json_proto [10:22:33]Method is POST - this is cgi request [10:22:33]url: /json_proto [10:22:33]query_string will be loaded in cgi processing [10:22:33]execute_cgi json_proto POST (null) [10:22:33]execute_cgi path=json_proto method=POST [10:22:33]POST find Content-Length [10:22:33]Host: 172.17.54.195:8080 [10:22:33]Content-Length: 251 [10:22:33]Content-Type: application/json [10:22:33] [10:22:33]POST finish read [10:22:33]Found Content-Length = 251 [10:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043A\u043C\u0430\u0442\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:33]execute_script... [10:22:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043A\u043C\u0430\u0442\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:33]POST & json_proto [10:22:33]process_json_proto [10:22:33]json parsed OK: [10:22:33]protocol is kg_v1.0 [10:22:33]action value=x_report [10:22:33]process_action x_report [10:22:33]cmd_x_report [10:22:33]MH_GetDate [10:22:33]Write to MH i2c: F0 00 00 57 3E 84 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 09 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 09 00 57 3E 00 74 B7 20 67 8D 90 A3 66 65 [10:22:33]GetLastDocTimeStamp 1730197297 [10:22:33]current date 1730197364 [10:22:33]FM_GetShiftState [10:22:33]SAM_PROTO_GetShiftState [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 01 00 [10:22:33]Write to MH i2c: E2 08 00 58 3E 80 13 01 00 00 00 00 00 13 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 0E 00 58 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 68 [10:22:33]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetShiftState done [10:22:33]FM_GetShiftState done [10:22:33]KKMCreateXReportDocument [10:22:33]Load OK [10:22:33]Malloc new data [10:22:33]MH_GetDate [10:22:33]Write to MH i2c: F0 00 00 59 3E 86 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 09 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: F0 09 00 59 3E 00 74 B7 20 67 8D 90 A3 66 67 [10:22:33]Malloc new data [10:22:33]Malloc new data [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 11 00 00 [10:22:33]Write to MH i2c: E2 08 00 5A 3E 80 11 00 00 00 00 00 00 12 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:33]Read from MH i2c: E2 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 [10:22:33]MH_I2C_Read... [10:22:33]Read from MH i2c: E2 17 00 5A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 61 [10:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:22:33]wFMCommunicate OK [10:22:33]SAM_PROTO_GetFieldsCounters [10:22:33]wFMCommunicate request_size=4 [10:22:33]MH_SAM_APDU [10:22:33]CAPDU: 80 13 00 00 [10:22:33]Write to MH i2c: E2 08 00 5B 3E 80 13 00 00 00 00 00 00 15 [10:22:33]Write i2c OK [10:22:33]MH_I2C_Read... [10:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:34]Read from MH i2c: E2 [10:22:34]MH_I2C_Read... [10:22:34]Read from MH i2c: E2 62 00 [10:22:34]MH_I2C_Read... [10:22:34]Read from MH i2c: E2 62 00 5B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 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 BC [10:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:34]wFMCommunicate OK [10:22:34]SAM_PROTO_GetFieldsCounters done [10:22:34]Malloc new data [10:22:34]Malloc new data [10:22:34]Malloc new data [10:22:34]KKMCreateXReportDocument OK [10:22:34]KKMSetXReportData OK [10:22:34]KKMPrepareXReportFMData [10:22:34]SAM_PROTO_GetShiftData [10:22:34]wFMCommunicate request_size=4 [10:22:34]MH_SAM_APDU [10:22:34]CAPDU: 80 13 02 00 [10:22:34]Write to MH i2c: E2 08 00 5C 3E 80 13 02 00 00 00 00 00 18 [10:22:34]Write i2c OK [10:22:34]MH_I2C_Read... [10:22:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:22:34]Read from MH i2c: E2 [10:22:34]MH_I2C_Read... [10:22:34]Read from MH i2c: E2 FD 00 [10:22:34]MH_I2C_Read... [10:22:34]Read from MH i2c: E2 FD 00 5C 3E 00 AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 82 [10:22:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1D 00 00 00 69 04 9B 00 6F 04 04 00 1D 00 00 00 B1 04 03 00 18 58 44 70 04 03 00 48 B6 33 72 04 03 00 D0 A1 10 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 4C 42 07 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DA 9A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [10:22:34]01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [10:22:34]wFMCommunicate OK [10:22:34]wFMCommunicate request_size=4 [10:22:34]MH_SAM_APDU [10:22:34]CAPDU: 80 17 00 00 [10:22:34]Write to MH i2c: E2 08 00 5D 3E 80 17 00 00 00 00 00 00 1B [10:22:34]Write i2c OK [10:22:34]MH_I2C_Read... [10:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:35]Read from MH i2c: E2 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 FD 00 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 FD 00 5D 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3D [10:22:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [10:22:35]wFMCommunicate OK [10:22:35]wFMCommunicate request_size=4 [10:22:35]MH_SAM_APDU [10:22:35]CAPDU: 80 17 00 00 [10:22:35]Write to MH i2c: E2 08 00 5E 3E 80 17 00 00 00 00 00 00 1C [10:22:35]Write i2c OK [10:22:35]MH_I2C_Read... [10:22:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:35]Read from MH i2c: E2 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 FD 00 [10:22:35]MH_I2C_Read... [10:22:35]Read from MH i2c: E2 FD 00 5E 3E 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D3 [10:22:35]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [10:22:35]wFMCommunicate OK [10:22:35]wFMCommunicate request_size=4 [10:22:35]MH_SAM_APDU [10:22:35]CAPDU: 80 17 00 00 [10:22:35]Write to MH i2c: E2 08 00 5F 3E 80 17 00 00 00 00 00 00 1D [10:22:35]Write i2c OK [10:22:35]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 FD 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 FD 00 5F 3E 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 8F [10:22:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [10:22:36]wFMCommunicate OK [10:22:36]wFMCommunicate request_size=4 [10:22:36]MH_SAM_APDU [10:22:36]CAPDU: 80 17 00 00 [10:22:36]Write to MH i2c: E2 08 00 60 3E 80 17 00 00 00 00 00 00 1E [10:22:36]Write i2c OK [10:22:36]MH_I2C_Read... [10:22:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:22:36]Read from MH i2c: E2 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 CB 00 [10:22:36]MH_I2C_Read... [10:22:36]Read from MH i2c: E2 CB 00 60 3E 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [10:22:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:22:36]wFMCommunicate OK [10:22:36]SAM_PROTO_GetShiftData done [10:22:36]1194 (1194) - счетчики итогов смены [10:22:36] 1134 (4) - 29 - количество чеков со всеми признаками расчетов [10:22:36] 1129 (155) - счетчики операций «приход» [10:22:36] 1135 (4) - 29 - количество чеков по признаку расчетов [10:22:36] 1201 (3) - 44790.00 - общая итоговая сумма в чеках [10:22:36] 1136 (3) - 33890.00 - итоговая сумма в чеках наличными [10:22:36] 1138 (3) - 10900.00 - итоговая сумма в чеках безналичными [10:22:36] 1024 (122) - суммы налогов [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 0% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1006 (12) - суммы НДС [10:22:36] 1010 (1) - 12% - код ставки НДС [10:22:36] 1011 (3) - 4757.24 - сумма НДС по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (11) - суммы НСП [10:22:36] 1014 (1) - 1% - код ставки НСП [10:22:36] 1015 (2) - 396.42 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 2% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 3% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 5% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1130 (141) - счетчики операций «возврат прихода» [10:22:36] 1135 (4) - 0 - количество чеков по признаку расчетов [10:22:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:22:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:22:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:22:36] 1024 (117) - суммы налогов [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 0% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 12% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 2% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 3% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 5% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1131 (141) - счетчики операций «расход» [10:22:36] 1135 (4) - 0 - количество чеков по признаку расчетов [10:22:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:22:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:22:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:22:36] 1024 (117) - суммы налогов [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 0% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 12% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 2% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 3% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 5% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1132 (141) - счетчики операций «возврат расхода» [10:22:36] 1135 (4) - 0 - количество чеков по признаку расчетов [10:22:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [10:22:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [10:22:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [10:22:36] 1024 (117) - суммы налогов [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 0% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1006 (9) - суммы НДС [10:22:36] 1010 (1) - 12% - код ставки НДС [10:22:36] 1011 (0) - 0.00 - сумма НДС по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 2% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 3% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 5% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 0,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1007 (9) - суммы НСП [10:22:36] 1014 (1) - 1,50% - код ставки НСП [10:22:36] 1015 (0) - 0.00 - сумма НСП по ставке [10:22:36] 1133 (588) - - счетчики коррекции - не используются [10:22:36]SetTLVBufToDocument [10:22:36]Processing tag 1194 (04AA) [10:22:36]Load OK [10:22:36]SetTLVBufToDocument [10:22:36]Processing tag 1134 (046E) [10:22:36]Malloc new data [10:22:36]Processing tag 1129 (0469) [10:22:36]Load OK [10:22:36]SetTLVBufToDocument [10:22:36]Processing tag 1135 (046F) [10:22:36]Malloc new data [10:22:36]Processing tag 1201 (04B1) [10:22:36]Malloc new data [10:22:36]Processing tag 1136 (0470) [10:22:36]Malloc new data [10:22:36]Processing tag 1138 (0472) [10:22:36]Malloc new data [10:22:36]Processing tag 1024 (0400) [10:22:36]Load OK [10:22:36]SetTLVBufToDocument [10:22:36]Processing tag 1006 (03EE) [10:22:36]Load OK [10:22:36]SetTLVBufToDocument [10:22:36]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1130 (046A) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1135 (046F) [10:22:37]Malloc new data [10:22:37]Processing tag 1201 (04B1) [10:22:37]Malloc new data [10:22:37]Processing tag 1136 (0470) [10:22:37]Malloc new data [10:22:37]Processing tag 1138 (0472) [10:22:37]Malloc new data [10:22:37]Processing tag 1024 (0400) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1131 (046B) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1135 (046F) [10:22:37]Malloc new data [10:22:37]Processing tag 1201 (04B1) [10:22:37]Malloc new data [10:22:37]Processing tag 1136 (0470) [10:22:37]Malloc new data [10:22:37]Processing tag 1138 (0472) [10:22:37]Malloc new data [10:22:37]Processing tag 1024 (0400) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1132 (046C) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1135 (046F) [10:22:37]Malloc new data [10:22:37]Processing tag 1201 (04B1) [10:22:37]Malloc new data [10:22:37]Processing tag 1136 (0470) [10:22:37]Malloc new data [10:22:37]Processing tag 1138 (0472) [10:22:37]Malloc new data [10:22:37]Processing tag 1024 (0400) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1006 (03EE) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1010 (03F2) [10:22:37]Malloc new data [10:22:37]Processing tag 1011 (03F3) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1007 (03EF) [10:22:37]Load OK [10:22:37]SetTLVBufToDocument [10:22:37]Processing tag 1014 (03F6) [10:22:37]Malloc new data [10:22:37]Processing tag 1015 (03F7) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Processing tag 1133 (046D) [10:22:37]Malloc new data [10:22:37]SetTLVBufToDocument err=0 [10:22:37]SetTLVBufToDocument err=0 [10:22:37]Malloc new data [10:22:37]SAM_PROTO_GetFMData [10:22:37]wFMCommunicate request_size=4 [10:22:37]MH_SAM_APDU [10:22:37]CAPDU: 80 13 03 00 [10:22:37]Write to MH i2c: E2 08 00 61 3E 80 13 03 00 00 00 00 00 1E [10:22:37]Write i2c OK [10:22:37]MH_I2C_Read... [10:22:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:22:38]Read from MH i2c: E2 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 FD 00 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 FD 00 61 3E 00 BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 E0 [10:22:38]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [10:22:38]wFMCommunicate OK [10:22:38]wFMCommunicate request_size=4 [10:22:38]MH_SAM_APDU [10:22:38]CAPDU: 80 17 00 00 [10:22:38]Write to MH i2c: E2 08 00 62 3E 80 17 00 00 00 00 00 00 20 [10:22:38]Write i2c OK [10:22:38]MH_I2C_Read... [10:22:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:38]Read from MH i2c: E2 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 FD 00 [10:22:38]MH_I2C_Read... [10:22:38]Read from MH i2c: E2 FD 00 62 3E 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 89 [10:22:38]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [10:22:38]wFMCommunicate OK [10:22:38]wFMCommunicate request_size=4 [10:22:38]MH_SAM_APDU [10:22:38]CAPDU: 80 17 00 00 [10:22:38]Write to MH i2c: E2 08 00 63 3E 80 17 00 00 00 00 00 00 21 [10:22:38]Write i2c OK [10:22:38]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 FD 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 FD 00 63 3E 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C5 [10:22:39]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 [10:22:39]wFMCommunicate OK [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 17 00 00 [10:22:39]Write to MH i2c: E2 08 00 64 3E 80 17 00 00 00 00 00 00 22 [10:22:39]Write i2c OK [10:22:39]MH_I2C_Read... [10:22:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:22:39]Read from MH i2c: E2 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 FD 00 [10:22:39]MH_I2C_Read... [10:22:39]Read from MH i2c: E2 FD 00 64 3E 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 9C [10:22:39]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 [10:22:39]wFMCommunicate OK [10:22:39]wFMCommunicate request_size=4 [10:22:39]MH_SAM_APDU [10:22:39]CAPDU: 80 17 00 00 [10:22:39]Write to MH i2c: E2 08 00 65 OFD Sender: No OFD packet to send [10:22:39]3E 80 17 00 00 00 00 00 00 23 [10:22:40]Write i2c OK [10:22:40]MH_I2C_Read... [10:22:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:22:40]Read from MH i2c: E2 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 DC 00 [10:22:40]MH_I2C_Read... [10:22:40]Read from MH i2c: E2 DC 00 65 3E 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 07 [10:22:40]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 [10:22:40]wFMCommunicate OK [10:22:40]SAM_PROTO_GetFMData done [10:22:40]FM_GetFMData:85 04 BB 04 6E 04 04 00 EB 3B 00 00 69 04 A0 00 6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 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 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:22:41]oper:6F 04 04 00 A0 3B 00 00 B1 04 04 00 68 BF 05 5F 70 04 04 00 44 D5 58 47 72 04 04 00 24 EA AC 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 86 04 18 0A 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 98 51 D7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:22:41]total:68 BF 05 5F [10:22:41]Malloc new data [10:22:41]oper:6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 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 D0 68 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 [10:22:41]total:70 45 9F [10:22:41]Malloc new data [10:22:41]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:22:41]total: [10:22:41]Malloc new data [10:22:41]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [10:22:41]total: [10:22:41]Malloc new data [10:22:41]KKMPrepareXReportFMData err=0 [10:22:41]Х отчет ИНН: 02508201610067 Кассир: Акматов Э. 29.10.2024 10:22 Смена: 10 РНМ: 0000000000161798 ЗНМ: 0300000014 СНО: Общий режим Всего чеков: 29 ИТОГИ ПРИХОД Чеков: 29 Общий итог: 44790.00 Итого наличными: 33890.00 Итого безнал.: 10900.00 НДС 0% : 0.00 НДС 12% : 4757.24 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 396.42 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 33890.00 НС Приход: 15942122.00 НС Возвр.Прихода: 104380.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963325 [10:22:41]StoreToDocumentArchive [10:22:41]MH_GetDate [10:22:41]Write to MH i2c: F0 00 00 66 3E 93 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: F0 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: F0 09 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: F0 09 00 66 3E 00 7C B7 20 67 8D 90 A3 66 7C [10:22:41]shift 10 fd 1730197372 [10:22:41]Create dir for shift 0010 [10:22:41]save to /storage/0010/doc_1730197372 [10:22:41]save last doc name /storage/0010/doc_1730197372 to /storage/kkm_last_doc_name [10:22:41]save OK [10:22:41]Clear old archive folders... [10:22:41]NVStorageSaveData kkm_last_timestamp [10:22:41]File name is /storage/kkm_last_timestamp [10:22:41]Write 4 bytes [10:22:41]NVStorageSaveData done [10:22:41]ExternCall_PrintAddStr [10:22:41]wPrintStart [10:22:41]Write to MH i2c: 01 00 00 67 3E A5 [10:22:41]Write i2c OK [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 [10:22:41]MH_I2C_Read... [10:22:41]Read from MH i2c: 01 07 00 67 3E 00 00 00 00 00 FF 0F BA [10:22:41]RasterBufferAndPrint [10:22:41]line Х отчет [10:22:41]line ИНН: 02508201610067 [10:22:41]line Кассир: Акматов Э. [10:22:41]line 29.10.2024 10:22 [10:22:41]line Смена: 10 [10:22:41]line РНМ: 0000000000161798 [10:22:41]line ЗНМ: 0300000014 [10:22:41]line СНО: Общий режим [10:22:41]line Всего чеков: 29 [10:22:41]line ИТОГИ ПРИХОД [10:22:41]line Чеков: 29 [10:22:41]line Общий итог: 44790.00 [10:22:41]line Итого наличными: 33890.00 [10:22:41]line Итого безнал.: 10900.00 [10:22:41]line НДС 0% : 0.00 [10:22:41]line НДС 12% : 4757.24 [10:22:41]line НСП 0% : 0.00 [10:22:41]line НСП 1,50% : 0.00 [10:22:41]line НСП 0,50% : 0.00 [10:22:41]line НСП 5% : 0.00 [10:22:41]line НСП 3% : 0.00 [10:22:41]line НСП 2% : 0.00 [10:22:41]line НСП 1% : 396.42 [10:22:41]line ИТОГИ ВОЗВРАТ ПРИХОДА [10:22:41]line Чеков: 0 [10:22:41]line Общий итог: 0.00 [10:22:41]line Итого наличными: 0.00 [10:22:41]line Итого безнал.: 0.00 [10:22:41]line НДС 0% : 0.00 [10:22:41]line НДС 12% : 0.00 [10:22:41]line НСП 0% : 0.00 [10:22:41]line НСП 1,50% : 0.00 [10:22:41]line НСП 0,50% : 0.00 [10:22:41]line НСП 5% : 0.00 [10:22:41]line НСП 3% : 0.00 [10:22:41]line НСП 2% : 0.00 [10:22:41]line НСП 1% : 0.00 [10:22:41]line ИТОГИ РАСХОД [10:22:41]line Чеков: 0 [10:22:41]line Общий итог: 0.00 [10:22:41]line Итого наличными: 0.00 [10:22:41]line Итого безнал.: 0.00 [10:22:41]line НДС 0% : 0.00 [10:22:41]line НДС 12% : 0.00 [10:22:41]line НСП 0% : 0.00 [10:22:41]line НСП 1,50% : 0.00 [10:22:41]line НСП 0,50% : 0.00 [10:22:41]line НСП 5% : 0.00 [10:22:41]line НСП 3% : 0.00 [10:22:41]line НСП 2% : 0.00 [10:22:41]line НСП 1% : 0.00 [10:22:41]line ИТОГИ ВОЗВРАТ РАСХОДА [10:22:41]line Чеков: 0 [10:22:41]line Общий итог: 0.00 [10:22:41]line Итого наличными: 0.00 [10:22:41]line Итого безнал.: 0.00 [10:22:41]line НДС 0% : 0.00 [10:22:41]line НДС 12% : 0.00 [10:22:41]line НСП 0% : 0.00 [10:22:41]line НСП 1,50% : 0.00 [10:22:41]line НСП 0,50% : 0.00 [10:22:41]line НСП 5% : 0.00 [10:22:41]line НСП 3% : 0.00 [10:22:41]line НСП 2% : 0.00 [10:22:41]line НСП 1% : 0.00 [10:22:41]line Сумма внесений: 0.00 [10:22:41]line Сумма выплат: 0.00 [10:22:41]line Нал. в кассе: 33890.00 [10:22:41]line НС Приход: 15942122.00 [10:22:41]line НС Возвр.Прихода: 104380.00 [10:22:41]line НС Расход: 0.00 [10:22:41]line НС Возвр.Расхода: 0.00 [10:22:41]line ФМ: 0000000000963325 [10:22:41]written 0, free lines is 4095 [10:22:42]Write to MH i2c: 01 00 00 B2 3E F0 [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 07 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 0A 0B 0C [10:22:42]RasterBufferAndPrint [10:22:42]line [10:22:42]line [10:22:42]line [10:22:42]line [10:22:42]line [10:22:42]written 0, free lines is 2863 [10:22:42]MH_Cut [10:22:42]Write to MH i2c: D1 01 00 B9 3E 01 C9 [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: D1 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: D1 01 00 [10:22:42]MH_I2C_Read... [10:22:42]Read from MH i2c: D1 01 00 B9 3E 00 C8 [10:22:42]Write to MH i2c: 01 00 00 BA 3E F8 [10:22:42]Write i2c OK [10:22:42]MH_I2C_Read... [10:22:43]*** Cut start [10:22:43]*** Partial cut [10:22:43]*** CUTSNS_PIN = 1 [10:22:43]*** CUTSNS_PIN = 0 [10:22:43]*** Brake cut motor [10:22:43]Read from MH i2c: 01 [10:22:43]MH_I2C_Read... [10:22:43]*** Stop cut motor [10:22:43]*** Cut end [10:22:43]Read from MH i2c: 01 07 00 [10:22:43]MH_I2C_Read... [10:22:43]Read from MH i2c: 01 07 00 BA 3E 00 00 00 00 00 FF 0F 0D [10:22:44]process_action x_report done [10:22:44]requested_data is exist [10:22:44]produce_requested_data [10:22:44]requested_item fd.num is exist - process it [10:22:44]SAM_PROTO_GetFieldsCounters [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 13 00 00 [10:22:44]Write to MH i2c: E2 08 00 BB 3E 80 13 00 00 00 00 00 00 75 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 62 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 62 00 BB 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 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 1C [10:22:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 43 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_GetFieldsCounters done [10:22:44]requested_item shift.num is exist - process it [10:22:44]requested_item shift.opened is exist - process it [10:22:44]req_shift_opened [10:22:44]FM_GetShiftState [10:22:44]SAM_PROTO_GetShiftState [10:22:44]wFMCommunicate request_size=4 [10:22:44]MH_SAM_APDU [10:22:44]CAPDU: 80 13 01 00 [10:22:44]Write to MH i2c: E2 08 00 BC 3E 80 13 01 00 00 00 00 00 77 [10:22:44]Write i2c OK [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 [10:22:44]MH_I2C_Read... [10:22:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:44]Read from MH i2c: E2 0E 00 [10:22:44]MH_I2C_Read... [10:22:44]Read from MH i2c: E2 0E 00 BC 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CC [10:22:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:22:44]wFMCommunicate OK [10:22:44]SAM_PROTO_GetShiftState done [10:22:44]FM_GetShiftState done [10:22:44]req_shift_opened done [10:22:44]requested_item shift.open_date is exist - process it [10:22:44]req_shift_open_date [10:22:44]req_shift_open_date done [10:22:44]produce_requested_data done [10:22:44]produce_requested_data return {"fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:22:44]process_action_free x_report [10:22:44]json_value_free [10:22:44]json_value_free done [10:22:44]process_json_proto returns [10:22:44]Send response to host [10:22:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":15683,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:22:44]free response buf [10:22:44]execute_script done [10:22:44]execute_script returns [10:22:44]free content buf [10:22:44]Sock 9.Close socket [10:22:44]Sock 9.Thread stoped [10:22:45]OFD Sender: No OFD packet to send [10:22:50]OFD Sender: No OFD packet to send [10:22:55]OFD Sender: No OFD packet to send [10:23:00]OFD Sender: No OFD packet to send [10:23:05]OFD Sender: No OFD packet to send [10:23:10]OFD Sender: No OFD packet to send [10:23:15]OFD Sender: No OFD packet to send [10:23:20]OFD Sender: No OFD packet to send [10:23:25]OFD Sender: No OFD packet to send [10:23:30]OFD Sender: No OFD packet to send [10:23:35]OFD Sender: No OFD packet to send [10:23:40]OFD Sender: No OFD packet to send [10:23:45]OFD Sender: No OFD packet to send [10:23:50]OFD Sender: No OFD packet to send [10:23:55]OFD Sender: No OFD packet to send [10:24:00]OFD Sender: No OFD packet to send [10:24:05]OFD Sender: No OFD packet to send [10:24:10]OFD Sender: No OFD packet to send [10:24:15]OFD Sender: No OFD packet to send [10:24:20]OFD Sender: No OFD packet to send [10:24:25]OFD Sender: No OFD packet to send [10:24:30]OFD Sender: No OFD packet to send [10:24:35]OFD Sender: No OFD packet to send [10:24:40]OFD Sender: No OFD packet to send [10:24:45]OFD Sender: No OFD packet to send [10:24:50]OFD Sender: No OFD packet to send [10:24:55]OFD Sender: No OFD packet to send [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:49]accept exits with 8 [10:27:49]New connection [10:27:49]New thread 3066731876 created [10:27:49]Thread 3066588516 joined [10:27:49]Waiting for new connection... [10:27:49] Sock 8.Parse request [10:27:49]Sock 8.Check first char [10:27:49]Sock 8.First char is OK [10:27:49]request: POST /json_proto HTTP/1.0 [10:27:49]Method: POST [10:27:49]URL: /json_proto [10:27:49]Method is POST - this is cgi request [10:27:49]url: /json_proto [10:27:49]query_string will be loaded in cgi processing [10:27:49]execute_cgi json_proto POST (null) [10:27:49]execute_cgi path=json_proto method=POST [10:27:49]POST find Content-Length [10:27:49]Host: 172.17.54.195:8080 [10:27:49]Content-Length: 799 [10:27:49]Content-Type: application/json [10:27:49] [10:27:49]POST finish read [10:27:49]Found Content-Length = 799 [10:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A3949076", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:49]execute_script... [10:27: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)16233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A3949076", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:49]POST & json_proto [10:27:49]process_json_proto [10:27:49]json parsed OK: [10:27:49]protocol is kg_v1.0 [10:27:49]action value=close_receipt [10:27:49]process_action close_receipt [10:27:49]cmd_close_receipt [10:27:49]MH_GetDate [10:27:49]Write to MH i2c: F0 00 00 BD 3E EA [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: F0 09 00 BD 3E 00 B0 B8 20 67 8D 90 A3 66 08 [10:27:49]GetLastDocTimeStamp 1730197364 [10:27:49]current date 1730197680 [10:27:49]FM_GetShiftState [10:27:49]SAM_PROTO_GetShiftState [10:27:49]wFMCommunicate request_size=4 [10:27:49]MH_SAM_APDU [10:27:49]CAPDU: 80 13 01 00 [10:27:49]Write to MH i2c: E2 08 00 BE 3E 80 13 01 00 00 00 00 00 79 [10:27:49]Write i2c OK [10:27:49]MH_I2C_Read... [10:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:49]Read from MH i2c: E2 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 [10:27:49]MH_I2C_Read... [10:27:49]Read from MH i2c: E2 0E 00 BE 3E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CE [10:27:49]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:27:49]wFMCommunicate OK [10:27:49]SAM_PROTO_GetShiftState done [10:27:49]FM_GetShiftState done [10:27:49]opened in 1730161559 [10:27:49]opened+sec_in_day 1730247959 [10:27:49]quantity*price = 0 [10:27:49]sum+1 = 1 [10:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 30 29.10.2024 10:28 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949076 ФМ: 0000000000963325 ФД: 15684 ФПД: 162574299055426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102800&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15684&fm=162574299055426&tin=02508201610067®Number=0000000000161798&sum=0 [10:27:50]StoreToDocumentArchive [10:27:50]shift 172 fd 15684 [10:27:50]save to /storage/0172/doc_00015684 [10:27:50]save last doc name /storage/0172/doc_00015684 to /storage/kkm_last_doc_name [10:27:50]save OK [10:27:50]Clear old archive folders... [10:27:50]Remove dir /storage/0010 [10:27:50]opendir ok [10:27:50]file . [10:27:50]file .. [10:27:50]file doc_1730197372 [10:27:50]remove file /storage/0010/doc_1730197372 [10:27:50]remove dir /storage/0010 [10:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:50]tlvbuf is 0036F3B0 [10:27:50]SAM_PROTO_ClearQueue [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 09 00 00 [10:27:50]Write to MH i2c: E2 08 00 CB 3E 80 09 00 00 00 00 00 00 7B [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 CB 3E 00 90 00 7D [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_ClearQueue done [10:27:51]KKMCreateOFDPacket [10:27:51]OFDProtocolAddRootSTLVToBuf [10:27:51]FM_MakeSignedData [10:27:51]FM_MakeSignedData [10:27:51]SAM_PROTO_SignData [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 01 02 [10:27:51]Write to MH i2c: E2 08 00 CC 3E 80 0D 01 02 00 00 00 00 83 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 CC 3E 00 90 00 7E [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=255 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 B0 B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 44 3D 00 00 35 04 06 00 93 [10:27:51]Write to MH i2c: E2 02 01 CD 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 B0 B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 44 3D 00 00 35 04 06 00 93 00 00 CB [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 CD 3E 00 90 00 7F [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=10 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 02 02 05 DC 47 58 45 42 [10:27:51]Write to MH i2c: E2 0D 00 CE 3E 80 0D 02 02 05 00 DC 47 58 45 42 00 00 92 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 CE 3E 00 90 00 80 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 03 02 [10:27:51]Write to MH i2c: E2 08 00 CF 3E 80 0D 03 02 00 00 00 00 88 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 0B 00 CF 3E 00 35 25 89 9C E8 AB EE 5F 90 00 E8 [10:27:51]RAPDU: 35 25 89 9C E8 AB EE 5F 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_SignData done [10:27:51]FM_MakeSignedData done [10:27:51]CreateOFDProtocolMessage [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 11 00 00 [10:27:51]Write to MH i2c: E2 08 00 D0 3E 80 11 00 00 00 00 00 00 88 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 17 00 D0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D7 [10:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:27:51]wFMCommunicate OK [10:27:51]CreateOFDProtocolMessage done [10:27:51]OFDSenderStorePacket 15684 [10:27:51]StoreOFDPacket docnum=15684 [10:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5A 92 07 01 51 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 B0 B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 44 3D 00 00 35 04 06 00 93 DC 47 58 45 42 35 25 89 9C E8 AB EE 5F [10:27:51]CheckFolder [10:27:51]dirname=/storage/ofd_packets [10:27:51]CheckFolder done [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00015684 [10:27:51]NVStorageSaveData ofd_packets/00015684 [10:27:51]File name is /storage/ofd_packets/00015684 [10:27:51]Write 301 bytes [10:27:51]NVStorageSaveData done [10:27:51]OFDSenderStorePacket done [10:27:51]KKMCreateOFDPacket done [10:27:51]NVStorageSaveData kkm_last_timestamp [10:27:51]File name is /storage/kkm_last_timestamp [10:27:51]Write 4 bytes [10:27:51]NVStorageSaveData done [10:27:51]ExternCall_PrintAddStr [10:27:51]wPrintStart [10:27:51]Write to MH i2c: 01 00 00 D1 3E 0F [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: 01 07 00 D1 3E 00 00 00 00 00 FF 0F 24 [10:27:51]RasterBufferAndPrint [10:27:51]line Счет N : (1)16233 [10:27:51]line ИНН: 02508201610067 [10:27:51]line Контрольно-Кассовый Чек [10:27:51]line ПРОДАЖА [10:27:51]line ТРК (МРК, ГНК) : 21 [10:27:51]line Товар: 2710124130 [10:27:51]line Аи-92-К-5 [10:27:51]line 20.000 * 0.00 [10:27:51]line = 0.00 [10:27:51]line НДС 12% НСП 1% [10:27:51]line > о реализуемом товаре [10:27:51]line ИТОГО: 0.00 [10:27:51]line НСП 1% : 0.00 [10:27:51]line НДС 12% : 0.00 [10:27:51]line Наличными: 0.00 [10:27:51]line Безнал.: 0.00 [10:27:51]line Место: АЗС № 178 "Партнер Нефть" [10:27:51]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:27:51]line СНО: Общий режим [10:27:51]line Чек 30 29.10.2024 10:28 [10:27:51]line Смена: 172 ФФД: 1.0 [10:27:51]line ЗНМ: 0300000014 [10:27:51]line РНМ: 0000000000161798 [10:27:51]line Версия ККМ: v1.0 [10:27:51]line Талоны: Топливные Талоны [10:27:51]line 3949076 [10:27:51]line ФМ: 0000000000963325 [10:27:51]line ФД: 15684 [10:27:51]line ФПД: 162574299055426 [10:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102800&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15684&fm=162574299055426&tin=02508201610067®Number=0000000000161798&sum=0 [10:27:51]OFD Sender: Processing packet 15684 [packets to send 4, broken 3] [10:27:51]ProducePacketName [10:27:51]name=ofd_packets/00015684 [10:27:51]OFD Sender: To server: pG, [10:27:51]CommunicateWithHost lk.salyk.kg:30040 [10:27:51]ConnectInit lk.salyk.kg [10:27:51]written 0, free lines is 4095 [10:27:51]Connected sock=10 [10:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5A 92 07 01 51 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 00 00 00 F4 03 04 00 B0 B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 44 3D 00 00 35 04 06 00 93 DC 47 58 45 42 35 25 89 9C E8 AB EE 5F [10:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 A5 DF 47 00 45 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 44 3D 00 00 F4 03 04 00 9D 63 20 67 B6 04 01 00 00 E3 13 A6 77 10 16 82 5C [10:27:52]CommunicateWithHost err = 0 [10:27:52]CheckOFDResponse [10:27:52]1017 (14) - 77093643461234 [10:27:52]1041 (16) - 0000000000963325 [10:27:52]1040 (4) - 15684 [10:27:52]1012 (4) - 29.10.2024 04:25 [10:27:52]1206 (1) - 0 [10:27:52]OFD Sender: Remove packet 15684 [10:27:52]ProducePacketName [10:27:52]name=ofd_packets/00015684 [10:27:52]NVStorageDeleteData [10:27:52]Write to MH i2c: 01 00 00 FB 3E 39 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 FB 3E 00 00 00 00 00 0D 0D 5A [10:27:52]RasterBufferAndPrint [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]written 0, free lines is 3350 [10:27:52]MH_Cut [10:27:52]Write to MH i2c: D1 01 00 02 3F 01 13 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 02 3F 00 12 [10:27:52]Write to MH i2c: 01 00 00 03 3F 42 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]OFD Sender: No OFD packet to send [10:27:52]*** Cut start [10:27:52]*** Partial cut [10:27:52]*** CUTSNS_PIN = 1 [10:27:53]*** CUTSNS_PIN = 0 [10:27:53]*** Brake cut motor [10:27:53]Read from MH i2c: 01 [10:27:53]MH_I2C_Read... [10:27:53]*** Stop cut motor [10:27:53]*** Cut end [10:27:53]Read from MH i2c: 01 07 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: 01 07 00 03 3F 00 00 00 00 00 FF 0F 57 [10:27:53]process_action close_receipt done [10:27:53]requested_data is exist [10:27:53]produce_requested_data [10:27:53]requested_item fm.sn is exist - process it [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 11 00 00 [10:27:53]Write to MH i2c: E2 08 00 04 3F 80 11 00 00 00 00 00 00 BD [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 17 00 04 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0C [10:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:27:53]wFMCommunicate OK [10:27:53]requested_item fd.num is exist - process it [10:27:53]SAM_PROTO_GetFieldsCounters [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 00 00 [10:27:53]Write to MH i2c: E2 08 00 05 3F 80 13 00 00 00 00 00 00 C0 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 62 00 05 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 44 3D 00 00 0E 04 04 00 AC 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 6B [10:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 44 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetFieldsCounters done [10:27:53]requested_item shift.num is exist - process it [10:27:53]requested_item shift.opened is exist - process it [10:27:53]req_shift_opened [10:27:53]FM_GetShiftState [10:27:53]SAM_PROTO_GetShiftState [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 13 01 00 [10:27:53]Write to MH i2c: E2 08 00 06 3F 80 13 01 00 00 00 00 00 C2 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 0E 00 06 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 17 [10:27:53]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_GetShiftState done [10:27:53]FM_GetShiftState done [10:27:53]req_shift_opened done [10:27:53]requested_item shift.open_date is exist - process it [10:27:53]req_shift_open_date [10:27:53]req_shift_open_date done [10:27:53]produce_requested_data done [10:27:53]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15684,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:27:53]process_action_free close_receipt [10:27:53]json_value_free [10:27:53]json_value_free done [10:27:53]process_json_proto returns [10:27:53]Send response to host [10:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15684,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:27:53]free response buf [10:27:53]execute_script done [10:27:53]execute_script returns [10:27:53]free content buf [10:27:53]Sock 8.Close socket [10:27:53]Sock 8.Thread stoped [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]accept exits with 9 [10:28:37]New connection [10:28:37]New thread 3066588516 created [10:28:37]Thread 3066731876 joined [10:28:37]Waiting for new connection... [10:28:37] Sock 9.Parse request [10:28:37]Sock 9.Check first char [10:28:37]Sock 9.First char is OK [10:28:37]request: POST /json_proto HTTP/1.0 [10:28:37]Method: POST [10:28:37]URL: /json_proto [10:28:37]Method is POST - this is cgi request [10:28:37]url: /json_proto [10:28:37]query_string will be loaded in cgi processing [10:28:37]execute_cgi json_proto POST (null) [10:28:37]execute_cgi path=json_proto method=POST [10:28:37]POST find Content-Length [10:28:37]Host: 172.17.54.195:8080 [10:28:37]Content-Length: 676 [10:28:37]Content-Type: application/json [10:28:37] [10:28:37]POST finish read [10:28:37]Found Content-Length = 676 [10:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:28:37]execute_script... [10:28: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)16234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:28:37]POST & json_proto [10:28:37]process_json_proto [10:28:37]json parsed OK: [10:28:37]protocol is kg_v1.0 [10:28:37]action value=close_receipt [10:28:37]process_action close_receipt [10:28:37]cmd_close_receipt [10:28:37]MH_GetDate [10:28:37]Write to MH i2c: F0 00 00 07 3F 35 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 09 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: F0 09 00 07 3F 00 DF B8 20 67 8D 90 A3 66 82 [10:28:37]GetLastDocTimeStamp 1730197680 [10:28:37]current date 1730197727 [10:28:37]FM_GetShiftState [10:28:37]SAM_PROTO_GetShiftState [10:28:37]wFMCommunicate request_size=4 [10:28:37]MH_SAM_APDU [10:28:37]CAPDU: 80 13 01 00 [10:28:37]Write to MH i2c: E2 08 00 08 3F 80 13 01 00 00 00 00 00 C4 [10:28:37]Write i2c OK [10:28:37]MH_I2C_Read... [10:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:37]Read from MH i2c: E2 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0E 00 [10:28:37]MH_I2C_Read... [10:28:37]Read from MH i2c: E2 0E 00 08 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 19 [10:28:37]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:28:37]wFMCommunicate OK [10:28:37]SAM_PROTO_GetShiftState done [10:28:37]FM_GetShiftState done [10:28:37]opened in 1730161559 [10:28:37]opened+sec_in_day 1730247959 [10:28:37]quantity*price = 20003 [10:28:37]sum+1 = 20004 [10:28: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 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 31 29.10.2024 10:28 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15685 ФПД: 178799519921753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102847&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15685&fm=178799519921753&tin=02508201610067®Number=0000000000161798&sum=20000 [10:28:38]StoreToDocumentArchive [10:28:38]shift 172 fd 15685 [10:28:38]save to /storage/0172/doc_00015685 [10:28:38]save last doc name /storage/0172/doc_00015685 to /storage/kkm_last_doc_name [10:28:38]save OK [10:28:38]Clear old archive folders... [10:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:38]tlvbuf is B6D72120 [10:28:38]SAM_PROTO_ClearQueue [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 09 00 00 [10:28:38]Write to MH i2c: E2 08 00 15 3F 80 09 00 00 00 00 00 00 C6 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_ClearQueue done [10:28:38]KKMCreateOFDPacket [10:28:38]OFDProtocolAddRootSTLVToBuf [10:28:38]FM_MakeSignedData [10:28:38]FM_MakeSignedData [10:28:38]SAM_PROTO_SignData [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 01 02 [10:28:38]Write to MH i2c: E2 08 00 16 3F 80 0D 01 02 00 00 00 00 CE [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 16 3F 00 90 00 C9 [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]wFMCommunicate request_size=255 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 DF B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 45 3D 00 00 35 04 06 00 A2 [10:28:38]Write to MH i2c: E2 02 01 17 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1F 00 00 00 F4 03 04 00 DF B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 45 3D 00 00 35 04 06 00 A2 00 00 2F [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 17 3F 00 90 00 CA [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]wFMCommunicate request_size=10 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 02 02 05 9E 01 DE F6 59 [10:28:38]Write to MH i2c: E2 0D 00 18 3F 80 0D 02 02 05 00 9E 01 DE F6 59 00 00 A7 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 03 00 18 3F 00 90 00 CB [10:28:38]RAPDU: 90 00 [10:28:38]wFMCommunicate OK [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 0D 03 02 [10:28:38]Write to MH i2c: E2 08 00 19 3F 80 0D 03 02 00 00 00 00 D3 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 0B 00 19 3F 00 1D D5 07 9E 60 8A 14 2F 90 00 98 [10:28:38]RAPDU: 1D D5 07 9E 60 8A 14 2F 90 00 [10:28:38]wFMCommunicate OK [10:28:38]SAM_PROTO_SignData done [10:28:38]FM_MakeSignedData done [10:28:38]CreateOFDProtocolMessage [10:28:38]wFMCommunicate request_size=4 [10:28:38]MH_SAM_APDU [10:28:38]CAPDU: 80 11 00 00 [10:28:38]Write to MH i2c: E2 08 00 1A 3F 80 11 00 00 00 00 00 00 D3 [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:38]Read from MH i2c: E2 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: E2 17 00 1A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 22 [10:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:28:38]wFMCommunicate OK [10:28:38]CreateOFDProtocolMessage done [10:28:38]OFDSenderStorePacket 15685 [10:28:38]StoreOFDPacket docnum=15685 [10:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 A5 31 07 01 23 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 1F 00 00 00 F4 03 04 00 DF B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 45 3D 00 00 35 04 06 00 A2 9E 01 DE F6 59 1D D5 07 9E 60 8A 14 2F [10:28:38]CheckFolder [10:28:38]dirname=/storage/ofd_packets [10:28:38]CheckFolder done [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00015685 [10:28:38]NVStorageSaveData ofd_packets/00015685 [10:28:38]File name is /storage/ofd_packets/00015685 [10:28:38]Write 301 bytes [10:28:38]NVStorageSaveData done [10:28:38]OFDSenderStorePacket done [10:28:38]KKMCreateOFDPacket done [10:28:38]NVStorageSaveData kkm_last_timestamp [10:28:38]File name is /storage/kkm_last_timestamp [10:28:38]Write 4 bytes [10:28:38]NVStorageSaveData done [10:28:38]ExternCall_PrintAddStr [10:28:38]wPrintStart [10:28:38]Write to MH i2c: 01 00 00 1B 3F 5A [10:28:38]Write i2c OK [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 [10:28:38]MH_I2C_Read... [10:28:38]Read from MH i2c: 01 07 00 1B 3F 00 00 00 00 00 FF 0F 6F [10:28:38]RasterBufferAndPrint [10:28:38]line Счет N : (1)16234 [10:28:38]line ИНН: 02508201610067 [10:28:38]line Контрольно-Кассовый Чек [10:28:38]line ПРОДАЖА [10:28:38]line ТРК (МРК, ГНК) : 21 [10:28:38]line Товар: 2710124130 [10:28:38]line Аи-92-К-5 [10:28:38]line 2.990 * 66.90 [10:28:38]line = 200.03 [10:28:38]line НДС 12% НСП 1% [10:28:38]line > о реализуемом товаре [10:28:38]line ОКРУГЛЕНИЕ: -0.03 [10:28:38]line ИТОГО: 200.00 [10:28:38]line Внесено: 200.00 [10:28:38]line СДАЧА: 0.00 [10:28:38]line НСП 1% : 1.77 [10:28:38]line НДС 12% : 21.24 [10:28:38]line Наличными: 200.00 [10:28:38]line Безнал.: 0.00 [10:28:38]line Место: АЗС № 178 "Партнер Нефть" [10:28:38]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:28:38]line СНО: Общий режим [10:28:38]line Чек 31 29.10.2024 10:28 [10:28:38]line Смена: 172 ФФД: 1.0 [10:28:38]line ЗНМ: 0300000014 [10:28:38]line РНМ: 0000000000161798 [10:28:38]line Версия ККМ: v1.0 [10:28:38]line ФМ: 0000000000963325 [10:28:38]line ФД: 15685 [10:28:38]line ФПД: 178799519921753 [10:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T102847&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15685&fm=178799519921753&tin=02508201610067®Number=0000000000161798&sum=20000 [10:28:38]OFD Sender: Processing packet 15685 [packets to send 4, broken 3] [10:28:38]ProducePacketName [10:28:38]name=ofd_packets/00015685 [10:28:38]OFD Sender: To server: pG, [10:28:38]CommunicateWithHost lk.salyk.kg:30040 [10:28:38]ConnectInit lk.salyk.kg [10:28:38]written 0, free lines is 4095 [10:28:38]Connected sock=8 [10:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 A5 31 07 01 23 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 1F 00 00 00 F4 03 04 00 DF B8 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 45 3D 00 00 35 04 06 00 A2 9E 01 DE F6 59 1D D5 07 9E 60 8A 14 2F [10:28:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 63 F1 47 00 C4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 45 3D 00 00 F4 03 04 00 CC 63 20 67 B6 04 01 00 00 85 65 7B EB 2A 8D E3 38 [10:28:39]CommunicateWithHost err = 0 [10:28:39]CheckOFDResponse [10:28:39]1017 (14) - 77093643461234 [10:28:39]1041 (16) - 0000000000963325 [10:28:39]1040 (4) - 15685 [10:28:39]1012 (4) - 29.10.2024 04:25 [10:28:39]1206 (1) - 0 [10:28:39]OFD Sender: Remove packet 15685 [10:28:39]ProducePacketName [10:28:39]name=ofd_packets/00015685 [10:28:39]NVStorageDeleteData [10:28:39]Write to MH i2c: 01 00 00 46 3F 85 [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: 01 07 00 46 3F 00 00 00 00 00 02 0D 9B [10:28:39]RasterBufferAndPrint [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]line [10:28:39]written 0, free lines is 3339 [10:28:39]MH_Cut [10:28:39]Write to MH i2c: D1 01 00 4D 3F 01 5E [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 01 00 [10:28:39]MH_I2C_Read... [10:28:39]Read from MH i2c: D1 01 00 4D 3F 00 5D [10:28:39]Write to MH i2c: 01 00 00 4E 3F 8D [10:28:39]Write i2c OK [10:28:39]MH_I2C_Read... [10:28:39]OFD Sender: No OFD packet to send [10:28:40]*** Cut start [10:28:40]*** Partial cut [10:28:40]*** CUTSNS_PIN = 1 [10:28:40]*** CUTSNS_PIN = 0 [10:28:40]*** Brake cut motor [10:28:40]Read from MH i2c: 01 [10:28:40]MH_I2C_Read... [10:28:40]*** Stop cut motor [10:28:40]*** Cut end [10:28:40]Read from MH i2c: 01 07 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: 01 07 00 4E 3F 00 00 00 00 00 FF 0F A2 [10:28:40]process_action close_receipt done [10:28:40]requested_data is exist [10:28:40]produce_requested_data [10:28:40]requested_item fm.sn is exist - process it [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 11 00 00 [10:28:40]Write to MH i2c: E2 08 00 4F 3F 80 11 00 00 00 00 00 00 08 [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 17 00 4F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 57 [10:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:28:40]wFMCommunicate OK [10:28:40]requested_item fd.num is exist - process it [10:28:40]SAM_PROTO_GetFieldsCounters [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 00 00 [10:28:40]Write to MH i2c: E2 08 00 50 3F 80 13 00 00 00 00 00 00 0B [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:40]Read from MH i2c: E2 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 [10:28:40]MH_I2C_Read... [10:28:40]Read from MH i2c: E2 62 00 50 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 45 3D 00 00 0E 04 04 00 AC 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 BA [10:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 45 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:40]wFMCommunicate OK [10:28:40]SAM_PROTO_GetFieldsCounters done [10:28:40]requested_item shift.num is exist - process it [10:28:40]requested_item shift.opened is exist - process it [10:28:40]req_shift_opened [10:28:40]FM_GetShiftState [10:28:40]SAM_PROTO_GetShiftState [10:28:40]wFMCommunicate request_size=4 [10:28:40]MH_SAM_APDU [10:28:40]CAPDU: 80 13 01 00 [10:28:40]Write to MH i2c: E2 08 00 51 3F 80 13 01 00 00 00 00 00 0D [10:28:40]Write i2c OK [10:28:40]MH_I2C_Read... [10:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:41]Read from MH i2c: E2 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 0E 00 [10:28:41]MH_I2C_Read... [10:28:41]Read from MH i2c: E2 0E 00 51 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 62 [10:28:41]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:28:41]wFMCommunicate OK [10:28:41]SAM_PROTO_GetShiftState done [10:28:41]FM_GetShiftState done [10:28:41]req_shift_opened done [10:28:41]requested_item shift.open_date is exist - process it [10:28:41]req_shift_open_date [10:28:41]req_shift_open_date done [10:28:41]produce_requested_data done [10:28:41]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15685,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:28:41]process_action_free close_receipt [10:28:41]json_value_free [10:28:41]json_value_free done [10:28:41]process_json_proto returns [10:28:41]Send response to host [10:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15685,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:28:41]free response buf [10:28:41]execute_script done [10:28:41]execute_script returns [10:28:41]free content buf [10:28:41]Sock 9.Close socket [10:28:41]Sock 9.Thread stoped [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:23]accept exits with 10 [10:31:23]New connection [10:31:23]New thread 3066731876 created [10:31:23]Thread 3066588516 joined [10:31:23]Waiting for new connection... [10:31:23] Sock 10.Parse request [10:31:23]Sock 10.Check first char [10:31:23]Sock 10.First char is OK [10:31:23]request: POST /json_proto HTTP/1.0 [10:31:23]Method: POST [10:31:23]URL: /json_proto [10:31:23]Method is POST - this is cgi request [10:31:23]url: /json_proto [10:31:23]query_string will be loaded in cgi processing [10:31:23]execute_cgi json_proto POST (null) [10:31:23]execute_cgi path=json_proto method=POST [10:31:23]POST find Content-Length [10:31:23]Host: 172.17.54.195:8080 [10:31:23]Content-Length: 799 [10:31:23]Content-Type: application/json [10:31:23] [10:31:23]POST finish read [10:31:23]Found Content-Length = 799 [10:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A3949097", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:23]execute_script... [10:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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\u000A3949097", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:23]POST & json_proto [10:31:23]process_json_proto [10:31:23]json parsed OK: [10:31:23]protocol is kg_v1.0 [10:31:23]action value=close_receipt [10:31:23]process_action close_receipt [10:31:23]cmd_close_receipt [10:31:23]MH_GetDate [10:31:23]Write to MH i2c: F0 00 00 52 3F 80 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 09 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: F0 09 00 52 3F 00 85 B9 20 67 8D 90 A3 66 74 [10:31:23]GetLastDocTimeStamp 1730197727 [10:31:23]current date 1730197893 [10:31:23]FM_GetShiftState [10:31:23]SAM_PROTO_GetShiftState [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 13 01 00 [10:31:23]Write to MH i2c: E2 08 00 53 3F 80 13 01 00 00 00 00 00 0F [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0E 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 0E 00 53 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 64 [10:31:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_GetShiftState done [10:31:23]FM_GetShiftState done [10:31:23]opened in 1730161559 [10:31:23]opened+sec_in_day 1730247959 [10:31:23]quantity*price = 0 [10:31:23]sum+1 = 1 [10:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 32 29.10.2024 10:31 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Талоны: Топливные Талоны 3949097 ФМ: 0000000000963325 ФД: 15686 ФПД: 66739487589344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103133&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15686&fm=66739487589344&tin=02508201610067®Number=0000000000161798&sum=0 [10:31:24]StoreToDocumentArchive [10:31:24]shift 172 fd 15686 [10:31:24]save to /storage/0172/doc_00015686 [10:31:24]save last doc name /storage/0172/doc_00015686 to /storage/kkm_last_doc_name [10:31:24]save OK [10:31:24]Clear old archive folders... [10:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:24]tlvbuf is 003262D0 [10:31:24]SAM_PROTO_ClearQueue [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 09 00 00 [10:31:24]Write to MH i2c: E2 08 00 60 3F 80 09 00 00 00 00 00 00 11 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 60 3F 00 90 00 13 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_ClearQueue done [10:31:24]KKMCreateOFDPacket [10:31:24]OFDProtocolAddRootSTLVToBuf [10:31:24]FM_MakeSignedData [10:31:24]FM_MakeSignedData [10:31:24]SAM_PROTO_SignData [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 01 02 [10:31:24]Write to MH i2c: E2 08 00 61 3F 80 0D 01 02 00 00 00 00 19 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 61 3F 00 90 00 14 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=255 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 20 00 00 00 F4 03 04 00 85 B9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 46 3D 00 00 35 04 06 00 3C [10:31:24]Write to MH i2c: E2 02 01 62 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 20 00 00 00 F4 03 04 00 85 B9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 46 3D 00 00 35 04 06 00 3C 00 00 E4 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 62 3F 00 90 00 15 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=10 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 02 02 05 B2 FF 73 43 E0 [10:31:24]Write to MH i2c: E2 0D 00 63 3F 80 0D 02 02 05 00 B2 FF 73 43 E0 00 00 6D [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 63 3F 00 90 00 16 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 03 02 [10:31:24]Write to MH i2c: E2 08 00 64 3F 80 0D 03 02 00 00 00 00 1E [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 64 3F 00 8C 6C 54 68 8D 8D FD 5A 90 00 44 [10:31:24]RAPDU: 8C 6C 54 68 8D 8D FD 5A 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_SignData done [10:31:24]FM_MakeSignedData done [10:31:24]CreateOFDProtocolMessage [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 11 00 00 [10:31:24]Write to MH i2c: E2 08 00 65 3F 80 11 00 00 00 00 00 00 1E [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]OFD Sender: No OFD packet to send [10:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 65 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 6D [10:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:31:24]wFMCommunicate OK [10:31:24]CreateOFDProtocolMessage done [10:31:24]OFDSenderStorePacket 15686 [10:31:24]StoreOFDPacket docnum=15686 [10:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 6B F3 07 01 65 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 35 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 20 00 00 00 F4 03 04 00 85 B9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 46 3D 00 00 35 04 06 00 3C B2 FF 73 43 E0 8C 6C 54 68 8D 8D FD 5A [10:31:24]CheckFolder [10:31:24]dirname=/storage/ofd_packets [10:31:24]CheckFolder done [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00015686 [10:31:24]NVStorageSaveData ofd_packets/00015686 [10:31:24]File name is /storage/ofd_packets/00015686 [10:31:24]Write 301 bytes [10:31:24]NVStorageSaveData done [10:31:24]OFDSenderStorePacket done [10:31:24]KKMCreateOFDPacket done [10:31:24]NVStorageSaveData kkm_last_timestamp [10:31:24]File name is /storage/kkm_last_timestamp [10:31:24]Write 4 bytes [10:31:24]NVStorageSaveData done [10:31:24]ExternCall_PrintAddStr [10:31:24]wPrintStart [10:31:24]Write to MH i2c: 01 00 00 66 3F A5 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 66 3F 00 00 00 00 00 FF 0F BA [10:31:24]RasterBufferAndPrint [10:31:24]line Счет N : (1)16235 [10:31:24]line ИНН: 02508201610067 [10:31:24]line Контрольно-Кассовый Чек [10:31:24]line ПРОДАЖА [10:31:24]line ТРК (МРК, ГНК) : 21 [10:31:24]line Товар: 2710124130 [10:31:24]line Аи-92-К-5 [10:31:24]line 20.000 * 0.00 [10:31:24]line = 0.00 [10:31:24]line НДС 12% НСП 1% [10:31:24]line > о реализуемом товаре [10:31:24]line ИТОГО: 0.00 [10:31:24]line НСП 1% : 0.00 [10:31:24]line НДС 12% : 0.00 [10:31:24]line Наличными: 0.00 [10:31:24]line Безнал.: 0.00 [10:31:24]line Место: АЗС № 178 "Партнер Нефть" [10:31:24]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:31:24]line СНО: Общий режим [10:31:24]line Чек 32 29.10.2024 10:31 [10:31:24]line Смена: 172 ФФД: 1.0 [10:31:24]line ЗНМ: 0300000014 [10:31:24]line РНМ: 0000000000161798 [10:31:24]line Версия ККМ: v1.0 [10:31:24]line Талоны: Топливные Талоны [10:31:24]line 3949097 [10:31:24]line ФМ: 0000000000963325 [10:31:24]line ФД: 15686 [10:31:24]line ФПД: 66739487589344 [10:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103133&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15686&fm=66739487589344&tin=02508201610067®Number=0000000000161798&sum=0 [10:31:25]OFD Sender: Processing packet 15686 [packets to send 4, broken 3] [10:31:25]ProducePacketName [10:31:25]name=ofd_packets/00015686 [10:31:25]OFD Sender: To server: pG, [10:31:25]CommunicateWithHost lk.salyk.kg:30040 [10:31:25]ConnectInit lk.salyk.kg [10:31:25]written 0, free lines is 4095 [10:31:25]Connected sock=9 [10:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 6B F3 07 01 65 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 35 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 20 00 00 00 F4 03 04 00 85 B9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 46 3D 00 00 35 04 06 00 3C B2 FF 73 43 E0 8C 6C 54 68 8D 8D FD 5A [10:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 AC A8 47 00 5C F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 46 3D 00 00 F4 03 04 00 72 64 20 67 B6 04 01 00 00 BD B5 A9 B8 4B 8F D7 7B [10:31:25]CommunicateWithHost err = 0 [10:31:25]CheckOFDResponse [10:31:25]1017 (14) - 77093643461234 [10:31:25]1041 (16) - 0000000000963325 [10:31:25]1040 (4) - 15686 [10:31:25]1012 (4) - 29.10.2024 04:28 [10:31:25]1206 (1) - 0 [10:31:25]OFD Sender: Remove packet 15686 [10:31:25]ProducePacketName [10:31:25]name=ofd_packets/00015686 [10:31:25]NVStorageDeleteData [10:31:25]Write to MH i2c: 01 00 00 90 3F CF [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: 01 07 00 90 3F 00 00 00 00 00 00 0D E3 [10:31:25]RasterBufferAndPrint [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]line [10:31:25]written 0, free lines is 3335 [10:31:25]MH_Cut [10:31:25]Write to MH i2c: D1 01 00 97 3F 01 A8 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 97 3F 00 A7 [10:31:25]Write to MH i2c: 01 00 00 98 3F D7 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]OFD Sender: No OFD packet to send [10:31:26]*** Cut start [10:31:26]*** Partial cut [10:31:26]*** CUTSNS_PIN = 1 [10:31:26]*** CUTSNS_PIN = 0 [10:31:26]*** Brake cut motor [10:31:27]Read from MH i2c: 01 [10:31:27]MH_I2C_Read... [10:31:27]*** Stop cut motor [10:31:27]*** Cut end [10:31:27]Read from MH i2c: 01 07 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 FF 0F EC [10:31:27]process_action close_receipt done [10:31:27]requested_data is exist [10:31:27]produce_requested_data [10:31:27]requested_item fm.sn is exist - process it [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 11 00 00 [10:31:27]Write to MH i2c: E2 08 00 99 3F 80 11 00 00 00 00 00 00 52 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 17 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 17 00 99 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A1 [10:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:31:27]wFMCommunicate OK [10:31:27]requested_item fd.num is exist - process it [10:31:27]SAM_PROTO_GetFieldsCounters [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 13 00 00 [10:31:27]Write to MH i2c: E2 08 00 9A 3F 80 13 00 00 00 00 00 00 55 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 62 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 62 00 9A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 46 3D 00 00 0E 04 04 00 AC 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 08 [10:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 46 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_GetFieldsCounters done [10:31:27]requested_item shift.num is exist - process it [10:31:27]requested_item shift.opened is exist - process it [10:31:27]req_shift_opened [10:31:27]FM_GetShiftState [10:31:27]SAM_PROTO_GetShiftState [10:31:27]wFMCommunicate request_size=4 [10:31:27]MH_SAM_APDU [10:31:27]CAPDU: 80 13 01 00 [10:31:27]Write to MH i2c: E2 08 00 9B 3F 80 13 01 00 00 00 00 00 57 [10:31:27]Write i2c OK [10:31:27]MH_I2C_Read... [10:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:27]Read from MH i2c: E2 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0E 00 [10:31:27]MH_I2C_Read... [10:31:27]Read from MH i2c: E2 0E 00 9B 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AC [10:31:27]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:31:27]wFMCommunicate OK [10:31:27]SAM_PROTO_GetShiftState done [10:31:27]FM_GetShiftState done [10:31:27]req_shift_opened done [10:31:27]requested_item shift.open_date is exist - process it [10:31:27]req_shift_open_date [10:31:27]req_shift_open_date done [10:31:27]produce_requested_data done [10:31:27]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15686,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:31:27]process_action_free close_receipt [10:31:27]json_value_free [10:31:27]json_value_free done [10:31:27]process_json_proto returns [10:31:27]Send response to host [10:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15686,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:31:27]free response buf [10:31:27]execute_script done [10:31:27]execute_script returns [10:31:27]free content buf [10:31:27]Sock 10.Close socket [10:31:27]Sock 10.Thread stoped [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:32]accept exits with 8 [10:37:32]New connection [10:37:32]New thread 3066588516 created [10:37:32]Thread 3066731876 joined [10:37:32]Waiting for new connection... [10:37:32] Sock 8.Parse request [10:37:32]Sock 8.Check first char [10:37:32]Sock 8.First char is OK [10:37:32]request: POST /json_proto HTTP/1.0 [10:37:32]Method: POST [10:37:32]URL: /json_proto [10:37:32]Method is POST - this is cgi request [10:37:32]url: /json_proto [10:37:32]query_string will be loaded in cgi processing [10:37:32]execute_cgi json_proto POST (null) [10:37:32]execute_cgi path=json_proto method=POST [10:37:32]POST find Content-Length [10:37:32]Host: 172.17.54.195:8080 [10:37:32]Content-Length: 788 [10:37:32]Content-Type: application/json [10:37:32] [10:37:32]POST finish read [10:37:32]Found Content-Length = 788 [10:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03540", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:32]execute_script... [10:37: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)16236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03540", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:32]POST & json_proto [10:37:32]process_json_proto [10:37:32]json parsed OK: [10:37:32]protocol is kg_v1.0 [10:37:32]action value=close_receipt [10:37:32]process_action close_receipt [10:37:32]cmd_close_receipt [10:37:32]MH_GetDate [10:37:32]Write to MH i2c: F0 00 00 9C 3F CA [10:37:32]Write i2c OK [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: F0 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: F0 09 00 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: F0 09 00 9C 3F 00 F6 BA 20 67 8D 90 A3 66 30 [10:37:32]GetLastDocTimeStamp 1730197893 [10:37:32]current date 1730198262 [10:37:32]FM_GetShiftState [10:37:32]SAM_PROTO_GetShiftState [10:37:32]wFMCommunicate request_size=4 [10:37:32]MH_SAM_APDU [10:37:32]CAPDU: 80 13 01 00 [10:37:32]Write to MH i2c: E2 08 00 9D 3F 80 13 01 00 00 00 00 00 59 [10:37:32]Write i2c OK [10:37:32]MH_I2C_Read... [10:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:32]Read from MH i2c: E2 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: E2 0E 00 [10:37:32]MH_I2C_Read... [10:37:32]Read from MH i2c: E2 0E 00 9D 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AE [10:37:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:37:32]wFMCommunicate OK [10:37:32]SAM_PROTO_GetShiftState done [10:37:32]FM_GetShiftState done [10:37:32]opened in 1730161559 [10:37:32]opened+sec_in_day 1730247959 [10:37:32]quantity*price = 0 [10:37:32]sum+1 = 1 [10:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 33 29.10.2024 10:37 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Талоны: Топливная Карта 03540 ФМ: 0000000000963325 ФД: 15687 ФПД: 114978319458951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103742&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15687&fm=114978319458951&tin=02508201610067®Number=0000000000161798&sum=0 [10:37:33]StoreToDocumentArchive [10:37:33]shift 172 fd 15687 [10:37:33]save to /storage/0172/doc_00015687 [10:37:33]save last doc name /storage/0172/doc_00015687 to /storage/kkm_last_doc_name [10:37:33]save OK [10:37:33]Clear old archive folders... [10:37:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:37:33]tlvbuf is 00400680 [10:37:33]SAM_PROTO_ClearQueue [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 09 00 00 [10:37:33]Write to MH i2c: E2 08 00 AA 3F 80 09 00 00 00 00 00 00 5B [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 AA 3F 00 90 00 5D [10:37:33]RAPDU: 90 00 [10:37:33]wFMCommunicate OK [10:37:33]SAM_PROTO_ClearQueue done [10:37:33]KKMCreateOFDPacket [10:37:33]OFDProtocolAddRootSTLVToBuf [10:37:33]FM_MakeSignedData [10:37:33]FM_MakeSignedData [10:37:33]SAM_PROTO_SignData [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 0D 01 02 [10:37:33]Write to MH i2c: E2 08 00 AB 3F 80 0D 01 02 00 00 00 00 63 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 AB 3F 00 90 00 5E [10:37:33]RAPDU: 90 00 [10:37:33]wFMCommunicate OK [10:37:33]wFMCommunicate request_size=255 [10:37:33]MH_SAM_APDU [10:37: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 35 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 21 00 00 00 F4 03 04 00 F6 BA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 47 3D 00 00 35 04 06 00 68 92 79 E3 [10:37:33]Write to MH i2c: E2 02 01 AC 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 F6 BA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 47 3D 00 00 35 04 06 00 68 92 79 E3 00 00 0F [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 AC 3F 00 90 00 5F [10:37:33]RAPDU: 90 00 [10:37:33]wFMCommunicate OK [10:37:33]wFMCommunicate request_size=7 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 0D 02 02 02 62 87 [10:37:33]Write to MH i2c: E2 0A 00 AD 3F 80 0D 02 02 02 00 62 87 00 00 53 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 03 00 AD 3F 00 90 00 60 [10:37:33]RAPDU: 90 00 [10:37:33]wFMCommunicate OK [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 0D 03 02 [10:37:33]Write to MH i2c: E2 08 00 AE 3F 80 0D 03 02 00 00 00 00 68 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 0B 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 0B 00 AE 3F 00 8C AE 39 77 6F C8 FF 4C 90 00 D5 [10:37:33]RAPDU: 8C AE 39 77 6F C8 FF 4C 90 00 [10:37:33]wFMCommunicate OK [10:37:33]SAM_PROTO_SignData done [10:37:33]FM_MakeSignedData done [10:37:33]CreateOFDProtocolMessage [10:37:33]wFMCommunicate request_size=4 [10:37:33]MH_SAM_APDU [10:37:33]CAPDU: 80 11 00 00 [10:37:33]Write to MH i2c: E2 08 00 AF 3F 80 11 00 00 00 00 00 00 68 [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:33]Read from MH i2c: E2 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 17 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: E2 17 00 AF 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B7 [10:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:37:33]wFMCommunicate OK [10:37:33]CreateOFDProtocolMessage done [10:37:33]OFDSenderStorePacket 15687 [10:37:33]StoreOFDPacket docnum=15687 [10:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D4 D0 04 01 2E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 F6 BA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 47 3D 00 00 35 04 06 00 68 92 79 E3 62 87 8C AE 39 77 6F C8 FF 4C [10:37:33]CheckFolder [10:37:33]dirname=/storage/ofd_packets [10:37:33]CheckFolder done [10:37:33]ProducePacketName [10:37:33]name=ofd_packets/00015687 [10:37:33]NVStorageSaveData ofd_packets/00015687 [10:37:33]File name is /storage/ofd_packets/00015687 [10:37:33]Write 298 bytes [10:37:33]NVStorageSaveData done [10:37:33]OFDSenderStorePacket done [10:37:33]KKMCreateOFDPacket done [10:37:33]NVStorageSaveData kkm_last_timestamp [10:37:33]File name is /storage/kkm_last_timestamp [10:37:33]Write 4 bytes [10:37:33]NVStorageSaveData done [10:37:33]ExternCall_PrintAddStr [10:37:33]wPrintStart [10:37:33]Write to MH i2c: 01 00 00 B0 3F EF [10:37:33]Write i2c OK [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: 01 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: 01 07 00 [10:37:33]MH_I2C_Read... [10:37:33]Read from MH i2c: 01 07 00 B0 3F 00 00 00 00 00 FF 0F 04 [10:37:33]RasterBufferAndPrint [10:37:33]line Счет N : (1)16236 [10:37:33]line ИНН: 02508201610067 [10:37:33]line Контрольно-Кассовый Чек [10:37:33]line ПРОДАЖА [10:37:33]line ТРК (МРК, ГНК) : 22 [10:37:33]line Товар: 2710194210 [10:37:33]line ДТ-К-5 [10:37:33]line 20.000 * 0.00 [10:37:33]line = 0.00 [10:37:33]line НДС 12% НСП 1% [10:37:33]line > о реализуемом товаре [10:37:33]line ИТОГО: 0.00 [10:37:33]line НСП 1% : 0.00 [10:37:33]line НДС 12% : 0.00 [10:37:33]line Наличными: 0.00 [10:37:33]line Безнал.: 0.00 [10:37:33]line Место: АЗС № 178 "Партнер Нефть" [10:37:33]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:37:33]line СНО: Общий режим [10:37:33]line Чек 33 29.10.2024 10:37 [10:37:33]line Смена: 172 ФФД: 1.0 [10:37:33]line ЗНМ: 0300000014 [10:37:33]line РНМ: 0000000000161798 [10:37:33]line Версия ККМ: v1.0 [10:37:33]line Талоны: Топливная Карта [10:37:33]line 03540 [10:37:33]line ФМ: 0000000000963325 [10:37:33]line ФД: 15687 [10:37:33]line ФПД: 114978319458951 [10:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T103742&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15687&fm=114978319458951&tin=02508201610067®Number=0000000000161798&sum=0 [10:37:34]OFD Sender: Processing packet 15687 [packets to send 4, broken 3] [10:37:34]ProducePacketName [10:37:34]name=ofd_packets/00015687 [10:37:34]OFD Sender: To server: pG, [10:37:34]CommunicateWithHost lk.salyk.kg:30040 [10:37:34]ConnectInit lk.salyk.kg [10:37:34]written 0, free lines is 4095 [10:37:34]Connected sock=10 [10:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D4 D0 04 01 2E 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 21 00 00 00 F4 03 04 00 F6 BA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 47 3D 00 00 35 04 06 00 68 92 79 E3 62 87 8C AE 39 77 6F C8 FF 4C [10:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8D C2 47 00 9E 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 47 3D 00 00 F4 03 04 00 E3 65 20 67 B6 04 01 00 00 89 27 A7 9D A7 EC FA 0C [10:37:34]CommunicateWithHost err = 0 [10:37:34]CheckOFDResponse [10:37:34]1017 (14) - 77093643461234 [10:37:34]1041 (16) - 0000000000963325 [10:37:34]1040 (4) - 15687 [10:37:34]1012 (4) - 29.10.2024 04:34 [10:37:34]1206 (1) - 0 [10:37:34]OFD Sender: Remove packet 15687 [10:37:34]ProducePacketName [10:37:34]name=ofd_packets/00015687 [10:37:34]NVStorageDeleteData [10:37:34]Write to MH i2c: 01 00 00 DA 3F 19 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: 01 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: 01 07 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: 01 07 00 DA 3F 00 00 00 00 00 00 0D 2D [10:37:34]RasterBufferAndPrint [10:37:34]line [10:37:34]line [10:37:34]line [10:37:34]line [10:37:34]line [10:37:34]written 0, free lines is 3334 [10:37:34]MH_Cut [10:37:34]Write to MH i2c: D1 01 00 E1 3F 01 F2 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: D1 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: D1 01 00 [10:37:34]MH_I2C_Read... [10:37:34]Read from MH i2c: D1 01 00 E1 3F 00 F1 [10:37:34]Write to MH i2c: 01 00 00 E2 3F 21 [10:37:34]Write i2c OK [10:37:34]MH_I2C_Read... [10:37:34]OFD Sender: No OFD packet to send [10:37:35]*** Cut start [10:37:35]*** Partial cut [10:37:35]*** CUTSNS_PIN = 1 [10:37:35]*** CUTSNS_PIN = 0 [10:37:35]*** Brake cut motor [10:37:35]Read from MH i2c: 01 [10:37:35]MH_I2C_Read... [10:37:35]*** Stop cut motor [10:37:35]*** Cut end [10:37:35]Read from MH i2c: 01 07 00 [10:37:35]MH_I2C_Read... [10:37:35]Read from MH i2c: 01 07 00 E2 3F 00 00 00 00 00 FF 0F 36 [10:37:35]process_action close_receipt done [10:37:35]requested_data is exist [10:37:35]produce_requested_data [10:37:35]requested_item fm.sn is exist - process it [10:37:35]wFMCommunicate request_size=4 [10:37:35]MH_SAM_APDU [10:37:35]CAPDU: 80 11 00 00 [10:37:35]Write to MH i2c: E2 08 00 E3 3F 80 11 00 00 00 00 00 00 9C [10:37:35]Write i2c OK [10:37:35]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 17 00 E3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 EB [10:37:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:37:36]wFMCommunicate OK [10:37:36]requested_item fd.num is exist - process it [10:37:36]SAM_PROTO_GetFieldsCounters [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 13 00 00 [10:37:36]Write to MH i2c: E2 08 00 E4 3F 80 13 00 00 00 00 00 00 9F [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 62 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 62 00 E4 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 47 3D 00 00 0E 04 04 00 AC 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 56 [10:37:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 47 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_GetFieldsCounters done [10:37:36]requested_item shift.num is exist - process it [10:37:36]requested_item shift.opened is exist - process it [10:37:36]req_shift_opened [10:37:36]FM_GetShiftState [10:37:36]SAM_PROTO_GetShiftState [10:37:36]wFMCommunicate request_size=4 [10:37:36]MH_SAM_APDU [10:37:36]CAPDU: 80 13 01 00 [10:37:36]Write to MH i2c: E2 08 00 E5 3F 80 13 01 00 00 00 00 00 A1 [10:37:36]Write i2c OK [10:37:36]MH_I2C_Read... [10:37:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:36]Read from MH i2c: E2 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0E 00 [10:37:36]MH_I2C_Read... [10:37:36]Read from MH i2c: E2 0E 00 E5 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F6 [10:37:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:37:36]wFMCommunicate OK [10:37:36]SAM_PROTO_GetShiftState done [10:37:36]FM_GetShiftState done [10:37:36]req_shift_opened done [10:37:36]requested_item shift.open_date is exist - process it [10:37:36]req_shift_open_date [10:37:36]req_shift_open_date done [10:37:36]produce_requested_data done [10:37:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15687,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:37:36]process_action_free close_receipt [10:37:36]json_value_free [10:37:36]json_value_free done [10:37:36]process_json_proto returns [10:37:36]Send response to host [10:37:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15687,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:37:36]free response buf [10:37:36]execute_script done [10:37:36]execute_script returns [10:37:36]free content buf [10:37:36]Sock 8.Close socket [10:37:36]Sock 8.Thread stoped [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:17]accept exits with 9 [10:40:17]New connection [10:40:17]New thread 3066731876 created [10:40:17]Thread 3066588516 joined [10:40:17]Waiting for new connection... [10:40:17] Sock 9.Parse request [10:40:17]Sock 9.Check first char [10:40:17]Sock 9.First char is OK [10:40:17]request: POST /json_proto HTTP/1.0 [10:40:17]Method: POST [10:40:17]URL: /json_proto [10:40:17]Method is POST - this is cgi request [10:40:17]url: /json_proto [10:40:17]query_string will be loaded in cgi processing [10:40:17]execute_cgi json_proto POST (null) [10:40:17]execute_cgi path=json_proto method=POST [10:40:17]POST find Content-Length [10:40:17]Host: 172.17.54.195:8080 [10:40:17]Content-Length: 676 [10:40:17]Content-Type: application/json [10:40:17] [10:40:17]POST finish read [10:40:17]Found Content-Length = 676 [10:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:40:17]execute_script... [10: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)16237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:40:17]POST & json_proto [10:40:17]process_json_proto [10:40:17]json parsed OK: [10:40:17]protocol is kg_v1.0 [10:40:17]action value=close_receipt [10:40:17]process_action close_receipt [10:40:17]cmd_close_receipt [10:40:17]MH_GetDate [10:40:17]Write to MH i2c: F0 00 00 E6 3F 14 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: F0 09 00 E6 3F 00 9C BB 20 67 8D 90 A3 66 21 [10:40:17]GetLastDocTimeStamp 1730198262 [10:40:17]current date 1730198428 [10:40:17]FM_GetShiftState [10:40:17]SAM_PROTO_GetShiftState [10:40:17]wFMCommunicate request_size=4 [10:40:17]MH_SAM_APDU [10:40:17]CAPDU: 80 13 01 00 [10:40:17]Write to MH i2c: E2 08 00 E7 3F 80 13 01 00 00 00 00 00 A3 [10:40:17]Write i2c OK [10:40:17]MH_I2C_Read... [10:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:17]Read from MH i2c: E2 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0E 00 [10:40:17]MH_I2C_Read... [10:40:17]Read from MH i2c: E2 0E 00 E7 3F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F8 [10:40:17]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:40:17]wFMCommunicate OK [10:40:17]SAM_PROTO_GetShiftState done [10:40:17]FM_GetShiftState done [10:40:17]opened in 1730161559 [10:40:17]opened+sec_in_day 1730247959 [10:40:17]quantity*price = 50041 [10:40:17]sum+1 = 50042 [10:40:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 34 29.10.2024 10:40 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15688 ФПД: 70931532871616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104028&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15688&fm=70931532871616&tin=02508201610067®Number=0000000000161798&sum=50000 [10:40:19]StoreToDocumentArchive [10:40:19]shift 172 fd 15688 [10:40:19]save to /storage/0172/doc_00015688 [10:40:19]save last doc name /storage/0172/doc_00015688 to /storage/kkm_last_doc_name [10:40:19]save OK [10:40:19]Clear old archive folders... [10:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:19]tlvbuf is 0031FC10 [10:40:19]SAM_PROTO_ClearQueue [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 09 00 00 [10:40:19]Write to MH i2c: E2 08 00 F4 3F 80 09 00 00 00 00 00 00 A5 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 F4 3F 00 90 00 A7 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_ClearQueue done [10:40:19]KKMCreateOFDPacket [10:40:19]OFDProtocolAddRootSTLVToBuf [10:40:19]FM_MakeSignedData [10:40:19]FM_MakeSignedData [10:40:19]SAM_PROTO_SignData [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 01 02 [10:40:19]Write to MH i2c: E2 08 00 F5 3F 80 0D 01 02 00 00 00 00 AD [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 F5 3F 00 90 00 A8 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=255 [10:40:19]MH_SAM_APDU [10: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 35 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 22 00 00 00 F4 03 04 00 9C BB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 48 3D 00 00 35 04 06 00 40 [10:40:19]Write to MH i2c: E2 02 01 F6 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 9C BB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 48 3D 00 00 35 04 06 00 40 00 00 B0 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 F6 3F 00 90 00 A9 [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=10 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 02 02 05 83 08 D1 F7 C0 [10:40:19]Write to MH i2c: E2 0D 00 F7 3F 80 0D 02 02 05 00 83 08 D1 F7 C0 00 00 CD [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 03 00 F7 3F 00 90 00 AA [10:40:19]RAPDU: 90 00 [10:40:19]wFMCommunicate OK [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 0D 03 02 [10:40:19]Write to MH i2c: E2 08 00 F8 3F 80 0D 03 02 00 00 00 00 B2 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 0B 00 F8 3F 00 64 21 B3 FF 9F 72 6A 00 90 00 65 [10:40:19]RAPDU: 64 21 B3 FF 9F 72 6A 00 90 00 [10:40:19]wFMCommunicate OK [10:40:19]SAM_PROTO_SignData done [10:40:19]FM_MakeSignedData done [10:40:19]CreateOFDProtocolMessage [10:40:19]wFMCommunicate request_size=4 [10:40:19]MH_SAM_APDU [10:40:19]CAPDU: 80 11 00 00 [10:40:19]Write to MH i2c: E2 08 00 F9 3F 80 11 00 00 00 00 00 00 B2 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:19]Read from MH i2c: E2 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: E2 17 00 F9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 01 [10:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:40:19]wFMCommunicate OK [10:40:19]CreateOFDProtocolMessage done [10:40:19]OFDSenderStorePacket 15688 [10:40:19]StoreOFDPacket docnum=15688 [10:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B5 81 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 22 00 00 00 F4 03 04 00 9C BB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 48 3D 00 00 35 04 06 00 40 83 08 D1 F7 C0 64 21 B3 FF 9F 72 6A 00 [10:40:19]CheckFolder [10:40:19]dirname=/storage/ofd_packets [10:40:19]CheckFolder done [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00015688 [10:40:19]NVStorageSaveData ofd_packets/00015688 [10:40:19]File name is /storage/ofd_packets/00015688 [10:40:19]Write 301 bytes [10:40:19]NVStorageSaveData done [10:40:19]OFDSenderStorePacket done [10:40:19]KKMCreateOFDPacket done [10:40:19]NVStorageSaveData kkm_last_timestamp [10:40:19]File name is /storage/kkm_last_timestamp [10:40:19]Write 4 bytes [10:40:19]NVStorageSaveData done [10:40:19]ExternCall_PrintAddStr [10:40:19]wPrintStart [10:40:19]Write to MH i2c: 01 00 00 FA 3F 39 [10:40:19]Write i2c OK [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 [10:40:19]MH_I2C_Read... [10:40:19]Read from MH i2c: 01 07 00 FA 3F 00 00 00 00 00 FF 0F 4E [10:40:19]RasterBufferAndPrint [10:40:19]line Счет N : (1)16237 [10:40:19]line ИНН: 02508201610067 [10:40:19]line Контрольно-Кассовый Чек [10:40:19]line ПРОДАЖА [10:40:19]line ТРК (МРК, ГНК) : 21 [10:40:19]line Товар: 2710124130 [10:40:19]line Аи-92-К-5 [10:40:19]line 7.480 * 66.90 [10:40:19]line = 500.41 [10:40:19]line НДС 12% НСП 1% [10:40:19]line > о реализуемом товаре [10:40:19]line ОКРУГЛЕНИЕ: -0.41 [10:40:19]line ИТОГО: 500.00 [10:40:19]line Внесено: 500.00 [10:40:19]line СДАЧА: 0.00 [10:40:19]line НСП 1% : 4.43 [10:40:19]line НДС 12% : 53.14 [10:40:19]line Наличными: 500.00 [10:40:19]line Безнал.: 0.00 [10:40:19]line Место: АЗС № 178 "Партнер Нефть" [10:40:19]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:40:19]line СНО: Общий режим [10:40:19]line Чек 34 29.10.2024 10:40 [10:40:19]line Смена: 172 ФФД: 1.0 [10:40:19]line ЗНМ: 0300000014 [10:40:19]line РНМ: 0000000000161798 [10:40:19]line Версия ККМ: v1.0 [10:40:19]line ФМ: 0000000000963325 [10:40:19]line ФД: 15688 [10:40:19]line ФПД: 70931532871616 [10:40:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104028&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15688&fm=70931532871616&tin=02508201610067®Number=0000000000161798&sum=50000 [10:40:19]OFD Sender: Processing packet 15688 [packets to send 4, broken 3] [10:40:19]ProducePacketName [10:40:19]name=ofd_packets/00015688 [10:40:19]OFD Sender: To server: pG, [10:40:19]CommunicateWithHost lk.salyk.kg:30040 [10:40:19]ConnectInit lk.salyk.kg [10:40:19]written 0, free lines is 4095 [10:40:19]Connected sock=10 [10:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B5 81 07 01 35 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 22 00 00 00 F4 03 04 00 9C BB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 48 3D 00 00 35 04 06 00 40 83 08 D1 F7 C0 64 21 B3 FF 9F 72 6A 00 [10:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5C 43 47 00 67 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 48 3D 00 00 F4 03 04 00 89 66 20 67 B6 04 01 00 00 96 E5 5B 50 85 C7 6E CA [10:40:20]CommunicateWithHost err = 0 [10:40:20]CheckOFDResponse [10:40:20]1017 (14) - 77093643461234 [10:40:20]1041 (16) - 0000000000963325 [10:40:20]1040 (4) - 15688 [10:40:20]1012 (4) - 29.10.2024 04:37 [10:40:20]1206 (1) - 0 [10:40:20]OFD Sender: Remove packet 15688 [10:40:20]ProducePacketName [10:40:20]name=ofd_packets/00015688 [10:40:20]NVStorageDeleteData [10:40:20]Write to MH i2c: 01 00 00 25 40 65 [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: 01 07 00 25 40 00 00 00 00 00 FD 0C 75 [10:40:20]RasterBufferAndPrint [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]line [10:40:20]written 0, free lines is 3332 [10:40:20]MH_Cut [10:40:20]Write to MH i2c: D1 01 00 2C 40 01 3E [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 [10:40:20]MH_I2C_Read... [10:40:20]Read from MH i2c: D1 01 00 2C 40 00 3D [10:40:20]Write to MH i2c: 01 00 00 2D 40 6D [10:40:20]Write i2c OK [10:40:20]MH_I2C_Read... [10:40:20]OFD Sender: No OFD packet to send [10:40:21]*** Cut start [10:40:21]*** Partial cut [10:40:21]*** CUTSNS_PIN = 1 [10:40:21]*** CUTSNS_PIN = 0 [10:40:21]*** Brake cut motor [10:40:21]Read from MH i2c: 01 [10:40:21]MH_I2C_Read... [10:40:21]*** Stop cut motor [10:40:21]*** Cut end [10:40:21]Read from MH i2c: 01 07 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: 01 07 00 2D 40 00 00 00 00 00 FF 0F 82 [10:40:21]process_action close_receipt done [10:40:21]requested_data is exist [10:40:21]produce_requested_data [10:40:21]requested_item fm.sn is exist - process it [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 11 00 00 [10:40:21]Write to MH i2c: E2 08 00 2E 40 80 11 00 00 00 00 00 00 E8 [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 17 00 2E 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 37 [10:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:40:21]wFMCommunicate OK [10:40:21]requested_item fd.num is exist - process it [10:40:21]SAM_PROTO_GetFieldsCounters [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 00 00 [10:40:21]Write to MH i2c: E2 08 00 2F 40 80 13 00 00 00 00 00 00 EB [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 62 00 2F 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 48 3D 00 00 0E 04 04 00 AC 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 A6 [10:40:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 48 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetFieldsCounters done [10:40:21]requested_item shift.num is exist - process it [10:40:21]requested_item shift.opened is exist - process it [10:40:21]req_shift_opened [10:40:21]FM_GetShiftState [10:40:21]SAM_PROTO_GetShiftState [10:40:21]wFMCommunicate request_size=4 [10:40:21]MH_SAM_APDU [10:40:21]CAPDU: 80 13 01 00 [10:40:21]Write to MH i2c: E2 08 00 30 40 80 13 01 00 00 00 00 00 ED [10:40:21]Write i2c OK [10:40:21]MH_I2C_Read... [10:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:21]Read from MH i2c: E2 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 [10:40:21]MH_I2C_Read... [10:40:21]Read from MH i2c: E2 0E 00 30 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 42 [10:40:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:40:21]wFMCommunicate OK [10:40:21]SAM_PROTO_GetShiftState done [10:40:21]FM_GetShiftState done [10:40:21]req_shift_opened done [10:40:21]requested_item shift.open_date is exist - process it [10:40:21]req_shift_open_date [10:40:21]req_shift_open_date done [10:40:21]produce_requested_data done [10:40:21]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15688,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:40:21]process_action_free close_receipt [10:40:21]json_value_free [10:40:21]json_value_free done [10:40:21]process_json_proto returns [10:40:21]Send response to host [10:40:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15688,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:40:21]free response buf [10:40:21]execute_script done [10:40:21]execute_script returns [10:40:21]free content buf [10:40:21]Sock 9.Close socket [10:40:21]Sock 9.Thread stoped [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:47]accept exits with 8 [10:44:47]New connection [10:44:47]New thread 3066588516 created [10:44:47]Thread 3066731876 joined [10:44:47]Waiting for new connection... [10:44:47] Sock 8.Parse request [10:44:47]Sock 8.Check first char [10:44:47]Sock 8.First char is OK [10:44:47]request: POST /json_proto HTTP/1.0 [10:44:47]Method: POST [10:44:47]URL: /json_proto [10:44:47]Method is POST - this is cgi request [10:44:47]url: /json_proto [10:44:47]query_string will be loaded in cgi processing [10:44:47]execute_cgi json_proto POST (null) [10:44:47]execute_cgi path=json_proto method=POST [10:44:47]POST find Content-Length [10:44:47]Host: 172.17.54.195:8080 [10:44:47]Content-Length: 676 [10:44:47]Content-Type: application/json [10:44:47] [10:44:47]POST finish read [10:44:47]Found Content-Length = 676 [10:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:44:47]execute_script... [10:44: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)16238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:44:47]POST & json_proto [10:44:47]process_json_proto [10:44:47]json parsed OK: [10:44:47]protocol is kg_v1.0 [10:44:47]action value=close_receipt [10:44:47]process_action close_receipt [10:44:47]cmd_close_receipt [10:44:47]MH_GetDate [10:44:47]Write to MH i2c: F0 00 00 31 40 60 [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: F0 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: F0 09 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: F0 09 00 31 40 00 AA BC 20 67 8D 90 A3 66 7C [10:44:47]GetLastDocTimeStamp 1730198428 [10:44:47]current date 1730198698 [10:44:47]FM_GetShiftState [10:44:47]SAM_PROTO_GetShiftState [10:44:47]wFMCommunicate request_size=4 [10:44:47]MH_SAM_APDU [10:44:47]CAPDU: 80 13 01 00 [10:44:47]Write to MH i2c: E2 08 00 32 40 80 13 01 00 00 00 00 00 EF [10:44:47]Write i2c OK [10:44:47]MH_I2C_Read... [10:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:47]Read from MH i2c: E2 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0E 00 [10:44:47]MH_I2C_Read... [10:44:47]Read from MH i2c: E2 0E 00 32 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 44 [10:44:47]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:44:47]wFMCommunicate OK [10:44:47]SAM_PROTO_GetShiftState done [10:44:47]FM_GetShiftState done [10:44:47]opened in 1730161559 [10:44:47]opened+sec_in_day 1730247959 [10:44:47]quantity*price = 50041 [10:44:47]sum+1 = 50042 [10:44: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 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 35 29.10.2024 10:44 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15689 ФПД: 236648828597044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104458&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15689&fm=236648828597044&tin=02508201610067®Number=0000000000161798&sum=50000 [10:44:49]StoreToDocumentArchive [10:44:49]shift 172 fd 15689 [10:44:49]save to /storage/0172/doc_00015689 [10:44:49]save last doc name /storage/0172/doc_00015689 to /storage/kkm_last_doc_name [10:44:49]save OK [10:44:49]Clear old archive folders... [10:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:49]tlvbuf is 003808F0 [10:44:49]SAM_PROTO_ClearQueue [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 09 00 00 [10:44:49]Write to MH i2c: E2 08 00 3F 40 80 09 00 00 00 00 00 00 F1 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 3F 40 00 90 00 F3 [10:44:49]RAPDU: 90 00 [10:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_ClearQueue done [10:44:49]KKMCreateOFDPacket [10:44:49]OFDProtocolAddRootSTLVToBuf [10:44:49]FM_MakeSignedData [10:44:49]FM_MakeSignedData [10:44:49]SAM_PROTO_SignData [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 0D 01 02 [10:44:49]Write to MH i2c: E2 08 00 40 40 80 0D 01 02 00 00 00 00 F9 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 40 40 00 90 00 F4 [10:44:49]RAPDU: 90 00 [10:44:49]wFMCommunicate OK [10:44:49]wFMCommunicate request_size=255 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 AA BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 49 3D 00 00 35 04 06 00 D7 [10:44:49]Write to MH i2c: E2 02 01 41 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 AA BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 49 3D 00 00 35 04 06 00 D7 00 00 A4 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 41 40 00 90 00 F5 [10:44:49]RAPDU: 90 00 [10:44:49]wFMCommunicate OK [10:44:49]wFMCommunicate request_size=10 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 0D 02 02 05 3B 19 5D 73 34 [10:44:49]Write to MH i2c: E2 0D 00 42 40 80 0D 02 02 05 00 3B 19 5D 73 34 00 00 5E [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 03 00 42 40 00 90 00 F6 [10:44:49]RAPDU: 90 00 [10:44:49]wFMCommunicate OK [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 0D 03 02 [10:44:49]Write to MH i2c: E2 08 00 43 40 80 0D 03 02 00 00 00 00 FE [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0B 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 0B 00 43 40 00 9E 3D FB AB 23 D5 28 1A 90 00 BA [10:44:49]RAPDU: 9E 3D FB AB 23 D5 28 1A 90 00 [10:44:49]wFMCommunicate OK [10:44:49]SAM_PROTO_SignData done [10:44:49]FM_MakeSignedData done [10:44:49]CreateOFDProtocolMessage [10:44:49]wFMCommunicate request_size=4 [10:44:49]MH_SAM_APDU [10:44:49]CAPDU: 80 11 00 00 [10:44:49]Write to MH i2c: E2 08 00 44 40 80 11 00 00 00 00 00 00 FE [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:49]Read from MH i2c: E2 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: E2 17 00 44 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4D [10:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:44:49]wFMCommunicate OK [10:44:49]CreateOFDProtocolMessage done [10:44:49]OFDSenderStorePacket 15689 [10:44:49]StoreOFDPacket docnum=15689 [10:44:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EE 08 07 01 46 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 AA BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 49 3D 00 00 35 04 06 00 D7 3B 19 5D 73 34 9E 3D FB AB 23 D5 28 1A [10:44:49]CheckFolder [10:44:49]dirname=/storage/ofd_packets [10:44:49]CheckFolder done [10:44:49]ProducePacketName [10:44:49]name=ofd_packets/00015689 [10:44:49]NVStorageSaveData ofd_packets/00015689 [10:44:49]File name is /storage/ofd_packets/00015689 [10:44:49]Write 301 bytes [10:44:49]NVStorageSaveData done [10:44:49]OFDSenderStorePacket done [10:44:49]KKMCreateOFDPacket done [10:44:49]NVStorageSaveData kkm_last_timestamp [10:44:49]File name is /storage/kkm_last_timestamp [10:44:49]Write 4 bytes [10:44:49]NVStorageSaveData done [10:44:49]ExternCall_PrintAddStr [10:44:49]wPrintStart [10:44:49]Write to MH i2c: 01 00 00 45 40 85 [10:44:49]Write i2c OK [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 07 00 [10:44:49]MH_I2C_Read... [10:44:49]Read from MH i2c: 01 07 00 45 40 00 00 00 00 00 FF 0F 9A [10:44:49]RasterBufferAndPrint [10:44:49]line Счет N : (1)16238 [10:44:49]line ИНН: 02508201610067 [10:44:49]line Контрольно-Кассовый Чек [10:44:49]line ПРОДАЖА [10:44:49]line ТРК (МРК, ГНК) : 21 [10:44:49]line Товар: 2710124130 [10:44:49]line Аи-92-К-5 [10:44:49]line 7.480 * 66.90 [10:44:49]line = 500.41 [10:44:49]line НДС 12% НСП 1% [10:44:49]line > о реализуемом товаре [10:44:49]line ОКРУГЛЕНИЕ: -0.41 [10:44:49]line ИТОГО: 500.00 [10:44:49]line Внесено: 500.00 [10:44:49]line СДАЧА: 0.00 [10:44:49]line НСП 1% : 4.43 [10:44:49]line НДС 12% : 53.14 [10:44:49]line Наличными: 500.00 [10:44:49]line Безнал.: 0.00 [10:44:49]line Место: АЗС № 178 "Партнер Нефть" [10:44:49]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:44:49]line СНО: Общий режим [10:44:49]line Чек 35 29.10.2024 10:44 [10:44:49]line Смена: 172 ФФД: 1.0 [10:44:49]line ЗНМ: 0300000014 [10:44:49]line РНМ: 0000000000161798 [10:44:49]line Версия ККМ: v1.0 [10:44:49]line ФМ: 0000000000963325 [10:44:49]line ФД: 15689 [10:44:49]line ФПД: 236648828597044 [10:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104458&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15689&fm=236648828597044&tin=02508201610067®Number=0000000000161798&sum=50000 [10:44:49]OFD Sender: Processing packet 15689 [packets to send 4, broken 3] [10:44:49]ProducePacketName [10:44:49]name=ofd_packets/00015689 [10:44:49]OFD Sender: To server: pG, [10:44:49]CommunicateWithHost lk.salyk.kg:30040 [10:44:49]ConnectInit lk.salyk.kg [10:44:49]written 0, free lines is 4095 [10:44:50]Connected sock=10 [10:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EE 08 07 01 46 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 23 00 00 00 F4 03 04 00 AA BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 49 3D 00 00 35 04 06 00 D7 3B 19 5D 73 34 9E 3D FB AB 23 D5 28 1A [10:44:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 3B 4E 47 00 DC B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 49 3D 00 00 F4 03 04 00 97 67 20 67 B6 04 01 00 00 ED 7E 89 C5 A5 34 CD F9 [10:44:50]CommunicateWithHost err = 0 [10:44:50]CheckOFDResponse [10:44:50]1017 (14) - 77093643461234 [10:44:50]1041 (16) - 0000000000963325 [10:44:50]1040 (4) - 15689 [10:44:50]1012 (4) - 29.10.2024 04:41 [10:44:50]1206 (1) - 0 [10:44:50]OFD Sender: Remove packet 15689 [10:44:50]ProducePacketName [10:44:50]name=ofd_packets/00015689 [10:44:50]NVStorageDeleteData [10:44:50]Write to MH i2c: 01 00 00 70 40 B0 [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: 01 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: 01 07 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: 01 07 00 70 40 00 00 00 00 00 EF 0C B2 [10:44:50]RasterBufferAndPrint [10:44:50]line [10:44:50]line [10:44:50]line [10:44:50]line [10:44:50]line [10:44:50]written 0, free lines is 3320 [10:44:50]MH_Cut [10:44:50]Write to MH i2c: D1 01 00 77 40 01 89 [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: D1 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: D1 01 00 [10:44:50]MH_I2C_Read... [10:44:50]Read from MH i2c: D1 01 00 77 40 00 88 [10:44:50]Write to MH i2c: 01 00 00 78 40 B8 [10:44:50]Write i2c OK [10:44:50]MH_I2C_Read... [10:44:50]OFD Sender: No OFD packet to send [10:44:51]*** Cut start [10:44:51]*** Partial cut [10:44:51]*** CUTSNS_PIN = 1 [10:44:51]*** CUTSNS_PIN = 0 [10:44:51]*** Brake cut motor [10:44:51]Read from MH i2c: 01 [10:44:51]MH_I2C_Read... [10:44:51]*** Stop cut motor [10:44:51]*** Cut end [10:44:51]Read from MH i2c: 01 07 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: 01 07 00 78 40 00 00 00 00 00 FF 0F CD [10:44:51]process_action close_receipt done [10:44:51]requested_data is exist [10:44:51]produce_requested_data [10:44:51]requested_item fm.sn is exist - process it [10:44:51]wFMCommunicate request_size=4 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 11 00 00 [10:44:51]Write to MH i2c: E2 08 00 79 40 80 11 00 00 00 00 00 00 33 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:51]Read from MH i2c: E2 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 17 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 17 00 79 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 82 [10:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:44:51]wFMCommunicate OK [10:44:51]requested_item fd.num is exist - process it [10:44:51]SAM_PROTO_GetFieldsCounters [10:44:51]wFMCommunicate request_size=4 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 13 00 00 [10:44:51]Write to MH i2c: E2 08 00 7A 40 80 13 00 00 00 00 00 00 36 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:51]Read from MH i2c: E2 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 62 00 [10:44:51]MH_I2C_Read... [10:44:51]Read from MH i2c: E2 62 00 7A 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 49 3D 00 00 0E 04 04 00 AC 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 F5 [10:44:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 49 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:51]wFMCommunicate OK [10:44:51]SAM_PROTO_GetFieldsCounters done [10:44:51]requested_item shift.num is exist - process it [10:44:51]requested_item shift.opened is exist - process it [10:44:51]req_shift_opened [10:44:51]FM_GetShiftState [10:44:51]SAM_PROTO_GetShiftState [10:44:51]wFMCommunicate request_size=4 [10:44:51]MH_SAM_APDU [10:44:51]CAPDU: 80 13 01 00 [10:44:51]Write to MH i2c: E2 08 00 7B 40 80 13 01 00 00 00 00 00 38 [10:44:51]Write i2c OK [10:44:51]MH_I2C_Read... [10:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:52]Read from MH i2c: E2 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 0E 00 [10:44:52]MH_I2C_Read... [10:44:52]Read from MH i2c: E2 0E 00 7B 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8D [10:44:52]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:44:52]wFMCommunicate OK [10:44:52]SAM_PROTO_GetShiftState done [10:44:52]FM_GetShiftState done [10:44:52]req_shift_opened done [10:44:52]requested_item shift.open_date is exist - process it [10:44:52]req_shift_open_date [10:44:52]req_shift_open_date done [10:44:52]produce_requested_data done [10:44:52]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15689,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:44:52]process_action_free close_receipt [10:44:52]json_value_free [10:44:52]json_value_free done [10:44:52]process_json_proto returns [10:44:52]Send response to host [10:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15689,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:44:52]free response buf [10:44:52]execute_script done [10:44:52]execute_script returns [10:44:52]free content buf [10:44:52]Sock 8.Close socket [10:44:52]Sock 8.Thread stoped [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]accept exits with 9 [10:45:55]New connection [10:45:55]New thread 3066731876 created [10:45:55]Thread 3066588516 joined [10:45:55]Waiting for new connection... [10:45:55] Sock 9.Parse request [10:45:55]Sock 9.Check first char [10:45:55]Sock 9.First char is OK [10:45:55]request: POST /json_proto HTTP/1.0 [10:45:55]Method: POST [10:45:55]URL: /json_proto [10:45:55]Method is POST - this is cgi request [10:45:55]url: /json_proto [10:45:55]query_string will be loaded in cgi processing [10:45:55]execute_cgi json_proto POST (null) [10:45:55]execute_cgi path=json_proto method=POST [10:45:55]POST find Content-Length [10:45:55]Host: 172.17.54.195:8080 [10:45:55]Content-Length: 639 [10:45:55]Content-Type: application/json [10:45:55] [10:45:55]POST finish read [10:45:55]Found Content-Length = 639 [10:45:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]execute_script... [10:45: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)16239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:55]POST & json_proto [10:45:55]process_json_proto [10:45:55]json parsed OK: [10:45:55]protocol is kg_v1.0 [10:45:55]action value=close_receipt [10:45:55]process_action close_receipt [10:45:55]cmd_close_receipt [10:45:55]MH_GetDate [10:45:55]Write to MH i2c: F0 00 00 7C 40 AB [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: F0 09 00 7C 40 00 ED BC 20 67 8D 90 A3 66 0A [10:45:55]GetLastDocTimeStamp 1730198698 [10:45:55]current date 1730198765 [10:45:55]FM_GetShiftState [10:45:55]SAM_PROTO_GetShiftState [10:45:55]wFMCommunicate request_size=4 [10:45:55]MH_SAM_APDU [10:45:55]CAPDU: 80 13 01 00 [10:45:55]Write to MH i2c: E2 08 00 7D 40 80 13 01 00 00 00 00 00 3A [10:45:55]Write i2c OK [10:45:55]MH_I2C_Read... [10:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:55]Read from MH i2c: E2 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 [10:45:55]MH_I2C_Read... [10:45:55]Read from MH i2c: E2 0E 00 7D 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8F [10:45:55]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:45:55]wFMCommunicate OK [10:45:55]SAM_PROTO_GetShiftState done [10:45:55]FM_GetShiftState done [10:45:55]opened in 1730161559 [10:45:55]opened+sec_in_day 1730247959 [10:45:55]quantity*price = 66900 [10:45:55]sum+1 = 66901 [10:45:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 36 29.10.2024 10:46 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15690 ФПД: 274459664581629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104605&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15690&fm=274459664581629&tin=02508201610067®Number=0000000000161798&sum=66900 [10:45:56]StoreToDocumentArchive [10:45:56]shift 172 fd 15690 [10:45:56]save to /storage/0172/doc_00015690 [10:45:56]save last doc name /storage/0172/doc_00015690 to /storage/kkm_last_doc_name [10:45:56]save OK [10:45:56]Clear old archive folders... [10:45:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:56]tlvbuf is 00348640 [10:45:56]SAM_PROTO_ClearQueue [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 09 00 00 [10:45:56]Write to MH i2c: E2 08 00 8A 40 80 09 00 00 00 00 00 00 3C [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 8A 40 00 90 00 3E [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_ClearQueue done [10:45:56]KKMCreateOFDPacket [10:45:56]OFDProtocolAddRootSTLVToBuf [10:45:56]FM_MakeSignedData [10:45:56]FM_MakeSignedData [10:45:56]SAM_PROTO_SignData [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 01 02 [10:45:56]Write to MH i2c: E2 08 00 8B 40 80 0D 01 02 00 00 00 00 44 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 8B 40 00 90 00 3F [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=255 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 ED BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4A 3D 00 00 35 04 06 00 F9 [10:45:56]Write to MH i2c: E2 02 01 8C 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 ED BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4A 3D 00 00 35 04 06 00 F9 00 00 7F [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 8C 40 00 90 00 40 [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=10 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 02 02 05 9E 9E D0 03 FD [10:45:56]Write to MH i2c: E2 0D 00 8D 40 80 0D 02 02 05 00 9E 9E D0 03 FD 00 00 5D [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 03 00 8D 40 00 90 00 41 [10:45:56]RAPDU: 90 00 [10:45:56]wFMCommunicate OK [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 0D 03 02 [10:45:56]Write to MH i2c: E2 08 00 8E 40 80 0D 03 02 00 00 00 00 49 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 0B 00 8E 40 00 E0 B9 72 78 DD 24 EC CA 90 00 84 [10:45:56]RAPDU: E0 B9 72 78 DD 24 EC CA 90 00 [10:45:56]wFMCommunicate OK [10:45:56]SAM_PROTO_SignData done [10:45:56]FM_MakeSignedData done [10:45:56]CreateOFDProtocolMessage [10:45:56]wFMCommunicate request_size=4 [10:45:56]MH_SAM_APDU [10:45:56]CAPDU: 80 11 00 00 [10:45:56]Write to MH i2c: E2 08 00 8F 40 80 11 00 00 00 00 00 00 49 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:56]Read from MH i2c: E2 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: E2 17 00 8F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 98 [10:45:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:45:56]wFMCommunicate OK [10:45:56]CreateOFDProtocolMessage done [10:45:56]OFDSenderStorePacket 15690 [10:45:56]StoreOFDPacket docnum=15690 [10:45:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 68 AC 07 01 6E 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 ED BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4A 3D 00 00 35 04 06 00 F9 9E 9E D0 03 FD E0 B9 72 78 DD 24 EC CA [10:45:56]CheckFolder [10:45:56]dirname=/storage/ofd_packets [10:45:56]CheckFolder done [10:45:56]ProducePacketName [10:45:56]name=ofd_packets/00015690 [10:45:56]NVStorageSaveData ofd_packets/00015690 [10:45:56]File name is /storage/ofd_packets/00015690 [10:45:56]Write 301 bytes [10:45:56]NVStorageSaveData done [10:45:56]OFDSenderStorePacket done [10:45:56]KKMCreateOFDPacket done [10:45:56]NVStorageSaveData kkm_last_timestamp [10:45:56]File name is /storage/kkm_last_timestamp [10:45:56]Write 4 bytes [10:45:56]NVStorageSaveData done [10:45:56]ExternCall_PrintAddStr [10:45:56]wPrintStart [10:45:56]Write to MH i2c: 01 00 00 90 40 D0 [10:45:56]Write i2c OK [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 [10:45:56]MH_I2C_Read... [10:45:56]Read from MH i2c: 01 07 00 90 40 00 00 00 00 00 FF 0F E5 [10:45:56]RasterBufferAndPrint [10:45:56]line Счет N : (1)16239 [10:45:56]line ИНН: 02508201610067 [10:45:56]line Контрольно-Кассовый Чек [10:45:56]line ПРОДАЖА [10:45:56]line ТРК (МРК, ГНК) : 21 [10:45:56]line Товар: 2710124130 [10:45:56]line Аи-92-К-5 [10:45:56]line 10.000 * 66.90 [10:45:56]line = 669.00 [10:45:56]line НДС 12% НСП 1% [10:45:56]line > о реализуемом товаре [10:45:56]line ИТОГО: 669.00 [10:45:56]line НСП 1% : 5.92 [10:45:56]line НДС 12% : 71.04 [10:45:56]line Наличными: 669.00 [10:45:56]line Безнал.: 0.00 [10:45:56]line Место: АЗС № 178 "Партнер Нефть" [10:45:56]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:45:56]line СНО: Общий режим [10:45:56]line Чек 36 29.10.2024 10:46 [10:45:56]line Смена: 172 ФФД: 1.0 [10:45:56]line ЗНМ: 0300000014 [10:45:56]line РНМ: 0000000000161798 [10:45:56]line Версия ККМ: v1.0 [10:45:56]line ФМ: 0000000000963325 [10:45:56]line ФД: 15690 [10:45:56]line ФПД: 274459664581629 [10:45:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104605&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15690&fm=274459664581629&tin=02508201610067®Number=0000000000161798&sum=66900 [10:45:57]OFD Sender: Processing packet 15690 [packets to send 4, broken 3] [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00015690 [10:45:57]OFD Sender: To server: pG, [10:45:57]CommunicateWithHost lk.salyk.kg:30040 [10:45:57]ConnectInit lk.salyk.kg [10:45:57]written 0, free lines is 4095 [10:45:57]Connected sock=10 [10:45:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 68 AC 07 01 6E 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 ED BC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4A 3D 00 00 35 04 06 00 F9 9E 9E D0 03 FD E0 B9 72 78 DD 24 EC CA [10:45:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 9A CB 47 00 45 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4A 3D 00 00 F4 03 04 00 DA 67 20 67 B6 04 01 00 00 04 BE FD 76 CB 8F 44 96 [10:45:57]CommunicateWithHost err = 0 [10:45:57]CheckOFDResponse [10:45:57]1017 (14) - 77093643461234 [10:45:57]1041 (16) - 0000000000963325 [10:45:57]1040 (4) - 15690 [10:45:57]1012 (4) - 29.10.2024 04:43 [10:45:57]1206 (1) - 0 [10:45:57]OFD Sender: Remove packet 15690 [10:45:57]ProducePacketName [10:45:57]name=ofd_packets/00015690 [10:45:57]NVStorageDeleteData [10:45:57]Write to MH i2c: 01 00 00 B8 40 F8 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: 01 07 00 B8 40 00 00 00 00 00 33 0D 3F [10:45:57]RasterBufferAndPrint [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]line [10:45:57]written 0, free lines is 3389 [10:45:57]MH_Cut [10:45:57]Write to MH i2c: D1 01 00 BF 40 01 D1 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 [10:45:57]MH_I2C_Read... [10:45:57]Read from MH i2c: D1 01 00 BF 40 00 D0 [10:45:57]Write to MH i2c: 01 00 00 C0 40 00 [10:45:57]Write i2c OK [10:45:57]MH_I2C_Read... [10:45:57]OFD Sender: No OFD packet to send [10:45:58]*** Cut start [10:45:58]*** Partial cut [10:45:58]*** CUTSNS_PIN = 1 [10:45:58]*** CUTSNS_PIN = 0 [10:45:58]*** Brake cut motor [10:45:58]Read from MH i2c: 01 [10:45:58]MH_I2C_Read... [10:45:58]*** Stop cut motor [10:45:58]*** Cut end [10:45:58]Read from MH i2c: 01 07 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: 01 07 00 C0 40 00 00 00 00 00 FF 0F 15 [10:45:58]process_action close_receipt done [10:45:58]requested_data is exist [10:45:58]produce_requested_data [10:45:58]requested_item fm.sn is exist - process it [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 11 00 00 [10:45:58]Write to MH i2c: E2 08 00 C1 40 80 11 00 00 00 00 00 00 7B [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:58]Read from MH i2c: E2 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 [10:45:58]MH_I2C_Read... [10:45:58]Read from MH i2c: E2 17 00 C1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CA [10:45:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:45:58]wFMCommunicate OK [10:45:58]requested_item fd.num is exist - process it [10:45:58]SAM_PROTO_GetFieldsCounters [10:45:58]wFMCommunicate request_size=4 [10:45:58]MH_SAM_APDU [10:45:58]CAPDU: 80 13 00 00 [10:45:58]Write to MH i2c: E2 08 00 C2 40 80 13 00 00 00 00 00 00 7E [10:45:58]Write i2c OK [10:45:58]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 62 00 C2 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4A 3D 00 00 0E 04 04 00 AC 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 41 [10:45:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4A 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetFieldsCounters done [10:45:59]requested_item shift.num is exist - process it [10:45:59]requested_item shift.opened is exist - process it [10:45:59]req_shift_opened [10:45:59]FM_GetShiftState [10:45:59]SAM_PROTO_GetShiftState [10:45:59]wFMCommunicate request_size=4 [10:45:59]MH_SAM_APDU [10:45:59]CAPDU: 80 13 01 00 [10:45:59]Write to MH i2c: E2 08 00 C3 40 80 13 01 00 00 00 00 00 80 [10:45:59]Write i2c OK [10:45:59]MH_I2C_Read... [10:45:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:59]Read from MH i2c: E2 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 [10:45:59]MH_I2C_Read... [10:45:59]Read from MH i2c: E2 0E 00 C3 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D5 [10:45:59]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:45:59]wFMCommunicate OK [10:45:59]SAM_PROTO_GetShiftState done [10:45:59]FM_GetShiftState done [10:45:59]req_shift_opened done [10:45:59]requested_item shift.open_date is exist - process it [10:45:59]req_shift_open_date [10:45:59]req_shift_open_date done [10:45:59]produce_requested_data done [10:45:59]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15690,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:45:59]process_action_free close_receipt [10:45:59]json_value_free [10:45:59]json_value_free done [10:45:59]process_json_proto returns [10:45:59]Send response to host [10:45:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15690,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:45:59]free response buf [10:45:59]execute_script done [10:45:59]execute_script returns [10:45:59]free content buf [10:45:59]Sock 9.Close socket [10:45:59]Sock 9.Thread stoped [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:29]accept exits with 8 [10:49:29]New connection [10:49:29]New thread 3066588516 created [10:49:29]Thread 3066731876 joined [10:49:29]Waiting for new connection... [10:49:29] Sock 8.Parse request [10:49:29]Sock 8.Check first char [10:49:29]Sock 8.First char is OK [10:49:29]request: POST /json_proto HTTP/1.0 [10:49:29]Method: POST [10:49:29]URL: /json_proto [10:49:29]Method is POST - this is cgi request [10:49:29]url: /json_proto [10:49:29]query_string will be loaded in cgi processing [10:49:29]execute_cgi json_proto POST (null) [10:49:29]execute_cgi path=json_proto method=POST [10:49:29]POST find Content-Length [10:49:29]Host: 172.17.54.195:8080 [10:49:29]Content-Length: 676 [10:49:29]Content-Type: application/json [10:49:29] [10:49:29]POST finish read [10:49:29]Found Content-Length = 676 [10:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:49:29]execute_script... [10:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:49:29]POST & json_proto [10:49:29]process_json_proto [10:49:29]json parsed OK: [10:49:29]protocol is kg_v1.0 [10:49:29]action value=close_receipt [10:49:29]process_action close_receipt [10:49:29]cmd_close_receipt [10:49:29]MH_GetDate [10:49:29]Write to MH i2c: F0 00 00 C4 40 F3 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 09 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: F0 09 00 C4 40 00 C4 BD 20 67 8D 90 A3 66 2A [10:49:29]GetLastDocTimeStamp 1730198765 [10:49:29]current date 1730198980 [10:49:29]FM_GetShiftState [10:49:29]SAM_PROTO_GetShiftState [10:49:29]wFMCommunicate request_size=4 [10:49:29]MH_SAM_APDU [10:49:29]CAPDU: 80 13 01 00 [10:49:29]Write to MH i2c: E2 08 00 C5 40 80 13 01 00 00 00 00 00 82 [10:49:29]Write i2c OK [10:49:29]MH_I2C_Read... [10:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:29]Read from MH i2c: E2 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 [10:49:29]MH_I2C_Read... [10:49:29]Read from MH i2c: E2 0E 00 C5 40 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D7 [10:49:29]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:49:29]wFMCommunicate OK [10:49:29]SAM_PROTO_GetShiftState done [10:49:29]FM_GetShiftState done [10:49:29]opened in 1730161559 [10:49:29]opened+sec_in_day 1730247959 [10:49:29]quantity*price = 20003 [10:49:29]sum+1 = 20004 [10:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 37 29.10.2024 10:49 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15691 ФПД: 131185073797960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104940&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15691&fm=131185073797960&tin=02508201610067®Number=0000000000161798&sum=20000 [10:49:30]StoreToDocumentArchive [10:49:30]shift 172 fd 15691 [10:49:30]save to /storage/0172/doc_00015691 [10:49:30]save last doc name /storage/0172/doc_00015691 to /storage/kkm_last_doc_name [10:49:30]save OK [10:49:30]Clear old archive folders... [10:49:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:30]tlvbuf is B6D72100 [10:49:30]SAM_PROTO_ClearQueue [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 09 00 00 [10:49:30]Write to MH i2c: E2 08 00 D2 40 80 09 00 00 00 00 00 00 84 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 D2 40 00 90 00 86 [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]SAM_PROTO_ClearQueue done [10:49:30]KKMCreateOFDPacket [10:49:30]OFDProtocolAddRootSTLVToBuf [10:49:30]FM_MakeSignedData [10:49:30]FM_MakeSignedData [10:49:30]SAM_PROTO_SignData [10:49:30]wFMCommunicate request_size=4 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 01 02 [10:49:30]Write to MH i2c: E2 08 00 D3 40 80 0D 01 02 00 00 00 00 8C [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 D3 40 00 90 00 87 [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]wFMCommunicate request_size=255 [10:49:30]MH_SAM_APDU [10:49: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 35 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 25 00 00 00 F4 03 04 00 C4 BD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4B 3D 00 00 35 04 06 00 77 [10:49:30]Write to MH i2c: E2 02 01 D4 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 25 00 00 00 F4 03 04 00 C4 BD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4B 3D 00 00 35 04 06 00 77 00 00 B8 [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:30]Read from MH i2c: E2 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 [10:49:30]MH_I2C_Read... [10:49:30]Read from MH i2c: E2 03 00 D4 40 00 90 00 88 [10:49:30]RAPDU: 90 00 [10:49:30]wFMCommunicate OK [10:49:30]wFMCommunicate request_size=10 [10:49:30]MH_SAM_APDU [10:49:30]CAPDU: 80 0D 02 02 05 4F E7 B9 3B 48 [10:49:30]Write to MH i2c: E2 0D 00 D5 40 80 0D 02 02 05 00 4F E7 B9 3B 48 00 00 0B [10:49:30]Write i2c OK [10:49:30]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 03 00 D5 40 00 90 00 89 [10:49:31]RAPDU: 90 00 [10:49:31]wFMCommunicate OK [10:49:31]wFMCommunicate request_size=4 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 0D 03 02 [10:49:31]Write to MH i2c: E2 08 00 D6 40 80 0D 03 02 00 00 00 00 91 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 0B 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 0B 00 D6 40 00 BD AE AD 0F C6 2A 10 5D 90 00 16 [10:49:31]RAPDU: BD AE AD 0F C6 2A 10 5D 90 00 [10:49:31]wFMCommunicate OK [10:49:31]SAM_PROTO_SignData done [10:49:31]FM_MakeSignedData done [10:49:31]CreateOFDProtocolMessage [10:49:31]wFMCommunicate request_size=4 [10:49:31]MH_SAM_APDU [10:49:31]CAPDU: 80 11 00 00 [10:49:31]Write to MH i2c: E2 08 00 D7 40 80 11 00 00 00 00 00 00 91 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:31]Read from MH i2c: E2 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 17 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: E2 17 00 D7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E0 [10:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:49:31]wFMCommunicate OK [10:49:31]CreateOFDProtocolMessage done [10:49:31]OFDSenderStorePacket 15691 [10:49:31]StoreOFDPacket docnum=15691 [10:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 92 AA 07 01 C0 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 25 00 00 00 F4 03 04 00 C4 BD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4B 3D 00 00 35 04 06 00 77 4F E7 B9 3B 48 BD AE AD 0F C6 2A 10 5D [10:49:31]CheckFolder [10:49:31]dirname=/storage/ofd_packets [10:49:31]CheckFolder done [10:49:31]ProducePacketName [10:49:31]name=ofd_packets/00015691 [10:49:31]NVStorageSaveData ofd_packets/00015691 [10:49:31]File name is /storage/ofd_packets/00015691 [10:49:31]Write 301 bytes [10:49:31]NVStorageSaveData done [10:49:31]OFDSenderStorePacket done [10:49:31]KKMCreateOFDPacket done [10:49:31]NVStorageSaveData kkm_last_timestamp [10:49:31]File name is /storage/kkm_last_timestamp [10:49:31]Write 4 bytes [10:49:31]NVStorageSaveData done [10:49:31]ExternCall_PrintAddStr [10:49:31]wPrintStart [10:49:31]Write to MH i2c: 01 00 00 D8 40 18 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 D8 40 00 00 00 00 00 FF 0F 2D [10:49:31]RasterBufferAndPrint [10:49:31]line Счет N : (1)16240 [10:49:31]line ИНН: 02508201610067 [10:49:31]line Контрольно-Кассовый Чек [10:49:31]line ПРОДАЖА [10:49:31]line ТРК (МРК, ГНК) : 21 [10:49:31]line Товар: 2710124130 [10:49:31]line Аи-92-К-5 [10:49:31]line 2.990 * 66.90 [10:49:31]line = 200.03 [10:49:31]line НДС 12% НСП 1% [10:49:31]line > о реализуемом товаре [10:49:31]line ОКРУГЛЕНИЕ: -0.03 [10:49:31]line ИТОГО: 200.00 [10:49:31]line Внесено: 200.00 [10:49:31]line СДАЧА: 0.00 [10:49:31]line НСП 1% : 1.77 [10:49:31]line НДС 12% : 21.24 [10:49:31]line Наличными: 200.00 [10:49:31]line Безнал.: 0.00 [10:49:31]line Место: АЗС № 178 "Партнер Нефть" [10:49:31]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:49:31]line СНО: Общий режим [10:49:31]line Чек 37 29.10.2024 10:49 [10:49:31]line Смена: 172 ФФД: 1.0 [10:49:31]line ЗНМ: 0300000014 [10:49:31]line РНМ: 0000000000161798 [10:49:31]line Версия ККМ: v1.0 [10:49:31]line ФМ: 0000000000963325 [10:49:31]line ФД: 15691 [10:49:31]line ФПД: 131185073797960 [10:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T104940&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15691&fm=131185073797960&tin=02508201610067®Number=0000000000161798&sum=20000 [10:49:31]OFD Sender: Processing packet 15691 [packets to send 4, broken 3] [10:49:31]ProducePacketName [10:49:31]name=ofd_packets/00015691 [10:49:31]OFD Sender: To server: pG, [10:49:31]CommunicateWithHost lk.salyk.kg:30040 [10:49:31]ConnectInit lk.salyk.kg [10:49:31]written 0, free lines is 4095 [10:49:31]Connected sock=10 [10:49:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 92 AA 07 01 C0 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 25 00 00 00 F4 03 04 00 C4 BD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4B 3D 00 00 35 04 06 00 77 4F E7 B9 3B 48 BD AE AD 0F C6 2A 10 5D [10:49:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C3 2A 47 00 36 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4B 3D 00 00 F4 03 04 00 B1 68 20 67 B6 04 01 00 00 6B D0 37 5B 7B B8 81 A9 [10:49:31]CommunicateWithHost err = 0 [10:49:31]CheckOFDResponse [10:49:31]1017 (14) - 77093643461234 [10:49:31]1041 (16) - 0000000000963325 [10:49:31]1040 (4) - 15691 [10:49:31]1012 (4) - 29.10.2024 04:46 [10:49:31]1206 (1) - 0 [10:49:31]OFD Sender: Remove packet 15691 [10:49:31]ProducePacketName [10:49:31]name=ofd_packets/00015691 [10:49:31]NVStorageDeleteData [10:49:31]Write to MH i2c: 01 00 00 03 41 44 [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: 01 07 00 03 41 00 00 00 00 00 03 0D 5B [10:49:31]RasterBufferAndPrint [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]line [10:49:31]written 0, free lines is 3337 [10:49:31]MH_Cut [10:49:31]Write to MH i2c: D1 01 00 0A 41 01 1D [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 01 00 [10:49:31]MH_I2C_Read... [10:49:31]Read from MH i2c: D1 01 00 0A 41 00 1C [10:49:31]Write to MH i2c: 01 00 00 0B 41 4C [10:49:31]Write i2c OK [10:49:31]MH_I2C_Read... [10:49:32]OFD Sender: No OFD packet to send [10:49:32]*** Cut start [10:49:32]*** Partial cut [10:49:32]*** CUTSNS_PIN = 1 [10:49:32]*** CUTSNS_PIN = 0 [10:49:32]*** Brake cut motor [10:49:33]Read from MH i2c: 01 [10:49:33]MH_I2C_Read... [10:49:33]*** Stop cut motor [10:49:33]*** Cut end [10:49:33]Read from MH i2c: 01 07 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: 01 07 00 0B 41 00 00 00 00 00 FF 0F 61 [10:49:33]process_action close_receipt done [10:49:33]requested_data is exist [10:49:33]produce_requested_data [10:49:33]requested_item fm.sn is exist - process it [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 11 00 00 [10:49:33]Write to MH i2c: E2 08 00 0C 41 80 11 00 00 00 00 00 00 C7 [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 17 00 0C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 16 [10:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:49:33]wFMCommunicate OK [10:49:33]requested_item fd.num is exist - process it [10:49:33]SAM_PROTO_GetFieldsCounters [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 00 00 [10:49:33]Write to MH i2c: E2 08 00 0D 41 80 13 00 00 00 00 00 00 CA [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 62 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 62 00 0D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4B 3D 00 00 0E 04 04 00 AC 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 91 [10:49:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4B 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_GetFieldsCounters done [10:49:33]requested_item shift.num is exist - process it [10:49:33]requested_item shift.opened is exist - process it [10:49:33]req_shift_opened [10:49:33]FM_GetShiftState [10:49:33]SAM_PROTO_GetShiftState [10:49:33]wFMCommunicate request_size=4 [10:49:33]MH_SAM_APDU [10:49:33]CAPDU: 80 13 01 00 [10:49:33]Write to MH i2c: E2 08 00 0E 41 80 13 01 00 00 00 00 00 CC [10:49:33]Write i2c OK [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 [10:49:33]MH_I2C_Read... [10:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:33]Read from MH i2c: E2 0E 00 [10:49:33]MH_I2C_Read... [10:49:33]Read from MH i2c: E2 0E 00 0E 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 21 [10:49:33]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:49:33]wFMCommunicate OK [10:49:33]SAM_PROTO_GetShiftState done [10:49:33]FM_GetShiftState done [10:49:33]req_shift_opened done [10:49:33]requested_item shift.open_date is exist - process it [10:49:33]req_shift_open_date [10:49:33]req_shift_open_date done [10:49:33]produce_requested_data done [10:49:33]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15691,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:49:33]process_action_free close_receipt [10:49:33]json_value_free [10:49:33]json_value_free done [10:49:33]process_json_proto returns [10:49:33]Send response to host [10:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15691,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:49:33]free response buf [10:49:33]execute_script done [10:49:33]execute_script returns [10:49:33]free content buf [10:49:33]Sock 8.Close socket [10:49:33]Sock 8.Thread stoped [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:52:58]accept exits with 9 [10:52:58]New connection [10:52:58]New thread 3066731876 created [10:52:58]Thread 3066588516 joined [10:52:58]Waiting for new connection... [10:52:58] Sock 9.Parse request [10:52:58]Sock 9.Check first char [10:52:58]Sock 9.First char is OK [10:52:58]request: POST /json_proto HTTP/1.0 [10:52:58]Method: POST [10:52:58]URL: /json_proto [10:52:58]Method is POST - this is cgi request [10:52:58]url: /json_proto [10:52:58]query_string will be loaded in cgi processing [10:52:58]execute_cgi json_proto POST (null) [10:52:58]execute_cgi path=json_proto method=POST [10:52:58]POST find Content-Length [10:52:58]Host: 172.17.54.195:8080 [10:52:58]Content-Length: 676 [10:52:58]Content-Type: application/json [10:52:58] [10:52:58]POST finish read [10:52:58]Found Content-Length = 676 [10:52:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:52:58]execute_script... [10:52: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)16241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:52:58]POST & json_proto [10:52:58]process_json_proto [10:52:58]json parsed OK: [10:52:58]protocol is kg_v1.0 [10:52:58]action value=close_receipt [10:52:58]process_action close_receipt [10:52:58]cmd_close_receipt [10:52:58]MH_GetDate [10:52:58]Write to MH i2c: F0 00 00 0F 41 3F [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: F0 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: F0 09 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: F0 09 00 0F 41 00 95 BE 20 67 8D 90 A3 66 48 [10:52:58]GetLastDocTimeStamp 1730198980 [10:52:58]current date 1730199189 [10:52:58]FM_GetShiftState [10:52:58]SAM_PROTO_GetShiftState [10:52:58]wFMCommunicate request_size=4 [10:52:58]MH_SAM_APDU [10:52:58]CAPDU: 80 13 01 00 [10:52:58]Write to MH i2c: E2 08 00 10 41 80 13 01 00 00 00 00 00 CE [10:52:58]Write i2c OK [10:52:58]MH_I2C_Read... [10:52:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:58]Read from MH i2c: E2 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0E 00 [10:52:58]MH_I2C_Read... [10:52:58]Read from MH i2c: E2 0E 00 10 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 23 [10:52:58]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:52:58]wFMCommunicate OK [10:52:58]SAM_PROTO_GetShiftState done [10:52:58]FM_GetShiftState done [10:52:58]opened in 1730161559 [10:52:58]opened+sec_in_day 1730247959 [10:52:58]quantity*price = 30038 [10:52:58]sum+1 = 30039 [10:52:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 38 29.10.2024 10:53 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15692 ФПД: 115690376350373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105309&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15692&fm=115690376350373&tin=02508201610067®Number=0000000000161798&sum=30000 [10:52:59]StoreToDocumentArchive [10:52:59]shift 172 fd 15692 [10:52:59]save to /storage/0172/doc_00015692 [10:52:59]save last doc name /storage/0172/doc_00015692 to /storage/kkm_last_doc_name [10:52:59]save OK [10:52:59]Clear old archive folders... [10:52:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:59]tlvbuf is B6F1F280 [10:52:59]SAM_PROTO_ClearQueue [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 09 00 00 [10:52:59]Write to MH i2c: E2 08 00 1D 41 80 09 00 00 00 00 00 00 D0 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 03 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 03 00 1D 41 00 90 00 D2 [10:52:59]RAPDU: 90 00 [10:52:59]wFMCommunicate OK [10:52:59]SAM_PROTO_ClearQueue done [10:52:59]KKMCreateOFDPacket [10:52:59]OFDProtocolAddRootSTLVToBuf [10:52:59]FM_MakeSignedData [10:52:59]FM_MakeSignedData [10:52:59]SAM_PROTO_SignData [10:52:59]wFMCommunicate request_size=4 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 0D 01 02 [10:52:59]Write to MH i2c: E2 08 00 1E 41 80 0D 01 02 00 00 00 00 D8 [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:52:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:59]Read from MH i2c: E2 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 03 00 [10:52:59]MH_I2C_Read... [10:52:59]Read from MH i2c: E2 03 00 1E 41 00 90 00 D3 [10:52:59]RAPDU: 90 00 [10:52:59]wFMCommunicate OK [10:52:59]wFMCommunicate request_size=255 [10:52:59]MH_SAM_APDU [10:52:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 95 BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4C 3D 00 00 35 04 06 00 69 [10:52:59]Write to MH i2c: E2 02 01 1F 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 26 00 00 00 F4 03 04 00 95 BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4C 3D 00 00 35 04 06 00 69 00 00 FC [10:52:59]Write i2c OK [10:52:59]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 03 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 03 00 1F 41 00 90 00 D4 [10:53:00]RAPDU: 90 00 [10:53:00]wFMCommunicate OK [10:53:00]wFMCommunicate request_size=10 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 0D 02 02 05 38 43 C9 4A A5 [10:53:00]Write to MH i2c: E2 0D 00 20 41 80 0D 02 02 05 00 38 43 C9 4A A5 00 00 18 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:00]Read from MH i2c: E2 03 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 03 00 20 41 00 90 00 D5 [10:53:00]RAPDU: 90 00 [10:53:00]wFMCommunicate OK [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 0D 03 02 [10:53:00]Write to MH i2c: E2 08 00 21 41 80 0D 03 02 00 00 00 00 DD [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0B 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 0B 00 21 41 00 13 ED C4 40 94 E1 28 A3 90 00 22 [10:53:00]RAPDU: 13 ED C4 40 94 E1 28 A3 90 00 [10:53:00]wFMCommunicate OK [10:53:00]SAM_PROTO_SignData done [10:53:00]FM_MakeSignedData done [10:53:00]CreateOFDProtocolMessage [10:53:00]wFMCommunicate request_size=4 [10:53:00]MH_SAM_APDU [10:53:00]CAPDU: 80 11 00 00 [10:53:00]Write to MH i2c: E2 08 00 22 41 80 11 00 00 00 00 00 00 DD [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:00]Read from MH i2c: E2 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 17 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: E2 17 00 22 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2C [10:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:53:00]wFMCommunicate OK [10:53:00]CreateOFDProtocolMessage done [10:53:00]OFDSenderStorePacket 15692 [10:53:00]StoreOFDPacket docnum=15692 [10:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 BE AE 07 01 EF 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 26 00 00 00 F4 03 04 00 95 BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4C 3D 00 00 35 04 06 00 69 38 43 C9 4A A5 13 ED C4 40 94 E1 28 A3 [10:53:00]CheckFolder [10:53:00]dirname=/storage/ofd_packets [10:53:00]CheckFolder done [10:53:00]ProducePacketName [10:53:00]name=ofd_packets/00015692 [10:53:00]NVStorageSaveData ofd_packets/00015692 [10:53:00]File name is /storage/ofd_packets/00015692 [10:53:00]Write 301 bytes [10:53:00]NVStorageSaveData done [10:53:00]OFDSenderStorePacket done [10:53:00]KKMCreateOFDPacket done [10:53:00]NVStorageSaveData kkm_last_timestamp [10:53:00]File name is /storage/kkm_last_timestamp [10:53:00]Write 4 bytes [10:53:00]NVStorageSaveData done [10:53:00]ExternCall_PrintAddStr [10:53:00]wPrintStart [10:53:00]Write to MH i2c: 01 00 00 23 41 64 [10:53:00]Write i2c OK [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: 01 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: 01 07 00 [10:53:00]MH_I2C_Read... [10:53:00]Read from MH i2c: 01 07 00 23 41 00 00 00 00 00 FF 0F 79 [10:53:00]RasterBufferAndPrint [10:53:00]line Счет N : (1)16241 [10:53:00]line ИНН: 02508201610067 [10:53:00]line Контрольно-Кассовый Чек [10:53:00]line ПРОДАЖА [10:53:00]line ТРК (МРК, ГНК) : 21 [10:53:00]line Товар: 2710124130 [10:53:00]line Аи-92-К-5 [10:53:00]line 4.490 * 66.90 [10:53:00]line = 300.38 [10:53:00]line НДС 12% НСП 1% [10:53:00]line > о реализуемом товаре [10:53:00]line ОКРУГЛЕНИЕ: -0.38 [10:53:00]line ИТОГО: 300.00 [10:53:00]line Внесено: 300.00 [10:53:00]line СДАЧА: 0.00 [10:53:00]line НСП 1% : 2.66 [10:53:00]line НДС 12% : 31.90 [10:53:00]line Наличными: 300.00 [10:53:00]line Безнал.: 0.00 [10:53:00]line Место: АЗС № 178 "Партнер Нефть" [10:53:00]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:53:00]line СНО: Общий режим [10:53:00]line Чек 38 29.10.2024 10:53 [10:53:00]line Смена: 172 ФФД: 1.0 [10:53:00]line ЗНМ: 0300000014 [10:53:00]line РНМ: 0000000000161798 [10:53:00]line Версия ККМ: v1.0 [10:53:00]line ФМ: 0000000000963325 [10:53:00]line ФД: 15692 [10:53:00]line ФПД: 115690376350373 [10:53:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105309&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15692&fm=115690376350373&tin=02508201610067®Number=0000000000161798&sum=30000 [10:53:00]OFD Sender: Processing packet 15692 [packets to send 4, broken 3] [10:53:00]ProducePacketName [10:53:00]name=ofd_packets/00015692 [10:53:00]OFD Sender: To server: pG, [10:53:00]CommunicateWithHost lk.salyk.kg:30040 [10:53:00]ConnectInit lk.salyk.kg [10:53:00]written 0, free lines is 4095 [10:53:00]Connected sock=10 [10:53:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 BE AE 07 01 EF 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 26 00 00 00 F4 03 04 00 95 BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4C 3D 00 00 35 04 06 00 69 38 43 C9 4A A5 13 ED C4 40 94 E1 28 A3 [10:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5C 92 47 00 A0 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4C 3D 00 00 F4 03 04 00 82 69 20 67 B6 04 01 00 00 24 6E 01 FD 9A 28 61 0E [10:53:00]CommunicateWithHost err = 0 [10:53:00]CheckOFDResponse [10:53:00]1017 (14) - 77093643461234 [10:53:00]1041 (16) - 0000000000963325 [10:53:00]1040 (4) - 15692 [10:53:00]1012 (4) - 29.10.2024 04:50 [10:53:00]1206 (1) - 0 [10:53:00]OFD Sender: Remove packet 15692 [10:53:00]ProducePacketName [10:53:00]name=ofd_packets/00015692 [10:53:00]NVStorageDeleteData [10:53:01]Write to MH i2c: 01 00 00 4E 41 8F [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: 01 07 00 4E 41 00 00 00 00 00 F8 0C 9A [10:53:01]RasterBufferAndPrint [10:53:01]line [10:53:01]line [10:53:01]line [10:53:01]line [10:53:01]line [10:53:01]written 0, free lines is 3327 [10:53:01]MH_Cut [10:53:01]Write to MH i2c: D1 01 00 55 41 01 68 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: D1 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: D1 01 00 [10:53:01]MH_I2C_Read... [10:53:01]Read from MH i2c: D1 01 00 55 41 00 67 [10:53:01]Write to MH i2c: 01 00 00 56 41 97 [10:53:01]Write i2c OK [10:53:01]MH_I2C_Read... [10:53:01]OFD Sender: No OFD packet to send [10:53:01]*** Cut start [10:53:01]*** Partial cut [10:53:01]*** CUTSNS_PIN = 1 [10:53:01]*** CUTSNS_PIN = 0 [10:53:02]*** Brake cut motor [10:53:02]Read from MH i2c: 01 [10:53:02]MH_I2C_Read... [10:53:02]*** Stop cut motor [10:53:02]*** Cut end [10:53:02]Read from MH i2c: 01 07 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: 01 07 00 56 41 00 00 00 00 00 FF 0F AC [10:53:02]process_action close_receipt done [10:53:02]requested_data is exist [10:53:02]produce_requested_data [10:53:02]requested_item fm.sn is exist - process it [10:53:02]wFMCommunicate request_size=4 [10:53:02]MH_SAM_APDU [10:53:02]CAPDU: 80 11 00 00 [10:53:02]Write to MH i2c: E2 08 00 57 41 80 11 00 00 00 00 00 00 12 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:02]Read from MH i2c: E2 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 17 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 17 00 57 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 61 [10:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:53:02]wFMCommunicate OK [10:53:02]requested_item fd.num is exist - process it [10:53:02]SAM_PROTO_GetFieldsCounters [10:53:02]wFMCommunicate request_size=4 [10:53:02]MH_SAM_APDU [10:53:02]CAPDU: 80 13 00 00 [10:53:02]Write to MH i2c: E2 08 00 58 41 80 13 00 00 00 00 00 00 15 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:02]Read from MH i2c: E2 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 62 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 62 00 58 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4C 3D 00 00 0E 04 04 00 AC 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 E0 [10:53:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4C 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:02]wFMCommunicate OK [10:53:02]SAM_PROTO_GetFieldsCounters done [10:53:02]requested_item shift.num is exist - process it [10:53:02]requested_item shift.opened is exist - process it [10:53:02]req_shift_opened [10:53:02]FM_GetShiftState [10:53:02]SAM_PROTO_GetShiftState [10:53:02]wFMCommunicate request_size=4 [10:53:02]MH_SAM_APDU [10:53:02]CAPDU: 80 13 01 00 [10:53:02]Write to MH i2c: E2 08 00 59 41 80 13 01 00 00 00 00 00 17 [10:53:02]Write i2c OK [10:53:02]MH_I2C_Read... [10:53:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:02]Read from MH i2c: E2 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 0E 00 [10:53:02]MH_I2C_Read... [10:53:02]Read from MH i2c: E2 0E 00 59 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6C [10:53:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:53:02]wFMCommunicate OK [10:53:02]SAM_PROTO_GetShiftState done [10:53:02]FM_GetShiftState done [10:53:02]req_shift_opened done [10:53:02]requested_item shift.open_date is exist - process it [10:53:02]req_shift_open_date [10:53:02]req_shift_open_date done [10:53:02]produce_requested_data done [10:53:02]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15692,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:53:02]process_action_free close_receipt [10:53:02]json_value_free [10:53:02]json_value_free done [10:53:02]process_json_proto returns [10:53:02]Send response to host [10:53:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15692,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:53:02]free response buf [10:53:02]execute_script done [10:53:02]execute_script returns [10:53:02]free content buf [10:53:02]Sock 9.Close socket [10:53:02]Sock 9.Thread stoped [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:24]accept exits with 8 [10:54:24]New connection [10:54:24]New thread 3066588516 created [10:54:24]Thread 3066731876 joined [10:54:24]Waiting for new connection... [10:54:24] Sock 8.Parse request [10:54:24]Sock 8.Check first char [10:54:24]Sock 8.First char is OK [10:54:24]request: POST /json_proto HTTP/1.0 [10:54:24]Method: POST [10:54:24]URL: /json_proto [10:54:24]Method is POST - this is cgi request [10:54:24]url: /json_proto [10:54:24]query_string will be loaded in cgi processing [10:54:24]execute_cgi json_proto POST (null) [10:54:24]execute_cgi path=json_proto method=POST [10:54:24]POST find Content-Length [10:54:24]Host: 172.17.54.195:8080 [10:54:24]Content-Length: 678 [10:54:24]Content-Type: application/json [10:54:24] [10:54:24]POST finish read [10:54:24]Found Content-Length = 678 [10:54:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:54:24]execute_script... [10:54: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)16242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [10:54:24]POST & json_proto [10:54:24]process_json_proto [10:54:24]json parsed OK: [10:54:24]protocol is kg_v1.0 [10:54:24]action value=close_receipt [10:54:24]process_action close_receipt [10:54:24]cmd_close_receipt [10:54:24]MH_GetDate [10:54:24]Write to MH i2c: F0 00 00 5A 41 8A [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: F0 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: F0 09 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: F0 09 00 5A 41 00 EA BE 20 67 8D 90 A3 66 E8 [10:54:24]GetLastDocTimeStamp 1730199189 [10:54:24]current date 1730199274 [10:54:24]FM_GetShiftState [10:54:24]SAM_PROTO_GetShiftState [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 13 01 00 [10:54:24]Write to MH i2c: E2 08 00 5B 41 80 13 01 00 00 00 00 00 19 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0E 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0E 00 5B 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6E [10:54:24]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:54:24]wFMCommunicate OK [10:54:24]SAM_PROTO_GetShiftState done [10:54:24]FM_GetShiftState done [10:54:24]opened in 1730161559 [10:54:24]opened+sec_in_day 1730247959 [10:54:24]quantity*price = 200025 [10:54:24]sum+1 = 200026 [10:54:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 39 29.10.2024 10:54 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15693 ФПД: 223562261468472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105434&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15693&fm=223562261468472&tin=02508201610067®Number=0000000000161798&sum=200000 [10:54:25]StoreToDocumentArchive [10:54:25]shift 172 fd 15693 [10:54:25]save to /storage/0172/doc_00015693 [10:54:25]save last doc name /storage/0172/doc_00015693 to /storage/kkm_last_doc_name [10:54:25]save OK [10:54:25]Clear old archive folders... [10:54:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:54:25]tlvbuf is 00321850 [10:54:25]SAM_PROTO_ClearQueue [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 09 00 00 [10:54:25]Write to MH i2c: E2 08 00 68 41 80 09 00 00 00 00 00 00 1B [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 68 41 00 90 00 1D [10:54:25]RAPDU: 90 00 [10:54:25]wFMCommunicate OK [10:54:25]SAM_PROTO_ClearQueue done [10:54:25]KKMCreateOFDPacket [10:54:25]OFDProtocolAddRootSTLVToBuf [10:54:25]FM_MakeSignedData [10:54:25]FM_MakeSignedData [10:54:25]SAM_PROTO_SignData [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 0D 01 02 [10:54:25]Write to MH i2c: E2 08 00 69 41 80 0D 01 02 00 00 00 00 23 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 69 41 00 90 00 1E [10:54:25]RAPDU: 90 00 [10:54:25]wFMCommunicate OK [10:54:25]wFMCommunicate request_size=255 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 EA BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4D 3D 00 00 35 04 06 00 CB 54 25 2E [10:54:25]Write to MH i2c: E2 02 01 6A 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 EA BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4D 3D 00 00 35 04 06 00 CB 54 25 2E 00 00 97 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 6A 41 00 90 00 1F [10:54:25]RAPDU: 90 00 [10:54:25]wFMCommunicate OK [10:54:25]wFMCommunicate request_size=7 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 0D 02 02 02 15 38 [10:54:25]Write to MH i2c: E2 0A 00 6B 41 80 0D 02 02 02 00 15 38 00 00 77 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 03 00 6B 41 00 90 00 20 [10:54:25]RAPDU: 90 00 [10:54:25]wFMCommunicate OK [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 0D 03 02 [10:54:25]Write to MH i2c: E2 08 00 6C 41 80 0D 03 02 00 00 00 00 28 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 0B 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 0B 00 6C 41 00 10 A4 EF D0 A8 CD 99 40 90 00 EA [10:54:25]RAPDU: 10 A4 EF D0 A8 CD 99 40 90 00 [10:54:25]wFMCommunicate OK [10:54:25]SAM_PROTO_SignData done [10:54:25]FM_MakeSignedData done [10:54:25]CreateOFDProtocolMessage [10:54:25]wFMCommunicate request_size=4 [10:54:25]MH_SAM_APDU [10:54:25]CAPDU: 80 11 00 00 [10:54:25]Write to MH i2c: E2 08 00 6D 41 80 11 00 00 00 00 00 00 28 [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:25]Read from MH i2c: E2 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 17 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: E2 17 00 6D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 77 [10:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:54:25]wFMCommunicate OK [10:54:25]CreateOFDProtocolMessage done [10:54:25]OFDSenderStorePacket 15693 [10:54:25]StoreOFDPacket docnum=15693 [10:54:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F8 77 04 01 9C 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 35 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 27 00 00 00 F4 03 04 00 EA BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4D 3D 00 00 35 04 06 00 CB 54 25 2E 15 38 10 A4 EF D0 A8 CD 99 40 [10:54:25]CheckFolder [10:54:25]dirname=/storage/ofd_packets [10:54:25]CheckFolder done [10:54:25]ProducePacketName [10:54:25]name=ofd_packets/00015693 [10:54:25]NVStorageSaveData ofd_packets/00015693 [10:54:25]File name is /storage/ofd_packets/00015693 [10:54:25]Write 298 bytes [10:54:25]NVStorageSaveData done [10:54:25]OFDSenderStorePacket done [10:54:25]KKMCreateOFDPacket done [10:54:25]NVStorageSaveData kkm_last_timestamp [10:54:25]File name is /storage/kkm_last_timestamp [10:54:25]Write 4 bytes [10:54:25]NVStorageSaveData done [10:54:25]ExternCall_PrintAddStr [10:54:25]wPrintStart [10:54:25]Write to MH i2c: 01 00 00 6E 41 AF [10:54:25]Write i2c OK [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 07 00 [10:54:25]MH_I2C_Read... [10:54:25]Read from MH i2c: 01 07 00 6E 41 00 00 00 00 00 FF 0F C4 [10:54:25]RasterBufferAndPrint [10:54:25]line Счет N : (1)16242 [10:54:25]line ИНН: 02508201610067 [10:54:25]line Контрольно-Кассовый Чек [10:54:25]line ПРОДАЖА [10:54:25]line ТРК (МРК, ГНК) : 31 [10:54:25]line Товар: 2710194210 [10:54:25]line ДТ-К-5 [10:54:25]line 26.250 * 76.20 [10:54:25]line = 2000.25 [10:54:25]line НДС 12% НСП 1% [10:54:25]line > о реализуемом товаре [10:54:25]line ОКРУГЛЕНИЕ: -0.25 [10:54:25]line ИТОГО: 2000.00 [10:54:25]line Внесено: 2000.00 [10:54:25]line СДАЧА: 0.00 [10:54:25]line НСП 1% : 17.70 [10:54:25]line НДС 12% : 212.42 [10:54:25]line Наличными: 2000.00 [10:54:25]line Безнал.: 0.00 [10:54:25]line Место: АЗС № 178 "Партнер Нефть" [10:54:25]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [10:54:25]line СНО: Общий режим [10:54:25]line Чек 39 29.10.2024 10:54 [10:54:25]line Смена: 172 ФФД: 1.0 [10:54:25]line ЗНМ: 0300000014 [10:54:26]line РНМ: 0000000000161798 [10:54:26]line Версия ККМ: v1.0 [10:54:26]line ФМ: 0000000000963325 [10:54:26]line ФД: 15693 [10:54:26]line ФПД: 223562261468472 [10:54:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T105434&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15693&fm=223562261468472&tin=02508201610067®Number=0000000000161798&sum=200000 [10:54:26]OFD Sender: Processing packet 15693 [packets to send 4, broken 3] [10:54:26]ProducePacketName [10:54:26]name=ofd_packets/00015693 [10:54:26]OFD Sender: To server: pG, [10:54:26]CommunicateWithHost lk.salyk.kg:30040 [10:54:26]ConnectInit lk.salyk.kg [10:54:26]written 0, free lines is 4095 [10:54:26]Connected sock=10 [10:54:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F8 77 04 01 9C 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 35 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 27 00 00 00 F4 03 04 00 EA BE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4D 3D 00 00 35 04 06 00 CB 54 25 2E 15 38 10 A4 EF D0 A8 CD 99 40 [10:54:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 B5 53 47 00 CF 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4D 3D 00 00 F4 03 04 00 D7 69 20 67 B6 04 01 00 00 86 EF 12 41 F4 3C 05 3A [10:54:26]CommunicateWithHost err = 0 [10:54:26]CheckOFDResponse [10:54:26]1017 (14) - 77093643461234 [10:54:26]1041 (16) - 0000000000963325 [10:54:26]1040 (4) - 15693 [10:54:26]1012 (4) - 29.10.2024 04:51 [10:54:26]1206 (1) - 0 [10:54:26]OFD Sender: Remove packet 15693 [10:54:26]ProducePacketName [10:54:26]name=ofd_packets/00015693 [10:54:26]NVStorageDeleteData [10:54:26]Write to MH i2c: 01 00 00 99 41 DA [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 07 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: 01 07 00 99 41 00 00 00 00 00 F6 0C E3 [10:54:26]RasterBufferAndPrint [10:54:26]line [10:54:26]line [10:54:26]line [10:54:26]line [10:54:26]line [10:54:26]written 0, free lines is 3325 [10:54:26]MH_Cut [10:54:26]Write to MH i2c: D1 01 00 A0 41 01 B3 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: D1 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: D1 01 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: D1 01 00 A0 41 00 B2 [10:54:26]Write to MH i2c: 01 00 00 A1 41 E2 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]OFD Sender: No OFD packet to send [10:54:27]*** Cut start [10:54:27]*** Partial cut [10:54:27]*** CUTSNS_PIN = 1 [10:54:27]*** CUTSNS_PIN = 0 [10:54:27]*** Brake cut motor [10:54:27]Read from MH i2c: 01 [10:54:27]MH_I2C_Read... [10:54:27]*** Stop cut motor [10:54:27]*** Cut end [10:54:27]Read from MH i2c: 01 07 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 07 00 A1 41 00 00 00 00 00 FF 0F F7 [10:54:27]process_action close_receipt done [10:54:27]requested_data is exist [10:54:27]produce_requested_data [10:54:27]requested_item fm.sn is exist - process it [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 11 00 00 [10:54:27]Write to MH i2c: E2 08 00 A2 41 80 11 00 00 00 00 00 00 5D [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 A2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AC [10:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [10:54:27]wFMCommunicate OK [10:54:27]requested_item fd.num is exist - process it [10:54:27]SAM_PROTO_GetFieldsCounters [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 13 00 00 [10:54:27]Write to MH i2c: E2 08 00 A3 41 80 13 00 00 00 00 00 00 60 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 62 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 62 00 A3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4D 3D 00 00 0E 04 04 00 AC 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 2F [10:54:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4D 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_GetFieldsCounters done [10:54:28]requested_item shift.num is exist - process it [10:54:28]requested_item shift.opened is exist - process it [10:54:28]req_shift_opened [10:54:28]FM_GetShiftState [10:54:28]SAM_PROTO_GetShiftState [10:54:28]wFMCommunicate request_size=4 [10:54:28]MH_SAM_APDU [10:54:28]CAPDU: 80 13 01 00 [10:54:28]Write to MH i2c: E2 08 00 A4 41 80 13 01 00 00 00 00 00 62 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:28]Read from MH i2c: E2 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0E 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: E2 0E 00 A4 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B7 [10:54:28]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [10:54:28]wFMCommunicate OK [10:54:28]SAM_PROTO_GetShiftState done [10:54:28]FM_GetShiftState done [10:54:28]req_shift_opened done [10:54:28]requested_item shift.open_date is exist - process it [10:54:28]req_shift_open_date [10:54:28]req_shift_open_date done [10:54:28]produce_requested_data done [10:54:28]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15693,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [10:54:28]process_action_free close_receipt [10:54:28]json_value_free [10:54:28]json_value_free done [10:54:28]process_json_proto returns [10:54:28]Send response to host [10:54:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15693,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [10:54:28]free response buf [10:54:28]execute_script done [10:54:28]execute_script returns [10:54:28]free content buf [10:54:28]Sock 8.Close socket [10:54:28]Sock 8.Thread stoped [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:07]OFD Sender: No OFD packet to send [10:58:12]OFD Sender: No OFD packet to send [10:58:17]OFD Sender: No OFD packet to send [10:58:22]OFD Sender: No OFD packet to send [10:58:27]OFD Sender: No OFD packet to send [10:58:32]OFD Sender: No OFD packet to send [10:58:37]OFD Sender: No OFD packet to send [10:58:42]OFD Sender: No OFD packet to send [10:58:47]OFD Sender: No OFD packet to send [10:58:52]OFD Sender: No OFD packet to send [10:58:57]OFD Sender: No OFD packet to send [10:59:02]OFD Sender: No OFD packet to send [10:59:07]OFD Sender: No OFD packet to send [10:59:12]OFD Sender: No OFD packet to send [10:59:17]OFD Sender: No OFD packet to send [10:59:22]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:23]accept exits with 9 [11:00:23]New connection [11:00:23]New thread 3066731876 created [11:00:23]Thread 3066588516 joined [11:00:23]Waiting for new connection... [11:00:23] Sock 9.Parse request [11:00:23]Sock 9.Check first char [11:00:23]Sock 9.First char is OK [11:00:23]request: POST /json_proto HTTP/1.0 [11:00:23]Method: POST [11:00:23]URL: /json_proto [11:00:23]Method is POST - this is cgi request [11:00:23]url: /json_proto [11:00:23]query_string will be loaded in cgi processing [11:00:23]execute_cgi json_proto POST (null) [11:00:23]execute_cgi path=json_proto method=POST [11:00:23]POST find Content-Length [11:00:23]Host: 172.17.54.195:8080 [11:00:23]Content-Length: 676 [11:00:23]Content-Type: application/json [11:00:23] [11:00:23]POST finish read [11:00:23]Found Content-Length = 676 [11:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:00:23]execute_script... [11:00:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:00:23]POST & json_proto [11:00:23]process_json_proto [11:00:23]json parsed OK: [11:00:23]protocol is kg_v1.0 [11:00:23]action value=close_receipt [11:00:23]process_action close_receipt [11:00:23]cmd_close_receipt [11:00:23]MH_GetDate [11:00:23]Write to MH i2c: F0 00 00 A5 41 D5 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: F0 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: F0 09 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: F0 09 00 A5 41 00 52 C0 20 67 8D 90 A3 66 9D [11:00:23]GetLastDocTimeStamp 1730199274 [11:00:23]current date 1730199634 [11:00:23]FM_GetShiftState [11:00:23]SAM_PROTO_GetShiftState [11:00:23]wFMCommunicate request_size=4 [11:00:23]MH_SAM_APDU [11:00:23]CAPDU: 80 13 01 00 [11:00:23]Write to MH i2c: E2 08 00 A6 41 80 13 01 00 00 00 00 00 64 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:23]Read from MH i2c: E2 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: E2 0E 00 A6 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B9 [11:00:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:00:23]wFMCommunicate OK [11:00:23]SAM_PROTO_GetShiftState done [11:00:23]FM_GetShiftState done [11:00:23]opened in 1730161559 [11:00:23]opened+sec_in_day 1730247959 [11:00:23]quantity*price = 20003 [11:00:23]sum+1 = 20004 [11:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 40 29.10.2024 11:00 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15694 ФПД: 111406895446931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110034&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15694&fm=111406895446931&tin=02508201610067®Number=0000000000161798&sum=20000 [11:00:25]StoreToDocumentArchive [11:00:25]shift 172 fd 15694 [11:00:25]save to /storage/0172/doc_00015694 [11:00:25]save last doc name /storage/0172/doc_00015694 to /storage/kkm_last_doc_name [11:00:25]save OK [11:00:25]Clear old archive folders... [11:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:25]tlvbuf is 0031A110 [11:00:25]SAM_PROTO_ClearQueue [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 09 00 00 [11:00:25]Write to MH i2c: E2 08 00 B3 41 80 09 00 00 00 00 00 00 66 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 B3 41 00 90 00 68 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_ClearQueue done [11:00:25]KKMCreateOFDPacket [11:00:25]OFDProtocolAddRootSTLVToBuf [11:00:25]FM_MakeSignedData [11:00:25]FM_MakeSignedData [11:00:25]SAM_PROTO_SignData [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 01 02 [11:00:25]Write to MH i2c: E2 08 00 B4 41 80 0D 01 02 00 00 00 00 6E [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 B4 41 00 90 00 69 [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=255 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 52 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4E 3D 00 00 35 04 06 00 65 [11:00:25]Write to MH i2c: E2 02 01 B5 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 52 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4E 3D 00 00 35 04 06 00 65 00 00 1F [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 B5 41 00 90 00 6A [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=10 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 02 02 05 52 F0 6D BB 93 [11:00:25]Write to MH i2c: E2 0D 00 B6 41 80 0D 02 02 05 00 52 F0 6D BB 93 00 00 78 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 03 00 B6 41 00 90 00 6B [11:00:25]RAPDU: 90 00 [11:00:25]wFMCommunicate OK [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 0D 03 02 [11:00:25]Write to MH i2c: E2 08 00 B7 41 80 0D 03 02 00 00 00 00 73 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0B 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0B 00 B7 41 00 5A 10 C2 F3 A5 0C 29 08 90 00 75 [11:00:25]RAPDU: 5A 10 C2 F3 A5 0C 29 08 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_SignData done [11:00:25]FM_MakeSignedData done [11:00:25]CreateOFDProtocolMessage [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 11 00 00 [11:00:25]Write to MH i2c: E2 08 00 B8 41 80 11 00 00 00 00 00 00 73 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 B8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C2 [11:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:00:25]wFMCommunicate OK [11:00:25]CreateOFDProtocolMessage done [11:00:25]OFDSenderStorePacket 15694 [11:00:25]StoreOFDPacket docnum=15694 [11:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 07 72 07 01 64 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 52 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4E 3D 00 00 35 04 06 00 65 52 F0 6D BB 93 5A 10 C2 F3 A5 0C 29 08 [11:00:25]CheckFolder [11:00:25]dirname=/storage/ofd_packets [11:00:25]CheckFolder done [11:00:25]ProducePacketName [11:00:25]name=ofd_packets/00015694 [11:00:25]NVStorageSaveData ofd_packets/00015694 [11:00:25]File name is /storage/ofd_packets/00015694 [11:00:25]Write 301 bytes [11:00:25]NVStorageSaveData done [11:00:25]OFDSenderStorePacket done [11:00:25]KKMCreateOFDPacket done [11:00:25]NVStorageSaveData kkm_last_timestamp [11:00:25]File name is /storage/kkm_last_timestamp [11:00:25]Write 4 bytes [11:00:25]NVStorageSaveData done [11:00:25]ExternCall_PrintAddStr [11:00:25]wPrintStart [11:00:25]Write to MH i2c: 01 00 00 B9 41 FA [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: 01 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: 01 07 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: 01 07 00 B9 41 00 00 00 00 00 FF 0F 0F [11:00:25]RasterBufferAndPrint [11:00:25]line Счет N : (1)16243 [11:00:25]line ИНН: 02508201610067 [11:00:25]line Контрольно-Кассовый Чек [11:00:25]line ПРОДАЖА [11:00:25]line ТРК (МРК, ГНК) : 21 [11:00:25]line Товар: 2710124130 [11:00:25]line Аи-92-К-5 [11:00:25]line 2.990 * 66.90 [11:00:25]line = 200.03 [11:00:25]line НДС 12% НСП 1% [11:00:25]line > о реализуемом товаре [11:00:25]line ОКРУГЛЕНИЕ: -0.03 [11:00:25]line ИТОГО: 200.00 [11:00:25]line Внесено: 200.00 [11:00:25]line СДАЧА: 0.00 [11:00:25]line НСП 1% : 1.77 [11:00:25]line НДС 12% : 21.24 [11:00:25]line Наличными: 200.00 [11:00:25]line Безнал.: 0.00 [11:00:25]line Место: АЗС № 178 "Партнер Нефть" [11:00:25]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:00:25]line СНО: Общий режим [11:00:25]line Чек 40 29.10.2024 11:00 [11:00:25]line Смена: 172 ФФД: 1.0 [11:00:25]line ЗНМ: 0300000014 [11:00:25]line РНМ: 0000000000161798 [11:00:25]line Версия ККМ: v1.0 [11:00:25]line ФМ: 0000000000963325 [11:00:25]line ФД: 15694 [11:00:25]line ФПД: 111406895446931 [11:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110034&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15694&fm=111406895446931&tin=02508201610067®Number=0000000000161798&sum=20000 [11:00:25]OFD Sender: Processing packet 15694 [packets to send 4, broken 3] [11:00:25]ProducePacketName [11:00:25]name=ofd_packets/00015694 [11:00:25]OFD Sender: To server: pG, [11:00:25]CommunicateWithHost lk.salyk.kg:30040 [11:00:26]ConnectInit lk.salyk.kg [11:00:26]written 0, free lines is 4095 [11:00:26]Connected sock=10 [11:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 07 72 07 01 64 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 52 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4E 3D 00 00 35 04 06 00 65 52 F0 6D BB 93 5A 10 C2 F3 A5 0C 29 08 [11:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 FB 66 47 00 98 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4E 3D 00 00 F4 03 04 00 3F 6B 20 67 B6 04 01 00 00 CD BA 7C E9 F9 02 9D 3B [11:00:26]CommunicateWithHost err = 0 [11:00:26]CheckOFDResponse [11:00:26]1017 (14) - 77093643461234 [11:00:26]1041 (16) - 0000000000963325 [11:00:26]1040 (4) - 15694 [11:00:26]1012 (4) - 29.10.2024 04:57 [11:00:26]1206 (1) - 0 [11:00:26]OFD Sender: Remove packet 15694 [11:00:26]ProducePacketName [11:00:26]name=ofd_packets/00015694 [11:00:26]NVStorageDeleteData [11:00:26]Write to MH i2c: 01 00 00 E4 41 25 [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: 01 07 00 E4 41 00 00 00 00 00 FE 0C 36 [11:00:26]RasterBufferAndPrint [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]line [11:00:26]written 0, free lines is 3334 [11:00:26]MH_Cut [11:00:26]Write to MH i2c: D1 01 00 EB 41 01 FE [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 01 00 [11:00:26]MH_I2C_Read... [11:00:26]Read from MH i2c: D1 01 00 EB 41 00 FD [11:00:26]Write to MH i2c: 01 00 00 EC 41 2D [11:00:26]Write i2c OK [11:00:26]MH_I2C_Read... [11:00:26]OFD Sender: No OFD packet to send [11:00:27]*** Cut start [11:00:27]*** Partial cut [11:00:27]*** CUTSNS_PIN = 1 [11:00:27]*** CUTSNS_PIN = 0 [11:00:27]*** Brake cut motor [11:00:27]Read from MH i2c: 01 [11:00:27]MH_I2C_Read... [11:00:27]*** Stop cut motor [11:00:27]*** Cut end [11:00:27]Read from MH i2c: 01 07 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: 01 07 00 EC 41 00 00 00 00 00 FF 0F 42 [11:00:27]process_action close_receipt done [11:00:27]requested_data is exist [11:00:27]produce_requested_data [11:00:27]requested_item fm.sn is exist - process it [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 11 00 00 [11:00:27]Write to MH i2c: E2 08 00 ED 41 80 11 00 00 00 00 00 00 A8 [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:27]Read from MH i2c: E2 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 17 00 [11:00:27]MH_I2C_Read... [11:00:27]Read from MH i2c: E2 17 00 ED 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F7 [11:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:00:27]wFMCommunicate OK [11:00:27]requested_item fd.num is exist - process it [11:00:27]SAM_PROTO_GetFieldsCounters [11:00:27]wFMCommunicate request_size=4 [11:00:27]MH_SAM_APDU [11:00:27]CAPDU: 80 13 00 00 [11:00:27]Write to MH i2c: E2 08 00 EE 41 80 13 00 00 00 00 00 00 AB [11:00:27]Write i2c OK [11:00:27]MH_I2C_Read... [11:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:28]Read from MH i2c: E2 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 62 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 62 00 EE 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4E 3D 00 00 0E 04 04 00 AC 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 7E [11:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4E 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:28]wFMCommunicate OK [11:00:28]SAM_PROTO_GetFieldsCounters done [11:00:28]requested_item shift.num is exist - process it [11:00:28]requested_item shift.opened is exist - process it [11:00:28]req_shift_opened [11:00:28]FM_GetShiftState [11:00:28]SAM_PROTO_GetShiftState [11:00:28]wFMCommunicate request_size=4 [11:00:28]MH_SAM_APDU [11:00:28]CAPDU: 80 13 01 00 [11:00:28]Write to MH i2c: E2 08 00 EF 41 80 13 01 00 00 00 00 00 AD [11:00:28]Write i2c OK [11:00:28]MH_I2C_Read... [11:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:28]Read from MH i2c: E2 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 0E 00 [11:00:28]MH_I2C_Read... [11:00:28]Read from MH i2c: E2 0E 00 EF 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 02 [11:00:28]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:00:28]wFMCommunicate OK [11:00:28]SAM_PROTO_GetShiftState done [11:00:28]FM_GetShiftState done [11:00:28]req_shift_opened done [11:00:28]requested_item shift.open_date is exist - process it [11:00:28]req_shift_open_date [11:00:28]req_shift_open_date done [11:00:28]produce_requested_data done [11:00:28]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15694,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:00:28]process_action_free close_receipt [11:00:28]json_value_free [11:00:28]json_value_free done [11:00:28]process_json_proto returns [11:00:28]Send response to host [11:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15694,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:00:28]free response buf [11:00:28]execute_script done [11:00:28]execute_script returns [11:00:28]free content buf [11:00:28]Sock 9.Close socket [11:00:28]Sock 9.Thread stoped [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:45]accept exits with 8 [11:02:45]New connection [11:02:45]New thread 3066588516 created [11:02:45]Thread 3066731876 joined [11:02:45]Waiting for new connection... [11:02:45] Sock 8.Parse request [11:02:45]Sock 8.Check first char [11:02:45]Sock 8.First char is OK [11:02:45]request: POST /json_proto HTTP/1.0 [11:02:45]Method: POST [11:02:45]URL: /json_proto [11:02:45]Method is POST - this is cgi request [11:02:45]url: /json_proto [11:02:45]query_string will be loaded in cgi processing [11:02:45]execute_cgi json_proto POST (null) [11:02:45]execute_cgi path=json_proto method=POST [11:02:45]POST find Content-Length [11:02:45]Host: 172.17.54.195:8080 [11:02:45]Content-Length: 676 [11:02:45]Content-Type: application/json [11:02:45] [11:02:45]POST finish read [11:02:45]Found Content-Length = 676 [11:02:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.990, "sum" : 133.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:45]execute_script... [11:02: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)16244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.990, "sum" : 133.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:45]POST & json_proto [11:02:45]process_json_proto [11:02:45]json parsed OK: [11:02:45]protocol is kg_v1.0 [11:02:45]action value=close_receipt [11:02:45]process_action close_receipt [11:02:45]cmd_close_receipt [11:02:45]MH_GetDate [11:02:45]Write to MH i2c: F0 00 00 F0 41 20 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: F0 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: F0 09 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: F0 09 00 F0 41 00 E0 C0 20 67 8D 90 A3 66 76 [11:02:45]GetLastDocTimeStamp 1730199634 [11:02:45]current date 1730199776 [11:02:45]FM_GetShiftState [11:02:45]SAM_PROTO_GetShiftState [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 13 01 00 [11:02:45]Write to MH i2c: E2 08 00 F1 41 80 13 01 00 00 00 00 00 AF [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0E 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0E 00 F1 41 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 04 [11:02:45]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_GetShiftState done [11:02:45]FM_GetShiftState done [11:02:45]opened in 1730161559 [11:02:45]opened+sec_in_day 1730247959 [11:02:45]quantity*price = 13313 [11:02:45]sum+1 = 13314 [11:02:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.14 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 41 29.10.2024 11:02 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15695 ФПД: 2071694428689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110256&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15695&fm=2071694428689&tin=02508201610067®Number=0000000000161798&sum=13300 [11:02:46]StoreToDocumentArchive [11:02:46]shift 172 fd 15695 [11:02:46]save to /storage/0172/doc_00015695 [11:02:46]save last doc name /storage/0172/doc_00015695 to /storage/kkm_last_doc_name [11:02:46]save OK [11:02:46]Clear old archive folders... [11:02:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:46]tlvbuf is B6EA4660 [11:02:46]SAM_PROTO_ClearQueue [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 09 00 00 [11:02:46]Write to MH i2c: E2 08 00 FE 41 80 09 00 00 00 00 00 00 B1 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 FE 41 00 90 00 B3 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]SAM_PROTO_ClearQueue done [11:02:46]KKMCreateOFDPacket [11:02:46]OFDProtocolAddRootSTLVToBuf [11:02:46]FM_MakeSignedData [11:02:46]FM_MakeSignedData [11:02:46]SAM_PROTO_SignData [11:02:46]wFMCommunicate request_size=4 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 01 02 [11:02:46]Write to MH i2c: E2 08 00 FF 41 80 0D 01 02 00 00 00 00 B9 [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:46]OFD Sender: No OFD packet to send [11:02:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:46]Read from MH i2c: E2 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 [11:02:46]MH_I2C_Read... [11:02:46]Read from MH i2c: E2 03 00 FF 41 00 90 00 B4 [11:02:46]RAPDU: 90 00 [11:02:46]wFMCommunicate OK [11:02:46]wFMCommunicate request_size=255 [11:02:46]MH_SAM_APDU [11:02:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 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 E0 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4F 3D 00 00 35 04 06 00 01 [11:02:46]Write to MH i2c: E2 02 01 00 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 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 E0 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4F 3D 00 00 35 04 06 00 01 00 00 DD [11:02:46]Write i2c OK [11:02:46]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 03 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 03 00 00 42 00 90 00 B6 [11:02:47]RAPDU: 90 00 [11:02:47]wFMCommunicate OK [11:02:47]wFMCommunicate request_size=10 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 0D 02 02 05 E2 5A 9C 4A 11 [11:02:47]Write to MH i2c: E2 0D 00 01 42 80 0D 02 02 05 00 E2 5A 9C 4A 11 00 00 FA [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 03 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 03 00 01 42 00 90 00 B7 [11:02:47]RAPDU: 90 00 [11:02:47]wFMCommunicate OK [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 0D 03 02 [11:02:47]Write to MH i2c: E2 08 00 02 42 80 0D 03 02 00 00 00 00 BF [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0B 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 0B 00 02 42 00 6C 77 42 34 75 3D C5 C9 90 00 59 [11:02:47]RAPDU: 6C 77 42 34 75 3D C5 C9 90 00 [11:02:47]wFMCommunicate OK [11:02:47]SAM_PROTO_SignData done [11:02:47]FM_MakeSignedData done [11:02:47]CreateOFDProtocolMessage [11:02:47]wFMCommunicate request_size=4 [11:02:47]MH_SAM_APDU [11:02:47]CAPDU: 80 11 00 00 [11:02:47]Write to MH i2c: E2 08 00 03 42 80 11 00 00 00 00 00 00 BF [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:47]Read from MH i2c: E2 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: E2 17 00 03 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0E [11:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:02:47]wFMCommunicate OK [11:02:47]CreateOFDProtocolMessage done [11:02:47]OFDSenderStorePacket 15695 [11:02:47]StoreOFDPacket docnum=15695 [11:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 58 99 07 01 F8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 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 E0 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4F 3D 00 00 35 04 06 00 01 E2 5A 9C 4A 11 6C 77 42 34 75 3D C5 C9 [11:02:47]CheckFolder [11:02:47]dirname=/storage/ofd_packets [11:02:47]CheckFolder done [11:02:47]ProducePacketName [11:02:47]name=ofd_packets/00015695 [11:02:47]NVStorageSaveData ofd_packets/00015695 [11:02:47]File name is /storage/ofd_packets/00015695 [11:02:47]Write 301 bytes [11:02:47]NVStorageSaveData done [11:02:47]OFDSenderStorePacket done [11:02:47]KKMCreateOFDPacket done [11:02:47]NVStorageSaveData kkm_last_timestamp [11:02:47]File name is /storage/kkm_last_timestamp [11:02:47]Write 4 bytes [11:02:47]NVStorageSaveData done [11:02:47]ExternCall_PrintAddStr [11:02:47]wPrintStart [11:02:47]Write to MH i2c: 01 00 00 04 42 46 [11:02:47]Write i2c OK [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 [11:02:47]MH_I2C_Read... [11:02:47]Read from MH i2c: 01 07 00 04 42 00 00 00 00 00 FF 0F 5B [11:02:47]RasterBufferAndPrint [11:02:47]line Счет N : (1)16244 [11:02:47]line ИНН: 02508201610067 [11:02:47]line Контрольно-Кассовый Чек [11:02:47]line ПРОДАЖА [11:02:47]line ТРК (МРК, ГНК) : 21 [11:02:47]line Товар: 2710124130 [11:02:47]line Аи-92-К-5 [11:02:47]line 1.990 * 66.90 [11:02:47]line = 133.13 [11:02:47]line НДС 12% НСП 1% [11:02:47]line > о реализуемом товаре [11:02:47]line ОКРУГЛЕНИЕ: -0.13 [11:02:47]line ИТОГО: 133.00 [11:02:47]line Внесено: 133.00 [11:02:47]line СДАЧА: 0.00 [11:02:47]line НСП 1% : 1.18 [11:02:47]line НДС 12% : 14.14 [11:02:47]line Наличными: 133.00 [11:02:47]line Безнал.: 0.00 [11:02:47]line Место: АЗС № 178 "Партнер Нефть" [11:02:47]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:02:47]line СНО: Общий режим [11:02:47]line Чек 41 29.10.2024 11:02 [11:02:47]line Смена: 172 ФФД: 1.0 [11:02:47]line ЗНМ: 0300000014 [11:02:47]line РНМ: 0000000000161798 [11:02:47]line Версия ККМ: v1.0 [11:02:47]line ФМ: 0000000000963325 [11:02:47]line ФД: 15695 [11:02:47]line ФПД: 2071694428689 [11:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110256&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15695&fm=2071694428689&tin=02508201610067®Number=0000000000161798&sum=13300 [11:02:47]OFD Sender: Processing packet 15695 [packets to send 4, broken 3] [11:02:47]ProducePacketName [11:02:47]name=ofd_packets/00015695 [11:02:47]OFD Sender: To server: pG, [11:02:47]CommunicateWithHost lk.salyk.kg:30040 [11:02:47]ConnectInit lk.salyk.kg [11:02:47]written 0, free lines is 4095 [11:02:47]Connected sock=10 [11:02:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 58 99 07 01 F8 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 01 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 86 05 00 00 00 00 07 04 06 00 F4 33 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 E0 C0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4F 3D 00 00 35 04 06 00 01 E2 5A 9C 4A 11 6C 77 42 34 75 3D C5 C9 [11:02:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8E 1F 47 00 E6 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 4F 3D 00 00 F4 03 04 00 CD 6B 20 67 B6 04 01 00 00 5E 48 A3 48 2D 82 81 F9 [11:02:48]CommunicateWithHost err = 0 [11:02:48]CheckOFDResponse [11:02:48]1017 (14) - 77093643461234 [11:02:48]1041 (16) - 0000000000963325 [11:02:48]1040 (4) - 15695 [11:02:48]1012 (4) - 29.10.2024 04:59 [11:02:48]1206 (1) - 0 [11:02:48]OFD Sender: Remove packet 15695 [11:02:48]ProducePacketName [11:02:48]name=ofd_packets/00015695 [11:02:48]NVStorageDeleteData [11:02:48]Write to MH i2c: 01 00 00 2F 42 71 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 07 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: 01 07 00 2F 42 00 00 00 00 00 F5 0C 79 [11:02:48]RasterBufferAndPrint [11:02:48]line [11:02:48]line [11:02:48]line [11:02:48]line [11:02:48]line [11:02:48]written 0, free lines is 3323 [11:02:48]MH_Cut [11:02:48]Write to MH i2c: D1 01 00 36 42 01 4A [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: D1 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: D1 01 00 [11:02:48]MH_I2C_Read... [11:02:48]Read from MH i2c: D1 01 00 36 42 00 49 [11:02:48]Write to MH i2c: 01 00 00 37 42 79 [11:02:48]Write i2c OK [11:02:48]MH_I2C_Read... [11:02:48]OFD Sender: No OFD packet to send [11:02:48]*** Cut start [11:02:48]*** Partial cut [11:02:48]*** CUTSNS_PIN = 1 [11:02:48]*** CUTSNS_PIN = 0 [11:02:49]*** Brake cut motor [11:02:49]Read from MH i2c: 01 [11:02:49]MH_I2C_Read... [11:02:49]*** Stop cut motor [11:02:49]*** Cut end [11:02:49]Read from MH i2c: 01 07 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: 01 07 00 37 42 00 00 00 00 00 FF 0F 8E [11:02:49]process_action close_receipt done [11:02:49]requested_data is exist [11:02:49]produce_requested_data [11:02:49]requested_item fm.sn is exist - process it [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 11 00 00 [11:02:49]Write to MH i2c: E2 08 00 38 42 80 11 00 00 00 00 00 00 F4 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 17 00 38 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 43 [11:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:02:49]wFMCommunicate OK [11:02:49]requested_item fd.num is exist - process it [11:02:49]SAM_PROTO_GetFieldsCounters [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 13 00 00 [11:02:49]Write to MH i2c: E2 08 00 39 42 80 13 00 00 00 00 00 00 F7 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 62 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 62 00 39 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4F 3D 00 00 0E 04 04 00 AC 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 CE [11:02:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 4F 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:49]wFMCommunicate OK [11:02:49]SAM_PROTO_GetFieldsCounters done [11:02:49]requested_item shift.num is exist - process it [11:02:49]requested_item shift.opened is exist - process it [11:02:49]req_shift_opened [11:02:49]FM_GetShiftState [11:02:49]SAM_PROTO_GetShiftState [11:02:49]wFMCommunicate request_size=4 [11:02:49]MH_SAM_APDU [11:02:49]CAPDU: 80 13 01 00 [11:02:49]Write to MH i2c: E2 08 00 3A 42 80 13 01 00 00 00 00 00 F9 [11:02:49]Write i2c OK [11:02:49]MH_I2C_Read... [11:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:49]Read from MH i2c: E2 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0E 00 [11:02:49]MH_I2C_Read... [11:02:49]Read from MH i2c: E2 0E 00 3A 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4E [11:02:49]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:02:49]wFMCommunicate OK [11:02:49]SAM_PROTO_GetShiftState done [11:02:49]FM_GetShiftState done [11:02:49]req_shift_opened done [11:02:49]requested_item shift.open_date is exist - process it [11:02:49]req_shift_open_date [11:02:49]req_shift_open_date done [11:02:49]produce_requested_data done [11:02:49]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15695,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:02:49]process_action_free close_receipt [11:02:49]json_value_free [11:02:49]json_value_free done [11:02:49]process_json_proto returns [11:02:49]Send response to host [11:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15695,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:02:49]free response buf [11:02:49]execute_script done [11:02:49]execute_script returns [11:02:49]free content buf [11:02:49]Sock 8.Close socket [11:02:49]Sock 8.Thread stoped [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]OFD Sender: No OFD packet to send [11:05:43]OFD Sender: No OFD packet to send [11:05:48]OFD Sender: No OFD packet to send [11:05:53]OFD Sender: No OFD packet to send [11:05:58]OFD Sender: No OFD packet to send [11:06:03]OFD Sender: No OFD packet to send [11:06:05]accept exits with 9 [11:06:05]New connection [11:06:05]New thread 3066731876 created [11:06:05]Thread 3066588516 joined [11:06:05]Waiting for new connection... [11:06:05] Sock 9.Parse request [11:06:05]Sock 9.Check first char [11:06:05]Sock 9.First char is OK [11:06:05]request: POST /json_proto HTTP/1.0 [11:06:05]Method: POST [11:06:05]URL: /json_proto [11:06:05]Method is POST - this is cgi request [11:06:05]url: /json_proto [11:06:05]query_string will be loaded in cgi processing [11:06:05]execute_cgi json_proto POST (null) [11:06:05]execute_cgi path=json_proto method=POST [11:06:05]POST find Content-Length [11:06:05]Host: 172.17.54.195:8080 [11:06:05]Content-Length: 628 [11:06:05]Content-Type: application/json [11:06:05] [11:06:05]POST finish read [11:06:05]Found Content-Length = 628 [11:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:05]execute_script... [11:06:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:05]POST & json_proto [11:06:05]process_json_proto [11:06:05]json parsed OK: [11:06:05]protocol is kg_v1.0 [11:06:05]action value=close_receipt [11:06:05]process_action close_receipt [11:06:05]cmd_close_receipt [11:06:05]MH_GetDate [11:06:05]Write to MH i2c: F0 00 00 3B 42 6C [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: F0 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: F0 09 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: F0 09 00 3B 42 00 A7 C1 20 67 8D 90 A3 66 8A [11:06:05]GetLastDocTimeStamp 1730199776 [11:06:05]current date 1730199975 [11:06:05]FM_GetShiftState [11:06:05]SAM_PROTO_GetShiftState [11:06:05]wFMCommunicate request_size=4 [11:06:05]MH_SAM_APDU [11:06:05]CAPDU: 80 13 01 00 [11:06:05]Write to MH i2c: E2 08 00 3C 42 80 13 01 00 00 00 00 00 FB [11:06:05]Write i2c OK [11:06:05]MH_I2C_Read... [11:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:05]Read from MH i2c: E2 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 0E 00 [11:06:05]MH_I2C_Read... [11:06:05]Read from MH i2c: E2 0E 00 3C 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 50 [11:06:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:06:05]wFMCommunicate OK [11:06:05]SAM_PROTO_GetShiftState done [11:06:05]FM_GetShiftState done [11:06:05]opened in 1730161559 [11:06:05]opened+sec_in_day 1730247959 [11:06:05]quantity*price = 50000 [11:06:05]sum+1 = 50001 [11:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 42 29.10.2024 11:06 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15696 ФПД: 56429191727112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110615&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15696&fm=56429191727112&tin=02508201610067®Number=0000000000161798&sum=50000 [11:06:06]StoreToDocumentArchive [11:06:06]shift 172 fd 15696 [11:06:06]save to /storage/0172/doc_00015696 [11:06:06]save last doc name /storage/0172/doc_00015696 to /storage/kkm_last_doc_name [11:06:06]save OK [11:06:06]Clear old archive folders... [11:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=249 [11:06:06]tlvbuf is 003DC390 [11:06:06]SAM_PROTO_ClearQueue [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 09 00 00 [11:06:06]Write to MH i2c: E2 08 00 49 42 80 09 00 00 00 00 00 00 FD [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 49 42 00 90 00 FF [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]SAM_PROTO_ClearQueue done [11:06:06]KKMCreateOFDPacket [11:06:06]OFDProtocolAddRootSTLVToBuf [11:06:06]FM_MakeSignedData [11:06:06]FM_MakeSignedData [11:06:06]SAM_PROTO_SignData [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 01 02 [11:06:06]Write to MH i2c: E2 08 00 4A 42 80 0D 01 02 00 00 00 00 05 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 4A 42 00 90 00 00 [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]wFMCommunicate request_size=255 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A7 C1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 50 3D 00 00 35 04 06 00 33 52 71 [11:06:06]Write to MH i2c: E2 02 01 4B 42 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A7 C1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 50 3D 00 00 35 04 06 00 33 52 71 00 00 91 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 4B 42 00 90 00 01 [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]wFMCommunicate request_size=8 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 02 02 03 ED 88 08 [11:06:06]Write to MH i2c: E2 0B 00 4C 42 80 0D 02 02 03 00 ED 88 08 00 00 8B [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:06]Read from MH i2c: E2 03 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 03 00 4C 42 00 90 00 02 [11:06:06]RAPDU: 90 00 [11:06:06]wFMCommunicate OK [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 0D 03 02 [11:06:06]Write to MH i2c: E2 08 00 4D 42 80 0D 03 02 00 00 00 00 0A [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0B 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 0B 00 4D 42 00 0B BA AE 0C 9E F2 59 3B 90 00 AE [11:06:06]RAPDU: 0B BA AE 0C 9E F2 59 3B 90 00 [11:06:06]wFMCommunicate OK [11:06:06]SAM_PROTO_SignData done [11:06:06]FM_MakeSignedData done [11:06:06]CreateOFDProtocolMessage [11:06:06]wFMCommunicate request_size=4 [11:06:06]MH_SAM_APDU [11:06:06]CAPDU: 80 11 00 00 [11:06:06]Write to MH i2c: E2 08 00 4E 42 80 11 00 00 00 00 00 00 0A [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:06]Read from MH i2c: E2 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: E2 17 00 4E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 59 [11:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:06:06]wFMCommunicate OK [11:06:06]CreateOFDProtocolMessage done [11:06:06]OFDSenderStorePacket 15696 [11:06:06]StoreOFDPacket docnum=15696 [11:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F1 43 05 01 D5 2D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A7 C1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 50 3D 00 00 35 04 06 00 33 52 71 ED 88 08 0B BA AE 0C 9E F2 59 3B [11:06:06]CheckFolder [11:06:06]dirname=/storage/ofd_packets [11:06:06]CheckFolder done [11:06:06]ProducePacketName [11:06:06]name=ofd_packets/00015696 [11:06:06]NVStorageSaveData ofd_packets/00015696 [11:06:06]File name is /storage/ofd_packets/00015696 [11:06:06]Write 299 bytes [11:06:06]NVStorageSaveData done [11:06:06]OFDSenderStorePacket done [11:06:06]KKMCreateOFDPacket done [11:06:06]NVStorageSaveData kkm_last_timestamp [11:06:06]File name is /storage/kkm_last_timestamp [11:06:06]Write 4 bytes [11:06:06]NVStorageSaveData done [11:06:06]ExternCall_PrintAddStr [11:06:06]wPrintStart [11:06:06]Write to MH i2c: 01 00 00 4F 42 91 [11:06:06]Write i2c OK [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 07 00 [11:06:06]MH_I2C_Read... [11:06:06]Read from MH i2c: 01 07 00 4F 42 00 00 00 00 00 FF 0F A6 [11:06:06]RasterBufferAndPrint [11:06:06]line Счет N : (1)16245 [11:06:06]line ИНН: 02508201610067 [11:06:06]line Контрольно-Кассовый Чек [11:06:06]line ПРОДАЖА [11:06:06]line ТРК (МРК, ГНК) : 12 [11:06:06]line Товар: 50.50.0 [11:06:06]line SUPER 92-К-5 [11:06:06]line 7.310 * 68.40 [11:06:06]line = 500.00 [11:06:06]line НДС 12% НСП 1% [11:06:06]line > о реализуемом товаре [11:06:06]line ИТОГО: 500.00 [11:06:06]line НСП 1% : 4.42 [11:06:06]line НДС 12% : 53.10 [11:06:06]line Наличными: 500.00 [11:06:06]line Безнал.: 0.00 [11:06:06]line Место: АЗС № 178 "Партнер Нефть" [11:06:06]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:06:06]line СНО: Общий режим [11:06:06]line Чек 42 29.10.2024 11:06 [11:06:06]line Смена: 172 ФФД: 1.0 [11:06:06]line ЗНМ: 0300000014 [11:06:06]line РНМ: 0000000000161798 [11:06:06]line Версия ККМ: v1.0 [11:06:06]line ФМ: 0000000000963325 [11:06:06]line ФД: 15696 [11:06:06]line ФПД: 56429191727112 [11:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T110615&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15696&fm=56429191727112&tin=02508201610067®Number=0000000000161798&sum=50000 [11:06:07]OFD Sender: Processing packet 15696 [packets to send 4, broken 3] [11:06:07]ProducePacketName [11:06:07]name=ofd_packets/00015696 [11:06:07]OFD Sender: To server: pG, [11:06:07]CommunicateWithHost lk.salyk.kg:30040 [11:06:07]ConnectInit lk.salyk.kg [11:06:07]written 0, free lines is 4095 [11:06:07]Connected sock=10 [11:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F1 43 05 01 D5 2D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A7 C1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 50 3D 00 00 35 04 06 00 33 52 71 ED 88 08 0B BA AE 0C 9E F2 59 3B [11:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 E7 3E 47 00 3D 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 50 3D 00 00 F4 03 04 00 94 6C 20 67 B6 04 01 00 00 DC 2F 2E E3 85 81 62 6D [11:06:07]CommunicateWithHost err = 0 [11:06:07]CheckOFDResponse [11:06:07]1017 (14) - 77093643461234 [11:06:07]1041 (16) - 0000000000963325 [11:06:07]1040 (4) - 15696 [11:06:07]1012 (4) - 29.10.2024 05:03 [11:06:07]1206 (1) - 0 [11:06:07]OFD Sender: Remove packet 15696 [11:06:07]ProducePacketName [11:06:07]name=ofd_packets/00015696 [11:06:07]NVStorageDeleteData [11:06:07]Write to MH i2c: 01 00 00 77 42 B9 [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 07 00 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: 01 07 00 77 42 00 00 00 00 00 27 0D F4 [11:06:07]RasterBufferAndPrint [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]line [11:06:07]written 0, free lines is 3373 [11:06:07]MH_Cut [11:06:07]Write to MH i2c: D1 01 00 7E 42 01 92 [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 01 00 [11:06:07]MH_I2C_Read... [11:06:07]Read from MH i2c: D1 01 00 7E 42 00 91 [11:06:07]Write to MH i2c: 01 00 00 7F 42 C1 [11:06:07]Write i2c OK [11:06:07]MH_I2C_Read... [11:06:07]OFD Sender: No OFD packet to send [11:06:08]*** Cut start [11:06:08]*** Partial cut [11:06:08]*** CUTSNS_PIN = 1 [11:06:08]*** CUTSNS_PIN = 0 [11:06:08]*** Brake cut motor [11:06:08]Read from MH i2c: 01 [11:06:08]MH_I2C_Read... [11:06:08]*** Stop cut motor [11:06:08]*** Cut end [11:06:08]Read from MH i2c: 01 07 00 [11:06:08]MH_I2C_Read... [11:06:08]Read from MH i2c: 01 07 00 7F 42 00 00 00 00 00 FF 0F D6 [11:06:08]process_action close_receipt done [11:06:08]requested_data is exist [11:06:08]produce_requested_data [11:06:08]requested_item fm.sn is exist - process it [11:06:08]wFMCommunicate request_size=4 [11:06:08]MH_SAM_APDU [11:06:08]CAPDU: 80 11 00 00 [11:06:08]Write to MH i2c: E2 08 00 80 42 80 11 00 00 00 00 00 00 3C [11:06:08]Write i2c OK [11:06:08]MH_I2C_Read... [11:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:09]Read from MH i2c: E2 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 17 00 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 17 00 80 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8B [11:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:06:09]wFMCommunicate OK [11:06:09]requested_item fd.num is exist - process it [11:06:09]SAM_PROTO_GetFieldsCounters [11:06:09]wFMCommunicate request_size=4 [11:06:09]MH_SAM_APDU [11:06:09]CAPDU: 80 13 00 00 [11:06:09]Write to MH i2c: E2 08 00 81 42 80 13 00 00 00 00 00 00 3F [11:06:09]Write i2c OK [11:06:09]MH_I2C_Read... [11:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:09]Read from MH i2c: E2 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 62 00 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 62 00 81 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 50 3D 00 00 0E 04 04 00 AC 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 1A [11:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 50 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:09]wFMCommunicate OK [11:06:09]SAM_PROTO_GetFieldsCounters done [11:06:09]requested_item shift.num is exist - process it [11:06:09]requested_item shift.opened is exist - process it [11:06:09]req_shift_opened [11:06:09]FM_GetShiftState [11:06:09]SAM_PROTO_GetShiftState [11:06:09]wFMCommunicate request_size=4 [11:06:09]MH_SAM_APDU [11:06:09]CAPDU: 80 13 01 00 [11:06:09]Write to MH i2c: E2 08 00 82 42 80 13 01 00 00 00 00 00 41 [11:06:09]Write i2c OK [11:06:09]MH_I2C_Read... [11:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:09]Read from MH i2c: E2 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 0E 00 [11:06:09]MH_I2C_Read... [11:06:09]Read from MH i2c: E2 0E 00 82 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 96 [11:06:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:06:09]wFMCommunicate OK [11:06:09]SAM_PROTO_GetShiftState done [11:06:09]FM_GetShiftState done [11:06:09]req_shift_opened done [11:06:09]requested_item shift.open_date is exist - process it [11:06:09]req_shift_open_date [11:06:09]req_shift_open_date done [11:06:09]produce_requested_data done [11:06:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15696,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:06:09]process_action_free close_receipt [11:06:09]json_value_free [11:06:09]json_value_free done [11:06:09]process_json_proto returns [11:06:09]Send response to host [11:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15696,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:06:09]free response buf [11:06:09]execute_script done [11:06:09]execute_script returns [11:06:09]free content buf [11:06:09]Sock 9.Close socket [11:06:09]Sock 9.Thread stoped [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:23]OFD Sender: No OFD packet to send [11:06:28]OFD Sender: No OFD packet to send [11:06:33]OFD Sender: No OFD packet to send [11:06:38]OFD Sender: No OFD packet to send [11:06:43]OFD Sender: No OFD packet to send [11:06:48]OFD Sender: No OFD packet to send [11:06:53]OFD Sender: No OFD packet to send [11:06:58]OFD Sender: No OFD packet to send [11:07:03]OFD Sender: No OFD packet to send [11:07:08]OFD Sender: No OFD packet to send [11:07:13]OFD Sender: No OFD packet to send [11:07:18]OFD Sender: No OFD packet to send [11:07:23]OFD Sender: No OFD packet to send [11:07:28]OFD Sender: No OFD packet to send [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:13]accept exits with 8 [11:11:13]New connection [11:11:13]New thread 3066588516 created [11:11:13]Thread 3066731876 joined [11:11:13]Waiting for new connection... [11:11:13] Sock 8.Parse request [11:11:13]Sock 8.Check first char [11:11:13]Sock 8.First char is OK [11:11:13]request: POST /json_proto HTTP/1.0 [11:11:13]Method: POST [11:11:13]URL: /json_proto [11:11:13]Method is POST - this is cgi request [11:11:13]url: /json_proto [11:11:13]query_string will be loaded in cgi processing [11:11:13]execute_cgi json_proto POST (null) [11:11:13]execute_cgi path=json_proto method=POST [11:11:13]POST find Content-Length [11:11:13]Host: 172.17.54.195:8080 [11:11:13]Content-Length: 681 [11:11:13]Content-Type: application/json [11:11:13] [11:11:13]POST finish read [11:11:13]Found Content-Length = 681 [11:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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:11:13]execute_script... [11:11: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)16246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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:11:13]POST & json_proto [11:11:13]process_json_proto [11:11:13]json parsed OK: [11:11:13]protocol is kg_v1.0 [11:11:13]action value=close_receipt [11:11:13]process_action close_receipt [11:11:13]cmd_close_receipt [11:11:13]MH_GetDate [11:11:13]Write to MH i2c: F0 00 00 83 42 B4 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: F0 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: F0 09 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: F0 09 00 83 42 00 DC C2 20 67 8D 90 A3 66 08 [11:11:13]GetLastDocTimeStamp 1730199975 [11:11:13]current date 1730200284 [11:11:13]FM_GetShiftState [11:11:13]SAM_PROTO_GetShiftState [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 13 01 00 [11:11:13]Write to MH i2c: E2 08 00 84 42 80 13 01 00 00 00 00 00 43 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0E 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0E 00 84 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 98 [11:11:13]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_GetShiftState done [11:11:13]FM_GetShiftState done [11:11:13]opened in 1730161559 [11:11:13]opened+sec_in_day 1730247959 [11:11:13]quantity*price = 200043 [11:11:13]sum+1 = 200044 [11:11: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 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 43 29.10.2024 11:11 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15697 ФПД: 8168854862098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111124&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15697&fm=8168854862098&tin=02508201610067®Number=0000000000161798&sum=200000 [11:11:14]StoreToDocumentArchive [11:11:15]shift 172 fd 15697 [11:11:15]save to /storage/0172/doc_00015697 [11:11:15]save last doc name /storage/0172/doc_00015697 to /storage/kkm_last_doc_name [11:11:15]save OK [11:11:15]Clear old archive folders... [11:11:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:15]tlvbuf is 00400CA0 [11:11:15]SAM_PROTO_ClearQueue [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 09 00 00 [11:11:15]Write to MH i2c: E2 08 00 91 42 80 09 00 00 00 00 00 00 45 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 91 42 00 90 00 47 [11:11:15]RAPDU: 90 00 [11:11:15]wFMCommunicate OK [11:11:15]SAM_PROTO_ClearQueue done [11:11:15]KKMCreateOFDPacket [11:11:15]OFDProtocolAddRootSTLVToBuf [11:11:15]FM_MakeSignedData [11:11:15]FM_MakeSignedData [11:11:15]SAM_PROTO_SignData [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 0D 01 02 [11:11:15]Write to MH i2c: E2 08 00 92 42 80 0D 01 02 00 00 00 00 4D [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 92 42 00 90 00 48 [11:11:15]RAPDU: 90 00 [11:11:15]wFMCommunicate OK [11:11:15]wFMCommunicate request_size=255 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 DC C2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 51 3D 00 00 35 04 06 00 07 [11:11:15]Write to MH i2c: E2 02 01 93 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 35 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 2B 00 00 00 F4 03 04 00 DC C2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 51 3D 00 00 35 04 06 00 07 00 00 18 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 93 42 00 90 00 49 [11:11:15]RAPDU: 90 00 [11:11:15]wFMCommunicate OK [11:11:15]wFMCommunicate request_size=10 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 0D 02 02 05 6D F5 B1 39 12 [11:11:15]Write to MH i2c: E2 0D 00 94 42 80 0D 02 02 05 00 6D F5 B1 39 12 00 00 B8 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 03 00 94 42 00 90 00 4A [11:11:15]RAPDU: 90 00 [11:11:15]wFMCommunicate OK [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 0D 03 02 [11:11:15]Write to MH i2c: E2 08 00 95 42 80 0D 03 02 00 00 00 00 52 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0B 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 0B 00 95 42 00 6A 12 A0 30 5B 39 2E 3D 90 00 9E [11:11:15]RAPDU: 6A 12 A0 30 5B 39 2E 3D 90 00 [11:11:15]wFMCommunicate OK [11:11:15]SAM_PROTO_SignData done [11:11:15]FM_MakeSignedData done [11:11:15]CreateOFDProtocolMessage [11:11:15]wFMCommunicate request_size=4 [11:11:15]MH_SAM_APDU [11:11:15]CAPDU: 80 11 00 00 [11:11:15]Write to MH i2c: E2 08 00 96 42 80 11 00 00 00 00 00 00 52 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:15]Read from MH i2c: E2 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 17 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: E2 17 00 96 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A1 [11:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:11:15]wFMCommunicate OK [11:11:15]CreateOFDProtocolMessage done [11:11:15]OFDSenderStorePacket 15697 [11:11:15]StoreOFDPacket docnum=15697 [11:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 59 67 07 01 48 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 2B 00 00 00 F4 03 04 00 DC C2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 51 3D 00 00 35 04 06 00 07 6D F5 B1 39 12 6A 12 A0 30 5B 39 2E 3D [11:11:15]CheckFolder [11:11:15]dirname=/storage/ofd_packets [11:11:15]CheckFolder done [11:11:15]ProducePacketName [11:11:15]name=ofd_packets/00015697 [11:11:15]NVStorageSaveData ofd_packets/00015697 [11:11:15]File name is /storage/ofd_packets/00015697 [11:11:15]Write 301 bytes [11:11:15]NVStorageSaveData done [11:11:15]OFDSenderStorePacket done [11:11:15]KKMCreateOFDPacket done [11:11:15]NVStorageSaveData kkm_last_timestamp [11:11:15]File name is /storage/kkm_last_timestamp [11:11:15]Write 4 bytes [11:11:15]NVStorageSaveData done [11:11:15]ExternCall_PrintAddStr [11:11:15]wPrintStart [11:11:15]Write to MH i2c: 01 00 00 97 42 D9 [11:11:15]Write i2c OK [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: 01 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: 01 07 00 [11:11:15]MH_I2C_Read... [11:11:15]Read from MH i2c: 01 07 00 97 42 00 00 00 00 00 FF 0F EE [11:11:15]RasterBufferAndPrint [11:11:15]line Счет N : (1)16246 [11:11:15]line ИНН: 02508201610067 [11:11:15]line Контрольно-Кассовый Чек [11:11:15]line ПРОДАЖА [11:11:15]line ТРК (МРК, ГНК) : 11 [11:11:15]line Товар: 2710124500 [11:11:15]line Аи-95-К-5 [11:11:15]line 26.960 * 74.20 [11:11:15]line = 2000.43 [11:11:15]line НДС 12% НСП 1% [11:11:15]line > о реализуемом товаре [11:11:15]line ОКРУГЛЕНИЕ: -0.43 [11:11:15]line ИТОГО: 2000.00 [11:11:15]line Внесено: 2000.00 [11:11:15]line СДАЧА: 0.00 [11:11:15]line НСП 1% : 17.70 [11:11:15]line НДС 12% : 212.43 [11:11:15]line Наличными: 2000.00 [11:11:15]line Безнал.: 0.00 [11:11:15]line Место: АЗС № 178 "Партнер Нефть" [11:11:15]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:11:15]line СНО: Общий режим [11:11:15]line Чек 43 29.10.2024 11:11 [11:11:15]line Смена: 172 ФФД: 1.0 [11:11:15]line ЗНМ: 0300000014 [11:11:15]line РНМ: 0000000000161798 [11:11:15]line Версия ККМ: v1.0 [11:11:15]line ФМ: 0000000000963325 [11:11:15]line ФД: 15697 [11:11:15]line ФПД: 8168854862098 [11:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111124&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15697&fm=8168854862098&tin=02508201610067®Number=0000000000161798&sum=200000 [11:11:15]OFD Sender: Processing packet 15697 [packets to send 4, broken 3] [11:11:15]ProducePacketName [11:11:15]name=ofd_packets/00015697 [11:11:15]OFD Sender: To server: pG, [11:11:15]CommunicateWithHost lk.salyk.kg:30040 [11:11:15]ConnectInit lk.salyk.kg [11:11:15]written 0, free lines is 4095 [11:11:15]Connected sock=10 [11:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 59 67 07 01 48 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 2B 00 00 00 F4 03 04 00 DC C2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 51 3D 00 00 35 04 06 00 07 6D F5 B1 39 12 6A 12 A0 30 5B 39 2E 3D [11:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 BA 9F 47 00 51 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 51 3D 00 00 F4 03 04 00 C9 6D 20 67 B6 04 01 00 00 EA 07 C1 F4 8E C1 0C 24 [11:11:16]CommunicateWithHost err = 0 [11:11:16]CheckOFDResponse [11:11:16]1017 (14) - 77093643461234 [11:11:16]1041 (16) - 0000000000963325 [11:11:16]1040 (4) - 15697 [11:11:16]1012 (4) - 29.10.2024 05:08 [11:11:16]1206 (1) - 0 [11:11:16]OFD Sender: Remove packet 15697 [11:11:16]ProducePacketName [11:11:16]name=ofd_packets/00015697 [11:11:16]NVStorageDeleteData [11:11:16]Write to MH i2c: 01 00 00 C2 42 04 [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 07 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: 01 07 00 C2 42 00 00 00 00 00 FB 0C 12 [11:11:16]RasterBufferAndPrint [11:11:16]line [11:11:16]line [11:11:16]line [11:11:16]line [11:11:16]line [11:11:16]written 0, free lines is 3329 [11:11:16]MH_Cut [11:11:16]Write to MH i2c: D1 01 00 C9 42 01 DD [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: D1 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: D1 01 00 [11:11:16]MH_I2C_Read... [11:11:16]Read from MH i2c: D1 01 00 C9 42 00 DC [11:11:16]Write to MH i2c: 01 00 00 CA 42 0C [11:11:16]Write i2c OK [11:11:16]MH_I2C_Read... [11:11:16]OFD Sender: No OFD packet to send [11:11:16]*** Cut start [11:11:16]*** Partial cut [11:11:16]*** CUTSNS_PIN = 1 [11:11:17]*** CUTSNS_PIN = 0 [11:11:17]*** Brake cut motor [11:11:17]Read from MH i2c: 01 [11:11:17]MH_I2C_Read... [11:11:17]*** Stop cut motor [11:11:17]*** Cut end [11:11:17]Read from MH i2c: 01 07 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: 01 07 00 CA 42 00 00 00 00 00 FF 0F 21 [11:11:17]process_action close_receipt done [11:11:17]requested_data is exist [11:11:17]produce_requested_data [11:11:17]requested_item fm.sn is exist - process it [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 11 00 00 [11:11:17]Write to MH i2c: E2 08 00 CB 42 80 11 00 00 00 00 00 00 87 [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 17 00 CB 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D6 [11:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:11:17]wFMCommunicate OK [11:11:17]requested_item fd.num is exist - process it [11:11:17]SAM_PROTO_GetFieldsCounters [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 13 00 00 [11:11:17]Write to MH i2c: E2 08 00 CC 42 80 13 00 00 00 00 00 00 8A [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 62 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 62 00 CC 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 51 3D 00 00 0E 04 04 00 AC 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 69 [11:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 51 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_GetFieldsCounters done [11:11:17]requested_item shift.num is exist - process it [11:11:17]requested_item shift.opened is exist - process it [11:11:17]req_shift_opened [11:11:17]FM_GetShiftState [11:11:17]SAM_PROTO_GetShiftState [11:11:17]wFMCommunicate request_size=4 [11:11:17]MH_SAM_APDU [11:11:17]CAPDU: 80 13 01 00 [11:11:17]Write to MH i2c: E2 08 00 CD 42 80 13 01 00 00 00 00 00 8C [11:11:17]Write i2c OK [11:11:17]MH_I2C_Read... [11:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:17]Read from MH i2c: E2 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0E 00 [11:11:17]MH_I2C_Read... [11:11:17]Read from MH i2c: E2 0E 00 CD 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E1 [11:11:17]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:11:17]wFMCommunicate OK [11:11:17]SAM_PROTO_GetShiftState done [11:11:17]FM_GetShiftState done [11:11:17]req_shift_opened done [11:11:17]requested_item shift.open_date is exist - process it [11:11:17]req_shift_open_date [11:11:17]req_shift_open_date done [11:11:17]produce_requested_data done [11:11:17]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15697,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:11:17]process_action_free close_receipt [11:11:17]json_value_free [11:11:17]json_value_free done [11:11:17]process_json_proto returns [11:11:17]Send response to host [11:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15697,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:11:17]free response buf [11:11:17]execute_script done [11:11:17]execute_script returns [11:11:17]free content buf [11:11:17]Sock 8.Close socket [11:11:17]Sock 8.Thread stoped [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]accept exits with 9 [11:12:46]New connection [11:12:46]New thread 3066731876 created [11:12:46]Thread 3066588516 joined [11:12:46]Waiting for new connection... [11:12:46] Sock 9.Parse request [11:12:46]Sock 9.Check first char [11:12:46]Sock 9.First char is OK [11:12:46]request: POST /json_proto HTTP/1.0 [11:12:46]Method: POST [11:12:46]URL: /json_proto [11:12:46]Method is POST - this is cgi request [11:12:46]url: /json_proto [11:12:46]query_string will be loaded in cgi processing [11:12:46]execute_cgi json_proto POST (null) [11:12:46]execute_cgi path=json_proto method=POST [11:12:46]POST find Content-Length [11:12:46]Host: 172.17.54.195:8080 [11:12:46]Content-Length: 681 [11:12:46]Content-Type: application/json [11:12:46] [11:12:46]POST finish read [11:12:46]Found Content-Length = 681 [11:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [11:12:46]execute_script... [11:12: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)16247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [11:12:46]POST & json_proto [11:12:46]process_json_proto [11:12:46]json parsed OK: [11:12:46]protocol is kg_v1.0 [11:12:46]action value=close_receipt [11:12:46]process_action close_receipt [11:12:46]cmd_close_receipt [11:12:46]MH_GetDate [11:12:46]Write to MH i2c: F0 00 00 CE 42 FF [11:12:46]Write i2c OK [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 09 00 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 09 00 CE 42 00 38 C3 20 67 8D 90 A3 66 B0 [11:12:46]GetLastDocTimeStamp 1730200284 [11:12:46]current date 1730200376 [11:12:46]FM_GetShiftState [11:12:46]SAM_PROTO_GetShiftState [11:12:46]wFMCommunicate request_size=4 [11:12:46]MH_SAM_APDU [11:12:46]CAPDU: 80 13 01 00 [11:12:46]Write to MH i2c: E2 08 00 CF 42 80 13 01 00 00 00 00 00 8E [11:12:46]Write i2c OK [11:12:46]MH_I2C_Read... [11:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:46]Read from MH i2c: E2 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: E2 0E 00 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: E2 0E 00 CF 42 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E3 [11:12:46]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:12:46]wFMCommunicate OK [11:12:46]SAM_PROTO_GetShiftState done [11:12:46]FM_GetShiftState done [11:12:46]opened in 1730161559 [11:12:46]opened+sec_in_day 1730247959 [11:12:46]quantity*price = 100021 [11:12:46]sum+1 = 100023 [11:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 44 29.10.2024 11:12 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15698 ФПД: 160717118993346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111257&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15698&fm=160717118993346&tin=02508201610067®Number=0000000000161798&sum=100000 [11:12:47]StoreToDocumentArchive [11:12:47]shift 172 fd 15698 [11:12:47]save to /storage/0172/doc_00015698 [11:12:47]save last doc name /storage/0172/doc_00015698 to /storage/kkm_last_doc_name [11:12:47]save OK [11:12:47]Clear old archive folders... [11:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:47]tlvbuf is 002EF150 [11:12:47]SAM_PROTO_ClearQueue [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 09 00 00 [11:12:47]Write to MH i2c: E2 08 00 DC 42 80 09 00 00 00 00 00 00 90 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [11:12:47]RAPDU: 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_ClearQueue done [11:12:47]KKMCreateOFDPacket [11:12:47]OFDProtocolAddRootSTLVToBuf [11:12:47]FM_MakeSignedData [11:12:47]FM_MakeSignedData [11:12:47]SAM_PROTO_SignData [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 0D 01 02 [11:12:47]Write to MH i2c: E2 08 00 DD 42 80 0D 01 02 00 00 00 00 98 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [11:12:47]RAPDU: 90 00 [11:12:47]wFMCommunicate OK [11:12:47]wFMCommunicate request_size=255 [11:12:47]MH_SAM_APDU [11:12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 2C 00 00 00 F4 03 04 00 39 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 52 3D 00 00 35 04 06 00 92 [11:12:47]Write to MH i2c: E2 02 01 DE 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 35 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 2C 00 00 00 F4 03 04 00 39 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 52 3D 00 00 35 04 06 00 92 00 00 C3 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 DE 42 00 90 00 94 [11:12:47]RAPDU: 90 00 [11:12:47]wFMCommunicate OK [11:12:47]wFMCommunicate request_size=10 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 0D 02 02 05 2B DE C9 73 C2 [11:12:47]Write to MH i2c: E2 0D 00 DF 42 80 0D 02 02 05 00 2B DE C9 73 C2 00 00 AC [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 03 00 DF 42 00 90 00 95 [11:12:47]RAPDU: 90 00 [11:12:47]wFMCommunicate OK [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 0D 03 02 [11:12:47]Write to MH i2c: E2 08 00 E0 42 80 0D 03 02 00 00 00 00 9D [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0B 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 0B 00 E0 42 00 25 AB 47 E0 0D 64 34 9C 90 00 D6 [11:12:47]RAPDU: 25 AB 47 E0 0D 64 34 9C 90 00 [11:12:47]wFMCommunicate OK [11:12:47]SAM_PROTO_SignData done [11:12:47]FM_MakeSignedData done [11:12:47]CreateOFDProtocolMessage [11:12:47]wFMCommunicate request_size=4 [11:12:47]MH_SAM_APDU [11:12:47]CAPDU: 80 11 00 00 [11:12:47]Write to MH i2c: E2 08 00 E1 42 80 11 00 00 00 00 00 00 9D [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:47]Read from MH i2c: E2 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 17 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: E2 17 00 E1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 EC [11:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:12:47]wFMCommunicate OK [11:12:47]CreateOFDProtocolMessage done [11:12:47]OFDSenderStorePacket 15698 [11:12:47]StoreOFDPacket docnum=15698 [11:12:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E1 EC 07 01 7F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 2C 00 00 00 F4 03 04 00 39 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 52 3D 00 00 35 04 06 00 92 2B DE C9 73 C2 25 AB 47 E0 0D 64 34 9C [11:12:47]CheckFolder [11:12:47]dirname=/storage/ofd_packets [11:12:47]CheckFolder done [11:12:47]ProducePacketName [11:12:47]name=ofd_packets/00015698 [11:12:47]NVStorageSaveData ofd_packets/00015698 [11:12:47]File name is /storage/ofd_packets/00015698 [11:12:47]Write 301 bytes [11:12:47]NVStorageSaveData done [11:12:47]OFDSenderStorePacket done [11:12:47]KKMCreateOFDPacket done [11:12:47]NVStorageSaveData kkm_last_timestamp [11:12:47]File name is /storage/kkm_last_timestamp [11:12:47]Write 4 bytes [11:12:47]NVStorageSaveData done [11:12:47]ExternCall_PrintAddStr [11:12:47]wPrintStart [11:12:47]Write to MH i2c: 01 00 00 E2 42 24 [11:12:47]Write i2c OK [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: 01 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: 01 07 00 [11:12:47]MH_I2C_Read... [11:12:47]Read from MH i2c: 01 07 00 E2 42 00 00 00 00 00 FF 0F 39 [11:12:47]RasterBufferAndPrint [11:12:47]line Счет N : (1)16247 [11:12:47]line ИНН: 02508201610067 [11:12:47]line Контрольно-Кассовый Чек [11:12:47]line ПРОДАЖА [11:12:47]line ТРК (МРК, ГНК) : 11 [11:12:47]line Товар: 2710124500 [11:12:47]line Аи-95-К-5 [11:12:47]line 13.480 * 74.20 [11:12:47]line = 1000.22 [11:12:47]line НДС 12% НСП 1% [11:12:47]line > о реализуемом товаре [11:12:47]line ОКРУГЛЕНИЕ: -0.22 [11:12:47]line ИТОГО: 1000.00 [11:12:47]line Внесено: 1000.00 [11:12:47]line СДАЧА: 0.00 [11:12:47]line НСП 1% : 8.85 [11:12:47]line НДС 12% : 106.22 [11:12:47]line Наличными: 1000.00 [11:12:47]line Безнал.: 0.00 [11:12:47]line Место: АЗС № 178 "Партнер Нефть" [11:12:47]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:12:47]line СНО: Общий режим [11:12:47]line Чек 44 29.10.2024 11:12 [11:12:47]line Смена: 172 ФФД: 1.0 [11:12:47]line ЗНМ: 0300000014 [11:12:47]line РНМ: 0000000000161798 [11:12:47]line Версия ККМ: v1.0 [11:12:47]line ФМ: 0000000000963325 [11:12:47]line ФД: 15698 [11:12:47]line ФПД: 160717118993346 [11:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111257&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15698&fm=160717118993346&tin=02508201610067®Number=0000000000161798&sum=100000 [11:12:48]OFD Sender: Processing packet 15698 [packets to send 4, broken 3] [11:12:48]ProducePacketName [11:12:48]name=ofd_packets/00015698 [11:12:48]OFD Sender: To server: pG, [11:12:48]CommunicateWithHost lk.salyk.kg:30040 [11:12:48]ConnectInit lk.salyk.kg [11:12:48]written 0, free lines is 4095 [11:12:48]Connected sock=10 [11:12:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E1 EC 07 01 7F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 2C 00 00 00 F4 03 04 00 39 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 52 3D 00 00 35 04 06 00 92 2B DE C9 73 C2 25 AB 47 E0 0D 64 34 9C [11:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 63 AD 47 00 2D 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 52 3D 00 00 F4 03 04 00 26 6E 20 67 B6 04 01 00 00 95 70 06 5B EC 79 78 63 [11:12:48]CommunicateWithHost err = 0 [11:12:48]CheckOFDResponse [11:12:48]1017 (14) - 77093643461234 [11:12:48]1041 (16) - 0000000000963325 [11:12:48]1040 (4) - 15698 [11:12:48]1012 (4) - 29.10.2024 05:09 [11:12:48]1206 (1) - 0 [11:12:48]OFD Sender: Remove packet 15698 [11:12:48]ProducePacketName [11:12:48]name=ofd_packets/00015698 [11:12:48]NVStorageDeleteData [11:12:48]Write to MH i2c: 01 00 00 0D 43 50 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 07 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 07 00 0D 43 00 00 00 00 00 02 0D 66 [11:12:48]RasterBufferAndPrint [11:12:48]line [11:12:48]line [11:12:48]line [11:12:48]line [11:12:48]line [11:12:48]written 0, free lines is 3339 [11:12:48]MH_Cut [11:12:48]Write to MH i2c: D1 01 00 14 43 01 29 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: D1 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: D1 01 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: D1 01 00 14 43 00 28 [11:12:48]Write to MH i2c: 01 00 00 15 43 58 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:49]OFD Sender: No OFD packet to send [11:12:49]*** Cut start [11:12:49]*** Partial cut [11:12:49]*** CUTSNS_PIN = 1 [11:12:49]*** CUTSNS_PIN = 0 [11:12:49]*** Brake cut motor [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]*** Stop cut motor [11:12:50]*** Cut end [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 15 43 00 00 00 00 00 FF 0F 6D [11:12:50]process_action close_receipt done [11:12:50]requested_data is exist [11:12:50]produce_requested_data [11:12:50]requested_item fm.sn is exist - process it [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 11 00 00 [11:12:50]Write to MH i2c: E2 08 00 16 43 80 11 00 00 00 00 00 00 D3 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 17 00 16 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 22 [11:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:12:50]wFMCommunicate OK [11:12:50]requested_item fd.num is exist - process it [11:12:50]SAM_PROTO_GetFieldsCounters [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 13 00 00 [11:12:50]Write to MH i2c: E2 08 00 17 43 80 13 00 00 00 00 00 00 D6 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 62 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 62 00 17 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 52 3D 00 00 0E 04 04 00 AC 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 B9 [11:12:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 52 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_GetFieldsCounters done [11:12:50]requested_item shift.num is exist - process it [11:12:50]requested_item shift.opened is exist - process it [11:12:50]req_shift_opened [11:12:50]FM_GetShiftState [11:12:50]SAM_PROTO_GetShiftState [11:12:50]wFMCommunicate request_size=4 [11:12:50]MH_SAM_APDU [11:12:50]CAPDU: 80 13 01 00 [11:12:50]Write to MH i2c: E2 08 00 18 43 80 13 01 00 00 00 00 00 D8 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:50]Read from MH i2c: E2 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0E 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: E2 0E 00 18 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2D [11:12:50]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:12:50]wFMCommunicate OK [11:12:50]SAM_PROTO_GetShiftState done [11:12:50]FM_GetShiftState done [11:12:50]req_shift_opened done [11:12:50]requested_item shift.open_date is exist - process it [11:12:50]req_shift_open_date [11:12:50]req_shift_open_date done [11:12:50]produce_requested_data done [11:12:50]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15698,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:12:50]process_action_free close_receipt [11:12:50]json_value_free [11:12:50]json_value_free done [11:12:50]process_json_proto returns [11:12:50]Send response to host [11:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15698,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:12:50]free response buf [11:12:50]execute_script done [11:12:50]execute_script returns [11:12:50]free content buf [11:12:50]Sock 9.Close socket [11:12:50]Sock 9.Thread stoped [11:12:54]OFD Sender: No OFD packet to send [11:12:59]OFD Sender: No OFD packet to send [11:13:04]OFD Sender: No OFD packet to send [11:13:09]OFD Sender: No OFD packet to send [11:13:14]OFD Sender: No OFD packet to send [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:50]accept exits with 8 [11:14:50]New connection [11:14:50]New thread 3066588516 created [11:14:50]Thread 3066731876 joined [11:14:50]Waiting for new connection... [11:14:50] Sock 8.Parse request [11:14:50]Sock 8.Check first char [11:14:50]Sock 8.First char is OK [11:14:50]request: POST /json_proto HTTP/1.0 [11:14:50]Method: POST [11:14:50]URL: /json_proto [11:14:50]Method is POST - this is cgi request [11:14:50]url: /json_proto [11:14:50]query_string will be loaded in cgi processing [11:14:50]execute_cgi json_proto POST (null) [11:14:50]execute_cgi path=json_proto method=POST [11:14:50]POST find Content-Length [11:14:50]Host: 172.17.54.195:8080 [11:14:50]Content-Length: 676 [11:14:50]Content-Type: application/json [11:14:50] [11:14:50]POST finish read [11:14:50]Found Content-Length = 676 [11:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:14:50]execute_script... [11:14: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)16248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:14:50]POST & json_proto [11:14:50]process_json_proto [11:14:50]json parsed OK: [11:14:50]protocol is kg_v1.0 [11:14:50]action value=close_receipt [11:14:50]process_action close_receipt [11:14:50]cmd_close_receipt [11:14:50]MH_GetDate [11:14:50]Write to MH i2c: F0 00 00 19 43 4B [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: F0 09 00 19 43 00 B5 C3 20 67 8D 90 A3 66 79 [11:14:50]GetLastDocTimeStamp 1730200377 [11:14:50]current date 1730200501 [11:14:50]FM_GetShiftState [11:14:50]SAM_PROTO_GetShiftState [11:14:50]wFMCommunicate request_size=4 [11:14:50]MH_SAM_APDU [11:14:50]CAPDU: 80 13 01 00 [11:14:50]Write to MH i2c: E2 08 00 1A 43 80 13 01 00 00 00 00 00 DA [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:50]Read from MH i2c: E2 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: E2 0E 00 1A 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2F [11:14:50]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:14:50]wFMCommunicate OK [11:14:50]SAM_PROTO_GetShiftState done [11:14:50]FM_GetShiftState done [11:14:50]opened in 1730161559 [11:14:50]opened+sec_in_day 1730247959 [11:14:50]quantity*price = 20003 [11:14:50]sum+1 = 20004 [11:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 45 29.10.2024 11:15 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15699 ФПД: 49213248356078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111501&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15699&fm=49213248356078&tin=02508201610067®Number=0000000000161798&sum=20000 [11:14:51]StoreToDocumentArchive [11:14:51]shift 172 fd 15699 [11:14:51]save to /storage/0172/doc_00015699 [11:14:51]save last doc name /storage/0172/doc_00015699 to /storage/kkm_last_doc_name [11:14:51]save OK [11:14:51]Clear old archive folders... [11:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:51]tlvbuf is 0031F660 [11:14:51]SAM_PROTO_ClearQueue [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 09 00 00 [11:14:51]Write to MH i2c: E2 08 00 27 43 80 09 00 00 00 00 00 00 DC [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:51]Read from MH i2c: E2 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 [11:14:51]MH_I2C_Read... [11:14:51]Read from MH i2c: E2 03 00 27 43 00 90 00 DE [11:14:51]RAPDU: 90 00 [11:14:51]wFMCommunicate OK [11:14:51]SAM_PROTO_ClearQueue done [11:14:51]KKMCreateOFDPacket [11:14:51]OFDProtocolAddRootSTLVToBuf [11:14:51]FM_MakeSignedData [11:14:51]FM_MakeSignedData [11:14:51]SAM_PROTO_SignData [11:14:51]wFMCommunicate request_size=4 [11:14:51]MH_SAM_APDU [11:14:51]CAPDU: 80 0D 01 02 [11:14:51]Write to MH i2c: E2 08 00 28 43 80 0D 01 02 00 00 00 00 E4 [11:14:51]Write i2c OK [11:14:51]MH_I2C_Read... [11:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 28 43 00 90 00 DF [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=255 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 B5 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 53 3D 00 00 35 04 06 00 2C [11:14:52]Write to MH i2c: E2 02 01 29 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 B5 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 53 3D 00 00 35 04 06 00 2C 00 00 CC [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 29 43 00 90 00 E0 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=10 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 02 02 05 C2 5A 2F BE EE [11:14:52]Write to MH i2c: E2 0D 00 2A 43 80 0D 02 02 05 00 C2 5A 2F BE EE 00 00 E8 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 03 00 2A 43 00 90 00 E1 [11:14:52]RAPDU: 90 00 [11:14:52]wFMCommunicate OK [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 0D 03 02 [11:14:52]Write to MH i2c: E2 08 00 2B 43 80 0D 03 02 00 00 00 00 E9 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0B 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 0B 00 2B 43 00 BB AD 67 5F 02 10 7A 79 90 00 1D [11:14:52]RAPDU: BB AD 67 5F 02 10 7A 79 90 00 [11:14:52]wFMCommunicate OK [11:14:52]SAM_PROTO_SignData done [11:14:52]FM_MakeSignedData done [11:14:52]CreateOFDProtocolMessage [11:14:52]wFMCommunicate request_size=4 [11:14:52]MH_SAM_APDU [11:14:52]CAPDU: 80 11 00 00 [11:14:52]Write to MH i2c: E2 08 00 2C 43 80 11 00 00 00 00 00 00 E9 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:52]Read from MH i2c: E2 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: E2 17 00 2C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 38 [11:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:14:52]wFMCommunicate OK [11:14:52]CreateOFDProtocolMessage done [11:14:52]OFDSenderStorePacket 15699 [11:14:52]StoreOFDPacket docnum=15699 [11:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 24 E0 07 01 FD 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 B5 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 53 3D 00 00 35 04 06 00 2C C2 5A 2F BE EE BB AD 67 5F 02 10 7A 79 [11:14:52]CheckFolder [11:14:52]dirname=/storage/ofd_packets [11:14:52]CheckFolder done [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00015699 [11:14:52]NVStorageSaveData ofd_packets/00015699 [11:14:52]File name is /storage/ofd_packets/00015699 [11:14:52]Write 301 bytes [11:14:52]NVStorageSaveData done [11:14:52]OFDSenderStorePacket done [11:14:52]KKMCreateOFDPacket done [11:14:52]NVStorageSaveData kkm_last_timestamp [11:14:52]File name is /storage/kkm_last_timestamp [11:14:52]Write 4 bytes [11:14:52]NVStorageSaveData done [11:14:52]ExternCall_PrintAddStr [11:14:52]wPrintStart [11:14:52]Write to MH i2c: 01 00 00 2D 43 70 [11:14:52]Write i2c OK [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 [11:14:52]MH_I2C_Read... [11:14:52]Read from MH i2c: 01 07 00 2D 43 00 00 00 00 00 FF 0F 85 [11:14:52]RasterBufferAndPrint [11:14:52]line Счет N : (1)16248 [11:14:52]line ИНН: 02508201610067 [11:14:52]line Контрольно-Кассовый Чек [11:14:52]line ПРОДАЖА [11:14:52]line ТРК (МРК, ГНК) : 21 [11:14:52]line Товар: 2710124130 [11:14:52]line Аи-92-К-5 [11:14:52]line 2.990 * 66.90 [11:14:52]line = 200.03 [11:14:52]line НДС 12% НСП 1% [11:14:52]line > о реализуемом товаре [11:14:52]line ОКРУГЛЕНИЕ: -0.03 [11:14:52]line ИТОГО: 200.00 [11:14:52]line Внесено: 200.00 [11:14:52]line СДАЧА: 0.00 [11:14:52]line НСП 1% : 1.77 [11:14:52]line НДС 12% : 21.24 [11:14:52]line Наличными: 200.00 [11:14:52]line Безнал.: 0.00 [11:14:52]line Место: АЗС № 178 "Партнер Нефть" [11:14:52]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:14:52]line СНО: Общий режим [11:14:52]line Чек 45 29.10.2024 11:15 [11:14:52]line Смена: 172 ФФД: 1.0 [11:14:52]line ЗНМ: 0300000014 [11:14:52]line РНМ: 0000000000161798 [11:14:52]line Версия ККМ: v1.0 [11:14:52]line ФМ: 0000000000963325 [11:14:52]line ФД: 15699 [11:14:52]line ФПД: 49213248356078 [11:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T111501&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15699&fm=49213248356078&tin=02508201610067®Number=0000000000161798&sum=20000 [11:14:52]OFD Sender: Processing packet 15699 [packets to send 4, broken 3] [11:14:52]ProducePacketName [11:14:52]name=ofd_packets/00015699 [11:14:52]OFD Sender: To server: pG, [11:14:52]CommunicateWithHost lk.salyk.kg:30040 [11:14:52]ConnectInit lk.salyk.kg [11:14:52]written 0, free lines is 4095 [11:14:52]Connected sock=10 [11:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 24 E0 07 01 FD 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2D 00 00 00 F4 03 04 00 B5 C3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 53 3D 00 00 35 04 06 00 2C C2 5A 2F BE EE BB AD 67 5F 02 10 7A 79 [11:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 B2 6B 47 00 DC DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 53 3D 00 00 F4 03 04 00 A2 6E 20 67 B6 04 01 00 00 B1 B6 0F 8C 4D 2B D9 8A [11:14:53]CommunicateWithHost err = 0 [11:14:53]CheckOFDResponse [11:14:53]1017 (14) - 77093643461234 [11:14:53]1041 (16) - 0000000000963325 [11:14:53]1040 (4) - 15699 [11:14:53]1012 (4) - 29.10.2024 05:12 [11:14:53]1206 (1) - 0 [11:14:53]OFD Sender: Remove packet 15699 [11:14:53]ProducePacketName [11:14:53]name=ofd_packets/00015699 [11:14:53]NVStorageDeleteData [11:14:53]Write to MH i2c: 01 00 00 58 43 9B [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 07 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: 01 07 00 58 43 00 00 00 00 00 EC 0C 9A [11:14:53]RasterBufferAndPrint [11:14:53]line [11:14:53]line [11:14:53]line [11:14:53]line [11:14:53]line [11:14:53]written 0, free lines is 3315 [11:14:53]MH_Cut [11:14:53]Write to MH i2c: D1 01 00 5F 43 01 74 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: D1 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: D1 01 00 [11:14:53]MH_I2C_Read... [11:14:53]Read from MH i2c: D1 01 00 5F 43 00 73 [11:14:53]Write to MH i2c: 01 00 00 60 43 A3 [11:14:53]Write i2c OK [11:14:53]MH_I2C_Read... [11:14:53]OFD Sender: No OFD packet to send [11:14:53]*** Cut start [11:14:53]*** Partial cut [11:14:53]*** CUTSNS_PIN = 1 [11:14:54]*** CUTSNS_PIN = 0 [11:14:54]*** Brake cut motor [11:14:54]Read from MH i2c: 01 [11:14:54]MH_I2C_Read... [11:14:54]*** Stop cut motor [11:14:54]*** Cut end [11:14:54]Read from MH i2c: 01 07 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: 01 07 00 60 43 00 00 00 00 00 FF 0F B8 [11:14:54]process_action close_receipt done [11:14:54]requested_data is exist [11:14:54]produce_requested_data [11:14:54]requested_item fm.sn is exist - process it [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 11 00 00 [11:14:54]Write to MH i2c: E2 08 00 61 43 80 11 00 00 00 00 00 00 1E [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 17 00 61 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 6D [11:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:14:54]wFMCommunicate OK [11:14:54]requested_item fd.num is exist - process it [11:14:54]SAM_PROTO_GetFieldsCounters [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 00 00 [11:14:54]Write to MH i2c: E2 08 00 62 43 80 13 00 00 00 00 00 00 21 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 62 00 62 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 53 3D 00 00 0E 04 04 00 AC 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 08 [11:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 53 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetFieldsCounters done [11:14:54]requested_item shift.num is exist - process it [11:14:54]requested_item shift.opened is exist - process it [11:14:54]req_shift_opened [11:14:54]FM_GetShiftState [11:14:54]SAM_PROTO_GetShiftState [11:14:54]wFMCommunicate request_size=4 [11:14:54]MH_SAM_APDU [11:14:54]CAPDU: 80 13 01 00 [11:14:54]Write to MH i2c: E2 08 00 63 43 80 13 01 00 00 00 00 00 23 [11:14:54]Write i2c OK [11:14:54]MH_I2C_Read... [11:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:54]Read from MH i2c: E2 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 [11:14:54]MH_I2C_Read... [11:14:54]Read from MH i2c: E2 0E 00 63 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 78 [11:14:54]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:14:54]wFMCommunicate OK [11:14:54]SAM_PROTO_GetShiftState done [11:14:54]FM_GetShiftState done [11:14:54]req_shift_opened done [11:14:54]requested_item shift.open_date is exist - process it [11:14:54]req_shift_open_date [11:14:54]req_shift_open_date done [11:14:54]produce_requested_data done [11:14:54]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15699,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:14:54]process_action_free close_receipt [11:14:54]json_value_free [11:14:54]json_value_free done [11:14:54]process_json_proto returns [11:14:54]Send response to host [11:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15699,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:14:54]free response buf [11:14:54]execute_script done [11:14:54]execute_script returns [11:14:54]free content buf [11:14:54]Sock 8.Close socket [11:14:54]Sock 8.Thread stoped [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:07]accept exits with 9 [11:22:07]New connection [11:22:07]New thread 3066731876 created [11:22:07]Thread 3066588516 joined [11:22:07]Waiting for new connection... [11:22:07] Sock 9.Parse request [11:22:07]Sock 9.Check first char [11:22:07]Sock 9.First char is OK [11:22:07]request: POST /json_proto HTTP/1.0 [11:22:07]Method: POST [11:22:07]URL: /json_proto [11:22:07]Method is POST - this is cgi request [11:22:07]url: /json_proto [11:22:07]query_string will be loaded in cgi processing [11:22:07]execute_cgi json_proto POST (null) [11:22:07]execute_cgi path=json_proto method=POST [11:22:07]POST find Content-Length [11:22:07]Host: 172.17.54.195:8080 [11:22:07]Content-Length: 674 [11:22:07]Content-Type: application/json [11:22:07] [11:22:07]POST finish read [11:22:07]Found Content-Length = 674 [11:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [11:22:07]execute_script... [11:22: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)16249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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" ] } } [11:22:07]POST & json_proto [11:22:07]process_json_proto [11:22:07]json parsed OK: [11:22:07]protocol is kg_v1.0 [11:22:07]action value=close_receipt [11:22:07]process_action close_receipt [11:22:07]cmd_close_receipt [11:22:07]MH_GetDate [11:22:07]Write to MH i2c: F0 00 00 64 43 96 [11:22:07]Write i2c OK [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: F0 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: F0 09 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: F0 09 00 64 43 00 69 C5 20 67 8D 90 A3 66 7A [11:22:07]GetLastDocTimeStamp 1730200501 [11:22:07]current date 1730200937 [11:22:07]FM_GetShiftState [11:22:07]SAM_PROTO_GetShiftState [11:22:07]wFMCommunicate request_size=4 [11:22:07]MH_SAM_APDU [11:22:07]CAPDU: 80 13 01 00 [11:22:07]Write to MH i2c: E2 08 00 65 43 80 13 01 00 00 00 00 00 25 [11:22:07]Write i2c OK [11:22:07]MH_I2C_Read... [11:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:07]Read from MH i2c: E2 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 0E 00 [11:22:07]MH_I2C_Read... [11:22:07]Read from MH i2c: E2 0E 00 65 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 7A [11:22:07]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:22:07]wFMCommunicate OK [11:22:07]SAM_PROTO_GetShiftState done [11:22:07]FM_GetShiftState done [11:22:07]opened in 1730161559 [11:22:07]opened+sec_in_day 1730247959 [11:22:07]quantity*price = 80010 [11:22:07]sum+1 = 80011 [11:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 46 29.10.2024 11:22 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15700 ФПД: 215302416428388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112217&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15700&fm=215302416428388&tin=02508201610067®Number=0000000000161798&sum=80000 [11:22:08]StoreToDocumentArchive [11:22:08]shift 172 fd 15700 [11:22:08]save to /storage/0172/doc_00015700 [11:22:08]save last doc name /storage/0172/doc_00015700 to /storage/kkm_last_doc_name [11:22:08]save OK [11:22:08]Clear old archive folders... [11:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:08]tlvbuf is 003DBCE0 [11:22:08]SAM_PROTO_ClearQueue [11:22:08]wFMCommunicate request_size=4 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 09 00 00 [11:22:08]Write to MH i2c: E2 08 00 72 43 80 09 00 00 00 00 00 00 27 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 72 43 00 90 00 29 [11:22:08]RAPDU: 90 00 [11:22:08]wFMCommunicate OK [11:22:08]SAM_PROTO_ClearQueue done [11:22:08]KKMCreateOFDPacket [11:22:08]OFDProtocolAddRootSTLVToBuf [11:22:08]FM_MakeSignedData [11:22:08]FM_MakeSignedData [11:22:08]SAM_PROTO_SignData [11:22:08]wFMCommunicate request_size=4 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 0D 01 02 [11:22:08]Write to MH i2c: E2 08 00 73 43 80 0D 01 02 00 00 00 00 2F [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 73 43 00 90 00 2A [11:22:08]RAPDU: 90 00 [11:22:08]wFMCommunicate OK [11:22:08]wFMCommunicate request_size=255 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 2E 00 00 00 F4 03 04 00 69 C5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 54 3D 00 00 35 04 06 00 C3 D1 00 0C [11:22:08]Write to MH i2c: E2 02 01 74 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 2E 00 00 00 F4 03 04 00 69 C5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 54 3D 00 00 35 04 06 00 C3 D1 00 0C 00 00 AA [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:08]Read from MH i2c: E2 03 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 74 43 00 90 00 2B [11:22:08]RAPDU: 90 00 [11:22:08]wFMCommunicate OK [11:22:08]wFMCommunicate request_size=7 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 0D 02 02 02 ED 64 [11:22:08]Write to MH i2c: E2 0A 00 75 43 80 0D 02 02 02 00 ED 64 00 00 87 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 03 00 75 43 00 90 00 2C [11:22:08]RAPDU: 90 00 [11:22:08]wFMCommunicate OK [11:22:08]wFMCommunicate request_size=4 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 0D 03 02 [11:22:08]Write to MH i2c: E2 08 00 76 43 80 0D 03 02 00 00 00 00 34 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 0B 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 0B 00 76 43 00 AC 5A 04 BC 31 29 B9 69 90 00 77 [11:22:08]RAPDU: AC 5A 04 BC 31 29 B9 69 90 00 [11:22:08]wFMCommunicate OK [11:22:08]SAM_PROTO_SignData done [11:22:08]FM_MakeSignedData done [11:22:08]CreateOFDProtocolMessage [11:22:08]wFMCommunicate request_size=4 [11:22:08]MH_SAM_APDU [11:22:08]CAPDU: 80 11 00 00 [11:22:08]Write to MH i2c: E2 08 00 77 43 80 11 00 00 00 00 00 00 34 [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:08]Read from MH i2c: E2 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 17 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: E2 17 00 77 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 83 [11:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:22:08]wFMCommunicate OK [11:22:08]CreateOFDProtocolMessage done [11:22:08]OFDSenderStorePacket 15700 [11:22:08]StoreOFDPacket docnum=15700 [11:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 5A DC 04 01 89 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 2E 00 00 00 F4 03 04 00 69 C5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 54 3D 00 00 35 04 06 00 C3 D1 00 0C ED 64 AC 5A 04 BC 31 29 B9 69 [11:22:08]CheckFolder [11:22:08]dirname=/storage/ofd_packets [11:22:08]CheckFolder done [11:22:08]ProducePacketName [11:22:08]name=ofd_packets/00015700 [11:22:08]NVStorageSaveData ofd_packets/00015700 [11:22:08]File name is /storage/ofd_packets/00015700 [11:22:08]Write 298 bytes [11:22:08]NVStorageSaveData done [11:22:08]OFDSenderStorePacket done [11:22:08]KKMCreateOFDPacket done [11:22:08]NVStorageSaveData kkm_last_timestamp [11:22:08]File name is /storage/kkm_last_timestamp [11:22:08]Write 4 bytes [11:22:08]NVStorageSaveData done [11:22:08]ExternCall_PrintAddStr [11:22:08]wPrintStart [11:22:08]Write to MH i2c: 01 00 00 78 43 BB [11:22:08]Write i2c OK [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 [11:22:08]MH_I2C_Read... [11:22:08]Read from MH i2c: 01 07 00 78 43 00 00 00 00 00 FF 0F D0 [11:22:08]RasterBufferAndPrint [11:22:08]line Счет N : (1)16249 [11:22:08]line ИНН: 02508201610067 [11:22:08]line Контрольно-Кассовый Чек [11:22:08]line ПРОДАЖА [11:22:08]line ТРК (МРК, ГНК) : 31 [11:22:08]line Товар: 2710194210 [11:22:08]line ДТ-К-5 [11:22:08]line 10.500 * 76.20 [11:22:08]line = 800.10 [11:22:08]line НДС 12% НСП 1% [11:22:08]line > о реализуемом товаре [11:22:08]line ОКРУГЛЕНИЕ: -0.10 [11:22:08]line ИТОГО: 800.00 [11:22:08]line Внесено: 800.00 [11:22:08]line СДАЧА: 0.00 [11:22:08]line НСП 1% : 7.08 [11:22:08]line НДС 12% : 84.97 [11:22:08]line Наличными: 800.00 [11:22:08]line Безнал.: 0.00 [11:22:08]line Место: АЗС № 178 "Партнер Нефть" [11:22:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:22:08]line СНО: Общий режим [11:22:08]line Чек 46 29.10.2024 11:22 [11:22:08]line Смена: 172 ФФД: 1.0 [11:22:08]line ЗНМ: 0300000014 [11:22:08]line РНМ: 0000000000161798 [11:22:08]line Версия ККМ: v1.0 [11:22:08]line ФМ: 0000000000963325 [11:22:08]line ФД: 15700 [11:22:08]line ФПД: 215302416428388 [11:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112217&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15700&fm=215302416428388&tin=02508201610067®Number=0000000000161798&sum=80000 [11:22:09]OFD Sender: Processing packet 15700 [packets to send 4, broken 3] [11:22:09]ProducePacketName [11:22:09]name=ofd_packets/00015700 [11:22:09]OFD Sender: To server: pG, [11:22:09]CommunicateWithHost lk.salyk.kg:30040 [11:22:09]ConnectInit lk.salyk.kg [11:22:09]written 0, free lines is 4095 [11:22:09]Connected sock=10 [11:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 5A DC 04 01 89 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 2E 00 00 00 F4 03 04 00 69 C5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 54 3D 00 00 35 04 06 00 C3 D1 00 0C ED 64 AC 5A 04 BC 31 29 B9 69 [11:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 CA 5D 47 00 4A F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 54 3D 00 00 F4 03 04 00 56 70 20 67 B6 04 01 00 00 DC 72 DB B9 EC E4 01 8B [11:22:09]CommunicateWithHost err = 0 [11:22:09]CheckOFDResponse [11:22:09]1017 (14) - 77093643461234 [11:22:09]1041 (16) - 0000000000963325 [11:22:09]1040 (4) - 15700 [11:22:09]1012 (4) - 29.10.2024 05:19 [11:22:09]1206 (1) - 0 [11:22:09]OFD Sender: Remove packet 15700 [11:22:09]ProducePacketName [11:22:09]name=ofd_packets/00015700 [11:22:09]NVStorageDeleteData [11:22:09]Write to MH i2c: 01 00 00 A3 43 E6 [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: 01 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: 01 07 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: 01 07 00 A3 43 00 00 00 00 00 F8 0C F1 [11:22:09]RasterBufferAndPrint [11:22:09]line [11:22:09]line [11:22:09]line [11:22:09]line [11:22:09]line [11:22:09]written 0, free lines is 3326 [11:22:09]MH_Cut [11:22:09]Write to MH i2c: D1 01 00 AA 43 01 BF [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: D1 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: D1 01 00 [11:22:09]MH_I2C_Read... [11:22:09]Read from MH i2c: D1 01 00 AA 43 00 BE [11:22:09]Write to MH i2c: 01 00 00 AB 43 EE [11:22:09]Write i2c OK [11:22:09]MH_I2C_Read... [11:22:09]OFD Sender: No OFD packet to send [11:22:10]*** Cut start [11:22:10]*** Partial cut [11:22:10]*** CUTSNS_PIN = 1 [11:22:10]*** CUTSNS_PIN = 0 [11:22:10]*** Brake cut motor [11:22:10]Read from MH i2c: 01 [11:22:10]MH_I2C_Read... [11:22:10]*** Stop cut motor [11:22:10]*** Cut end [11:22:10]Read from MH i2c: 01 07 00 [11:22:10]MH_I2C_Read... [11:22:10]Read from MH i2c: 01 07 00 AB 43 00 00 00 00 00 FF 0F 03 [11:22:10]process_action close_receipt done [11:22:10]requested_data is exist [11:22:10]produce_requested_data [11:22:10]requested_item fm.sn is exist - process it [11:22:10]wFMCommunicate request_size=4 [11:22:10]MH_SAM_APDU [11:22:10]CAPDU: 80 11 00 00 [11:22:10]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [11:22:10]Write i2c OK [11:22:10]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 17 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B8 [11:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:22:11]wFMCommunicate OK [11:22:11]requested_item fd.num is exist - process it [11:22:11]SAM_PROTO_GetFieldsCounters [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 13 00 00 [11:22:11]Write to MH i2c: E2 08 00 AD 43 80 13 00 00 00 00 00 00 6C [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 62 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 62 00 AD 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 54 3D 00 00 0E 04 04 00 AC 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 57 [11:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 54 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:11]wFMCommunicate OK [11:22:11]SAM_PROTO_GetFieldsCounters done [11:22:11]requested_item shift.num is exist - process it [11:22:11]requested_item shift.opened is exist - process it [11:22:11]req_shift_opened [11:22:11]FM_GetShiftState [11:22:11]SAM_PROTO_GetShiftState [11:22:11]wFMCommunicate request_size=4 [11:22:11]MH_SAM_APDU [11:22:11]CAPDU: 80 13 01 00 [11:22:11]Write to MH i2c: E2 08 00 AE 43 80 13 01 00 00 00 00 00 6E [11:22:11]Write i2c OK [11:22:11]MH_I2C_Read... [11:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:11]Read from MH i2c: E2 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0E 00 [11:22:11]MH_I2C_Read... [11:22:11]Read from MH i2c: E2 0E 00 AE 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 C3 [11:22:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:22:11]wFMCommunicate OK [11:22:11]SAM_PROTO_GetShiftState done [11:22:11]FM_GetShiftState done [11:22:11]req_shift_opened done [11:22:11]requested_item shift.open_date is exist - process it [11:22:11]req_shift_open_date [11:22:11]req_shift_open_date done [11:22:11]produce_requested_data done [11:22:11]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15700,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:22:11]process_action_free close_receipt [11:22:11]json_value_free [11:22:11]json_value_free done [11:22:11]process_json_proto returns [11:22:11]Send response to host [11:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15700,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:22:11]free response buf [11:22:11]execute_script done [11:22:11]execute_script returns [11:22:11]free content buf [11:22:11]Sock 9.Close socket [11:22:11]Sock 9.Thread stoped [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:15]OFD Sender: No OFD packet to send [11:25:20]OFD Sender: No OFD packet to send [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:02]accept exits with 8 [11:29:02]New connection [11:29:02]New thread 3066588516 created [11:29:02]Thread 3066731876 joined [11:29:02]Waiting for new connection... [11:29:02] Sock 8.Parse request [11:29:02]Sock 8.Check first char [11:29:02]Sock 8.First char is OK [11:29:02]request: POST /json_proto HTTP/1.0 [11:29:02]Method: POST [11:29:02]URL: /json_proto [11:29:02]Method is POST - this is cgi request [11:29:02]url: /json_proto [11:29:02]query_string will be loaded in cgi processing [11:29:02]execute_cgi json_proto POST (null) [11:29:02]execute_cgi path=json_proto method=POST [11:29:02]POST find Content-Length [11:29:02]Host: 172.17.54.195:8080 [11:29:02]Content-Length: 628 [11:29:02]Content-Type: application/json [11:29:02] [11:29:02]POST finish read [11:29:02]Found Content-Length = 628 [11:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:02]execute_script... [11:29: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)16250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:02]POST & json_proto [11:29:02]process_json_proto [11:29:02]json parsed OK: [11:29:02]protocol is kg_v1.0 [11:29:02]action value=close_receipt [11:29:02]process_action close_receipt [11:29:02]cmd_close_receipt [11:29:02]MH_GetDate [11:29:02]Write to MH i2c: F0 00 00 AF 43 E1 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: F0 09 00 AF 43 00 09 C7 20 67 8D 90 A3 66 67 [11:29:02]GetLastDocTimeStamp 1730200937 [11:29:02]current date 1730201353 [11:29:02]FM_GetShiftState [11:29:02]SAM_PROTO_GetShiftState [11:29:02]wFMCommunicate request_size=4 [11:29:02]MH_SAM_APDU [11:29:02]CAPDU: 80 13 01 00 [11:29:02]Write to MH i2c: E2 08 00 B0 43 80 13 01 00 00 00 00 00 70 [11:29:02]Write i2c OK [11:29:02]MH_I2C_Read... [11:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:02]Read from MH i2c: E2 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 [11:29:02]MH_I2C_Read... [11:29:02]Read from MH i2c: E2 0E 00 B0 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 C5 [11:29:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:29:02]wFMCommunicate OK [11:29:02]SAM_PROTO_GetShiftState done [11:29:02]FM_GetShiftState done [11:29:02]opened in 1730161559 [11:29:02]opened+sec_in_day 1730247959 [11:29:02]quantity*price = 50000 [11:29:02]sum+1 = 50001 [11:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 47 29.10.2024 11:29 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15701 ФПД: 115431350684906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112913&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15701&fm=115431350684906&tin=02508201610067®Number=0000000000161798&sum=50000 [11:29:03]StoreToDocumentArchive [11:29:03]shift 172 fd 15701 [11:29:03]save to /storage/0172/doc_00015701 [11:29:03]save last doc name /storage/0172/doc_00015701 to /storage/kkm_last_doc_name [11:29:03]save OK [11:29:03]Clear old archive folders... [11:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=249 [11:29:03]tlvbuf is 00377AB0 [11:29:03]SAM_PROTO_ClearQueue [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 09 00 00 [11:29:03]Write to MH i2c: E2 08 00 BD 43 80 09 00 00 00 00 00 00 72 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 BD 43 00 90 00 74 [11:29:03]RAPDU: 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_ClearQueue done [11:29:03]KKMCreateOFDPacket [11:29:03]OFDProtocolAddRootSTLVToBuf [11:29:03]FM_MakeSignedData [11:29:03]FM_MakeSignedData [11:29:03]SAM_PROTO_SignData [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 0D 01 02 [11:29:03]Write to MH i2c: E2 08 00 BE 43 80 0D 01 02 00 00 00 00 7A [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 03 00 BE 43 00 90 00 75 [11:29:03]RAPDU: 90 00 [11:29:03]wFMCommunicate OK [11:29:03]wFMCommunicate request_size=255 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 09 C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 55 3D 00 00 35 04 06 00 68 FB F4 [11:29:03]Write to MH i2c: E2 02 01 BF 43 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 09 C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 55 3D 00 00 35 04 06 00 68 FB F4 00 00 D9 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 BF 43 00 90 00 76 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=8 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 02 02 03 A7 4C EA [11:29:04]Write to MH i2c: E2 0B 00 C0 43 80 0D 02 02 03 00 A7 4C EA 00 00 60 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 C0 43 00 90 00 77 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 03 02 [11:29:04]Write to MH i2c: E2 08 00 C1 43 80 0D 03 02 00 00 00 00 7F [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 0B 00 C1 43 00 0C A8 E5 28 62 87 2C A8 90 00 FE [11:29:04]RAPDU: 0C A8 E5 28 62 87 2C A8 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_SignData done [11:29:04]FM_MakeSignedData done [11:29:04]CreateOFDProtocolMessage [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 11 00 00 [11:29:04]Write to MH i2c: E2 08 00 C2 43 80 11 00 00 00 00 00 00 7F [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 17 00 C2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CE [11:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:29:04]wFMCommunicate OK [11:29:04]CreateOFDProtocolMessage done [11:29:04]OFDSenderStorePacket 15701 [11:29:04]StoreOFDPacket docnum=15701 [11:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 DA 8F 05 01 0D 95 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 09 C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 55 3D 00 00 35 04 06 00 68 FB F4 A7 4C EA 0C A8 E5 28 62 87 2C A8 [11:29:04]CheckFolder [11:29:04]dirname=/storage/ofd_packets [11:29:04]CheckFolder done [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00015701 [11:29:04]NVStorageSaveData ofd_packets/00015701 [11:29:04]File name is /storage/ofd_packets/00015701 [11:29:04]Write 299 bytes [11:29:04]NVStorageSaveData done [11:29:04]OFDSenderStorePacket done [11:29:04]KKMCreateOFDPacket done [11:29:04]NVStorageSaveData kkm_last_timestamp [11:29:04]File name is /storage/kkm_last_timestamp [11:29:04]Write 4 bytes [11:29:04]NVStorageSaveData done [11:29:04]ExternCall_PrintAddStr [11:29:04]wPrintStart [11:29:04]Write to MH i2c: 01 00 00 C3 43 06 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: 01 07 00 C3 43 00 00 00 00 00 FF 0F 1B [11:29:04]RasterBufferAndPrint [11:29:04]line Счет N : (1)16250 [11:29:04]line ИНН: 02508201610067 [11:29:04]line Контрольно-Кассовый Чек [11:29:04]line ПРОДАЖА [11:29:04]line ТРК (МРК, ГНК) : 12 [11:29:04]line Товар: 50.50.0 [11:29:04]line SUPER 92-К-5 [11:29:04]line 7.310 * 68.40 [11:29:04]line = 500.00 [11:29:04]line НДС 12% НСП 1% [11:29:04]line > о реализуемом товаре [11:29:04]line ИТОГО: 500.00 [11:29:04]line НСП 1% : 4.42 [11:29:04]line НДС 12% : 53.10 [11:29:04]line Наличными: 500.00 [11:29:04]line Безнал.: 0.00 [11:29:04]line Место: АЗС № 178 "Партнер Нефть" [11:29:04]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:29:04]line СНО: Общий режим [11:29:04]line Чек 47 29.10.2024 11:29 [11:29:04]line Смена: 172 ФФД: 1.0 [11:29:04]line ЗНМ: 0300000014 [11:29:04]line РНМ: 0000000000161798 [11:29:04]line Версия ККМ: v1.0 [11:29:04]line ФМ: 0000000000963325 [11:29:04]line ФД: 15701 [11:29:04]line ФПД: 115431350684906 [11:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T112913&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15701&fm=115431350684906&tin=02508201610067®Number=0000000000161798&sum=50000 [11:29:04]OFD Sender: Processing packet 15701 [packets to send 4, broken 3] [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00015701 [11:29:04]OFD Sender: To server: pG, [11:29:04]CommunicateWithHost lk.salyk.kg:30040 [11:29:04]ConnectInit lk.salyk.kg [11:29:04]written 0, free lines is 4095 [11:29:04]Connected sock=10 [11:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 DA 8F 05 01 0D 95 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 09 C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 55 3D 00 00 35 04 06 00 68 FB F4 A7 4C EA 0C A8 E5 28 62 87 2C A8 [11:29:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 70 4E 47 00 51 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 30 39 36 33 33 32 35 10 04 04 00 55 3D 00 00 F4 03 04 00 F6 71 20 67 B6 04 01 00 00 85 7A 37 D3 98 0B 02 59 [11:29:04]CommunicateWithHost err = 0 [11:29:04]CheckOFDResponse [11:29:04]1017 (14) - 77093643461234 [11:29:04]1041 (16) - 0000000000963325 [11:29:04]1040 (4) - 15701 [11:29:04]1012 (4) - 29.10.2024 05:26 [11:29:04]1206 (1) - 0 [11:29:04]OFD Sender: Remove packet 15701 [11:29:04]ProducePacketName [11:29:04]name=ofd_packets/00015701 [11:29:04]NVStorageDeleteData [11:29:05]Write to MH i2c: 01 00 00 EB 43 2E [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 EB 43 00 00 00 00 00 23 0D 65 [11:29:05]RasterBufferAndPrint [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]line [11:29:05]written 0, free lines is 3370 [11:29:05]MH_Cut [11:29:05]Write to MH i2c: D1 01 00 F2 43 01 07 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: D1 01 00 F2 43 00 06 [11:29:05]Write to MH i2c: 01 00 00 F3 43 36 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]OFD Sender: No OFD packet to send [11:29:05]*** Cut start [11:29:05]*** Partial cut [11:29:05]*** CUTSNS_PIN = 1 [11:29:05]*** CUTSNS_PIN = 0 [11:29:06]*** Brake cut motor [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]*** Stop cut motor [11:29:06]*** Cut end [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 F3 43 00 00 00 00 00 FF 0F 4B [11:29:06]process_action close_receipt done [11:29:06]requested_data is exist [11:29:06]produce_requested_data [11:29:06]requested_item fm.sn is exist - process it [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 11 00 00 [11:29:06]Write to MH i2c: E2 08 00 F4 43 80 11 00 00 00 00 00 00 B1 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 17 00 F4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 00 [11:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:29:06]wFMCommunicate OK [11:29:06]requested_item fd.num is exist - process it [11:29:06]SAM_PROTO_GetFieldsCounters [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 00 00 [11:29:06]Write to MH i2c: E2 08 00 F5 43 80 13 00 00 00 00 00 00 B4 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 62 00 F5 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 55 3D 00 00 0E 04 04 00 AC 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 A3 [11:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 55 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetFieldsCounters done [11:29:06]requested_item shift.num is exist - process it [11:29:06]requested_item shift.opened is exist - process it [11:29:06]req_shift_opened [11:29:06]FM_GetShiftState [11:29:06]SAM_PROTO_GetShiftState [11:29:06]wFMCommunicate request_size=4 [11:29:06]MH_SAM_APDU [11:29:06]CAPDU: 80 13 01 00 [11:29:06]Write to MH i2c: E2 08 00 F6 43 80 13 01 00 00 00 00 00 B6 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:06]Read from MH i2c: E2 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: E2 0E 00 F6 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 0B [11:29:06]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:29:06]wFMCommunicate OK [11:29:06]SAM_PROTO_GetShiftState done [11:29:06]FM_GetShiftState done [11:29:06]req_shift_opened done [11:29:06]requested_item shift.open_date is exist - process it [11:29:06]req_shift_open_date [11:29:06]req_shift_open_date done [11:29:06]produce_requested_data done [11:29:06]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15701,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:29:06]process_action_free close_receipt [11:29:06]json_value_free [11:29:06]json_value_free done [11:29:06]process_json_proto returns [11:29:06]Send response to host [11:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15701,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:29:06]free response buf [11:29:06]execute_script done [11:29:06]execute_script returns [11:29:06]free content buf [11:29:06]Sock 8.Close socket [11:29:06]Sock 8.Thread stoped [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:11]accept exits with 9 [11:31:11]New connection [11:31:11]New thread 3066731876 created [11:31:11]Thread 3066588516 joined [11:31:11]Waiting for new connection... [11:31:11] Sock 9.Parse request [11:31:11]Sock 9.Check first char [11:31:11]Sock 9.First char is OK [11:31:11]request: POST /json_proto HTTP/1.0 [11:31:11]Method: POST [11:31:11]URL: /json_proto [11:31:11]Method is POST - this is cgi request [11:31:11]url: /json_proto [11:31:11]query_string will be loaded in cgi processing [11:31:11]execute_cgi json_proto POST (null) [11:31:11]execute_cgi path=json_proto method=POST [11:31:11]POST find Content-Length [11:31:11]Host: 172.17.54.195:8080 [11:31:11]Content-Length: 676 [11:31:11]Content-Type: application/json [11:31:11] [11:31:11]POST finish read [11:31:11]Found Content-Length = 676 [11:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:31:11]execute_script... [11:31: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)16251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:31:11]POST & json_proto [11:31:11]process_json_proto [11:31:11]json parsed OK: [11:31:11]protocol is kg_v1.0 [11:31:11]action value=close_receipt [11:31:11]process_action close_receipt [11:31:11]cmd_close_receipt [11:31:11]MH_GetDate [11:31:11]Write to MH i2c: F0 00 00 F7 43 29 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 09 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: F0 09 00 F7 43 00 89 C7 20 67 8D 90 A3 66 2F [11:31:11]GetLastDocTimeStamp 1730201353 [11:31:11]current date 1730201481 [11:31:11]FM_GetShiftState [11:31:11]SAM_PROTO_GetShiftState [11:31:11]wFMCommunicate request_size=4 [11:31:11]MH_SAM_APDU [11:31:11]CAPDU: 80 13 01 00 [11:31:11]Write to MH i2c: E2 08 00 F8 43 80 13 01 00 00 00 00 00 B8 [11:31:11]Write i2c OK [11:31:11]MH_I2C_Read... [11:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:11]Read from MH i2c: E2 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 [11:31:11]MH_I2C_Read... [11:31:11]Read from MH i2c: E2 0E 00 F8 43 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 0D [11:31:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:31:11]wFMCommunicate OK [11:31:11]SAM_PROTO_GetShiftState done [11:31:11]FM_GetShiftState done [11:31:11]opened in 1730161559 [11:31:11]opened+sec_in_day 1730247959 [11:31:11]quantity*price = 30038 [11:31:11]sum+1 = 30039 [11:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 48 29.10.2024 11:31 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15702 ФПД: 85432083511488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113122&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15702&fm=85432083511488&tin=02508201610067®Number=0000000000161798&sum=30000 [11:31:12]StoreToDocumentArchive [11:31:12]shift 172 fd 15702 [11:31:12]save to /storage/0172/doc_00015702 [11:31:12]save last doc name /storage/0172/doc_00015702 to /storage/kkm_last_doc_name [11:31:12]save OK [11:31:12]Clear old archive folders... [11:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:12]tlvbuf is 002E39F0 [11:31:12]SAM_PROTO_ClearQueue [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 09 00 00 [11:31:12]Write to MH i2c: E2 08 00 05 44 80 09 00 00 00 00 00 00 BB [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 05 44 00 90 00 BD [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]SAM_PROTO_ClearQueue done [11:31:12]KKMCreateOFDPacket [11:31:12]OFDProtocolAddRootSTLVToBuf [11:31:12]FM_MakeSignedData [11:31:12]FM_MakeSignedData [11:31:12]SAM_PROTO_SignData [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 01 02 [11:31:12]Write to MH i2c: E2 08 00 06 44 80 0D 01 02 00 00 00 00 C3 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 06 44 00 90 00 BE [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]wFMCommunicate request_size=255 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 8A C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 56 3D 00 00 35 04 06 00 4D [11:31:12]Write to MH i2c: E2 02 01 07 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 30 00 00 00 F4 03 04 00 8A C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 56 3D 00 00 35 04 06 00 4D 00 00 DD [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 07 44 00 90 00 BF [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]wFMCommunicate request_size=10 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 02 02 05 B3 34 FD 78 C0 [11:31:12]Write to MH i2c: E2 0D 00 08 44 80 0D 02 02 05 00 B3 34 FD 78 C0 00 00 EC [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 03 00 08 44 00 90 00 C0 [11:31:12]RAPDU: 90 00 [11:31:12]wFMCommunicate OK [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 0D 03 02 [11:31:12]Write to MH i2c: E2 08 00 09 44 80 0D 03 02 00 00 00 00 C8 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 0B 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 0B 00 09 44 00 34 8D F3 80 6C EA F0 38 90 00 7B [11:31:12]RAPDU: 34 8D F3 80 6C EA F0 38 90 00 [11:31:12]wFMCommunicate OK [11:31:12]SAM_PROTO_SignData done [11:31:12]FM_MakeSignedData done [11:31:12]CreateOFDProtocolMessage [11:31:12]wFMCommunicate request_size=4 [11:31:12]MH_SAM_APDU [11:31:12]CAPDU: 80 11 00 00 [11:31:12]Write to MH i2c: E2 08 00 0A 44 80 11 00 00 00 00 00 00 C8 [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:12]Read from MH i2c: E2 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 17 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: E2 17 00 0A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 17 [11:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:31:12]wFMCommunicate OK [11:31:12]CreateOFDProtocolMessage done [11:31:12]OFDSenderStorePacket 15702 [11:31:12]StoreOFDPacket docnum=15702 [11:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 1E 8F 07 01 38 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 30 00 00 00 F4 03 04 00 8A C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 56 3D 00 00 35 04 06 00 4D B3 34 FD 78 C0 34 8D F3 80 6C EA F0 38 [11:31:12]CheckFolder [11:31:12]dirname=/storage/ofd_packets [11:31:12]CheckFolder done [11:31:12]ProducePacketName [11:31:12]name=ofd_packets/00015702 [11:31:12]NVStorageSaveData ofd_packets/00015702 [11:31:12]File name is /storage/ofd_packets/00015702 [11:31:12]Write 301 bytes [11:31:12]NVStorageSaveData done [11:31:12]OFDSenderStorePacket done [11:31:12]KKMCreateOFDPacket done [11:31:12]NVStorageSaveData kkm_last_timestamp [11:31:12]File name is /storage/kkm_last_timestamp [11:31:12]Write 4 bytes [11:31:12]NVStorageSaveData done [11:31:12]ExternCall_PrintAddStr [11:31:12]wPrintStart [11:31:12]Write to MH i2c: 01 00 00 0B 44 4F [11:31:12]Write i2c OK [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 [11:31:12]MH_I2C_Read... [11:31:12]Read from MH i2c: 01 07 00 0B 44 00 00 00 00 00 FF 0F 64 [11:31:12]RasterBufferAndPrint [11:31:12]line Счет N : (1)16251 [11:31:12]line ИНН: 02508201610067 [11:31:12]line Контрольно-Кассовый Чек [11:31:12]line ПРОДАЖА [11:31:12]line ТРК (МРК, ГНК) : 21 [11:31:12]line Товар: 2710124130 [11:31:12]line Аи-92-К-5 [11:31:12]line 4.490 * 66.90 [11:31:12]line = 300.38 [11:31:12]line НДС 12% НСП 1% [11:31:12]line > о реализуемом товаре [11:31:12]line ОКРУГЛЕНИЕ: -0.38 [11:31:12]line ИТОГО: 300.00 [11:31:12]line Внесено: 300.00 [11:31:12]line СДАЧА: 0.00 [11:31:12]line НСП 1% : 2.66 [11:31:12]line НДС 12% : 31.90 [11:31:12]line Наличными: 300.00 [11:31:12]line Безнал.: 0.00 [11:31:12]line Место: АЗС № 178 "Партнер Нефть" [11:31:12]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:31:12]line СНО: Общий режим [11:31:12]line Чек 48 29.10.2024 11:31 [11:31:12]line Смена: 172 ФФД: 1.0 [11:31:12]line ЗНМ: 0300000014 [11:31:12]line РНМ: 0000000000161798 [11:31:12]line Версия ККМ: v1.0 [11:31:12]line ФМ: 0000000000963325 [11:31:12]line ФД: 15702 [11:31:12]line ФПД: 85432083511488 [11:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T113122&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15702&fm=85432083511488&tin=02508201610067®Number=0000000000161798&sum=30000 [11:31:13]OFD Sender: Processing packet 15702 [packets to send 4, broken 3] [11:31:13]ProducePacketName [11:31:13]name=ofd_packets/00015702 [11:31:13]OFD Sender: To server: pG, [11:31:13]CommunicateWithHost lk.salyk.kg:30040 [11:31:13]ConnectInit lk.salyk.kg [11:31:13]written 0, free lines is 4095 [11:31:13]Connected sock=10 [11:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 1E 8F 07 01 38 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 30 00 00 00 F4 03 04 00 8A C7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 56 3D 00 00 35 04 06 00 4D B3 34 FD 78 C0 34 8D F3 80 6C EA F0 38 [11:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5D 2D 47 00 26 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 56 3D 00 00 F4 03 04 00 77 72 20 67 B6 04 01 00 00 19 35 86 34 68 38 DB 04 [11:31:13]CommunicateWithHost err = 0 [11:31:13]CheckOFDResponse [11:31:13]1017 (14) - 77093643461234 [11:31:13]1041 (16) - 0000000000963325 [11:31:13]1040 (4) - 15702 [11:31:13]1012 (4) - 29.10.2024 05:28 [11:31:13]1206 (1) - 0 [11:31:13]OFD Sender: Remove packet 15702 [11:31:13]ProducePacketName [11:31:13]name=ofd_packets/00015702 [11:31:13]NVStorageDeleteData [11:31:13]Write to MH i2c: 01 00 00 36 44 7A [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 07 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: 01 07 00 36 44 00 00 00 00 00 02 0D 90 [11:31:13]RasterBufferAndPrint [11:31:13]line [11:31:13]line [11:31:13]line [11:31:13]line [11:31:13]line [11:31:13]written 0, free lines is 3339 [11:31:13]MH_Cut [11:31:13]Write to MH i2c: D1 01 00 3D 44 01 53 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: D1 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: D1 01 00 [11:31:13]MH_I2C_Read... [11:31:13]Read from MH i2c: D1 01 00 3D 44 00 52 [11:31:13]Write to MH i2c: 01 00 00 3E 44 82 [11:31:13]Write i2c OK [11:31:13]MH_I2C_Read... [11:31:13]OFD Sender: No OFD packet to send [11:31:14]*** Cut start [11:31:14]*** Partial cut [11:31:14]*** CUTSNS_PIN = 1 [11:31:14]*** CUTSNS_PIN = 0 [11:31:14]*** Brake cut motor [11:31:15]Read from MH i2c: 01 [11:31:15]MH_I2C_Read... [11:31:15]*** Stop cut motor [11:31:15]*** Cut end [11:31:15]Read from MH i2c: 01 07 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: 01 07 00 3E 44 00 00 00 00 00 FF 0F 97 [11:31:15]process_action close_receipt done [11:31:15]requested_data is exist [11:31:15]produce_requested_data [11:31:15]requested_item fm.sn is exist - process it [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 11 00 00 [11:31:15]Write to MH i2c: E2 08 00 3F 44 80 11 00 00 00 00 00 00 FD [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 17 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 17 00 3F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4C [11:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:31:15]wFMCommunicate OK [11:31:15]requested_item fd.num is exist - process it [11:31:15]SAM_PROTO_GetFieldsCounters [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 13 00 00 [11:31:15]Write to MH i2c: E2 08 00 40 44 80 13 00 00 00 00 00 00 00 [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 62 00 40 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 56 3D 00 00 0E 04 04 00 AC 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 F3 [11:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 56 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetFieldsCounters done [11:31:15]requested_item shift.num is exist - process it [11:31:15]requested_item shift.opened is exist - process it [11:31:15]req_shift_opened [11:31:15]FM_GetShiftState [11:31:15]SAM_PROTO_GetShiftState [11:31:15]wFMCommunicate request_size=4 [11:31:15]MH_SAM_APDU [11:31:15]CAPDU: 80 13 01 00 [11:31:15]Write to MH i2c: E2 08 00 41 44 80 13 01 00 00 00 00 00 02 [11:31:15]Write i2c OK [11:31:15]MH_I2C_Read... [11:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:15]Read from MH i2c: E2 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 [11:31:15]MH_I2C_Read... [11:31:15]Read from MH i2c: E2 0E 00 41 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 57 [11:31:15]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:31:15]wFMCommunicate OK [11:31:15]SAM_PROTO_GetShiftState done [11:31:15]FM_GetShiftState done [11:31:15]req_shift_opened done [11:31:15]requested_item shift.open_date is exist - process it [11:31:15]req_shift_open_date [11:31:15]req_shift_open_date done [11:31:15]produce_requested_data done [11:31:15]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15702,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:31:15]process_action_free close_receipt [11:31:15]json_value_free [11:31:15]json_value_free done [11:31:15]process_json_proto returns [11:31:15]Send response to host [11:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15702,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:31:15]free response buf [11:31:15]execute_script done [11:31:15]execute_script returns [11:31:15]free content buf [11:31:15]Sock 9.Close socket [11:31:15]Sock 9.Thread stoped [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49: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:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:38]accept exits with 8 [11:57:38]New connection [11:57:38]New thread 3066588516 created [11:57:38]Thread 3066731876 joined [11:57:38]Waiting for new connection... [11:57:38] Sock 8.Parse request [11:57:38]Sock 8.Check first char [11:57:38]Sock 8.First char is OK [11:57:38]request: POST /json_proto HTTP/1.0 [11:57:38]Method: POST [11:57:38]URL: /json_proto [11:57:38]Method is POST - this is cgi request [11:57:38]url: /json_proto [11:57:38]query_string will be loaded in cgi processing [11:57:38]execute_cgi json_proto POST (null) [11:57:38]execute_cgi path=json_proto method=POST [11:57:38]POST find Content-Length [11:57:38]Host: 172.17.54.195:8080 [11:57:38]Content-Length: 784 [11:57:38]Content-Type: application/json [11:57:38] [11:57:38]POST finish read [11:57:38]Found Content-Length = 784 [11:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.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: Mbank", "total" : 5500.00, "payments": [ { "type": 1, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]execute_script... [11:57:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 72.180, "sum" : 5500.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: Mbank", "total" : 5500.00, "payments": [ { "type": 1, "sum" : 5500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:38]POST & json_proto [11:57:38]process_json_proto [11:57:38]json parsed OK: [11:57:38]protocol is kg_v1.0 [11:57:38]action value=close_receipt [11:57:38]process_action close_receipt [11:57:38]cmd_close_receipt [11:57:38]MH_GetDate [11:57:38]Write to MH i2c: F0 00 00 42 44 75 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: F0 09 00 42 44 00 BD CD 20 67 8D 90 A3 66 B5 [11:57:38]GetLastDocTimeStamp 1730201482 [11:57:38]current date 1730203069 [11:57:38]FM_GetShiftState [11:57:38]SAM_PROTO_GetShiftState [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 01 00 [11:57:38]Write to MH i2c: E2 08 00 43 44 80 13 01 00 00 00 00 00 04 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 43 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 59 [11:57:38]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetShiftState done [11:57:38]FM_GetShiftState done [11:57:38]opened in 1730161559 [11:57:38]opened+sec_in_day 1730247959 [11:57:38]quantity*price = 550011 [11:57:38]sum+1 = 550013 [11:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 5500.00 НСП 1% : 48.67 НДС 12% : 584.08 Наличными: 0.00 Безнал.: 5500.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 49 29.10.2024 11:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15703 ФПД: 208549010474684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15703&fm=208549010474684&tin=02508201610067®Number=0000000000161798&sum=550000 [11:57:39]StoreToDocumentArchive [11:57:39]shift 172 fd 15703 [11:57:39]save to /storage/0172/doc_00015703 [11:57:39]save last doc name /storage/0172/doc_00015703 to /storage/kkm_last_doc_name [11:57:39]save OK [11:57:39]Clear old archive folders... [11:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:39]tlvbuf is 00391E70 [11:57:39]SAM_PROTO_ClearQueue [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 09 00 00 [11:57:39]Write to MH i2c: E2 08 00 50 44 80 09 00 00 00 00 00 00 06 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 03 00 50 44 00 90 00 08 [11:57:39]RAPDU: 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_ClearQueue done [11:57:39]KKMCreateOFDPacket [11:57:39]OFDProtocolAddRootSTLVToBuf [11:57:39]FM_MakeSignedData [11:57:39]FM_MakeSignedData [11:57:39]SAM_PROTO_SignData [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 0D 01 02 [11:57:39]Write to MH i2c: E2 08 00 51 44 80 0D 01 02 00 00 00 00 0E [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 51 44 00 90 00 09 [11:57:40]RAPDU: 90 00 [11:57:40]wFMCommunicate OK [11:57:40]wFMCommunicate request_size=255 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD CD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 57 3D 00 00 35 04 06 00 BD AC 99 B0 [11:57:40]Write to MH i2c: E2 02 01 52 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD CD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 57 3D 00 00 35 04 06 00 BD AC 99 B0 00 00 53 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]OFD Sender: No OFD packet to send [11:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 52 44 00 90 00 0A [11:57:40]RAPDU: 90 00 [11:57:40]wFMCommunicate OK [11:57:40]wFMCommunicate request_size=7 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 0D 02 02 02 06 BC [11:57:40]Write to MH i2c: E2 0A 00 53 44 80 0D 02 02 02 00 06 BC 00 00 D7 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 03 00 53 44 00 90 00 0B [11:57:40]RAPDU: 90 00 [11:57:40]wFMCommunicate OK [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 0D 03 02 [11:57:40]Write to MH i2c: E2 08 00 54 44 80 0D 03 02 00 00 00 00 13 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0B 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 0B 00 54 44 00 B0 33 0E BA DC 0A B2 3A 90 00 91 [11:57:40]RAPDU: B0 33 0E BA DC 0A B2 3A 90 00 [11:57:40]wFMCommunicate OK [11:57:40]SAM_PROTO_SignData done [11:57:40]FM_MakeSignedData done [11:57:40]CreateOFDProtocolMessage [11:57:40]wFMCommunicate request_size=4 [11:57:40]MH_SAM_APDU [11:57:40]CAPDU: 80 11 00 00 [11:57:40]Write to MH i2c: E2 08 00 55 44 80 11 00 00 00 00 00 00 13 [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:40]Read from MH i2c: E2 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: E2 17 00 55 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 62 [11:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:57:40]wFMCommunicate OK [11:57:40]CreateOFDProtocolMessage done [11:57:40]OFDSenderStorePacket 15703 [11:57:40]StoreOFDPacket docnum=15703 [11:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F2 63 04 01 38 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD CD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 57 3D 00 00 35 04 06 00 BD AC 99 B0 06 BC B0 33 0E BA DC 0A B2 3A [11:57:40]CheckFolder [11:57:40]dirname=/storage/ofd_packets [11:57:40]CheckFolder done [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00015703 [11:57:40]NVStorageSaveData ofd_packets/00015703 [11:57:40]File name is /storage/ofd_packets/00015703 [11:57:40]Write 298 bytes [11:57:40]NVStorageSaveData done [11:57:40]OFDSenderStorePacket done [11:57:40]KKMCreateOFDPacket done [11:57:40]NVStorageSaveData kkm_last_timestamp [11:57:40]File name is /storage/kkm_last_timestamp [11:57:40]Write 4 bytes [11:57:40]NVStorageSaveData done [11:57:40]ExternCall_PrintAddStr [11:57:40]wPrintStart [11:57:40]Write to MH i2c: 01 00 00 56 44 9A [11:57:40]Write i2c OK [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 [11:57:40]MH_I2C_Read... [11:57:40]Read from MH i2c: 01 07 00 56 44 00 00 00 00 00 FF 0F AF [11:57:40]RasterBufferAndPrint [11:57:40]line Счет N : (1)16252 [11:57:40]line ИНН: 02508201610067 [11:57:40]line Контрольно-Кассовый Чек [11:57:40]line ПРОДАЖА [11:57:40]line ТРК (МРК, ГНК) : 22 [11:57:40]line Товар: 2710194210 [11:57:40]line ДТ-К-5 [11:57:40]line 72.180 * 76.20 [11:57:40]line = 5500.12 [11:57:40]line НДС 12% НСП 1% [11:57:40]line > о реализуемом товаре [11:57:40]line ОКРУГЛЕНИЕ: -0.12 [11:57:40]line ИТОГО: 5500.00 [11:57:40]line НСП 1% : 48.67 [11:57:40]line НДС 12% : 584.08 [11:57:40]line Наличными: 0.00 [11:57:40]line Безнал.: 5500.00 [11:57:40]line Место: АЗС № 178 "Партнер Нефть" [11:57:40]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:57:40]line СНО: Общий режим [11:57:40]line Чек 49 29.10.2024 11:57 [11:57:40]line Смена: 172 ФФД: 1.0 [11:57:40]line ЗНМ: 0300000014 [11:57:40]line РНМ: 0000000000161798 [11:57:40]line Версия ККМ: v1.0 [11:57:40]line Платежная система: Mbank [11:57:40]line ФМ: 0000000000963325 [11:57:40]line ФД: 15703 [11:57:40]line ФПД: 208549010474684 [11:57:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15703&fm=208549010474684&tin=02508201610067®Number=0000000000161798&sum=550000 [11:57:40]OFD Sender: Processing packet 15703 [packets to send 4, broken 3] [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00015703 [11:57:40]OFD Sender: To server: pG, [11:57:40]CommunicateWithHost lk.salyk.kg:30040 [11:57:40]ConnectInit lk.salyk.kg [11:57:40]written 0, free lines is 4095 [11:57:40]Connected sock=10 [11:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F2 63 04 01 38 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F4 19 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 7C 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 70 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD CD 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 57 3D 00 00 35 04 06 00 BD AC 99 B0 06 BC B0 33 0E BA DC 0A B2 3A [11:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 16 36 47 00 0C 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 57 3D 00 00 F4 03 04 00 AA 78 20 67 B6 04 01 00 00 92 06 8B 59 4B E0 61 AE [11:57:41]CommunicateWithHost err = 0 [11:57:41]CheckOFDResponse [11:57:41]1017 (14) - 77093643461234 [11:57:41]1041 (16) - 0000000000963325 [11:57:41]1040 (4) - 15703 [11:57:41]1012 (4) - 29.10.2024 05:54 [11:57:41]1206 (1) - 0 [11:57:41]OFD Sender: Remove packet 15703 [11:57:41]ProducePacketName [11:57:41]name=ofd_packets/00015703 [11:57:41]NVStorageDeleteData [11:57:41]Write to MH i2c: 01 00 00 80 44 C4 [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: 01 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: 01 07 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: 01 07 00 80 44 00 00 00 00 00 19 0D F1 [11:57:41]RasterBufferAndPrint [11:57:41]line [11:57:41]line [11:57:41]line [11:57:41]line [11:57:41]line [11:57:41]written 0, free lines is 3359 [11:57:41]MH_Cut [11:57:41]Write to MH i2c: D1 01 00 87 44 01 9D [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: D1 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: D1 01 00 [11:57:41]MH_I2C_Read... [11:57:41]Read from MH i2c: D1 01 00 87 44 00 9C [11:57:41]Write to MH i2c: 01 00 00 88 44 CC [11:57:41]Write i2c OK [11:57:41]MH_I2C_Read... [11:57:41]OFD Sender: No OFD packet to send [11:57:41]*** Cut start [11:57:41]*** Partial cut [11:57:41]*** CUTSNS_PIN = 1 [11:57:41]*** CUTSNS_PIN = 0 [11:57:42]*** Brake cut motor [11:57:42]Read from MH i2c: 01 [11:57:42]MH_I2C_Read... [11:57:42]*** Stop cut motor [11:57:42]*** Cut end [11:57:42]Read from MH i2c: 01 07 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: 01 07 00 88 44 00 00 00 00 00 FF 0F E1 [11:57:42]process_action close_receipt done [11:57:42]requested_data is exist [11:57:42]produce_requested_data [11:57:42]requested_item fm.sn is exist - process it [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 11 00 00 [11:57:42]Write to MH i2c: E2 08 00 89 44 80 11 00 00 00 00 00 00 47 [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 17 00 89 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 96 [11:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:57:42]wFMCommunicate OK [11:57:42]requested_item fd.num is exist - process it [11:57:42]SAM_PROTO_GetFieldsCounters [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 00 00 [11:57:42]Write to MH i2c: E2 08 00 8A 44 80 13 00 00 00 00 00 00 4A [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 62 00 8A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 57 3D 00 00 0E 04 04 00 AC 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 41 [11:57:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 57 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetFieldsCounters done [11:57:42]requested_item shift.num is exist - process it [11:57:42]requested_item shift.opened is exist - process it [11:57:42]req_shift_opened [11:57:42]FM_GetShiftState [11:57:42]SAM_PROTO_GetShiftState [11:57:42]wFMCommunicate request_size=4 [11:57:42]MH_SAM_APDU [11:57:42]CAPDU: 80 13 01 00 [11:57:42]Write to MH i2c: E2 08 00 8B 44 80 13 01 00 00 00 00 00 4C [11:57:42]Write i2c OK [11:57:42]MH_I2C_Read... [11:57:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:42]Read from MH i2c: E2 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 [11:57:42]MH_I2C_Read... [11:57:42]Read from MH i2c: E2 0E 00 8B 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A1 [11:57:42]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:57:42]wFMCommunicate OK [11:57:42]SAM_PROTO_GetShiftState done [11:57:42]FM_GetShiftState done [11:57:42]req_shift_opened done [11:57:42]requested_item shift.open_date is exist - process it [11:57:42]req_shift_open_date [11:57:42]req_shift_open_date done [11:57:42]produce_requested_data done [11:57:42]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15703,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:57:42]process_action_free close_receipt [11:57:42]json_value_free [11:57:42]json_value_free done [11:57:42]process_json_proto returns [11:57:42]Send response to host [11:57:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15703,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:57:42]free response buf [11:57:42]execute_script done [11:57:42]execute_script returns [11:57:42]free content buf [11:57:42]Sock 8.Close socket [11:57:42]Sock 8.Thread stoped [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:58:58]accept exits with 9 [11:58:58]New connection [11:58:58]New thread 3066731876 created [11:58:58]Thread 3066588516 joined [11:58:58]Waiting for new connection... [11:58:58] Sock 9.Parse request [11:58:58]Sock 9.Check first char [11:58:58]Sock 9.First char is OK [11:58:58]request: POST /json_proto HTTP/1.0 [11:58:58]Method: POST [11:58:58]URL: /json_proto [11:58:58]Method is POST - this is cgi request [11:58:58]url: /json_proto [11:58:58]query_string will be loaded in cgi processing [11:58:58]execute_cgi json_proto POST (null) [11:58:58]execute_cgi path=json_proto method=POST [11:58:58]POST find Content-Length [11:58:58]Host: 172.17.54.195:8080 [11:58:58]Content-Length: 666 [11:58:58]Content-Type: application/json [11:58:58] [11:58:58]POST finish read [11:58:58]Found Content-Length = 666 [11:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [11:58:58]execute_script... [11:58: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)16253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [11:58:58]POST & json_proto [11:58:58]process_json_proto [11:58:58]json parsed OK: [11:58:58]protocol is kg_v1.0 [11:58:58]action value=close_receipt [11:58:58]process_action close_receipt [11:58:58]cmd_close_receipt [11:58:58]MH_GetDate [11:58:58]Write to MH i2c: F0 00 00 8C 44 BF [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: F0 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: F0 09 00 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: F0 09 00 8C 44 00 0D CE 20 67 8D 90 A3 66 50 [11:58:58]GetLastDocTimeStamp 1730203069 [11:58:58]current date 1730203149 [11:58:58]FM_GetShiftState [11:58:58]SAM_PROTO_GetShiftState [11:58:58]wFMCommunicate request_size=4 [11:58:58]MH_SAM_APDU [11:58:58]CAPDU: 80 13 01 00 [11:58:58]Write to MH i2c: E2 08 00 8D 44 80 13 01 00 00 00 00 00 4E [11:58:58]Write i2c OK [11:58:58]MH_I2C_Read... [11:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:58]Read from MH i2c: E2 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: E2 0E 00 [11:58:58]MH_I2C_Read... [11:58:58]Read from MH i2c: E2 0E 00 8D 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A3 [11:58:58]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:58:58]wFMCommunicate OK [11:58:58]SAM_PROTO_GetShiftState done [11:58:58]FM_GetShiftState done [11:58:58]opened in 1730161559 [11:58:58]opened+sec_in_day 1730247959 [11:58:58]quantity*price = 35020 [11:58:58]sum+1 = 35022 [11:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 50 29.10.2024 11:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15704 ФПД: 264869104840588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115909&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15704&fm=264869104840588&tin=02508201610067®Number=0000000000161798&sum=35000 [11:58:59]StoreToDocumentArchive [11:58:59]shift 172 fd 15704 [11:58:59]save to /storage/0172/doc_00015704 [11:58:59]save last doc name /storage/0172/doc_00015704 to /storage/kkm_last_doc_name [11:58:59]save OK [11:58:59]Clear old archive folders... [11:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=249 [11:58:59]tlvbuf is 002EF850 [11:58:59]SAM_PROTO_ClearQueue [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 09 00 00 [11:58:59]Write to MH i2c: E2 08 00 9A 44 80 09 00 00 00 00 00 00 50 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [11:58:59]RAPDU: 90 00 [11:58:59]wFMCommunicate OK [11:58:59]SAM_PROTO_ClearQueue done [11:58:59]KKMCreateOFDPacket [11:58:59]OFDProtocolAddRootSTLVToBuf [11:58:59]FM_MakeSignedData [11:58:59]FM_MakeSignedData [11:58:59]SAM_PROTO_SignData [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 0D 01 02 [11:58:59]Write to MH i2c: E2 08 00 9B 44 80 0D 01 02 00 00 00 00 58 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 9B 44 00 90 00 53 [11:58:59]RAPDU: 90 00 [11:58:59]wFMCommunicate OK [11:58:59]wFMCommunicate request_size=255 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 32 00 00 00 F4 03 04 00 0D CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 58 3D 00 00 35 04 06 00 F0 E5 A4 [11:58:59]Write to MH i2c: E2 02 01 9C 44 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 32 00 00 00 F4 03 04 00 0D CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 58 3D 00 00 35 04 06 00 F0 E5 A4 00 00 2F [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:59]Read from MH i2c: E2 03 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 9C 44 00 90 00 54 [11:58:59]RAPDU: 90 00 [11:58:59]wFMCommunicate OK [11:58:59]wFMCommunicate request_size=8 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 0D 02 02 03 E7 EF 8C [11:58:59]Write to MH i2c: E2 0B 00 9D 44 80 0D 02 02 03 00 E7 EF 8C 00 00 C3 [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:58:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:59]Read from MH i2c: E2 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 [11:58:59]MH_I2C_Read... [11:58:59]Read from MH i2c: E2 03 00 9D 44 00 90 00 55 [11:58:59]RAPDU: 90 00 [11:58:59]wFMCommunicate OK [11:58:59]wFMCommunicate request_size=4 [11:58:59]MH_SAM_APDU [11:58:59]CAPDU: 80 0D 03 02 [11:58:59]Write to MH i2c: E2 08 00 9E 44 80 0D 03 02 00 00 00 00 5D [11:58:59]Write i2c OK [11:58:59]MH_I2C_Read... [11:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:00]Read from MH i2c: E2 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 0B 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 0B 00 9E 44 00 96 D9 B3 52 A5 FC AF B9 90 00 DB [11:59:00]RAPDU: 96 D9 B3 52 A5 FC AF B9 90 00 [11:59:00]wFMCommunicate OK [11:59:00]SAM_PROTO_SignData done [11:59:00]FM_MakeSignedData done [11:59:00]CreateOFDProtocolMessage [11:59:00]wFMCommunicate request_size=4 [11:59:00]MH_SAM_APDU [11:59:00]CAPDU: 80 11 00 00 [11:59:00]Write to MH i2c: E2 08 00 9F 44 80 11 00 00 00 00 00 00 5D [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:00]Read from MH i2c: E2 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 17 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: E2 17 00 9F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AC [11:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:59:00]wFMCommunicate OK [11:59:00]CreateOFDProtocolMessage done [11:59:00]OFDSenderStorePacket 15704 [11:59:00]StoreOFDPacket docnum=15704 [11:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 54 C7 05 01 C8 FD 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 32 00 00 00 F4 03 04 00 0D CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 58 3D 00 00 35 04 06 00 F0 E5 A4 E7 EF 8C 96 D9 B3 52 A5 FC AF B9 [11:59:00]CheckFolder [11:59:00]dirname=/storage/ofd_packets [11:59:00]CheckFolder done [11:59:00]ProducePacketName [11:59:00]name=ofd_packets/00015704 [11:59:00]NVStorageSaveData ofd_packets/00015704 [11:59:00]File name is /storage/ofd_packets/00015704 [11:59:00]Write 299 bytes [11:59:00]NVStorageSaveData done [11:59:00]OFDSenderStorePacket done [11:59:00]KKMCreateOFDPacket done [11:59:00]NVStorageSaveData kkm_last_timestamp [11:59:00]File name is /storage/kkm_last_timestamp [11:59:00]Write 4 bytes [11:59:00]NVStorageSaveData done [11:59:00]ExternCall_PrintAddStr [11:59:00]wPrintStart [11:59:00]Write to MH i2c: 01 00 00 A0 44 E4 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 07 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 07 00 A0 44 00 00 00 00 00 FF 0F F9 [11:59:00]RasterBufferAndPrint [11:59:00]line Счет N : (1)16253 [11:59:00]line ИНН: 02508201610067 [11:59:00]line Контрольно-Кассовый Чек [11:59:00]line ПРОДАЖА [11:59:00]line ТРК (МРК, ГНК) : 12 [11:59:00]line Товар: 50.50.0 [11:59:00]line SUPER 92-К-5 [11:59:00]line 5.120 * 68.40 [11:59:00]line = 350.21 [11:59:00]line НДС 12% НСП 1% [11:59:00]line > о реализуемом товаре [11:59:00]line ОКРУГЛЕНИЕ: -0.21 [11:59:00]line ИТОГО: 350.00 [11:59:00]line Внесено: 350.00 [11:59:00]line СДАЧА: 0.00 [11:59:00]line НСП 1% : 3.10 [11:59:00]line НДС 12% : 37.19 [11:59:00]line Наличными: 350.00 [11:59:00]line Безнал.: 0.00 [11:59:00]line Место: АЗС № 178 "Партнер Нефть" [11:59:00]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:59:00]line СНО: Общий режим [11:59:00]line Чек 50 29.10.2024 11:59 [11:59:00]line Смена: 172 ФФД: 1.0 [11:59:00]line ЗНМ: 0300000014 [11:59:00]line РНМ: 0000000000161798 [11:59:00]line Версия ККМ: v1.0 [11:59:00]line ФМ: 0000000000963325 [11:59:00]line ФД: 15704 [11:59:00]line ФПД: 264869104840588 [11:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115909&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15704&fm=264869104840588&tin=02508201610067®Number=0000000000161798&sum=35000 [11:59:00]written 0, free lines is 4095 [11:59:00]OFD Sender: Processing packet 15704 [packets to send 4, broken 3] [11:59:00]ProducePacketName [11:59:00]name=ofd_packets/00015704 [11:59:00]OFD Sender: To server: pG, [11:59:00]CommunicateWithHost lk.salyk.kg:30040 [11:59:00]ConnectInit lk.salyk.kg [11:59:00]Connected sock=10 [11:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 54 C7 05 01 C8 FD 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 32 00 00 00 F4 03 04 00 0D CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 58 3D 00 00 35 04 06 00 F0 E5 A4 E7 EF 8C 96 D9 B3 52 A5 FC AF B9 [11:59:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 08 27 47 00 F9 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 58 3D 00 00 F4 03 04 00 FA 78 20 67 B6 04 01 00 00 18 96 48 5C 2E 6B B4 A7 [11:59:00]CommunicateWithHost err = 0 [11:59:00]CheckOFDResponse [11:59:00]1017 (14) - 77093643461234 [11:59:00]1041 (16) - 0000000000963325 [11:59:00]1040 (4) - 15704 [11:59:00]1012 (4) - 29.10.2024 05:56 [11:59:00]1206 (1) - 0 [11:59:00]OFD Sender: Remove packet 15704 [11:59:00]ProducePacketName [11:59:00]name=ofd_packets/00015704 [11:59:00]NVStorageDeleteData [11:59:00]Write to MH i2c: 01 00 00 CB 44 0F [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 07 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: 01 07 00 CB 44 00 00 00 00 00 ED 0C 0F [11:59:00]RasterBufferAndPrint [11:59:00]line [11:59:00]line [11:59:00]line [11:59:00]line [11:59:00]line [11:59:00]written 0, free lines is 3315 [11:59:00]MH_Cut [11:59:00]Write to MH i2c: D1 01 00 D2 44 01 E8 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: D1 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: D1 01 00 [11:59:00]MH_I2C_Read... [11:59:00]Read from MH i2c: D1 01 00 D2 44 00 E7 [11:59:00]Write to MH i2c: 01 00 00 D3 44 17 [11:59:00]Write i2c OK [11:59:00]MH_I2C_Read... [11:59:01]OFD Sender: No OFD packet to send [11:59:01]*** Cut start [11:59:01]*** Partial cut [11:59:01]*** CUTSNS_PIN = 1 [11:59:01]*** CUTSNS_PIN = 0 [11:59:01]*** Brake cut motor [11:59:02]Read from MH i2c: 01 [11:59:02]MH_I2C_Read... [11:59:02]*** Stop cut motor [11:59:02]*** Cut end [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 D3 44 00 00 00 00 00 FF 0F 2C [11:59:02]process_action close_receipt done [11:59:02]requested_data is exist [11:59:02]produce_requested_data [11:59:02]requested_item fm.sn is exist - process it [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 D4 44 80 11 00 00 00 00 00 00 92 [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 D4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E1 [11:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:59:02]wFMCommunicate OK [11:59:02]requested_item fd.num is exist - process it [11:59:02]SAM_PROTO_GetFieldsCounters [11:59:02]wFMCommunicate request_size=4 [11:59:02]MH_SAM_APDU [11:59:02]CAPDU: 80 13 00 00 [11:59:02]Write to MH i2c: E2 08 00 D5 44 80 13 00 00 00 00 00 00 95 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 62 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 62 00 D5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 58 3D 00 00 0E 04 04 00 AC 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 90 [11:59:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 58 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:02]wFMCommunicate OK [11:59:02]SAM_PROTO_GetFieldsCounters done [11:59:02]requested_item shift.num is exist - process it [11:59:02]requested_item shift.opened is exist - process it [11:59:02]req_shift_opened [11:59:02]FM_GetShiftState [11:59:02]SAM_PROTO_GetShiftState [11:59:02]wFMCommunicate request_size=4 [11:59:02]MH_SAM_APDU [11:59:02]CAPDU: 80 13 01 00 [11:59:02]Write to MH i2c: E2 08 00 D6 44 80 13 01 00 00 00 00 00 97 [11:59:02]Write i2c OK [11:59:02]MH_I2C_Read... [11:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:02]Read from MH i2c: E2 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 0E 00 [11:59:02]MH_I2C_Read... [11:59:02]Read from MH i2c: E2 0E 00 D6 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 EC [11:59:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:59:02]wFMCommunicate OK [11:59:02]SAM_PROTO_GetShiftState done [11:59:02]FM_GetShiftState done [11:59:02]req_shift_opened done [11:59:02]requested_item shift.open_date is exist - process it [11:59:02]req_shift_open_date [11:59:02]req_shift_open_date done [11:59:02]produce_requested_data done [11:59:02]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15704,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:59:02]process_action_free close_receipt [11:59:02]json_value_free [11:59:02]json_value_free done [11:59:02]process_json_proto returns [11:59:02]Send response to host [11:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15704,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:59:02]free response buf [11:59:02]execute_script done [11:59:02]execute_script returns [11:59:02]free content buf [11:59:02]Sock 9.Close socket [11:59:02]Sock 9.Thread stoped [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [11:59:41]OFD Sender: No OFD packet to send [11:59:44]accept exits with 8 [11:59:44]New connection [11:59:44]New thread 3066588516 created [11:59:44]Thread 3066731876 joined [11:59:44]Waiting for new connection... [11:59:44] Sock 8.Parse request [11:59:44]Sock 8.Check first char [11:59:44]Sock 8.First char is OK [11:59:44]request: POST /json_proto HTTP/1.0 [11:59:44]Method: POST [11:59:44]URL: /json_proto [11:59:44]Method is POST - this is cgi request [11:59:44]url: /json_proto [11:59:44]query_string will be loaded in cgi processing [11:59:44]execute_cgi json_proto POST (null) [11:59:44]execute_cgi path=json_proto method=POST [11:59:44]POST find Content-Length [11:59:44]Host: 172.17.54.195:8080 [11:59:44]Content-Length: 773 [11:59:44]Content-Type: application/json [11:59:44] [11:59:44]POST finish read [11:59:44]Found Content-Length = 773 [11:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 9.220, "sum" : 630.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: Mbank", "total" : 630.00, "payments": [ { "type": 1, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:44]execute_script... [11:59:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 9.220, "sum" : 630.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: Mbank", "total" : 630.00, "payments": [ { "type": 1, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:44]POST & json_proto [11:59:44]process_json_proto [11:59:44]json parsed OK: [11:59:44]protocol is kg_v1.0 [11:59:44]action value=close_receipt [11:59:44]process_action close_receipt [11:59:44]cmd_close_receipt [11:59:44]MH_GetDate [11:59:44]Write to MH i2c: F0 00 00 D7 44 0A [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: F0 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: F0 09 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: F0 09 00 D7 44 00 3B CE 20 67 8D 90 A3 66 C9 [11:59:44]GetLastDocTimeStamp 1730203149 [11:59:44]current date 1730203195 [11:59:44]FM_GetShiftState [11:59:44]SAM_PROTO_GetShiftState [11:59:44]wFMCommunicate request_size=4 [11:59:44]MH_SAM_APDU [11:59:44]CAPDU: 80 13 01 00 [11:59:44]Write to MH i2c: E2 08 00 D8 44 80 13 01 00 00 00 00 00 99 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:44]Read from MH i2c: E2 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0E 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: E2 0E 00 D8 44 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 EE [11:59:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:59:44]wFMCommunicate OK [11:59:44]SAM_PROTO_GetShiftState done [11:59:44]FM_GetShiftState done [11:59:44]opened in 1730161559 [11:59:44]opened+sec_in_day 1730247959 [11:59:44]quantity*price = 63064 [11:59:44]sum+1 = 63066 [11:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 630.00 НСП 1% : 5.58 НДС 12% : 66.97 Наличными: 0.00 Безнал.: 630.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 51 29.10.2024 11:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15705 ФПД: 38405722460521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115955&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15705&fm=38405722460521&tin=02508201610067®Number=0000000000161798&sum=63000 [11:59:45]StoreToDocumentArchive [11:59:45]shift 172 fd 15705 [11:59:45]save to /storage/0172/doc_00015705 [11:59:45]save last doc name /storage/0172/doc_00015705 to /storage/kkm_last_doc_name [11:59:45]save OK [11:59:45]Clear old archive folders... [11:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=249 [11:59:45]tlvbuf is 002E35F0 [11:59:45]SAM_PROTO_ClearQueue [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 09 00 00 [11:59:45]Write to MH i2c: E2 08 00 E5 44 80 09 00 00 00 00 00 00 9B [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 03 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [11:59:45]RAPDU: 90 00 [11:59:45]wFMCommunicate OK [11:59:45]SAM_PROTO_ClearQueue done [11:59:45]KKMCreateOFDPacket [11:59:45]OFDProtocolAddRootSTLVToBuf [11:59:45]FM_MakeSignedData [11:59:45]FM_MakeSignedData [11:59:45]SAM_PROTO_SignData [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 0D 01 02 [11:59:45]Write to MH i2c: E2 08 00 E6 44 80 0D 01 02 00 00 00 00 A3 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 E6 44 00 90 00 9E [11:59:46]RAPDU: 90 00 [11:59:46]wFMCommunicate OK [11:59:46]wFMCommunicate request_size=255 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 24 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 59 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 59 3D 00 00 35 04 06 00 22 EE 07 [11:59:46]Write to MH i2c: E2 02 01 E7 44 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 24 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 59 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 59 3D 00 00 35 04 06 00 22 EE 07 00 00 99 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:46]OFD Sender: No OFD packet to send [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 E7 44 00 90 00 9F [11:59:46]RAPDU: 90 00 [11:59:46]wFMCommunicate OK [11:59:46]wFMCommunicate request_size=8 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 0D 02 02 03 71 D1 69 [11:59:46]Write to MH i2c: E2 0B 00 E8 44 80 0D 02 02 03 00 71 D1 69 00 00 57 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 03 00 E8 44 00 90 00 A0 [11:59:46]RAPDU: 90 00 [11:59:46]wFMCommunicate OK [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 0D 03 02 [11:59:46]Write to MH i2c: E2 08 00 E9 44 80 0D 03 02 00 00 00 00 A8 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0B 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0B 00 E9 44 00 7A 47 8B BF 95 17 77 3A 90 00 11 [11:59:46]RAPDU: 7A 47 8B BF 95 17 77 3A 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_SignData done [11:59:46]FM_MakeSignedData done [11:59:46]CreateOFDProtocolMessage [11:59:46]wFMCommunicate request_size=4 [11:59:46]MH_SAM_APDU [11:59:46]CAPDU: 80 11 00 00 [11:59:46]Write to MH i2c: E2 08 00 EA 44 80 11 00 00 00 00 00 00 A8 [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 17 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 17 00 EA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F7 [11:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:59:46]wFMCommunicate OK [11:59:46]CreateOFDProtocolMessage done [11:59:46]OFDSenderStorePacket 15705 [11:59:46]StoreOFDPacket docnum=15705 [11:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 2A 73 05 01 7F DC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 24 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 59 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 59 3D 00 00 35 04 06 00 22 EE 07 71 D1 69 7A 47 8B BF 95 17 77 3A [11:59:46]CheckFolder [11:59:46]dirname=/storage/ofd_packets [11:59:46]CheckFolder done [11:59:46]ProducePacketName [11:59:46]name=ofd_packets/00015705 [11:59:46]NVStorageSaveData ofd_packets/00015705 [11:59:46]File name is /storage/ofd_packets/00015705 [11:59:46]Write 299 bytes [11:59:46]NVStorageSaveData done [11:59:46]OFDSenderStorePacket done [11:59:46]KKMCreateOFDPacket done [11:59:46]NVStorageSaveData kkm_last_timestamp [11:59:46]File name is /storage/kkm_last_timestamp [11:59:46]Write 4 bytes [11:59:46]NVStorageSaveData done [11:59:46]ExternCall_PrintAddStr [11:59:46]wPrintStart [11:59:46]Write to MH i2c: 01 00 00 EB 44 2F [11:59:46]Write i2c OK [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: 01 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: 01 07 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: 01 07 00 EB 44 00 00 00 00 00 FF 0F 44 [11:59:46]RasterBufferAndPrint [11:59:46]line Счет N : (1)16254 [11:59:46]line ИНН: 02508201610067 [11:59:46]line Контрольно-Кассовый Чек [11:59:46]line ПРОДАЖА [11:59:46]line ТРК (МРК, ГНК) : 12 [11:59:46]line Товар: 50.50.0 [11:59:46]line SUPER 92-К-5 [11:59:46]line 9.220 * 68.40 [11:59:46]line = 630.65 [11:59:46]line НДС 12% НСП 1% [11:59:46]line > о реализуемом товаре [11:59:46]line ОКРУГЛЕНИЕ: -0.65 [11:59:46]line ИТОГО: 630.00 [11:59:46]line НСП 1% : 5.58 [11:59:46]line НДС 12% : 66.97 [11:59:46]line Наличными: 0.00 [11:59:46]line Безнал.: 630.00 [11:59:46]line Место: АЗС № 178 "Партнер Нефть" [11:59:46]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [11:59:46]line СНО: Общий режим [11:59:46]line Чек 51 29.10.2024 11:59 [11:59:46]line Смена: 172 ФФД: 1.0 [11:59:46]line ЗНМ: 0300000014 [11:59:46]line РНМ: 0000000000161798 [11:59:46]line Версия ККМ: v1.0 [11:59:46]line Платежная система: Mbank [11:59:46]line ФМ: 0000000000963325 [11:59:46]line ФД: 15705 [11:59:46]line ФПД: 38405722460521 [11:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T115955&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15705&fm=38405722460521&tin=02508201610067®Number=0000000000161798&sum=63000 [11:59:46]OFD Sender: Processing packet 15705 [packets to send 4, broken 3] [11:59:46]ProducePacketName [11:59:46]name=ofd_packets/00015705 [11:59:46]OFD Sender: To server: pG, [11:59:46]CommunicateWithHost lk.salyk.kg:30040 [11:59:46]ConnectInit lk.salyk.kg [11:59:46]written 0, free lines is 4095 [11:59:46]Connected sock=10 [11:59:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 2A 73 05 01 7F DC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 24 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 59 F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 F6 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 3B CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 59 3D 00 00 35 04 06 00 22 EE 07 71 D1 69 7A 47 8B BF 95 17 77 3A [11:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 78 0B 47 00 C3 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 59 3D 00 00 F4 03 04 00 28 79 20 67 B6 04 01 00 00 88 E9 B6 A9 A8 D3 8B B2 [11:59:47]CommunicateWithHost err = 0 [11:59:47]CheckOFDResponse [11:59:47]1017 (14) - 77093643461234 [11:59:47]1041 (16) - 0000000000963325 [11:59:47]1040 (4) - 15705 [11:59:47]1012 (4) - 29.10.2024 05:56 [11:59:47]1206 (1) - 0 [11:59:47]OFD Sender: Remove packet 15705 [11:59:47]ProducePacketName [11:59:47]name=ofd_packets/00015705 [11:59:47]NVStorageDeleteData [11:59:47]Write to MH i2c: 01 00 00 15 45 5A [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 07 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: 01 07 00 15 45 00 00 00 00 00 12 0D 80 [11:59:47]RasterBufferAndPrint [11:59:47]line [11:59:47]line [11:59:47]line [11:59:47]line [11:59:47]line [11:59:47]written 0, free lines is 3353 [11:59:47]MH_Cut [11:59:47]Write to MH i2c: D1 01 00 1C 45 01 33 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: D1 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: D1 01 00 [11:59:47]MH_I2C_Read... [11:59:47]Read from MH i2c: D1 01 00 1C 45 00 32 [11:59:47]Write to MH i2c: 01 00 00 1D 45 62 [11:59:47]Write i2c OK [11:59:47]MH_I2C_Read... [11:59:47]OFD Sender: No OFD packet to send [11:59:47]*** Cut start [11:59:47]*** Partial cut [11:59:47]*** CUTSNS_PIN = 1 [11:59:47]*** CUTSNS_PIN = 0 [11:59:48]*** Brake cut motor [11:59:48]Read from MH i2c: 01 [11:59:48]MH_I2C_Read... [11:59:48]*** Stop cut motor [11:59:48]*** Cut end [11:59:48]Read from MH i2c: 01 07 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: 01 07 00 1D 45 00 00 00 00 00 FF 0F 77 [11:59:48]process_action close_receipt done [11:59:48]requested_data is exist [11:59:48]produce_requested_data [11:59:48]requested_item fm.sn is exist - process it [11:59:48]wFMCommunicate request_size=4 [11:59:48]MH_SAM_APDU [11:59:48]CAPDU: 80 11 00 00 [11:59:48]Write to MH i2c: E2 08 00 1E 45 80 11 00 00 00 00 00 00 DD [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 17 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 17 00 1E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2C [11:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [11:59:48]wFMCommunicate OK [11:59:48]requested_item fd.num is exist - process it [11:59:48]SAM_PROTO_GetFieldsCounters [11:59:48]wFMCommunicate request_size=4 [11:59:48]MH_SAM_APDU [11:59:48]CAPDU: 80 13 00 00 [11:59:48]Write to MH i2c: E2 08 00 1F 45 80 13 00 00 00 00 00 00 E0 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 62 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 62 00 1F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 59 3D 00 00 0E 04 04 00 AC 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 DF [11:59:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 59 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:48]wFMCommunicate OK [11:59:48]SAM_PROTO_GetFieldsCounters done [11:59:48]requested_item shift.num is exist - process it [11:59:48]requested_item shift.opened is exist - process it [11:59:48]req_shift_opened [11:59:48]FM_GetShiftState [11:59:48]SAM_PROTO_GetShiftState [11:59:48]wFMCommunicate request_size=4 [11:59:48]MH_SAM_APDU [11:59:48]CAPDU: 80 13 01 00 [11:59:48]Write to MH i2c: E2 08 00 20 45 80 13 01 00 00 00 00 00 E2 [11:59:48]Write i2c OK [11:59:48]MH_I2C_Read... [11:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:48]Read from MH i2c: E2 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 0E 00 [11:59:48]MH_I2C_Read... [11:59:48]Read from MH i2c: E2 0E 00 20 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 37 [11:59:48]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [11:59:48]wFMCommunicate OK [11:59:48]SAM_PROTO_GetShiftState done [11:59:48]FM_GetShiftState done [11:59:48]req_shift_opened done [11:59:48]requested_item shift.open_date is exist - process it [11:59:48]req_shift_open_date [11:59:48]req_shift_open_date done [11:59:48]produce_requested_data done [11:59:48]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15705,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [11:59:48]process_action_free close_receipt [11:59:48]json_value_free [11:59:48]json_value_free done [11:59:48]process_json_proto returns [11:59:48]Send response to host [11:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15705,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [11:59:48]free response buf [11:59:48]execute_script done [11:59:48]execute_script returns [11:59:48]free content buf [11:59:48]Sock 8.Close socket [11:59:48]Sock 8.Thread stoped [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:36]accept exits with 9 [12:02:36]New connection [12:02:36]New thread 3066731876 created [12:02:36]Thread 3066588516 joined [12:02:36]Waiting for new connection... [12:02:36] Sock 9.Parse request [12:02:36]Sock 9.Check first char [12:02:36]Sock 9.First char is OK [12:02:36]request: POST /json_proto HTTP/1.0 [12:02:36]Method: POST [12:02:36]URL: /json_proto [12:02:36]Method is POST - this is cgi request [12:02:36]url: /json_proto [12:02:36]query_string will be loaded in cgi processing [12:02:36]execute_cgi json_proto POST (null) [12:02:36]execute_cgi path=json_proto method=POST [12:02:36]POST find Content-Length [12:02:36]Host: 172.17.54.195:8080 [12:02:36]Content-Length: 676 [12:02:36]Content-Type: application/json [12:02:36] [12:02:36]POST finish read [12:02:36]Found Content-Length = 676 [12:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:02:36]execute_script... [12:02: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)16256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [12:02:36]POST & json_proto [12:02:36]process_json_proto [12:02:36]json parsed OK: [12:02:36]protocol is kg_v1.0 [12:02:36]action value=close_receipt [12:02:36]process_action close_receipt [12:02:36]cmd_close_receipt [12:02:36]MH_GetDate [12:02:36]Write to MH i2c: F0 00 00 21 45 55 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: F0 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: F0 09 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: F0 09 00 21 45 00 E7 CE 20 67 8D 90 A3 66 C0 [12:02:36]GetLastDocTimeStamp 1730203195 [12:02:36]current date 1730203367 [12:02:36]FM_GetShiftState [12:02:36]SAM_PROTO_GetShiftState [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 13 01 00 [12:02:36]Write to MH i2c: E2 08 00 22 45 80 13 01 00 00 00 00 00 E4 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 0E 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 0E 00 22 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 39 [12:02:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:02:36]wFMCommunicate OK [12:02:36]SAM_PROTO_GetShiftState done [12:02:36]FM_GetShiftState done [12:02:36]opened in 1730161559 [12:02:36]opened+sec_in_day 1730247959 [12:02:36]quantity*price = 35055 [12:02:36]sum+1 = 35057 [12:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 52 29.10.2024 12:02 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15706 ФПД: 88645845747207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120247&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15706&fm=88645845747207&tin=02508201610067®Number=0000000000161798&sum=35000 [12:02:37]StoreToDocumentArchive [12:02:37]shift 172 fd 15706 [12:02:37]save to /storage/0172/doc_00015706 [12:02:37]save last doc name /storage/0172/doc_00015706 to /storage/kkm_last_doc_name [12:02:37]save OK [12:02:37]Clear old archive folders... [12:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:37]tlvbuf is 002E3570 [12:02:37]SAM_PROTO_ClearQueue [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 09 00 00 [12:02:37]Write to MH i2c: E2 08 00 2F 45 80 09 00 00 00 00 00 00 E6 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 2F 45 00 90 00 E8 [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_ClearQueue done [12:02:37]KKMCreateOFDPacket [12:02:37]OFDProtocolAddRootSTLVToBuf [12:02:37]FM_MakeSignedData [12:02:37]FM_MakeSignedData [12:02:37]SAM_PROTO_SignData [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 01 02 [12:02:37]Write to MH i2c: E2 08 00 30 45 80 0D 01 02 00 00 00 00 EE [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=255 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 E7 CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5A 3D 00 00 35 04 06 00 50 [12:02:37]Write to MH i2c: E2 02 01 31 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 E7 CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5A 3D 00 00 35 04 06 00 50 00 00 8E [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=10 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 02 02 05 9F 78 25 86 07 [12:02:37]Write to MH i2c: E2 0D 00 32 45 80 0D 02 02 05 00 9F 78 25 86 07 00 00 C4 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 32 45 00 90 00 EB [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 03 02 [12:02:37]Write to MH i2c: E2 08 00 33 45 80 0D 03 02 00 00 00 00 F3 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:37]OFD Sender: No OFD packet to send [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 33 45 00 E0 56 D8 64 C2 0C 14 D5 90 00 1D [12:02:37]RAPDU: E0 56 D8 64 C2 0C 14 D5 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_SignData done [12:02:37]FM_MakeSignedData done [12:02:37]CreateOFDProtocolMessage [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 11 00 00 [12:02:37]Write to MH i2c: E2 08 00 34 45 80 11 00 00 00 00 00 00 F3 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 34 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 42 [12:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:02:37]wFMCommunicate OK [12:02:37]CreateOFDProtocolMessage done [12:02:37]OFDSenderStorePacket 15706 [12:02:37]StoreOFDPacket docnum=15706 [12:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 67 6A 07 01 E5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 34 00 00 00 F4 03 04 00 E7 CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5A 3D 00 00 35 04 06 00 50 9F 78 25 86 07 E0 56 D8 64 C2 0C 14 D5 [12:02:37]CheckFolder [12:02:37]dirname=/storage/ofd_packets [12:02:37]CheckFolder done [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00015706 [12:02:37]NVStorageSaveData ofd_packets/00015706 [12:02:37]File name is /storage/ofd_packets/00015706 [12:02:37]Write 301 bytes [12:02:37]NVStorageSaveData done [12:02:37]OFDSenderStorePacket done [12:02:37]KKMCreateOFDPacket done [12:02:37]NVStorageSaveData kkm_last_timestamp [12:02:37]File name is /storage/kkm_last_timestamp [12:02:37]Write 4 bytes [12:02:37]NVStorageSaveData done [12:02:37]ExternCall_PrintAddStr [12:02:37]wPrintStart [12:02:37]Write to MH i2c: 01 00 00 35 45 7A [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 35 45 00 00 00 00 00 FF 0F 8F [12:02:37]RasterBufferAndPrint [12:02:37]line Счет N : (1)16256 [12:02:37]line ИНН: 02508201610067 [12:02:37]line Контрольно-Кассовый Чек [12:02:37]line ПРОДАЖА [12:02:37]line ТРК (МРК, ГНК) : 21 [12:02:37]line Товар: 2710124130 [12:02:37]line Аи-92-К-5 [12:02:37]line 5.240 * 66.90 [12:02:37]line = 350.56 [12:02:37]line НДС 12% НСП 1% [12:02:37]line > о реализуемом товаре [12:02:37]line ОКРУГЛЕНИЕ: -0.56 [12:02:37]line ИТОГО: 350.00 [12:02:37]line Внесено: 350.00 [12:02:37]line СДАЧА: 0.00 [12:02:37]line НСП 1% : 3.10 [12:02:37]line НДС 12% : 37.23 [12:02:37]line Наличными: 350.00 [12:02:37]line Безнал.: 0.00 [12:02:37]line Место: АЗС № 178 "Партнер Нефть" [12:02:37]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:02:37]line СНО: Общий режим [12:02:37]line Чек 52 29.10.2024 12:02 [12:02:37]line Смена: 172 ФФД: 1.0 [12:02:37]line ЗНМ: 0300000014 [12:02:37]line РНМ: 0000000000161798 [12:02:37]line Версия ККМ: v1.0 [12:02:37]line ФМ: 0000000000963325 [12:02:37]line ФД: 15706 [12:02:37]line ФПД: 88645845747207 [12:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120247&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15706&fm=88645845747207&tin=02508201610067®Number=0000000000161798&sum=35000 [12:02:37]written 0, free lines is 4095 [12:02:37]OFD Sender: Processing packet 15706 [packets to send 4, broken 3] [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00015706 [12:02:37]OFD Sender: To server: pG, [12:02:37]CommunicateWithHost lk.salyk.kg:30040 [12:02:37]ConnectInit lk.salyk.kg [12:02:37]Connected sock=10 [12:02:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 67 6A 07 01 E5 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 34 00 00 00 F4 03 04 00 E7 CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5A 3D 00 00 35 04 06 00 50 9F 78 25 86 07 E0 56 D8 64 C2 0C 14 D5 [12:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 AB 35 47 00 5E D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5A 3D 00 00 F4 03 04 00 D3 79 20 67 B6 04 01 00 00 B7 48 5F EE E8 4E FA 0B [12:02:38]CommunicateWithHost err = 0 [12:02:38]CheckOFDResponse [12:02:38]1017 (14) - 77093643461234 [12:02:38]1041 (16) - 0000000000963325 [12:02:38]1040 (4) - 15706 [12:02:38]1012 (4) - 29.10.2024 05:59 [12:02:38]1206 (1) - 0 [12:02:38]OFD Sender: Remove packet 15706 [12:02:38]ProducePacketName [12:02:38]name=ofd_packets/00015706 [12:02:38]NVStorageDeleteData [12:02:38]Write to MH i2c: 01 00 00 60 45 A5 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 60 45 00 00 00 00 00 FE 0C B6 [12:02:38]RasterBufferAndPrint [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]written 0, free lines is 3332 [12:02:38]MH_Cut [12:02:38]Write to MH i2c: D1 01 00 67 45 01 7E [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 67 45 00 7D [12:02:38]Write to MH i2c: 01 00 00 68 45 AD [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]OFD Sender: No OFD packet to send [12:02:38]*** Cut start [12:02:38]*** Partial cut [12:02:38]*** CUTSNS_PIN = 1 [12:02:39]*** CUTSNS_PIN = 0 [12:02:39]*** Brake cut motor [12:02:39]Read from MH i2c: 01 [12:02:39]MH_I2C_Read... [12:02:39]*** Stop cut motor [12:02:39]*** Cut end [12:02:39]Read from MH i2c: 01 07 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 68 45 00 00 00 00 00 FF 0F C2 [12:02:39]process_action close_receipt done [12:02:39]requested_data is exist [12:02:39]produce_requested_data [12:02:39]requested_item fm.sn is exist - process it [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 11 00 00 [12:02:39]Write to MH i2c: E2 08 00 69 45 80 11 00 00 00 00 00 00 28 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 69 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 77 [12:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:02:39]wFMCommunicate OK [12:02:39]requested_item fd.num is exist - process it [12:02:39]SAM_PROTO_GetFieldsCounters [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 00 00 [12:02:39]Write to MH i2c: E2 08 00 6A 45 80 13 00 00 00 00 00 00 2B [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 62 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 62 00 6A 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5A 3D 00 00 0E 04 04 00 AC 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 2E [12:02:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5A 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetFieldsCounters done [12:02:39]requested_item shift.num is exist - process it [12:02:39]requested_item shift.opened is exist - process it [12:02:39]req_shift_opened [12:02:39]FM_GetShiftState [12:02:39]SAM_PROTO_GetShiftState [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 01 00 [12:02:39]Write to MH i2c: E2 08 00 6B 45 80 13 01 00 00 00 00 00 2D [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 6B 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 82 [12:02:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetShiftState done [12:02:39]FM_GetShiftState done [12:02:39]req_shift_opened done [12:02:39]requested_item shift.open_date is exist - process it [12:02:39]req_shift_open_date [12:02:39]req_shift_open_date done [12:02:39]produce_requested_data done [12:02:39]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15706,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:02:39]process_action_free close_receipt [12:02:39]json_value_free [12:02:39]json_value_free done [12:02:39]process_json_proto returns [12:02:39]Send response to host [12:02:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15706,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:02:39]free response buf [12:02:39]execute_script done [12:02:39]execute_script returns [12:02:39]free content buf [12:02:39]Sock 9.Close socket [12:02:39]Sock 9.Thread stoped [12:02:40]accept exits with 8 [12:02:40]New connection [12:02:40]New thread 3066588516 created [12:02:40]Thread 3066731876 joined [12:02:40]Waiting for new connection... [12:02:40] Sock 8.Parse request [12:02:40]Sock 8.Check first char [12:02:40]Sock 8.First char is OK [12:02:40]request: POST /json_proto HTTP/1.0 [12:02:40]Method: POST [12:02:40]URL: /json_proto [12:02:40]Method is POST - this is cgi request [12:02:40]url: /json_proto [12:02:40]query_string will be loaded in cgi processing [12:02:40]execute_cgi json_proto POST (null) [12:02:40]execute_cgi path=json_proto method=POST [12:02:40]POST find Content-Length [12:02:40]Host: 172.17.54.195:8080 [12:02:40]Content-Length: 680 [12:02:40]Content-Type: application/json [12:02:40] [12:02:40]POST finish read [12:02:40]Found Content-Length = 680 [12:02:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:40]execute_script... [12:02:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:40]POST & json_proto [12:02:40]process_json_proto [12:02:40]json parsed OK: [12:02:40]protocol is kg_v1.0 [12:02:40]action value=close_receipt [12:02:40]process_action close_receipt [12:02:40]cmd_close_receipt [12:02:40]MH_GetDate [12:02:40]Write to MH i2c: F0 00 00 6C 45 A0 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 09 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: F0 09 00 6C 45 00 EB CE 20 67 8D 90 A3 66 0F [12:02:40]GetLastDocTimeStamp 1730203367 [12:02:40]current date 1730203371 [12:02:40]FM_GetShiftState [12:02:40]SAM_PROTO_GetShiftState [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 13 01 00 [12:02:40]Write to MH i2c: E2 08 00 6D 45 80 13 01 00 00 00 00 00 2F [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 6D 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 84 [12:02:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_GetShiftState done [12:02:40]FM_GetShiftState done [12:02:40]opened in 1730161559 [12:02:40]opened+sec_in_day 1730247959 [12:02:40]quantity*price = 70020 [12:02:40]sum+1 = 70021 [12:02:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 53 29.10.2024 12:02 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15707 ФПД: 42021476227264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120251&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15707&fm=42021476227264&tin=02508201610067®Number=0000000000161798&sum=70000 [12:02:41]StoreToDocumentArchive [12:02:41]shift 172 fd 15707 [12:02:41]save to /storage/0172/doc_00015707 [12:02:41]save last doc name /storage/0172/doc_00015707 to /storage/kkm_last_doc_name [12:02:41]save OK [12:02:41]Clear old archive folders... [12:02:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:02:41]tlvbuf is 003AAC70 [12:02:41]SAM_PROTO_ClearQueue [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 09 00 00 [12:02:41]Write to MH i2c: E2 08 00 7A 45 80 09 00 00 00 00 00 00 31 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 7A 45 00 90 00 33 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]SAM_PROTO_ClearQueue done [12:02:41]KKMCreateOFDPacket [12:02:41]OFDProtocolAddRootSTLVToBuf [12:02:41]FM_MakeSignedData [12:02:41]FM_MakeSignedData [12:02:41]SAM_PROTO_SignData [12:02:41]wFMCommunicate request_size=4 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 0D 01 02 [12:02:41]Write to MH i2c: E2 08 00 7B 45 80 0D 01 02 00 00 00 00 39 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:41]Read from MH i2c: E2 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: E2 03 00 7B 45 00 90 00 34 [12:02:41]RAPDU: 90 00 [12:02:41]wFMCommunicate OK [12:02:41]wFMCommunicate request_size=255 [12:02:41]MH_SAM_APDU [12:02:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 35 00 00 00 F4 03 04 00 EB CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5B 3D 00 00 35 04 06 00 26 37 [12:02:42]Write to MH i2c: E2 02 01 7C 45 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 35 00 00 00 F4 03 04 00 EB CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5B 3D 00 00 35 04 06 00 26 37 00 00 0B [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 7C 45 00 90 00 35 [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]wFMCommunicate request_size=9 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 02 02 04 E3 29 D8 C0 [12:02:42]Write to MH i2c: E2 0C 00 7D 45 80 0D 02 02 04 00 E3 29 D8 C0 00 00 E8 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 03 00 7D 45 00 90 00 36 [12:02:42]RAPDU: 90 00 [12:02:42]wFMCommunicate OK [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 0D 03 02 [12:02:42]Write to MH i2c: E2 08 00 7E 45 80 0D 03 02 00 00 00 00 3E [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0B 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0B 00 7E 45 00 54 7F B2 F8 97 BF 4C 72 90 00 D0 [12:02:42]RAPDU: 54 7F B2 F8 97 BF 4C 72 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_SignData done [12:02:42]FM_MakeSignedData done [12:02:42]CreateOFDProtocolMessage [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 11 00 00 [12:02:42]Write to MH i2c: E2 08 00 7F 45 80 11 00 00 00 00 00 00 3E [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 17 00 7F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8D [12:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:02:42]wFMCommunicate OK [12:02:42]CreateOFDProtocolMessage done [12:02:42]OFDSenderStorePacket 15707 [12:02:42]StoreOFDPacket docnum=15707 [12:02:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 70 3D 06 01 72 68 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 35 00 00 00 F4 03 04 00 EB CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5B 3D 00 00 35 04 06 00 26 37 E3 29 D8 C0 54 7F B2 F8 97 BF 4C 72 [12:02:42]CheckFolder [12:02:42]dirname=/storage/ofd_packets [12:02:42]CheckFolder done [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00015707 [12:02:42]NVStorageSaveData ofd_packets/00015707 [12:02:42]File name is /storage/ofd_packets/00015707 [12:02:42]Write 300 bytes [12:02:42]NVStorageSaveData done [12:02:42]OFDSenderStorePacket done [12:02:42]KKMCreateOFDPacket done [12:02:42]NVStorageSaveData kkm_last_timestamp [12:02:42]File name is /storage/kkm_last_timestamp [12:02:42]Write 4 bytes [12:02:42]NVStorageSaveData done [12:02:42]ExternCall_PrintAddStr [12:02:42]wPrintStart [12:02:42]Write to MH i2c: 01 00 00 80 45 C5 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 80 45 00 00 00 00 00 FF 0F DA [12:02:42]RasterBufferAndPrint [12:02:42]line Счет N : (1)16255 [12:02:42]line ИНН: 02508201610067 [12:02:42]line Контрольно-Кассовый Чек [12:02:42]line ПРОДАЖА [12:02:42]line ТРК (МРК, ГНК) : 41 [12:02:42]line Товар: 2711190000 [12:02:42]line ГАЗ-К-5 [12:02:42]line 18.000 * 38.90 [12:02:42]line = 700.20 [12:02:42]line НДС 12% НСП 1% [12:02:42]line > о реализуемом товаре [12:02:42]line ОКРУГЛЕНИЕ: -0.20 [12:02:42]line ИТОГО: 700.00 [12:02:42]line Внесено: 700.00 [12:02:42]line СДАЧА: 0.00 [12:02:42]line НСП 1% : 6.20 [12:02:42]line НДС 12% : 74.36 [12:02:42]line Наличными: 700.00 [12:02:42]line Безнал.: 0.00 [12:02:42]line Место: АЗС № 178 "Партнер Нефть" [12:02:42]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:02:42]line СНО: Общий режим [12:02:42]line Чек 53 29.10.2024 12:02 [12:02:42]line Смена: 172 ФФД: 1.0 [12:02:42]line ЗНМ: 0300000014 [12:02:42]line РНМ: 0000000000161798 [12:02:42]line Версия ККМ: v1.0 [12:02:42]line ФМ: 0000000000963325 [12:02:42]line ФД: 15707 [12:02:42]line ФПД: 42021476227264 [12:02:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T120251&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15707&fm=42021476227264&tin=02508201610067®Number=0000000000161798&sum=70000 [12:02:42]OFD Sender: Processing packet 15707 [packets to send 4, broken 3] [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00015707 [12:02:42]OFD Sender: To server: pG, [12:02:42]CommunicateWithHost lk.salyk.kg:30040 [12:02:42]ConnectInit lk.salyk.kg [12:02:42]written 0, free lines is 4095 [12:02:42]Connected sock=10 [12:02:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 70 3D 06 01 72 68 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 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 0C 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 35 00 00 00 F4 03 04 00 EB CE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5B 3D 00 00 35 04 06 00 26 37 E3 29 D8 C0 54 7F B2 F8 97 BF 4C 72 [12:02:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 12 29 47 00 48 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5B 3D 00 00 F4 03 04 00 D8 79 20 67 B6 04 01 00 00 71 57 19 0B 98 EA F8 DB [12:02:42]CommunicateWithHost err = 0 [12:02:42]CheckOFDResponse [12:02:42]1017 (14) - 77093643461234 [12:02:42]1041 (16) - 0000000000963325 [12:02:42]1040 (4) - 15707 [12:02:42]1012 (4) - 29.10.2024 05:59 [12:02:42]1206 (1) - 0 [12:02:42]OFD Sender: Remove packet 15707 [12:02:42]ProducePacketName [12:02:42]name=ofd_packets/00015707 [12:02:42]NVStorageDeleteData [12:02:42]Write to MH i2c: 01 00 00 AB 45 F0 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: 01 07 00 AB 45 00 00 00 00 00 FD 0C 00 [12:02:42]RasterBufferAndPrint [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]line [12:02:42]written 0, free lines is 3340 [12:02:42]MH_Cut [12:02:42]Write to MH i2c: D1 01 00 B2 45 01 C9 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 01 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: D1 01 00 B2 45 00 C8 [12:02:42]Write to MH i2c: 01 00 00 B3 45 F8 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:43]OFD Sender: No OFD packet to send [12:02:43]*** Cut start [12:02:43]*** Partial cut [12:02:43]*** CUTSNS_PIN = 1 [12:02:43]*** CUTSNS_PIN = 0 [12:02:43]*** Brake cut motor [12:02:44]Read from MH i2c: 01 [12:02:44]MH_I2C_Read... [12:02:44]*** Stop cut motor [12:02:44]*** Cut end [12:02:44]Read from MH i2c: 01 07 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: 01 07 00 B3 45 00 00 00 00 00 FF 0F 0D [12:02:44]process_action close_receipt done [12:02:44]requested_data is exist [12:02:44]produce_requested_data [12:02:44]requested_item fm.sn is exist - process it [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 11 00 00 [12:02:44]Write to MH i2c: E2 08 00 B4 45 80 11 00 00 00 00 00 00 73 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 17 00 B4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C2 [12:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:02:44]wFMCommunicate OK [12:02:44]requested_item fd.num is exist - process it [12:02:44]SAM_PROTO_GetFieldsCounters [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 00 00 [12:02:44]Write to MH i2c: E2 08 00 B5 45 80 13 00 00 00 00 00 00 76 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 62 00 B5 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5B 3D 00 00 0E 04 04 00 AC 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 7D [12:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5B 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetFieldsCounters done [12:02:44]requested_item shift.num is exist - process it [12:02:44]requested_item shift.opened is exist - process it [12:02:44]req_shift_opened [12:02:44]FM_GetShiftState [12:02:44]SAM_PROTO_GetShiftState [12:02:44]wFMCommunicate request_size=4 [12:02:44]MH_SAM_APDU [12:02:44]CAPDU: 80 13 01 00 [12:02:44]Write to MH i2c: E2 08 00 B6 45 80 13 01 00 00 00 00 00 78 [12:02:44]Write i2c OK [12:02:44]MH_I2C_Read... [12:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:44]Read from MH i2c: E2 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 [12:02:44]MH_I2C_Read... [12:02:44]Read from MH i2c: E2 0E 00 B6 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CD [12:02:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:02:44]wFMCommunicate OK [12:02:44]SAM_PROTO_GetShiftState done [12:02:44]FM_GetShiftState done [12:02:44]req_shift_opened done [12:02:44]requested_item shift.open_date is exist - process it [12:02:44]req_shift_open_date [12:02:44]req_shift_open_date done [12:02:44]produce_requested_data done [12:02:44]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15707,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:02:44]process_action_free close_receipt [12:02:44]json_value_free [12:02:44]json_value_free done [12:02:44]process_json_proto returns [12:02:44]Send response to host [12:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15707,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:02:44]free response buf [12:02:44]execute_script done [12:02:44]execute_script returns [12:02:44]free content buf [12:02:44]Sock 8.Close socket [12:02:44]Sock 8.Thread stoped [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:36]ConnectInit Can't connect to host [12:08:38]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:39]accept exits with 9 [12:10:39]New connection [12:10:39]New thread 3066731876 created [12:10:39]Thread 3066588516 joined [12:10:39]Waiting for new connection... [12:10:39] Sock 9.Parse request [12:10:39]Sock 9.Check first char [12:10:39]Sock 9.First char is OK [12:10:39]request: POST /json_proto HTTP/1.0 [12:10:39]Method: POST [12:10:39]URL: /json_proto [12:10:39]Method is POST - this is cgi request [12:10:39]url: /json_proto [12:10:39]query_string will be loaded in cgi processing [12:10:39]execute_cgi json_proto POST (null) [12:10:39]execute_cgi path=json_proto method=POST [12:10:39]POST find Content-Length [12:10:39]Host: 172.17.54.195:8080 [12:10:39]Content-Length: 783 [12:10:39]Content-Type: application/json [12:10:39] [12:10:39]POST finish read [12:10:39]Found Content-Length = 783 [12:10:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:39]execute_script... [12:10: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)16257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:39]POST & json_proto [12:10:39]process_json_proto [12:10:39]json parsed OK: [12:10:39]protocol is kg_v1.0 [12:10:39]action value=close_receipt [12:10:39]process_action close_receipt [12:10:39]cmd_close_receipt [12:10:39]MH_GetDate [12:10:39]Write to MH i2c: F0 00 00 B7 45 EB [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 09 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: F0 09 00 B7 45 00 CA D0 20 67 8D 90 A3 66 3B [12:10:39]GetLastDocTimeStamp 1730203371 [12:10:39]current date 1730203850 [12:10:39]FM_GetShiftState [12:10:39]SAM_PROTO_GetShiftState [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 13 01 00 [12:10:39]Write to MH i2c: E2 08 00 B8 45 80 13 01 00 00 00 00 00 7A [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0E 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0E 00 B8 45 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CF [12:10:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:10:39]wFMCommunicate OK [12:10:39]SAM_PROTO_GetShiftState done [12:10:39]FM_GetShiftState done [12:10:39]opened in 1730161559 [12:10:39]opened+sec_in_day 1730247959 [12:10:39]quantity*price = 30038 [12:10:39]sum+1 = 30039 [12:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 54 29.10.2024 12:10 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15708 ФПД: 126210803914092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121050&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15708&fm=126210803914092&tin=02508201610067®Number=0000000000161798&sum=30000 [12:10:40]StoreToDocumentArchive [12:10:40]shift 172 fd 15708 [12:10:40]save to /storage/0172/doc_00015708 [12:10:40]save last doc name /storage/0172/doc_00015708 to /storage/kkm_last_doc_name [12:10:40]save OK [12:10:40]Clear old archive folders... [12:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:40]tlvbuf is B6F22520 [12:10:40]SAM_PROTO_ClearQueue [12:10:40]wFMCommunicate request_size=4 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 09 00 00 [12:10:40]Write to MH i2c: E2 08 00 C5 45 80 09 00 00 00 00 00 00 7C [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [12:10:40]RAPDU: 90 00 [12:10:40]wFMCommunicate OK [12:10:40]SAM_PROTO_ClearQueue done [12:10:40]KKMCreateOFDPacket [12:10:40]OFDProtocolAddRootSTLVToBuf [12:10:40]FM_MakeSignedData [12:10:40]FM_MakeSignedData [12:10:40]SAM_PROTO_SignData [12:10:40]wFMCommunicate request_size=4 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 0D 01 02 [12:10:40]Write to MH i2c: E2 08 00 C6 45 80 0D 01 02 00 00 00 00 84 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [12:10:40]RAPDU: 90 00 [12:10:40]wFMCommunicate OK [12:10:40]wFMCommunicate request_size=255 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CA D0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5C 3D 00 00 35 04 06 00 72 [12:10:40]Write to MH i2c: E2 02 01 C7 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CA D0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5C 3D 00 00 35 04 06 00 72 00 00 18 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 C7 45 00 90 00 80 [12:10:40]RAPDU: 90 00 [12:10:40]wFMCommunicate OK [12:10:40]wFMCommunicate request_size=10 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 0D 02 02 05 C9 BE 22 55 6C [12:10:40]Write to MH i2c: E2 0D 00 C8 45 80 0D 02 02 05 00 C9 BE 22 55 6C 00 00 FB [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 03 00 C8 45 00 90 00 81 [12:10:40]RAPDU: 90 00 [12:10:40]wFMCommunicate OK [12:10:40]wFMCommunicate request_size=4 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 0D 03 02 [12:10:40]Write to MH i2c: E2 08 00 C9 45 80 0D 03 02 00 00 00 00 89 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 0B 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 0B 00 C9 45 00 29 49 42 56 1D 62 F9 66 90 00 72 [12:10:40]RAPDU: 29 49 42 56 1D 62 F9 66 90 00 [12:10:40]wFMCommunicate OK [12:10:40]SAM_PROTO_SignData done [12:10:40]FM_MakeSignedData done [12:10:40]CreateOFDProtocolMessage [12:10:40]wFMCommunicate request_size=4 [12:10:40]MH_SAM_APDU [12:10:40]CAPDU: 80 11 00 00 [12:10:40]Write to MH i2c: E2 08 00 CA 45 80 11 00 00 00 00 00 00 89 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:40]Read from MH i2c: E2 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 17 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: E2 17 00 CA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D8 [12:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:10:40]wFMCommunicate OK [12:10:40]CreateOFDProtocolMessage done [12:10:40]OFDSenderStorePacket 15708 [12:10:40]StoreOFDPacket docnum=15708 [12:10:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B3 AA 07 01 8E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CA D0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5C 3D 00 00 35 04 06 00 72 C9 BE 22 55 6C 29 49 42 56 1D 62 F9 66 [12:10:40]CheckFolder [12:10:40]dirname=/storage/ofd_packets [12:10:40]CheckFolder done [12:10:40]ProducePacketName [12:10:40]name=ofd_packets/00015708 [12:10:40]NVStorageSaveData ofd_packets/00015708 [12:10:40]File name is /storage/ofd_packets/00015708 [12:10:40]Write 301 bytes [12:10:40]NVStorageSaveData done [12:10:40]OFDSenderStorePacket done [12:10:40]KKMCreateOFDPacket done [12:10:40]NVStorageSaveData kkm_last_timestamp [12:10:40]File name is /storage/kkm_last_timestamp [12:10:40]Write 4 bytes [12:10:40]NVStorageSaveData done [12:10:40]ExternCall_PrintAddStr [12:10:40]wPrintStart [12:10:40]Write to MH i2c: 01 00 00 CB 45 10 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 07 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 07 00 CB 45 00 00 00 00 00 FF 0F 25 [12:10:40]RasterBufferAndPrint [12:10:40]line Счет N : (1)16257 [12:10:40]line ИНН: 02508201610067 [12:10:40]line Контрольно-Кассовый Чек [12:10:40]line ПРОДАЖА [12:10:40]line ТРК (МРК, ГНК) : 21 [12:10:40]line Товар: 2710124130 [12:10:40]line Аи-92-К-5 [12:10:40]line 4.490 * 66.90 [12:10:40]line = 300.38 [12:10:40]line НДС 12% НСП 1% [12:10:40]line > о реализуемом товаре [12:10:40]line ОКРУГЛЕНИЕ: -0.38 [12:10:40]line ИТОГО: 300.00 [12:10:40]line НСП 1% : 2.66 [12:10:40]line НДС 12% : 31.90 [12:10:40]line Наличными: 0.00 [12:10:40]line Безнал.: 300.00 [12:10:40]line Место: АЗС № 178 "Партнер Нефть" [12:10:40]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:10:40]line СНО: Общий режим [12:10:40]line Чек 54 29.10.2024 12:10 [12:10:40]line Смена: 172 ФФД: 1.0 [12:10:40]line ЗНМ: 0300000014 [12:10:40]line РНМ: 0000000000161798 [12:10:40]line Версия ККМ: v1.0 [12:10:40]line Платежная система: Mbank [12:10:40]line ФМ: 0000000000963325 [12:10:40]line ФД: 15708 [12:10:40]line ФПД: 126210803914092 [12:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T121050&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15708&fm=126210803914092&tin=02508201610067®Number=0000000000161798&sum=30000 [12:10:41]OFD Sender: Processing packet 15708 [packets to send 4, broken 3] [12:10:41]ProducePacketName [12:10:41]name=ofd_packets/00015708 [12:10:41]OFD Sender: To server: pG, [12:10:41]CommunicateWithHost lk.salyk.kg:30040 [12:10:41]ConnectInit lk.salyk.kg [12:10:41]written 0, free lines is 4095 [12:10:41]Connected sock=11 [12:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B3 AA 07 01 8E 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 CA D0 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5C 3D 00 00 35 04 06 00 72 C9 BE 22 55 6C 29 49 42 56 1D 62 F9 66 [12:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 82 F7 47 00 BE 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5C 3D 00 00 F4 03 04 00 B7 7B 20 67 B6 04 01 00 00 70 0D 08 17 7C 88 B4 B9 [12:10:41]CommunicateWithHost err = 0 [12:10:41]CheckOFDResponse [12:10:41]1017 (14) - 77093643461234 [12:10:41]1041 (16) - 0000000000963325 [12:10:41]1040 (4) - 15708 [12:10:41]1012 (4) - 29.10.2024 06:07 [12:10:41]1206 (1) - 0 [12:10:41]OFD Sender: Remove packet 15708 [12:10:41]ProducePacketName [12:10:41]name=ofd_packets/00015708 [12:10:41]NVStorageDeleteData [12:10:41]Write to MH i2c: 01 00 00 F5 45 3A [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 07 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: 01 07 00 F5 45 00 00 00 00 00 0C 0D 5A [12:10:41]RasterBufferAndPrint [12:10:41]line [12:10:41]line [12:10:41]line [12:10:41]line [12:10:41]line [12:10:41]written 0, free lines is 3346 [12:10:41]MH_Cut [12:10:41]Write to MH i2c: D1 01 00 FC 45 01 13 [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: D1 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: D1 01 00 [12:10:41]MH_I2C_Read... [12:10:41]Read from MH i2c: D1 01 00 FC 45 00 12 [12:10:41]Write to MH i2c: 01 00 00 FD 45 42 [12:10:41]Write i2c OK [12:10:41]MH_I2C_Read... [12:10:41]OFD Sender: No OFD packet to send [12:10:42]*** Cut start [12:10:42]*** Partial cut [12:10:42]*** CUTSNS_PIN = 1 [12:10:42]*** CUTSNS_PIN = 0 [12:10:42]*** Brake cut motor [12:10:42]Read from MH i2c: 01 [12:10:42]MH_I2C_Read... [12:10:42]*** Stop cut motor [12:10:42]*** Cut end [12:10:42]Read from MH i2c: 01 07 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 FD 45 00 00 00 00 00 FF 0F 57 [12:10:42]process_action close_receipt done [12:10:42]requested_data is exist [12:10:42]produce_requested_data [12:10:42]requested_item fm.sn is exist - process it [12:10:42]wFMCommunicate request_size=4 [12:10:42]MH_SAM_APDU [12:10:42]CAPDU: 80 11 00 00 [12:10:42]Write to MH i2c: E2 08 00 FE 45 80 11 00 00 00 00 00 00 BD [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 17 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 17 00 FE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0C [12:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:10:43]wFMCommunicate OK [12:10:43]requested_item fd.num is exist - process it [12:10:43]SAM_PROTO_GetFieldsCounters [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 13 00 00 [12:10:43]Write to MH i2c: E2 08 00 FF 45 80 13 00 00 00 00 00 00 C0 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 62 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 62 00 FF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5C 3D 00 00 0E 04 04 00 AC 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 CB [12:10:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5C 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_GetFieldsCounters done [12:10:43]requested_item shift.num is exist - process it [12:10:43]requested_item shift.opened is exist - process it [12:10:43]req_shift_opened [12:10:43]FM_GetShiftState [12:10:43]SAM_PROTO_GetShiftState [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 13 01 00 [12:10:43]Write to MH i2c: E2 08 00 00 46 80 13 01 00 00 00 00 00 C3 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0E 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 0E 00 00 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 18 [12:10:43]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_GetShiftState done [12:10:43]FM_GetShiftState done [12:10:43]req_shift_opened done [12:10:43]requested_item shift.open_date is exist - process it [12:10:43]req_shift_open_date [12:10:43]req_shift_open_date done [12:10:43]produce_requested_data done [12:10:43]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15708,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:10:43]process_action_free close_receipt [12:10:43]json_value_free [12:10:43]json_value_free done [12:10:43]process_json_proto returns [12:10:43]Send response to host [12:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15708,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:10:43]free response buf [12:10:43]execute_script done [12:10:43]execute_script returns [12:10:43]free content buf [12:10:43]Sock 9.Close socket [12:10:43]Sock 9.Thread stoped [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:00]ConnectInit Can't connect to host [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:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32: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:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:26]accept exits with 10 [12:34:26]New connection [12:34:26]New thread 3066588516 created [12:34:26]Thread 3066731876 joined [12:34:26]Waiting for new connection... [12:34:26] Sock 10.Parse request [12:34:26]Sock 10.Check first char [12:34:26]Sock 10.First char is OK [12:34:26]request: POST /json_proto HTTP/1.0 [12:34:26]Method: POST [12:34:26]URL: /json_proto [12:34:26]Method is POST - this is cgi request [12:34:26]url: /json_proto [12:34:26]query_string will be loaded in cgi processing [12:34:26]execute_cgi json_proto POST (null) [12:34:26]execute_cgi path=json_proto method=POST [12:34:26]POST find Content-Length [12:34:26]Host: 172.17.54.195:8080 [12:34:26]Content-Length: 784 [12:34:26]Content-Type: application/json [12:34:26] [12:34:26]POST finish read [12:34:26]Found Content-Length = 784 [12:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:26]execute_script... [12:34: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)16258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:26]POST & json_proto [12:34:26]process_json_proto [12:34:26]json parsed OK: [12:34:26]protocol is kg_v1.0 [12:34:26]action value=close_receipt [12:34:26]process_action close_receipt [12:34:26]cmd_close_receipt [12:34:26]MH_GetDate [12:34:26]Write to MH i2c: F0 00 00 01 46 36 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: F0 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: F0 09 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: F0 09 00 01 46 00 5D D6 20 67 8D 90 A3 66 1F [12:34:26]GetLastDocTimeStamp 1730203850 [12:34:26]current date 1730205277 [12:34:26]FM_GetShiftState [12:34:26]SAM_PROTO_GetShiftState [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 13 01 00 [12:34:26]Write to MH i2c: E2 08 00 02 46 80 13 01 00 00 00 00 00 C5 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0E 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 0E 00 02 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 1A [12:34:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:34:26]wFMCommunicate OK [12:34:26]SAM_PROTO_GetShiftState done [12:34:26]FM_GetShiftState done [12:34:26]opened in 1730161559 [12:34:26]opened+sec_in_day 1730247959 [12:34:26]quantity*price = 200025 [12:34:26]sum+1 = 200026 [12:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 55 29.10.2024 12:34 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15709 ФПД: 105774855190541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123437&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15709&fm=105774855190541&tin=02508201610067®Number=0000000000161798&sum=200000 [12:34:27]StoreToDocumentArchive [12:34:27]shift 172 fd 15709 [12:34:27]save to /storage/0172/doc_00015709 [12:34:27]save last doc name /storage/0172/doc_00015709 to /storage/kkm_last_doc_name [12:34:27]save OK [12:34:27]Clear old archive folders... [12:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:34:27]tlvbuf is B6D72760 [12:34:27]SAM_PROTO_ClearQueue [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 09 00 00 [12:34:27]Write to MH i2c: E2 08 00 0F 46 80 09 00 00 00 00 00 00 C7 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 0F 46 00 90 00 C9 [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]SAM_PROTO_ClearQueue done [12:34:27]KKMCreateOFDPacket [12:34:27]OFDProtocolAddRootSTLVToBuf [12:34:27]FM_MakeSignedData [12:34:27]FM_MakeSignedData [12:34:27]SAM_PROTO_SignData [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 01 02 [12:34:27]Write to MH i2c: E2 08 00 10 46 80 0D 01 02 00 00 00 00 CF [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]wFMCommunicate request_size=255 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 5D D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5D 3D 00 00 35 04 06 00 60 33 A0 AB [12:34:27]Write to MH i2c: E2 02 01 11 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 5D D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5D 3D 00 00 35 04 06 00 60 33 A0 AB 00 00 5A [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 11 46 00 90 00 CB [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]wFMCommunicate request_size=7 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 02 02 02 78 0D [12:34:27]Write to MH i2c: E2 0A 00 12 46 80 0D 02 02 02 00 78 0D 00 00 5B [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 12 46 00 90 00 CC [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 03 02 [12:34:27]Write to MH i2c: E2 08 00 13 46 80 0D 03 02 00 00 00 00 D4 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0B 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 0B 00 13 46 00 AC 2A 00 5F 1D 2B A2 E5 90 00 D9 [12:34:28]RAPDU: AC 2A 00 5F 1D 2B A2 E5 90 00 [12:34:28]wFMCommunicate OK [12:34:28]SAM_PROTO_SignData done [12:34:28]FM_MakeSignedData done [12:34:28]CreateOFDProtocolMessage [12:34:28]wFMCommunicate request_size=4 [12:34:28]MH_SAM_APDU [12:34:28]CAPDU: 80 11 00 00 [12:34:28]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]OFD Sender: No OFD packet to send [12:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:28]Read from MH i2c: E2 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 17 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 23 [12:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:34:28]wFMCommunicate OK [12:34:28]CreateOFDProtocolMessage done [12:34:28]OFDSenderStorePacket 15709 [12:34:28]StoreOFDPacket docnum=15709 [12:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F2 0C 04 01 6A AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 5D D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5D 3D 00 00 35 04 06 00 60 33 A0 AB 78 0D AC 2A 00 5F 1D 2B A2 E5 [12:34:28]CheckFolder [12:34:28]dirname=/storage/ofd_packets [12:34:28]CheckFolder done [12:34:28]ProducePacketName [12:34:28]name=ofd_packets/00015709 [12:34:28]NVStorageSaveData ofd_packets/00015709 [12:34:28]File name is /storage/ofd_packets/00015709 [12:34:28]Write 298 bytes [12:34:28]NVStorageSaveData done [12:34:28]OFDSenderStorePacket done [12:34:28]KKMCreateOFDPacket done [12:34:28]NVStorageSaveData kkm_last_timestamp [12:34:28]File name is /storage/kkm_last_timestamp [12:34:28]Write 4 bytes [12:34:28]NVStorageSaveData done [12:34:28]ExternCall_PrintAddStr [12:34:28]wPrintStart [12:34:28]Write to MH i2c: 01 00 00 15 46 5B [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 15 46 00 00 00 00 00 FF 0F 70 [12:34:28]RasterBufferAndPrint [12:34:28]line Счет N : (1)16258 [12:34:28]line ИНН: 02508201610067 [12:34:28]line Контрольно-Кассовый Чек [12:34:28]line ПРОДАЖА [12:34:28]line ТРК (МРК, ГНК) : 22 [12:34:28]line Товар: 2710194210 [12:34:28]line ДТ-К-5 [12:34:28]line 26.250 * 76.20 [12:34:28]line = 2000.25 [12:34:28]line НДС 12% НСП 1% [12:34:28]line > о реализуемом товаре [12:34:28]line ОКРУГЛЕНИЕ: -0.25 [12:34:28]line ИТОГО: 2000.00 [12:34:28]line НСП 1% : 17.70 [12:34:28]line НДС 12% : 212.42 [12:34:28]line Наличными: 0.00 [12:34:28]line Безнал.: 2000.00 [12:34:28]line Место: АЗС № 178 "Партнер Нефть" [12:34:28]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:34:28]line СНО: Общий режим [12:34:28]line Чек 55 29.10.2024 12:34 [12:34:28]line Смена: 172 ФФД: 1.0 [12:34:28]line ЗНМ: 0300000014 [12:34:28]line РНМ: 0000000000161798 [12:34:28]line Версия ККМ: v1.0 [12:34:28]line Платежная система: Mbank [12:34:28]line ФМ: 0000000000963325 [12:34:28]line ФД: 15709 [12:34:28]line ФПД: 105774855190541 [12:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123437&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15709&fm=105774855190541&tin=02508201610067®Number=0000000000161798&sum=200000 [12:34:28]OFD Sender: Processing packet 15709 [packets to send 4, broken 3] [12:34:28]ProducePacketName [12:34:28]name=ofd_packets/00015709 [12:34:28]OFD Sender: To server: pG, [12:34:28]CommunicateWithHost lk.salyk.kg:30040 [12:34:28]ConnectInit lk.salyk.kg [12:34:28]written 0, free lines is 4095 [12:34:28]Connected sock=9 [12:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 F2 0C 04 01 6A AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 5D D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5D 3D 00 00 35 04 06 00 60 33 A0 AB 78 0D AC 2A 00 5F 1D 2B A2 E5 [12:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 93 3D 47 00 4A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5D 3D 00 00 F4 03 04 00 4A 81 20 67 B6 04 01 00 00 17 2F B3 ED 1B 33 62 B4 [12:34:28]CommunicateWithHost err = 0 [12:34:28]CheckOFDResponse [12:34:28]1017 (14) - 77093643461234 [12:34:28]1041 (16) - 0000000000963325 [12:34:28]1040 (4) - 15709 [12:34:28]1012 (4) - 29.10.2024 06:31 [12:34:28]1206 (1) - 0 [12:34:28]OFD Sender: Remove packet 15709 [12:34:28]ProducePacketName [12:34:28]name=ofd_packets/00015709 [12:34:28]NVStorageDeleteData [12:34:28]Write to MH i2c: 01 00 00 3F 46 85 [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 3F 46 00 00 00 00 00 0B 0D A4 [12:34:28]RasterBufferAndPrint [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]written 0, free lines is 3345 [12:34:28]MH_Cut [12:34:28]Write to MH i2c: D1 01 00 46 46 01 5E [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 01 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 01 00 46 46 00 5D [12:34:28]Write to MH i2c: 01 00 00 47 46 8D [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:29]OFD Sender: No OFD packet to send [12:34:29]*** Cut start [12:34:29]*** Partial cut [12:34:29]*** CUTSNS_PIN = 1 [12:34:29]*** CUTSNS_PIN = 0 [12:34:29]*** Brake cut motor [12:34:30]Read from MH i2c: 01 [12:34:30]MH_I2C_Read... [12:34:30]*** Stop cut motor [12:34:30]*** Cut end [12:34:30]Read from MH i2c: 01 07 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: 01 07 00 47 46 00 00 00 00 00 FF 0F A2 [12:34:30]process_action close_receipt done [12:34:30]requested_data is exist [12:34:30]produce_requested_data [12:34:30]requested_item fm.sn is exist - process it [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 11 00 00 [12:34:30]Write to MH i2c: E2 08 00 48 46 80 11 00 00 00 00 00 00 08 [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 17 00 48 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 57 [12:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:34:30]wFMCommunicate OK [12:34:30]requested_item fd.num is exist - process it [12:34:30]SAM_PROTO_GetFieldsCounters [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 13 00 00 [12:34:30]Write to MH i2c: E2 08 00 49 46 80 13 00 00 00 00 00 00 0B [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 62 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 62 00 49 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5D 3D 00 00 0E 04 04 00 AC 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 1A [12:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5D 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:30]wFMCommunicate OK [12:34:30]SAM_PROTO_GetFieldsCounters done [12:34:30]requested_item shift.num is exist - process it [12:34:30]requested_item shift.opened is exist - process it [12:34:30]req_shift_opened [12:34:30]FM_GetShiftState [12:34:30]SAM_PROTO_GetShiftState [12:34:30]wFMCommunicate request_size=4 [12:34:30]MH_SAM_APDU [12:34:30]CAPDU: 80 13 01 00 [12:34:30]Write to MH i2c: E2 08 00 4A 46 80 13 01 00 00 00 00 00 0D [12:34:30]Write i2c OK [12:34:30]MH_I2C_Read... [12:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:30]Read from MH i2c: E2 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0E 00 [12:34:30]MH_I2C_Read... [12:34:30]Read from MH i2c: E2 0E 00 4A 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 62 [12:34:30]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:34:30]wFMCommunicate OK [12:34:30]SAM_PROTO_GetShiftState done [12:34:30]FM_GetShiftState done [12:34:30]req_shift_opened done [12:34:30]requested_item shift.open_date is exist - process it [12:34:30]req_shift_open_date [12:34:30]req_shift_open_date done [12:34:30]produce_requested_data done [12:34:30]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15709,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:34:30]process_action_free close_receipt [12:34:30]json_value_free [12:34:30]json_value_free done [12:34:30]process_json_proto returns [12:34:30]Send response to host [12:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15709,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:34:30]free response buf [12:34:30]execute_script done [12:34:30]execute_script returns [12:34:30]free content buf [12:34:30]Sock 10.Close socket [12:34:30]Sock 10.Thread stoped [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:23]accept exits with 8 [12:35:23]New connection [12:35:23]New thread 3066731876 created [12:35:23]Thread 3066588516 joined [12:35:23]Waiting for new connection... [12:35:23] Sock 8.Parse request [12:35:23]Sock 8.Check first char [12:35:23]Sock 8.First char is OK [12:35:23]request: POST /json_proto HTTP/1.0 [12:35:23]Method: POST [12:35:23]URL: /json_proto [12:35:23]Method is POST - this is cgi request [12:35:23]url: /json_proto [12:35:23]query_string will be loaded in cgi processing [12:35:23]execute_cgi json_proto POST (null) [12:35:23]execute_cgi path=json_proto method=POST [12:35:23]POST find Content-Length [12:35:23]Host: 172.17.54.195:8080 [12:35:23]Content-Length: 780 [12:35:23]Content-Type: application/json [12:35:23] [12:35:23]POST finish read [12:35:23]Found Content-Length = 780 [12:35:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: Mbank", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:23]execute_script... [12:35: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)16259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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: Mbank", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:23]POST & json_proto [12:35:23]process_json_proto [12:35:23]json parsed OK: [12:35:23]protocol is kg_v1.0 [12:35:23]action value=close_receipt [12:35:23]process_action close_receipt [12:35:23]cmd_close_receipt [12:35:23]MH_GetDate [12:35:23]Write to MH i2c: F0 00 00 4B 46 80 [12:35:23]Write i2c OK [12:35:23]MH_I2C_Read... [12:35:23]Read from MH i2c: F0 [12:35:23]MH_I2C_Read... [12:35:23]Read from MH i2c: F0 09 00 [12:35:23]MH_I2C_Read... [12:35:23]Read from MH i2c: F0 09 00 4B 46 00 96 D6 20 67 8D 90 A3 66 A2 [12:35:23]GetLastDocTimeStamp 1730205277 [12:35:23]current date 1730205334 [12:35:23]FM_GetShiftState [12:35:23]SAM_PROTO_GetShiftState [12:35:23]wFMCommunicate request_size=4 [12:35:23]MH_SAM_APDU [12:35:23]CAPDU: 80 13 01 00 [12:35:23]Write to MH i2c: E2 08 00 4C 46 80 13 01 00 00 00 00 00 0F [12:35:23]Write i2c OK [12:35:23]MH_I2C_Read... [12:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:23]Read from MH i2c: E2 [12:35:23]MH_I2C_Read... [12:35:23]Read from MH i2c: E2 0E 00 [12:35:23]MH_I2C_Read... [12:35:23]Read from MH i2c: E2 0E 00 4C 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 64 [12:35:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:35:23]wFMCommunicate OK [12:35:23]SAM_PROTO_GetShiftState done [12:35:23]FM_GetShiftState done [12:35:23]opened in 1730161559 [12:35:23]opened+sec_in_day 1730247959 [12:35:23]quantity*price = 50063 [12:35:23]sum+1 = 50064 [12:35:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 56 29.10.2024 12:35 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15710 ФПД: 230316598123289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123534&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15710&fm=230316598123289&tin=02508201610067®Number=0000000000161798&sum=50000 [12:35:24]StoreToDocumentArchive [12:35:24]shift 172 fd 15710 [12:35:24]save to /storage/0172/doc_00015710 [12:35:24]save last doc name /storage/0172/doc_00015710 to /storage/kkm_last_doc_name [12:35:24]save OK [12:35:24]Clear old archive folders... [12:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:24]tlvbuf is 002E34A0 [12:35:24]SAM_PROTO_ClearQueue [12:35:24]wFMCommunicate request_size=4 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 09 00 00 [12:35:24]Write to MH i2c: E2 08 00 59 46 80 09 00 00 00 00 00 00 11 [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 59 46 00 90 00 13 [12:35:24]RAPDU: 90 00 [12:35:24]wFMCommunicate OK [12:35:24]SAM_PROTO_ClearQueue done [12:35:24]KKMCreateOFDPacket [12:35:24]OFDProtocolAddRootSTLVToBuf [12:35:24]FM_MakeSignedData [12:35:24]FM_MakeSignedData [12:35:24]SAM_PROTO_SignData [12:35:24]wFMCommunicate request_size=4 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 0D 01 02 [12:35:24]Write to MH i2c: E2 08 00 5A 46 80 0D 01 02 00 00 00 00 19 [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]OFD Sender: No OFD packet to send [12:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 5A 46 00 90 00 14 [12:35:24]RAPDU: 90 00 [12:35:24]wFMCommunicate OK [12:35:24]wFMCommunicate request_size=255 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 96 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5E 3D 00 00 35 04 06 00 D1 78 C3 04 [12:35:24]Write to MH i2c: E2 02 01 5B 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 96 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5E 3D 00 00 35 04 06 00 D1 78 C3 04 00 00 AB [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 5B 46 00 90 00 15 [12:35:24]RAPDU: 90 00 [12:35:24]wFMCommunicate OK [12:35:24]wFMCommunicate request_size=7 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 0D 02 02 02 5B 19 [12:35:24]Write to MH i2c: E2 0A 00 5C 46 80 0D 02 02 02 00 5B 19 00 00 94 [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 03 00 5C 46 00 90 00 16 [12:35:24]RAPDU: 90 00 [12:35:24]wFMCommunicate OK [12:35:24]wFMCommunicate request_size=4 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 0D 03 02 [12:35:24]Write to MH i2c: E2 08 00 5D 46 80 0D 03 02 00 00 00 00 1E [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 0B 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 0B 00 5D 46 00 EB 61 83 22 CC 35 72 3F 90 00 C2 [12:35:24]RAPDU: EB 61 83 22 CC 35 72 3F 90 00 [12:35:24]wFMCommunicate OK [12:35:24]SAM_PROTO_SignData done [12:35:24]FM_MakeSignedData done [12:35:24]CreateOFDProtocolMessage [12:35:24]wFMCommunicate request_size=4 [12:35:24]MH_SAM_APDU [12:35:24]CAPDU: 80 11 00 00 [12:35:24]Write to MH i2c: E2 08 00 5E 46 80 11 00 00 00 00 00 00 1E [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:24]Read from MH i2c: E2 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 17 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: E2 17 00 5E 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 6D [12:35:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:35:24]wFMCommunicate OK [12:35:24]CreateOFDProtocolMessage done [12:35:24]OFDSenderStorePacket 15710 [12:35:24]StoreOFDPacket docnum=15710 [12:35:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 7B A8 04 01 63 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 96 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5E 3D 00 00 35 04 06 00 D1 78 C3 04 5B 19 EB 61 83 22 CC 35 72 3F [12:35:24]CheckFolder [12:35:24]dirname=/storage/ofd_packets [12:35:24]CheckFolder done [12:35:24]ProducePacketName [12:35:24]name=ofd_packets/00015710 [12:35:24]NVStorageSaveData ofd_packets/00015710 [12:35:24]File name is /storage/ofd_packets/00015710 [12:35:24]Write 298 bytes [12:35:24]NVStorageSaveData done [12:35:24]OFDSenderStorePacket done [12:35:24]KKMCreateOFDPacket done [12:35:24]NVStorageSaveData kkm_last_timestamp [12:35:24]File name is /storage/kkm_last_timestamp [12:35:24]Write 4 bytes [12:35:24]NVStorageSaveData done [12:35:24]ExternCall_PrintAddStr [12:35:24]wPrintStart [12:35:24]Write to MH i2c: 01 00 00 5F 46 A5 [12:35:24]Write i2c OK [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: 01 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: 01 07 00 [12:35:24]MH_I2C_Read... [12:35:24]Read from MH i2c: 01 07 00 5F 46 00 00 00 00 00 FF 0F BA [12:35:24]RasterBufferAndPrint [12:35:24]line Счет N : (1)16259 [12:35:24]line ИНН: 02508201610067 [12:35:24]line Контрольно-Кассовый Чек [12:35:24]line ПРОДАЖА [12:35:24]line ТРК (МРК, ГНК) : 22 [12:35:24]line Товар: 2710194210 [12:35:24]line ДТ-К-5 [12:35:24]line 6.570 * 76.20 [12:35:24]line = 500.63 [12:35:24]line НДС 12% НСП 1% [12:35:24]line > о реализуемом товаре [12:35:24]line ОКРУГЛЕНИЕ: -0.63 [12:35:24]line ИТОГО: 500.00 [12:35:24]line НСП 1% : 4.43 [12:35:24]line НДС 12% : 53.16 [12:35:24]line Наличными: 0.00 [12:35:24]line Безнал.: 500.00 [12:35:24]line Место: АЗС № 178 "Партнер Нефть" [12:35:24]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:35:24]line СНО: Общий режим [12:35:24]line Чек 56 29.10.2024 12:35 [12:35:24]line Смена: 172 ФФД: 1.0 [12:35:24]line ЗНМ: 0300000014 [12:35:24]line РНМ: 0000000000161798 [12:35:24]line Версия ККМ: v1.0 [12:35:24]line Платежная система: Mbank [12:35:24]line ФМ: 0000000000963325 [12:35:24]line ФД: 15710 [12:35:24]line ФПД: 230316598123289 [12:35:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123534&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15710&fm=230316598123289&tin=02508201610067®Number=0000000000161798&sum=50000 [12:35:25]OFD Sender: Processing packet 15710 [packets to send 4, broken 3] [12:35:25]ProducePacketName [12:35:25]name=ofd_packets/00015710 [12:35:25]OFD Sender: To server: pG, [12:35:25]CommunicateWithHost lk.salyk.kg:30040 [12:35:25]ConnectInit lk.salyk.kg [12:35:25]written 0, free lines is 4095 [12:35:25]Connected sock=10 [12:35:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 7B A8 04 01 63 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 96 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5E 3D 00 00 35 04 06 00 D1 78 C3 04 5B 19 EB 61 83 22 CC 35 72 3F [12:35:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 84 4C 47 00 1A E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5E 3D 00 00 F4 03 04 00 83 81 20 67 B6 04 01 00 00 92 7A 0D 6F C8 FA F3 B6 [12:35:25]CommunicateWithHost err = 0 [12:35:25]CheckOFDResponse [12:35:25]1017 (14) - 77093643461234 [12:35:25]1041 (16) - 0000000000963325 [12:35:25]1040 (4) - 15710 [12:35:25]1012 (4) - 29.10.2024 06:32 [12:35:25]1206 (1) - 0 [12:35:25]OFD Sender: Remove packet 15710 [12:35:25]ProducePacketName [12:35:25]name=ofd_packets/00015710 [12:35:25]NVStorageDeleteData [12:35:25]Write to MH i2c: 01 00 00 89 46 CF [12:35:25]Write i2c OK [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: 01 [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: 01 07 00 [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: 01 07 00 89 46 00 00 00 00 00 04 0D E7 [12:35:25]RasterBufferAndPrint [12:35:25]line [12:35:25]line [12:35:25]line [12:35:25]line [12:35:25]line [12:35:25]written 0, free lines is 3341 [12:35:25]MH_Cut [12:35:25]Write to MH i2c: D1 01 00 90 46 01 A8 [12:35:25]Write i2c OK [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: D1 [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: D1 01 00 [12:35:25]MH_I2C_Read... [12:35:25]Read from MH i2c: D1 01 00 90 46 00 A7 [12:35:25]Write to MH i2c: 01 00 00 91 46 D7 [12:35:25]Write i2c OK [12:35:25]MH_I2C_Read... [12:35:25]OFD Sender: No OFD packet to send [12:35:26]*** Cut start [12:35:26]*** Partial cut [12:35:26]*** CUTSNS_PIN = 1 [12:35:26]*** CUTSNS_PIN = 0 [12:35:26]*** Brake cut motor [12:35:26]Read from MH i2c: 01 [12:35:26]MH_I2C_Read... [12:35:26]*** Stop cut motor [12:35:26]*** Cut end [12:35:26]Read from MH i2c: 01 07 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: 01 07 00 91 46 00 00 00 00 00 FF 0F EC [12:35:26]process_action close_receipt done [12:35:26]requested_data is exist [12:35:26]produce_requested_data [12:35:26]requested_item fm.sn is exist - process it [12:35:26]wFMCommunicate request_size=4 [12:35:26]MH_SAM_APDU [12:35:26]CAPDU: 80 11 00 00 [12:35:26]Write to MH i2c: E2 08 00 92 46 80 11 00 00 00 00 00 00 52 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:26]Read from MH i2c: E2 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 17 00 [12:35:26]MH_I2C_Read... [12:35:26]Read from MH i2c: E2 17 00 92 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A1 [12:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:35:26]wFMCommunicate OK [12:35:26]requested_item fd.num is exist - process it [12:35:26]SAM_PROTO_GetFieldsCounters [12:35:26]wFMCommunicate request_size=4 [12:35:26]MH_SAM_APDU [12:35:26]CAPDU: 80 13 00 00 [12:35:26]Write to MH i2c: E2 08 00 93 46 80 13 00 00 00 00 00 00 55 [12:35:26]Write i2c OK [12:35:26]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 62 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 62 00 93 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5E 3D 00 00 0E 04 04 00 AC 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 68 [12:35:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5E 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_GetFieldsCounters done [12:35:27]requested_item shift.num is exist - process it [12:35:27]requested_item shift.opened is exist - process it [12:35:27]req_shift_opened [12:35:27]FM_GetShiftState [12:35:27]SAM_PROTO_GetShiftState [12:35:27]wFMCommunicate request_size=4 [12:35:27]MH_SAM_APDU [12:35:27]CAPDU: 80 13 01 00 [12:35:27]Write to MH i2c: E2 08 00 94 46 80 13 01 00 00 00 00 00 57 [12:35:27]Write i2c OK [12:35:27]MH_I2C_Read... [12:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:27]Read from MH i2c: E2 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0E 00 [12:35:27]MH_I2C_Read... [12:35:27]Read from MH i2c: E2 0E 00 94 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AC [12:35:27]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:35:27]wFMCommunicate OK [12:35:27]SAM_PROTO_GetShiftState done [12:35:27]FM_GetShiftState done [12:35:27]req_shift_opened done [12:35:27]requested_item shift.open_date is exist - process it [12:35:27]req_shift_open_date [12:35:27]req_shift_open_date done [12:35:27]produce_requested_data done [12:35:27]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15710,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:35:27]process_action_free close_receipt [12:35:27]json_value_free [12:35:27]json_value_free done [12:35:27]process_json_proto returns [12:35:27]Send response to host [12:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15710,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:35:27]free response buf [12:35:27]execute_script done [12:35:27]execute_script returns [12:35:27]free content buf [12:35:27]Sock 8.Close socket [12:35:27]Sock 8.Thread stoped [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:42]accept exits with 9 [12:36:42]New connection [12:36:42]New thread 3066588516 created [12:36:42]Thread 3066731876 joined [12:36:42]Waiting for new connection... [12:36:42] Sock 9.Parse request [12:36:42]Sock 9.Check first char [12:36:42]Sock 9.First char is OK [12:36:42]request: POST /json_proto HTTP/1.0 [12:36:42]Method: POST [12:36:42]URL: /json_proto [12:36:42]Method is POST - this is cgi request [12:36:42]url: /json_proto [12:36:42]query_string will be loaded in cgi processing [12:36:42]execute_cgi json_proto POST (null) [12:36:42]execute_cgi path=json_proto method=POST [12:36:42]POST find Content-Length [12:36:42]Host: 172.17.54.195:8080 [12:36:42]Content-Length: 676 [12:36:42]Content-Type: application/json [12:36:42] [12:36:42]POST finish read [12:36:42]Found Content-Length = 676 [12:36:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:36:42]execute_script... [12:36: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)16260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:36:42]POST & json_proto [12:36:42]process_json_proto [12:36:42]json parsed OK: [12:36:42]protocol is kg_v1.0 [12:36:42]action value=close_receipt [12:36:42]process_action close_receipt [12:36:42]cmd_close_receipt [12:36:42]MH_GetDate [12:36:42]Write to MH i2c: F0 00 00 95 46 CA [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: F0 09 00 95 46 00 E5 D6 20 67 8D 90 A3 66 3B [12:36:42]GetLastDocTimeStamp 1730205334 [12:36:42]current date 1730205413 [12:36:42]FM_GetShiftState [12:36:42]SAM_PROTO_GetShiftState [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 13 01 00 [12:36:42]Write to MH i2c: E2 08 00 96 46 80 13 01 00 00 00 00 00 59 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0E 00 96 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AE [12:36:42]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_GetShiftState done [12:36:42]FM_GetShiftState done [12:36:42]opened in 1730161559 [12:36:42]opened+sec_in_day 1730247959 [12:36:42]quantity*price = 30038 [12:36:42]sum+1 = 30039 [12:36:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 57 29.10.2024 12:36 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15711 ФПД: 54402779927006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123653&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15711&fm=54402779927006&tin=02508201610067®Number=0000000000161798&sum=30000 [12:36:44]StoreToDocumentArchive [12:36:44]shift 172 fd 15711 [12:36:44]save to /storage/0172/doc_00015711 [12:36:44]save last doc name /storage/0172/doc_00015711 to /storage/kkm_last_doc_name [12:36:44]save OK [12:36:44]Clear old archive folders... [12:36:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:44]tlvbuf is 002E39A0 [12:36:44]SAM_PROTO_ClearQueue [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 09 00 00 [12:36:44]Write to MH i2c: E2 08 00 A3 46 80 09 00 00 00 00 00 00 5B [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_ClearQueue done [12:36:44]KKMCreateOFDPacket [12:36:44]OFDProtocolAddRootSTLVToBuf [12:36:44]FM_MakeSignedData [12:36:44]FM_MakeSignedData [12:36:44]SAM_PROTO_SignData [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 01 02 [12:36:44]Write to MH i2c: E2 08 00 A4 46 80 0D 01 02 00 00 00 00 63 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=255 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 E5 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5F 3D 00 00 35 04 06 00 31 [12:36:44]Write to MH i2c: E2 02 01 A5 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 E5 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5F 3D 00 00 35 04 06 00 31 00 00 DD [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=10 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 02 02 05 7A A2 5F 51 DE [12:36:44]Write to MH i2c: E2 0D 00 A6 46 80 0D 02 02 05 00 7A A2 5F 51 DE 00 00 1A [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [12:36:44]RAPDU: 90 00 [12:36:44]wFMCommunicate OK [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 0D 03 02 [12:36:44]Write to MH i2c: E2 08 00 A7 46 80 0D 03 02 00 00 00 00 68 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0B 00 A7 46 00 05 23 FB CC C8 D3 B3 E4 90 00 8A [12:36:44]RAPDU: 05 23 FB CC C8 D3 B3 E4 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_SignData done [12:36:44]FM_MakeSignedData done [12:36:44]CreateOFDProtocolMessage [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 A8 46 80 11 00 00 00 00 00 00 68 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 A8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B7 [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:36:44]wFMCommunicate OK [12:36:44]CreateOFDProtocolMessage done [12:36:44]OFDSenderStorePacket 15711 [12:36:44]StoreOFDPacket docnum=15711 [12:36:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 63 07 07 01 40 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 E5 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5F 3D 00 00 35 04 06 00 31 7A A2 5F 51 DE 05 23 FB CC C8 D3 B3 E4 [12:36:44]CheckFolder [12:36:44]dirname=/storage/ofd_packets [12:36:44]CheckFolder done [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00015711 [12:36:44]NVStorageSaveData ofd_packets/00015711 [12:36:44]File name is /storage/ofd_packets/00015711 [12:36:44]Write 301 bytes [12:36:44]NVStorageSaveData done [12:36:44]OFDSenderStorePacket done [12:36:44]KKMCreateOFDPacket done [12:36:44]NVStorageSaveData kkm_last_timestamp [12:36:44]File name is /storage/kkm_last_timestamp [12:36:44]Write 4 bytes [12:36:44]NVStorageSaveData done [12:36:44]ExternCall_PrintAddStr [12:36:44]wPrintStart [12:36:44]Write to MH i2c: 01 00 00 A9 46 EF [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 A9 46 00 00 00 00 00 FF 0F 04 [12:36:44]RasterBufferAndPrint [12:36:44]line Счет N : (1)16260 [12:36:44]line ИНН: 02508201610067 [12:36:44]line Контрольно-Кассовый Чек [12:36:44]line ПРОДАЖА [12:36:44]line ТРК (МРК, ГНК) : 21 [12:36:44]line Товар: 2710124130 [12:36:44]line Аи-92-К-5 [12:36:44]line 4.490 * 66.90 [12:36:44]line = 300.38 [12:36:44]line НДС 12% НСП 1% [12:36:44]line > о реализуемом товаре [12:36:44]line ОКРУГЛЕНИЕ: -0.38 [12:36:44]line ИТОГО: 300.00 [12:36:44]line Внесено: 300.00 [12:36:44]line СДАЧА: 0.00 [12:36:44]line НСП 1% : 2.66 [12:36:44]line НДС 12% : 31.90 [12:36:44]line Наличными: 300.00 [12:36:44]line Безнал.: 0.00 [12:36:44]line Место: АЗС № 178 "Партнер Нефть" [12:36:44]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:36:44]line СНО: Общий режим [12:36:44]line Чек 57 29.10.2024 12:36 [12:36:44]line Смена: 172 ФФД: 1.0 [12:36:44]line ЗНМ: 0300000014 [12:36:44]line РНМ: 0000000000161798 [12:36:44]line Версия ККМ: v1.0 [12:36:44]line ФМ: 0000000000963325 [12:36:44]line ФД: 15711 [12:36:44]line ФПД: 54402779927006 [12:36:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123653&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15711&fm=54402779927006&tin=02508201610067®Number=0000000000161798&sum=30000 [12:36:44]OFD Sender: Processing packet 15711 [packets to send 4, broken 3] [12:36:44]ProducePacketName [12:36:44]name=ofd_packets/00015711 [12:36:44]OFD Sender: To server: pG, [12:36:44]CommunicateWithHost lk.salyk.kg:30040 [12:36:44]ConnectInit lk.salyk.kg [12:36:44]written 0, free lines is 4095 [12:36:44]Connected sock=10 [12:36:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 63 07 07 01 40 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 39 00 00 00 F4 03 04 00 E5 D6 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5F 3D 00 00 35 04 06 00 31 7A A2 5F 51 DE 05 23 FB CC C8 D3 B3 E4 [12:36:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5A 8F 47 00 C2 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 5F 3D 00 00 F4 03 04 00 D2 81 20 67 B6 04 01 00 00 78 23 24 00 83 A9 16 B6 [12:36:45]CommunicateWithHost err = 0 [12:36:45]CheckOFDResponse [12:36:45]1017 (14) - 77093643461234 [12:36:45]1041 (16) - 0000000000963325 [12:36:45]1040 (4) - 15711 [12:36:45]1012 (4) - 29.10.2024 06:33 [12:36:45]1206 (1) - 0 [12:36:45]OFD Sender: Remove packet 15711 [12:36:45]ProducePacketName [12:36:45]name=ofd_packets/00015711 [12:36:45]NVStorageDeleteData [12:36:45]Write to MH i2c: 01 00 00 D4 46 1A [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: 01 07 00 D4 46 00 00 00 00 00 F6 0C 23 [12:36:45]RasterBufferAndPrint [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]line [12:36:45]written 0, free lines is 3324 [12:36:45]MH_Cut [12:36:45]Write to MH i2c: D1 01 00 DB 46 01 F3 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 [12:36:45]MH_I2C_Read... [12:36:45]Read from MH i2c: D1 01 00 DB 46 00 F2 [12:36:45]Write to MH i2c: 01 00 00 DC 46 22 [12:36:45]Write i2c OK [12:36:45]MH_I2C_Read... [12:36:45]OFD Sender: No OFD packet to send [12:36:46]*** Cut start [12:36:46]*** Partial cut [12:36:46]*** CUTSNS_PIN = 1 [12:36:46]*** CUTSNS_PIN = 0 [12:36:46]*** Brake cut motor [12:36:46]Read from MH i2c: 01 [12:36:46]MH_I2C_Read... [12:36:46]*** Stop cut motor [12:36:46]*** Cut end [12:36:46]Read from MH i2c: 01 07 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: 01 07 00 DC 46 00 00 00 00 00 FF 0F 37 [12:36:46]process_action close_receipt done [12:36:46]requested_data is exist [12:36:46]produce_requested_data [12:36:46]requested_item fm.sn is exist - process it [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 11 00 00 [12:36:46]Write to MH i2c: E2 08 00 DD 46 80 11 00 00 00 00 00 00 9D [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 17 00 DD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 EC [12:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:36:46]wFMCommunicate OK [12:36:46]requested_item fd.num is exist - process it [12:36:46]SAM_PROTO_GetFieldsCounters [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 00 00 [12:36:46]Write to MH i2c: E2 08 00 DE 46 80 13 00 00 00 00 00 00 A0 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 62 00 DE 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5F 3D 00 00 0E 04 04 00 AC 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 B7 [12:36:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 5F 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetFieldsCounters done [12:36:46]requested_item shift.num is exist - process it [12:36:46]requested_item shift.opened is exist - process it [12:36:46]req_shift_opened [12:36:46]FM_GetShiftState [12:36:46]SAM_PROTO_GetShiftState [12:36:46]wFMCommunicate request_size=4 [12:36:46]MH_SAM_APDU [12:36:46]CAPDU: 80 13 01 00 [12:36:46]Write to MH i2c: E2 08 00 DF 46 80 13 01 00 00 00 00 00 A2 [12:36:46]Write i2c OK [12:36:46]MH_I2C_Read... [12:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:46]Read from MH i2c: E2 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 0E 00 [12:36:46]MH_I2C_Read... [12:36:46]Read from MH i2c: E2 0E 00 DF 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F7 [12:36:46]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:36:46]wFMCommunicate OK [12:36:46]SAM_PROTO_GetShiftState done [12:36:46]FM_GetShiftState done [12:36:46]req_shift_opened done [12:36:46]requested_item shift.open_date is exist - process it [12:36:46]req_shift_open_date [12:36:46]req_shift_open_date done [12:36:46]produce_requested_data done [12:36:46]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15711,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:36:46]process_action_free close_receipt [12:36:46]json_value_free [12:36:46]json_value_free done [12:36:46]process_json_proto returns [12:36:46]Send response to host [12:36:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15711,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:36:46]free response buf [12:36:46]execute_script done [12:36:46]execute_script returns [12:36:46]free content buf [12:36:46]Sock 9.Close socket [12:36:46]Sock 9.Thread stoped [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]accept exits with 8 [12:37:25]New connection [12:37:25]New thread 3066731876 created [12:37:25]Thread 3066588516 joined [12:37:25]Waiting for new connection... [12:37:25] Sock 8.Parse request [12:37:25]Sock 8.Check first char [12:37:25]Sock 8.First char is OK [12:37:25]request: POST /json_proto HTTP/1.0 [12:37:25]Method: POST [12:37:25]URL: /json_proto [12:37:25]Method is POST - this is cgi request [12:37:25]url: /json_proto [12:37:25]query_string will be loaded in cgi processing [12:37:25]execute_cgi json_proto POST (null) [12:37:25]execute_cgi path=json_proto method=POST [12:37:25]POST find Content-Length [12:37:25]Host: 172.17.54.195:8080 [12:37:25]Content-Length: 676 [12:37:25]Content-Type: application/json [12:37:25] [12:37:25]POST finish read [12:37:25]Found Content-Length = 676 [12:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:37:25]execute_script... [12:37: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)16261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:37:25]POST & json_proto [12:37:25]process_json_proto [12:37:25]json parsed OK: [12:37:25]protocol is kg_v1.0 [12:37:25]action value=close_receipt [12:37:25]process_action close_receipt [12:37:25]cmd_close_receipt [12:37:25]MH_GetDate [12:37:25]Write to MH i2c: F0 00 00 E0 46 15 [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: F0 09 00 E0 46 00 10 D7 20 67 8D 90 A3 66 B2 [12:37:25]GetLastDocTimeStamp 1730205413 [12:37:25]current date 1730205456 [12:37:25]FM_GetShiftState [12:37:25]SAM_PROTO_GetShiftState [12:37:25]wFMCommunicate request_size=4 [12:37:25]MH_SAM_APDU [12:37:25]CAPDU: 80 13 01 00 [12:37:25]Write to MH i2c: E2 08 00 E1 46 80 13 01 00 00 00 00 00 A4 [12:37:25]Write i2c OK [12:37:25]MH_I2C_Read... [12:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:25]Read from MH i2c: E2 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 [12:37:25]MH_I2C_Read... [12:37:25]Read from MH i2c: E2 0E 00 E1 46 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F9 [12:37:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:37:25]wFMCommunicate OK [12:37:25]SAM_PROTO_GetShiftState done [12:37:25]FM_GetShiftState done [12:37:25]opened in 1730161559 [12:37:25]opened+sec_in_day 1730247959 [12:37:25]quantity*price = 40006 [12:37:25]sum+1 = 40007 [12:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 58 29.10.2024 12:37 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15712 ФПД: 247088873551828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123736&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15712&fm=247088873551828&tin=02508201610067®Number=0000000000161798&sum=40000 [12:37:26]StoreToDocumentArchive [12:37:26]shift 172 fd 15712 [12:37:26]save to /storage/0172/doc_00015712 [12:37:26]save last doc name /storage/0172/doc_00015712 to /storage/kkm_last_doc_name [12:37:26]save OK [12:37:26]Clear old archive folders... [12:37:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:26]tlvbuf is 00321D50 [12:37:26]SAM_PROTO_ClearQueue [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 09 00 00 [12:37:26]Write to MH i2c: E2 08 00 EE 46 80 09 00 00 00 00 00 00 A6 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 EE 46 00 90 00 A8 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_ClearQueue done [12:37:26]KKMCreateOFDPacket [12:37:26]OFDProtocolAddRootSTLVToBuf [12:37:26]FM_MakeSignedData [12:37:26]FM_MakeSignedData [12:37:26]SAM_PROTO_SignData [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 01 02 [12:37:26]Write to MH i2c: E2 08 00 EF 46 80 0D 01 02 00 00 00 00 AE [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 EF 46 00 90 00 A9 [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=255 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 10 D7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 60 3D 00 00 35 04 06 00 E0 [12:37:26]Write to MH i2c: E2 02 01 F0 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3A 00 00 00 F4 03 04 00 10 D7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 60 3D 00 00 35 04 06 00 E0 00 00 E0 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=10 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 02 02 05 B9 DC 89 37 D4 [12:37:26]Write to MH i2c: E2 0D 00 F1 46 80 0D 02 02 05 00 B9 DC 89 37 D4 00 00 E4 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 03 00 F1 46 00 90 00 AB [12:37:26]RAPDU: 90 00 [12:37:26]wFMCommunicate OK [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 0D 03 02 [12:37:26]Write to MH i2c: E2 08 00 F2 46 80 0D 03 02 00 00 00 00 B3 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 0B 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 0B 00 F2 46 00 47 44 71 62 92 0A 40 5C 90 00 4A [12:37:26]RAPDU: 47 44 71 62 92 0A 40 5C 90 00 [12:37:26]wFMCommunicate OK [12:37:26]SAM_PROTO_SignData done [12:37:26]FM_MakeSignedData done [12:37:26]CreateOFDProtocolMessage [12:37:26]wFMCommunicate request_size=4 [12:37:26]MH_SAM_APDU [12:37:26]CAPDU: 80 11 00 00 [12:37:26]Write to MH i2c: E2 08 00 F3 46 80 11 00 00 00 00 00 00 B3 [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:26]Read from MH i2c: E2 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 17 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: E2 17 00 F3 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 02 [12:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:37:26]wFMCommunicate OK [12:37:26]CreateOFDProtocolMessage done [12:37:26]OFDSenderStorePacket 15712 [12:37:26]StoreOFDPacket docnum=15712 [12:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 20 27 07 01 4A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 3A 00 00 00 F4 03 04 00 10 D7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 60 3D 00 00 35 04 06 00 E0 B9 DC 89 37 D4 47 44 71 62 92 0A 40 5C [12:37:26]CheckFolder [12:37:26]dirname=/storage/ofd_packets [12:37:26]CheckFolder done [12:37:26]ProducePacketName [12:37:26]name=ofd_packets/00015712 [12:37:26]NVStorageSaveData ofd_packets/00015712 [12:37:26]File name is /storage/ofd_packets/00015712 [12:37:26]Write 301 bytes [12:37:26]NVStorageSaveData done [12:37:26]OFDSenderStorePacket done [12:37:26]KKMCreateOFDPacket done [12:37:26]NVStorageSaveData kkm_last_timestamp [12:37:26]File name is /storage/kkm_last_timestamp [12:37:26]Write 4 bytes [12:37:26]NVStorageSaveData done [12:37:26]ExternCall_PrintAddStr [12:37:26]wPrintStart [12:37:26]Write to MH i2c: 01 00 00 F4 46 3A [12:37:26]Write i2c OK [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: 01 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: 01 07 00 [12:37:26]MH_I2C_Read... [12:37:26]Read from MH i2c: 01 07 00 F4 46 00 00 00 00 00 FF 0F 4F [12:37:26]RasterBufferAndPrint [12:37:26]line Счет N : (1)16261 [12:37:26]line ИНН: 02508201610067 [12:37:26]line Контрольно-Кассовый Чек [12:37:26]line ПРОДАЖА [12:37:26]line ТРК (МРК, ГНК) : 21 [12:37:26]line Товар: 2710124130 [12:37:26]line Аи-92-К-5 [12:37:26]line 5.980 * 66.90 [12:37:26]line = 400.06 [12:37:26]line НДС 12% НСП 1% [12:37:26]line > о реализуемом товаре [12:37:26]line ОКРУГЛЕНИЕ: -0.06 [12:37:26]line ИТОГО: 400.00 [12:37:26]line Внесено: 400.00 [12:37:26]line СДАЧА: 0.00 [12:37:26]line НСП 1% : 3.54 [12:37:26]line НДС 12% : 42.48 [12:37:26]line Наличными: 400.00 [12:37:26]line Безнал.: 0.00 [12:37:26]line Место: АЗС № 178 "Партнер Нефть" [12:37:26]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:37:26]line СНО: Общий режим [12:37:26]line Чек 58 29.10.2024 12:37 [12:37:26]line Смена: 172 ФФД: 1.0 [12:37:26]line ЗНМ: 0300000014 [12:37:26]line РНМ: 0000000000161798 [12:37:26]line Версия ККМ: v1.0 [12:37:26]line ФМ: 0000000000963325 [12:37:26]line ФД: 15712 [12:37:26]line ФПД: 247088873551828 [12:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T123736&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15712&fm=247088873551828&tin=02508201610067®Number=0000000000161798&sum=40000 [12:37:27]OFD Sender: Processing packet 15712 [packets to send 4, broken 3] [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00015712 [12:37:27]OFD Sender: To server: pG, [12:37:27]CommunicateWithHost lk.salyk.kg:30040 [12:37:27]ConnectInit lk.salyk.kg [12:37:27]written 0, free lines is 4095 [12:37:27]Connected sock=10 [12:37:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 20 27 07 01 4A D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 3A 00 00 00 F4 03 04 00 10 D7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 60 3D 00 00 35 04 06 00 E0 B9 DC 89 37 D4 47 44 71 62 92 0A 40 5C [12:37:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 75 00 47 00 B2 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 60 3D 00 00 F4 03 04 00 FD 81 20 67 B6 04 01 00 00 38 BE 98 62 D5 48 29 57 [12:37:27]CommunicateWithHost err = 0 [12:37:27]CheckOFDResponse [12:37:27]1017 (14) - 77093643461234 [12:37:27]1041 (16) - 0000000000963325 [12:37:27]1040 (4) - 15712 [12:37:27]1012 (4) - 29.10.2024 06:34 [12:37:27]1206 (1) - 0 [12:37:27]OFD Sender: Remove packet 15712 [12:37:27]ProducePacketName [12:37:27]name=ofd_packets/00015712 [12:37:27]NVStorageDeleteData [12:37:27]Write to MH i2c: 01 00 00 1F 47 66 [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: 01 07 00 1F 47 00 00 00 00 00 E8 0C 61 [12:37:27]RasterBufferAndPrint [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]line [12:37:27]written 0, free lines is 3311 [12:37:27]MH_Cut [12:37:27]Write to MH i2c: D1 01 00 26 47 01 3F [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 [12:37:27]MH_I2C_Read... [12:37:27]Read from MH i2c: D1 01 00 26 47 00 3E [12:37:27]Write to MH i2c: 01 00 00 27 47 6E [12:37:27]Write i2c OK [12:37:27]MH_I2C_Read... [12:37:27]OFD Sender: No OFD packet to send [12:37:28]*** Cut start [12:37:28]*** Partial cut [12:37:28]*** CUTSNS_PIN = 1 [12:37:28]*** CUTSNS_PIN = 0 [12:37:28]*** Brake cut motor [12:37:28]Read from MH i2c: 01 [12:37:28]MH_I2C_Read... [12:37:28]*** Stop cut motor [12:37:28]*** Cut end [12:37:28]Read from MH i2c: 01 07 00 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: 01 07 00 27 47 00 00 00 00 00 FF 0F 83 [12:37:28]process_action close_receipt done [12:37:28]requested_data is exist [12:37:28]produce_requested_data [12:37:28]requested_item fm.sn is exist - process it [12:37:28]wFMCommunicate request_size=4 [12:37:28]MH_SAM_APDU [12:37:28]CAPDU: 80 11 00 00 [12:37:28]Write to MH i2c: E2 08 00 28 47 80 11 00 00 00 00 00 00 E9 [12:37:28]Write i2c OK [12:37:28]MH_I2C_Read... [12:37:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:28]Read from MH i2c: E2 [12:37:28]MH_I2C_Read... [12:37:28]Read from MH i2c: E2 17 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 17 00 28 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 38 [12:37:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:37:29]wFMCommunicate OK [12:37:29]requested_item fd.num is exist - process it [12:37:29]SAM_PROTO_GetFieldsCounters [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 00 00 [12:37:29]Write to MH i2c: E2 08 00 29 47 80 13 00 00 00 00 00 00 EC [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 62 00 29 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 60 3D 00 00 0E 04 04 00 AC 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 07 [12:37:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 60 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetFieldsCounters done [12:37:29]requested_item shift.num is exist - process it [12:37:29]requested_item shift.opened is exist - process it [12:37:29]req_shift_opened [12:37:29]FM_GetShiftState [12:37:29]SAM_PROTO_GetShiftState [12:37:29]wFMCommunicate request_size=4 [12:37:29]MH_SAM_APDU [12:37:29]CAPDU: 80 13 01 00 [12:37:29]Write to MH i2c: E2 08 00 2A 47 80 13 01 00 00 00 00 00 EE [12:37:29]Write i2c OK [12:37:29]MH_I2C_Read... [12:37:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:29]Read from MH i2c: E2 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 [12:37:29]MH_I2C_Read... [12:37:29]Read from MH i2c: E2 0E 00 2A 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 43 [12:37:29]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:37:29]wFMCommunicate OK [12:37:29]SAM_PROTO_GetShiftState done [12:37:29]FM_GetShiftState done [12:37:29]req_shift_opened done [12:37:29]requested_item shift.open_date is exist - process it [12:37:29]req_shift_open_date [12:37:29]req_shift_open_date done [12:37:29]produce_requested_data done [12:37:29]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15712,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:37:29]process_action_free close_receipt [12:37:29]json_value_free [12:37:29]json_value_free done [12:37:29]process_json_proto returns [12:37:29]Send response to host [12:37:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15712,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:37:29]free response buf [12:37:29]execute_script done [12:37:29]execute_script returns [12:37:29]free content buf [12:37:29]Sock 8.Close socket [12:37:29]Sock 8.Thread stoped [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:06]accept exits with 9 [12:48:06]New connection [12:48:06]New thread 3066588516 created [12:48:06]Thread 3066731876 joined [12:48:06]Waiting for new connection... [12:48:06] Sock 9.Parse request [12:48:06]Sock 9.Check first char [12:48:06]Sock 9.First char is OK [12:48:06]request: POST /json_proto HTTP/1.0 [12:48:06]Method: POST [12:48:06]URL: /json_proto [12:48:06]Method is POST - this is cgi request [12:48:06]url: /json_proto [12:48:06]query_string will be loaded in cgi processing [12:48:06]execute_cgi json_proto POST (null) [12:48:06]execute_cgi path=json_proto method=POST [12:48:06]POST find Content-Length [12:48:06]Host: 172.17.54.195:8080 [12:48:06]Content-Length: 676 [12:48:06]Content-Type: application/json [12:48:06] [12:48:06]POST finish read [12:48:06]Found Content-Length = 676 [12:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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:48:06]execute_script... [12:48: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)16262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "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:48:06]POST & json_proto [12:48:06]process_json_proto [12:48:06]json parsed OK: [12:48:06]protocol is kg_v1.0 [12:48:06]action value=close_receipt [12:48:06]process_action close_receipt [12:48:06]cmd_close_receipt [12:48:06]MH_GetDate [12:48:06]Write to MH i2c: F0 00 00 2B 47 61 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 09 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 09 00 2B 47 00 91 D9 20 67 8D 90 A3 66 81 [12:48:06]GetLastDocTimeStamp 1730205456 [12:48:06]current date 1730206097 [12:48:06]FM_GetShiftState [12:48:06]SAM_PROTO_GetShiftState [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 13 01 00 [12:48:06]Write to MH i2c: E2 08 00 2C 47 80 13 01 00 00 00 00 00 F0 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 2C 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 45 [12:48:06]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_GetShiftState done [12:48:06]FM_GetShiftState done [12:48:06]opened in 1730161559 [12:48:06]opened+sec_in_day 1730247959 [12:48:06]quantity*price = 10035 [12:48:06]sum+1 = 10036 [12:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 59 29.10.2024 12:48 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15713 ФПД: 58537889786234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124817&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15713&fm=58537889786234&tin=02508201610067®Number=0000000000161798&sum=10000 [12:48:07]StoreToDocumentArchive [12:48:07]shift 172 fd 15713 [12:48:07]save to /storage/0172/doc_00015713 [12:48:07]save last doc name /storage/0172/doc_00015713 to /storage/kkm_last_doc_name [12:48:07]save OK [12:48:07]Clear old archive folders... [12:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:07]tlvbuf is 0031FC00 [12:48:07]SAM_PROTO_ClearQueue [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 09 00 00 [12:48:07]Write to MH i2c: E2 08 00 39 47 80 09 00 00 00 00 00 00 F2 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [12:48:07]RAPDU: 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_ClearQueue done [12:48:07]KKMCreateOFDPacket [12:48:07]OFDProtocolAddRootSTLVToBuf [12:48:07]FM_MakeSignedData [12:48:07]FM_MakeSignedData [12:48:07]SAM_PROTO_SignData [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 0D 01 02 [12:48:07]Write to MH i2c: E2 08 00 3A 47 80 0D 01 02 00 00 00 00 FA [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [12:48:07]RAPDU: 90 00 [12:48:07]wFMCommunicate OK [12:48:07]wFMCommunicate request_size=255 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 D9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 61 3D 00 00 35 04 06 00 35 [12:48:07]Write to MH i2c: E2 02 01 3B 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 D9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 61 3D 00 00 35 04 06 00 35 00 00 1E [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=10 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 0D 02 02 05 3D 6A 20 69 7A [12:48:08]Write to MH i2c: E2 0D 00 3C 47 80 0D 02 02 05 00 3D 6A 20 69 7A 00 00 B1 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 3C 47 00 90 00 F7 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 0D 03 02 [12:48:08]Write to MH i2c: E2 08 00 3D 47 80 0D 03 02 00 00 00 00 FF [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0B 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0B 00 3D 47 00 67 C1 C8 D1 FA 6B 30 D5 90 00 2B [12:48:08]RAPDU: 67 C1 C8 D1 FA 6B 30 D5 90 00 [12:48:08]wFMCommunicate OK [12:48:08]SAM_PROTO_SignData done [12:48:08]FM_MakeSignedData done [12:48:08]CreateOFDProtocolMessage [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 11 00 00 [12:48:08]Write to MH i2c: E2 08 00 3E 47 80 11 00 00 00 00 00 00 FF [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 17 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 17 00 3E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4E [12:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:48:08]wFMCommunicate OK [12:48:08]CreateOFDProtocolMessage done [12:48:08]OFDSenderStorePacket 15713 [12:48:08]StoreOFDPacket docnum=15713 [12:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B7 D0 07 01 C9 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 D9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 61 3D 00 00 35 04 06 00 35 3D 6A 20 69 7A 67 C1 C8 D1 FA 6B 30 D5 [12:48:08]CheckFolder [12:48:08]dirname=/storage/ofd_packets [12:48:08]CheckFolder done [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00015713 [12:48:08]NVStorageSaveData ofd_packets/00015713 [12:48:08]File name is /storage/ofd_packets/00015713 [12:48:08]Write 301 bytes [12:48:08]NVStorageSaveData done [12:48:08]OFDSenderStorePacket done [12:48:08]KKMCreateOFDPacket done [12:48:08]NVStorageSaveData kkm_last_timestamp [12:48:08]File name is /storage/kkm_last_timestamp [12:48:08]Write 4 bytes [12:48:08]NVStorageSaveData done [12:48:08]ExternCall_PrintAddStr [12:48:08]wPrintStart [12:48:08]Write to MH i2c: 01 00 00 3F 47 86 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 3F 47 00 00 00 00 00 FF 0F 9B [12:48:08]RasterBufferAndPrint [12:48:08]line Счет N : (1)16262 [12:48:08]line ИНН: 02508201610067 [12:48:08]line Контрольно-Кассовый Чек [12:48:08]line ПРОДАЖА [12:48:08]line ТРК (МРК, ГНК) : 21 [12:48:08]line Товар: 2710124130 [12:48:08]line Аи-92-К-5 [12:48:08]line 1.500 * 66.90 [12:48:08]line = 100.35 [12:48:08]line НДС 12% НСП 1% [12:48:08]line > о реализуемом товаре [12:48:08]line ОКРУГЛЕНИЕ: -0.35 [12:48:08]line ИТОГО: 100.00 [12:48:08]line Внесено: 100.00 [12:48:08]line СДАЧА: 0.00 [12:48:08]line НСП 1% : 0.89 [12:48:08]line НДС 12% : 10.66 [12:48:08]line Наличными: 100.00 [12:48:08]line Безнал.: 0.00 [12:48:08]line Место: АЗС № 178 "Партнер Нефть" [12:48:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:48:08]line СНО: Общий режим [12:48:08]line Чек 59 29.10.2024 12:48 [12:48:08]line Смена: 172 ФФД: 1.0 [12:48:08]line ЗНМ: 0300000014 [12:48:08]line РНМ: 0000000000161798 [12:48:08]line Версия ККМ: v1.0 [12:48:08]line ФМ: 0000000000963325 [12:48:08]line ФД: 15713 [12:48:08]line ФПД: 58537889786234 [12:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T124817&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15713&fm=58537889786234&tin=02508201610067®Number=0000000000161798&sum=10000 [12:48:08]OFD Sender: Processing packet 15713 [packets to send 4, broken 3] [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00015713 [12:48:08]OFD Sender: To server: pG, [12:48:08]CommunicateWithHost lk.salyk.kg:30040 [12:48:08]ConnectInit lk.salyk.kg [12:48:08]written 0, free lines is 4095 [12:48:08]Connected sock=10 [12:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B7 D0 07 01 C9 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 91 D9 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 61 3D 00 00 35 04 06 00 35 3D 6A 20 69 7A 67 C1 C8 D1 FA 6B 30 D5 [12:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 EA D7 47 00 13 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 30 39 36 33 33 32 35 10 04 04 00 61 3D 00 00 F4 03 04 00 7E 84 20 67 B6 04 01 00 00 F9 AC F6 65 84 92 9E A0 [12:48:08]CommunicateWithHost err = 0 [12:48:08]CheckOFDResponse [12:48:08]1017 (14) - 77093643461234 [12:48:08]1041 (16) - 0000000000963325 [12:48:08]1040 (4) - 15713 [12:48:08]1012 (4) - 29.10.2024 06:45 [12:48:08]1206 (1) - 0 [12:48:08]OFD Sender: Remove packet 15713 [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00015713 [12:48:08]NVStorageDeleteData [12:48:09]Write to MH i2c: 01 00 00 6A 47 B1 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 6A 47 00 00 00 00 00 F4 0C B8 [12:48:09]RasterBufferAndPrint [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]written 0, free lines is 3322 [12:48:09]MH_Cut [12:48:09]Write to MH i2c: D1 01 00 71 47 01 8A [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 01 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 01 00 71 47 00 89 [12:48:09]Write to MH i2c: 01 00 00 72 47 B9 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]OFD Sender: No OFD packet to send [12:48:09]*** Cut start [12:48:09]*** Partial cut [12:48:09]*** CUTSNS_PIN = 1 [12:48:09]*** CUTSNS_PIN = 0 [12:48:10]*** Brake cut motor [12:48:10]Read from MH i2c: 01 [12:48:10]MH_I2C_Read... [12:48:10]*** Stop cut motor [12:48:10]*** Cut end [12:48:10]Read from MH i2c: 01 07 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 72 47 00 00 00 00 00 FF 0F CE [12:48:10]process_action close_receipt done [12:48:10]requested_data is exist [12:48:10]produce_requested_data [12:48:10]requested_item fm.sn is exist - process it [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 11 00 00 [12:48:10]Write to MH i2c: E2 08 00 73 47 80 11 00 00 00 00 00 00 34 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 17 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 17 00 73 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 83 [12:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:48:10]wFMCommunicate OK [12:48:10]requested_item fd.num is exist - process it [12:48:10]SAM_PROTO_GetFieldsCounters [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 13 00 00 [12:48:10]Write to MH i2c: E2 08 00 74 47 80 13 00 00 00 00 00 00 37 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 62 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 62 00 74 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 61 3D 00 00 0E 04 04 00 AC 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 56 [12:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 61 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:10]wFMCommunicate OK [12:48:10]SAM_PROTO_GetFieldsCounters done [12:48:10]requested_item shift.num is exist - process it [12:48:10]requested_item shift.opened is exist - process it [12:48:10]req_shift_opened [12:48:10]FM_GetShiftState [12:48:10]SAM_PROTO_GetShiftState [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 13 01 00 [12:48:10]Write to MH i2c: E2 08 00 75 47 80 13 01 00 00 00 00 00 39 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 0E 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 0E 00 75 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8E [12:48:10]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:48:10]wFMCommunicate OK [12:48:10]SAM_PROTO_GetShiftState done [12:48:10]FM_GetShiftState done [12:48:10]req_shift_opened done [12:48:10]requested_item shift.open_date is exist - process it [12:48:10]req_shift_open_date [12:48:10]req_shift_open_date done [12:48:10]produce_requested_data done [12:48:10]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15713,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:48:10]process_action_free close_receipt [12:48:10]json_value_free [12:48:10]json_value_free done [12:48:10]process_json_proto returns [12:48:10]Send response to host [12:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15713,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:48:10]free response buf [12:48:10]execute_script done [12:48:10]execute_script returns [12:48:10]free content buf [12:48:10]Sock 9.Close socket [12:48:10]Sock 9.Thread stoped [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:34]OFD Sender: No OFD packet to send [12:48:39]OFD Sender: No OFD packet to send [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:59]OFD Sender: No OFD packet to send [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:14]OFD Sender: No OFD packet to send [12:52:19]OFD Sender: No OFD packet to send [12:52:24]OFD Sender: No OFD packet to send [12:52:29]OFD Sender: No OFD packet to send [12:52:34]OFD Sender: No OFD packet to send [12:52:39]OFD Sender: No OFD packet to send [12:52:44]OFD Sender: No OFD packet to send [12:52:49]OFD Sender: No OFD packet to send [12:52:54]OFD Sender: No OFD packet to send [12:52:59]OFD Sender: No OFD packet to send [12:53:04]OFD Sender: No OFD packet to send [12:53:09]OFD Sender: No OFD packet to send [12:53:14]OFD Sender: No OFD packet to send [12:53:19]OFD Sender: No OFD packet to send [12:53:24]OFD Sender: No OFD packet to send [12:53:29]OFD Sender: No OFD packet to send [12:53:34]OFD Sender: No OFD packet to send [12:53:39]OFD Sender: No OFD packet to send [12:53:44]OFD Sender: No OFD packet to send [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:26]accept exits with 8 [12:59:26]New connection [12:59:26]New thread 3066731876 created [12:59:26]Thread 3066588516 joined [12:59:26]Waiting for new connection... [12:59:26] Sock 8.Parse request [12:59:26]Sock 8.Check first char [12:59:26]Sock 8.First char is OK [12:59:26]request: POST /json_proto HTTP/1.0 [12:59:26]Method: POST [12:59:26]URL: /json_proto [12:59:26]Method is POST - this is cgi request [12:59:26]url: /json_proto [12:59:26]query_string will be loaded in cgi processing [12:59:26]execute_cgi json_proto POST (null) [12:59:26]execute_cgi path=json_proto method=POST [12:59:26]POST find Content-Length [12:59:26]Host: 172.17.54.195:8080 [12:59:26]Content-Length: 666 [12:59:26]Content-Type: application/json [12:59:26] [12:59:26]POST finish read [12:59:26]Found Content-Length = 666 [12:59:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [12:59:26]execute_script... [12:59: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)16263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.120, "sum" : 350.21, "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" ] } } [12:59:26]POST & json_proto [12:59:26]process_json_proto [12:59:26]json parsed OK: [12:59:26]protocol is kg_v1.0 [12:59:26]action value=close_receipt [12:59:26]process_action close_receipt [12:59:26]cmd_close_receipt [12:59:26]MH_GetDate [12:59:26]Write to MH i2c: F0 00 00 76 47 AC [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 09 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: F0 09 00 76 47 00 39 DC 20 67 8D 90 A3 66 77 [12:59:26]GetLastDocTimeStamp 1730206097 [12:59:26]current date 1730206777 [12:59:26]FM_GetShiftState [12:59:26]SAM_PROTO_GetShiftState [12:59:26]wFMCommunicate request_size=4 [12:59:26]MH_SAM_APDU [12:59:26]CAPDU: 80 13 01 00 [12:59:26]Write to MH i2c: E2 08 00 77 47 80 13 01 00 00 00 00 00 3B [12:59:26]Write i2c OK [12:59:26]MH_I2C_Read... [12:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:26]Read from MH i2c: E2 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0E 00 [12:59:26]MH_I2C_Read... [12:59:26]Read from MH i2c: E2 0E 00 77 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 90 [12:59:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:59:26]wFMCommunicate OK [12:59:26]SAM_PROTO_GetShiftState done [12:59:26]FM_GetShiftState done [12:59:26]opened in 1730161559 [12:59:26]opened+sec_in_day 1730247959 [12:59:26]quantity*price = 35020 [12:59:26]sum+1 = 35022 [12:59:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 60 29.10.2024 12:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15714 ФПД: 47391128348057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125937&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15714&fm=47391128348057&tin=02508201610067®Number=0000000000161798&sum=35000 [12:59:27]StoreToDocumentArchive [12:59:27]shift 172 fd 15714 [12:59:27]save to /storage/0172/doc_00015714 [12:59:27]save last doc name /storage/0172/doc_00015714 to /storage/kkm_last_doc_name [12:59:27]save OK [12:59:27]Clear old archive folders... [12:59:27]ProcessDocumentItem done err = 0, tmpTLVsize=249 [12:59:27]tlvbuf is 003221C0 [12:59:27]SAM_PROTO_ClearQueue [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 09 00 00 [12:59:27]Write to MH i2c: E2 08 00 84 47 80 09 00 00 00 00 00 00 3D [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 84 47 00 90 00 3F [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]SAM_PROTO_ClearQueue done [12:59:27]KKMCreateOFDPacket [12:59:27]OFDProtocolAddRootSTLVToBuf [12:59:27]FM_MakeSignedData [12:59:27]FM_MakeSignedData [12:59:27]SAM_PROTO_SignData [12:59:27]wFMCommunicate request_size=4 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 01 02 [12:59:27]Write to MH i2c: E2 08 00 85 47 80 0D 01 02 00 00 00 00 45 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:27]Read from MH i2c: E2 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 [12:59:27]MH_I2C_Read... [12:59:27]Read from MH i2c: E2 03 00 85 47 00 90 00 40 [12:59:27]RAPDU: 90 00 [12:59:27]wFMCommunicate OK [12:59:27]wFMCommunicate request_size=255 [12:59:27]MH_SAM_APDU [12:59:27]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 3C 00 00 00 F4 03 04 00 39 DC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 62 3D 00 00 35 04 06 00 2B 1A 1B [12:59:27]Write to MH i2c: E2 02 01 86 47 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 3C 00 00 00 F4 03 04 00 39 DC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 62 3D 00 00 35 04 06 00 2B 1A 1B 00 00 51 [12:59:27]Write i2c OK [12:59:27]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 03 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 03 00 86 47 00 90 00 41 [12:59:28]RAPDU: 90 00 [12:59:28]wFMCommunicate OK [12:59:28]wFMCommunicate request_size=8 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 0D 02 02 03 5E E5 99 [12:59:28]Write to MH i2c: E2 0B 00 87 47 80 0D 02 02 03 00 5E E5 99 00 00 2A [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 03 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 03 00 87 47 00 90 00 42 [12:59:28]RAPDU: 90 00 [12:59:28]wFMCommunicate OK [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 0D 03 02 [12:59:28]Write to MH i2c: E2 08 00 88 47 80 0D 03 02 00 00 00 00 4A [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0B 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 0B 00 88 47 00 21 66 1E 88 A6 04 40 A8 90 00 0A [12:59:28]RAPDU: 21 66 1E 88 A6 04 40 A8 90 00 [12:59:28]wFMCommunicate OK [12:59:28]SAM_PROTO_SignData done [12:59:28]FM_MakeSignedData done [12:59:28]CreateOFDProtocolMessage [12:59:28]wFMCommunicate request_size=4 [12:59:28]MH_SAM_APDU [12:59:28]CAPDU: 80 11 00 00 [12:59:28]Write to MH i2c: E2 08 00 89 47 80 11 00 00 00 00 00 00 4A [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:28]Read from MH i2c: E2 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 17 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: E2 17 00 89 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 99 [12:59:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:59:28]wFMCommunicate OK [12:59:28]CreateOFDProtocolMessage done [12:59:28]OFDSenderStorePacket 15714 [12:59:28]StoreOFDPacket docnum=15714 [12:59:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C3 A0 05 01 50 7D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 3C 00 00 00 F4 03 04 00 39 DC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 62 3D 00 00 35 04 06 00 2B 1A 1B 5E E5 99 21 66 1E 88 A6 04 40 A8 [12:59:28]CheckFolder [12:59:28]dirname=/storage/ofd_packets [12:59:28]CheckFolder done [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00015714 [12:59:28]NVStorageSaveData ofd_packets/00015714 [12:59:28]File name is /storage/ofd_packets/00015714 [12:59:28]Write 299 bytes [12:59:28]NVStorageSaveData done [12:59:28]OFDSenderStorePacket done [12:59:28]KKMCreateOFDPacket done [12:59:28]NVStorageSaveData kkm_last_timestamp [12:59:28]File name is /storage/kkm_last_timestamp [12:59:28]Write 4 bytes [12:59:28]NVStorageSaveData done [12:59:28]ExternCall_PrintAddStr [12:59:28]wPrintStart [12:59:28]Write to MH i2c: 01 00 00 8A 47 D1 [12:59:28]Write i2c OK [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 [12:59:28]MH_I2C_Read... [12:59:28]Read from MH i2c: 01 07 00 8A 47 00 00 00 00 00 FF 0F E6 [12:59:28]RasterBufferAndPrint [12:59:28]line Счет N : (1)16263 [12:59:28]line ИНН: 02508201610067 [12:59:28]line Контрольно-Кассовый Чек [12:59:28]line ПРОДАЖА [12:59:28]line ТРК (МРК, ГНК) : 12 [12:59:28]line Товар: 50.50.0 [12:59:28]line SUPER 92-К-5 [12:59:28]line 5.120 * 68.40 [12:59:28]line = 350.21 [12:59:28]line НДС 12% НСП 1% [12:59:28]line > о реализуемом товаре [12:59:28]line ОКРУГЛЕНИЕ: -0.21 [12:59:28]line ИТОГО: 350.00 [12:59:28]line Внесено: 350.00 [12:59:28]line СДАЧА: 0.00 [12:59:28]line НСП 1% : 3.10 [12:59:28]line НДС 12% : 37.19 [12:59:28]line Наличными: 350.00 [12:59:28]line Безнал.: 0.00 [12:59:28]line Место: АЗС № 178 "Партнер Нефть" [12:59:28]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [12:59:28]line СНО: Общий режим [12:59:28]line Чек 60 29.10.2024 12:59 [12:59:28]line Смена: 172 ФФД: 1.0 [12:59:28]line ЗНМ: 0300000014 [12:59:28]line РНМ: 0000000000161798 [12:59:28]line Версия ККМ: v1.0 [12:59:28]line ФМ: 0000000000963325 [12:59:28]line ФД: 15714 [12:59:28]line ФПД: 47391128348057 [12:59:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T125937&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15714&fm=47391128348057&tin=02508201610067®Number=0000000000161798&sum=35000 [12:59:28]OFD Sender: Processing packet 15714 [packets to send 4, broken 3] [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00015714 [12:59:28]OFD Sender: To server: pG, [12:59:28]CommunicateWithHost lk.salyk.kg:30040 [12:59:28]ConnectInit lk.salyk.kg [12:59:28]written 0, free lines is 4095 [12:59:28]Connected sock=10 [12:59:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C3 A0 05 01 50 7D 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 14 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CD 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 87 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 3C 00 00 00 F4 03 04 00 39 DC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 62 3D 00 00 35 04 06 00 2B 1A 1B 5E E5 99 21 66 1E 88 A6 04 40 A8 [12:59:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 3B 21 47 00 8E 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 62 3D 00 00 F4 03 04 00 26 87 20 67 B6 04 01 00 00 E5 03 C2 A6 F8 43 11 9D [12:59:28]CommunicateWithHost err = 0 [12:59:28]CheckOFDResponse [12:59:28]1017 (14) - 77093643461234 [12:59:28]1041 (16) - 0000000000963325 [12:59:28]1040 (4) - 15714 [12:59:28]1012 (4) - 29.10.2024 06:56 [12:59:28]1206 (1) - 0 [12:59:28]OFD Sender: Remove packet 15714 [12:59:28]ProducePacketName [12:59:28]name=ofd_packets/00015714 [12:59:28]NVStorageDeleteData [12:59:29]Write to MH i2c: 01 00 00 B5 47 FC [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: 01 07 00 B5 47 00 00 00 00 00 F8 0C 07 [12:59:29]RasterBufferAndPrint [12:59:29]line [12:59:29]line [12:59:29]line [12:59:29]line [12:59:29]line [12:59:29]written 0, free lines is 3327 [12:59:29]MH_Cut [12:59:29]Write to MH i2c: D1 01 00 BC 47 01 D5 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: D1 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: D1 01 00 [12:59:29]MH_I2C_Read... [12:59:29]Read from MH i2c: D1 01 00 BC 47 00 D4 [12:59:29]Write to MH i2c: 01 00 00 BD 47 04 [12:59:29]Write i2c OK [12:59:29]MH_I2C_Read... [12:59:29]OFD Sender: No OFD packet to send [12:59:29]*** Cut start [12:59:29]*** Partial cut [12:59:29]*** CUTSNS_PIN = 1 [12:59:29]*** CUTSNS_PIN = 0 [12:59:30]*** Brake cut motor [12:59:30]Read from MH i2c: 01 [12:59:30]MH_I2C_Read... [12:59:30]*** Stop cut motor [12:59:30]*** Cut end [12:59:30]Read from MH i2c: 01 07 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: 01 07 00 BD 47 00 00 00 00 00 FF 0F 19 [12:59:30]process_action close_receipt done [12:59:30]requested_data is exist [12:59:30]produce_requested_data [12:59:30]requested_item fm.sn is exist - process it [12:59:30]wFMCommunicate request_size=4 [12:59:30]MH_SAM_APDU [12:59:30]CAPDU: 80 11 00 00 [12:59:30]Write to MH i2c: E2 08 00 BE 47 80 11 00 00 00 00 00 00 7F [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 17 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 17 00 BE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CE [12:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [12:59:30]wFMCommunicate OK [12:59:30]requested_item fd.num is exist - process it [12:59:30]SAM_PROTO_GetFieldsCounters [12:59:30]wFMCommunicate request_size=4 [12:59:30]MH_SAM_APDU [12:59:30]CAPDU: 80 13 00 00 [12:59:30]Write to MH i2c: E2 08 00 BF 47 80 13 00 00 00 00 00 00 82 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 62 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 62 00 BF 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 62 3D 00 00 0E 04 04 00 AC 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 A5 [12:59:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 62 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetFieldsCounters done [12:59:30]requested_item shift.num is exist - process it [12:59:30]requested_item shift.opened is exist - process it [12:59:30]req_shift_opened [12:59:30]FM_GetShiftState [12:59:30]SAM_PROTO_GetShiftState [12:59:30]wFMCommunicate request_size=4 [12:59:30]MH_SAM_APDU [12:59:30]CAPDU: 80 13 01 00 [12:59:30]Write to MH i2c: E2 08 00 C0 47 80 13 01 00 00 00 00 00 84 [12:59:30]Write i2c OK [12:59:30]MH_I2C_Read... [12:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:30]Read from MH i2c: E2 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 [12:59:30]MH_I2C_Read... [12:59:30]Read from MH i2c: E2 0E 00 C0 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D9 [12:59:30]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [12:59:30]wFMCommunicate OK [12:59:30]SAM_PROTO_GetShiftState done [12:59:30]FM_GetShiftState done [12:59:30]req_shift_opened done [12:59:30]requested_item shift.open_date is exist - process it [12:59:30]req_shift_open_date [12:59:30]req_shift_open_date done [12:59:30]produce_requested_data done [12:59:30]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15714,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [12:59:30]process_action_free close_receipt [12:59:30]json_value_free [12:59:30]json_value_free done [12:59:30]process_json_proto returns [12:59:30]Send response to host [12:59:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15714,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [12:59:30]free response buf [12:59:30]execute_script done [12:59:30]execute_script returns [12:59:30]free content buf [12:59:30]Sock 8.Close socket [12:59:30]Sock 8.Thread stoped [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:06]accept exits with 9 [13:09:06]New connection [13:09:06]New thread 3066588516 created [13:09:06]Thread 3066731876 joined [13:09:06]Waiting for new connection... [13:09:06] Sock 9.Parse request [13:09:06]Sock 9.Check first char [13:09:06]Sock 9.First char is OK [13:09:06]request: POST /json_proto HTTP/1.0 [13:09:06]Method: POST [13:09:06]URL: /json_proto [13:09:06]Method is POST - this is cgi request [13:09:06]url: /json_proto [13:09:06]query_string will be loaded in cgi processing [13:09:06]execute_cgi json_proto POST (null) [13:09:06]execute_cgi path=json_proto method=POST [13:09:06]POST find Content-Length [13:09:06]Host: 172.17.54.195:8080 [13:09:06]Content-Length: 671 [13:09:06]Content-Type: application/json [13:09:06] [13:09:06]POST finish read [13:09:06]Found Content-Length = 671 [13:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:06]execute_script... [13:09: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)16264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:06]POST & json_proto [13:09:06]process_json_proto [13:09:06]json parsed OK: [13:09:06]protocol is kg_v1.0 [13:09:06]action value=close_receipt [13:09:06]process_action close_receipt [13:09:06]cmd_close_receipt [13:09:06]MH_GetDate [13:09:06]Write to MH i2c: F0 00 00 C1 47 F7 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: F0 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: F0 09 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: F0 09 00 C1 47 00 7D DE 20 67 8D 90 A3 66 08 [13:09:06]GetLastDocTimeStamp 1730206777 [13:09:06]current date 1730207357 [13:09:06]FM_GetShiftState [13:09:06]SAM_PROTO_GetShiftState [13:09:06]wFMCommunicate request_size=4 [13:09:06]MH_SAM_APDU [13:09:06]CAPDU: 80 13 01 00 [13:09:06]Write to MH i2c: E2 08 00 C2 47 80 13 01 00 00 00 00 00 86 [13:09:06]Write i2c OK [13:09:06]MH_I2C_Read... [13:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:06]Read from MH i2c: E2 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 0E 00 [13:09:06]MH_I2C_Read... [13:09:06]Read from MH i2c: E2 0E 00 C2 47 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 DB [13:09:06]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:09:06]wFMCommunicate OK [13:09:06]SAM_PROTO_GetShiftState done [13:09:06]FM_GetShiftState done [13:09:06]opened in 1730161559 [13:09:06]opened+sec_in_day 1730247959 [13:09:06]quantity*price = 150001 [13:09:06]sum+1 = 150002 [13:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 61 29.10.2024 13:09 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15715 ФПД: 278440045406801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130917&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15715&fm=278440045406801&tin=02508201610067®Number=0000000000161798&sum=150000 [13:09:07]StoreToDocumentArchive [13:09:07]shift 172 fd 15715 [13:09:07]save to /storage/0172/doc_00015715 [13:09:07]save last doc name /storage/0172/doc_00015715 to /storage/kkm_last_doc_name [13:09:07]save OK [13:09:07]Clear old archive folders... [13:09:07]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:09:07]tlvbuf is 00380D10 [13:09:07]SAM_PROTO_ClearQueue [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 09 00 00 [13:09:07]Write to MH i2c: E2 08 00 CF 47 80 09 00 00 00 00 00 00 88 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 CF 47 00 90 00 8A [13:09:07]RAPDU: 90 00 [13:09:07]wFMCommunicate OK [13:09:07]SAM_PROTO_ClearQueue done [13:09:07]KKMCreateOFDPacket [13:09:07]OFDProtocolAddRootSTLVToBuf [13:09:07]FM_MakeSignedData [13:09:07]FM_MakeSignedData [13:09:07]SAM_PROTO_SignData [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 0D 01 02 [13:09:07]Write to MH i2c: E2 08 00 D0 47 80 0D 01 02 00 00 00 00 90 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 D0 47 00 90 00 8B [13:09:07]RAPDU: 90 00 [13:09:07]wFMCommunicate OK [13:09:07]wFMCommunicate request_size=255 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 63 3D 00 00 35 04 06 00 FD 3D 5F [13:09:07]Write to MH i2c: E2 02 01 D1 47 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 63 3D 00 00 35 04 06 00 FD 3D 5F 00 00 C4 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 D1 47 00 90 00 8C [13:09:07]RAPDU: 90 00 [13:09:07]wFMCommunicate OK [13:09:07]wFMCommunicate request_size=8 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 0D 02 02 03 FF 6A 51 [13:09:07]Write to MH i2c: E2 0B 00 D2 47 80 0D 02 02 03 00 FF 6A 51 00 00 53 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 03 00 D2 47 00 90 00 8D [13:09:07]RAPDU: 90 00 [13:09:07]wFMCommunicate OK [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 0D 03 02 [13:09:07]Write to MH i2c: E2 08 00 D3 47 80 0D 03 02 00 00 00 00 95 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0B 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0B 00 D3 47 00 5F E5 7E 39 51 4E 16 91 90 00 D7 [13:09:07]RAPDU: 5F E5 7E 39 51 4E 16 91 90 00 [13:09:07]wFMCommunicate OK [13:09:07]SAM_PROTO_SignData done [13:09:07]FM_MakeSignedData done [13:09:07]CreateOFDProtocolMessage [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 11 00 00 [13:09:07]Write to MH i2c: E2 08 00 D4 47 80 11 00 00 00 00 00 00 95 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 17 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 17 00 D4 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E4 [13:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:09:08]wFMCommunicate OK [13:09:08]CreateOFDProtocolMessage done [13:09:08]OFDSenderStorePacket 15715 [13:09:08]StoreOFDPacket docnum=15715 [13:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 0F 35 05 01 BE A9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 63 3D 00 00 35 04 06 00 FD 3D 5F FF 6A 51 5F E5 7E 39 51 4E 16 91 [13:09:08]CheckFolder [13:09:08]dirname=/storage/ofd_packets [13:09:08]CheckFolder done [13:09:08]ProducePacketName [13:09:08]name=ofd_packets/00015715 [13:09:08]NVStorageSaveData ofd_packets/00015715 [13:09:08]File name is /storage/ofd_packets/00015715 [13:09:08]Write 299 bytes [13:09:08]NVStorageSaveData done [13:09:08]OFDSenderStorePacket done [13:09:08]KKMCreateOFDPacket done [13:09:08]NVStorageSaveData kkm_last_timestamp [13:09:08]File name is /storage/kkm_last_timestamp [13:09:08]Write 4 bytes [13:09:08]NVStorageSaveData done [13:09:08]ExternCall_PrintAddStr [13:09:08]wPrintStart [13:09:08]Write to MH i2c: 01 00 00 D5 47 1C [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 07 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 07 00 D5 47 00 00 00 00 00 FF 0F 31 [13:09:08]RasterBufferAndPrint [13:09:08]line Счет N : (1)16264 [13:09:08]line ИНН: 02508201610067 [13:09:08]line Контрольно-Кассовый Чек [13:09:08]line ПРОДАЖА [13:09:08]line ТРК (МРК, ГНК) : 12 [13:09:08]line Товар: 50.50.0 [13:09:08]line SUPER 92-К-5 [13:09:08]line 21.930 * 68.40 [13:09:08]line = 1500.01 [13:09:08]line НДС 12% НСП 1% [13:09:08]line > о реализуемом товаре [13:09:08]line ОКРУГЛЕНИЕ: -0.01 [13:09:08]line ИТОГО: 1500.00 [13:09:08]line Внесено: 1500.00 [13:09:08]line СДАЧА: 0.00 [13:09:08]line НСП 1% : 13.27 [13:09:08]line НДС 12% : 159.29 [13:09:08]line Наличными: 1500.00 [13:09:08]line Безнал.: 0.00 [13:09:08]line Место: АЗС № 178 "Партнер Нефть" [13:09:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:09:08]line СНО: Общий режим [13:09:08]line Чек 61 29.10.2024 13:09 [13:09:08]line Смена: 172 ФФД: 1.0 [13:09:08]line ЗНМ: 0300000014 [13:09:08]line РНМ: 0000000000161798 [13:09:08]line Версия ККМ: v1.0 [13:09:08]line ФМ: 0000000000963325 [13:09:08]line ФД: 15715 [13:09:08]line ФПД: 278440045406801 [13:09:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130917&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15715&fm=278440045406801&tin=02508201610067®Number=0000000000161798&sum=150000 [13:09:08]OFD Sender: Processing packet 15715 [packets to send 4, broken 3] [13:09:08]ProducePacketName [13:09:08]name=ofd_packets/00015715 [13:09:08]OFD Sender: To server: pG, [13:09:08]CommunicateWithHost lk.salyk.kg:30040 [13:09:08]ConnectInit lk.salyk.kg [13:09:08]written 0, free lines is 4095 [13:09:08]Connected sock=10 [13:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 0F 35 05 01 BE A9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 7D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 63 3D 00 00 35 04 06 00 FD 3D 5F FF 6A 51 5F E5 7E 39 51 4E 16 91 [13:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 E6 0F 47 00 61 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 63 3D 00 00 F4 03 04 00 6A 89 20 67 B6 04 01 00 00 58 C4 24 D9 5A 86 63 23 [13:09:08]CommunicateWithHost err = 0 [13:09:08]CheckOFDResponse [13:09:08]1017 (14) - 77093643461234 [13:09:08]1041 (16) - 0000000000963325 [13:09:08]1040 (4) - 15715 [13:09:08]1012 (4) - 29.10.2024 07:06 [13:09:08]1206 (1) - 0 [13:09:08]OFD Sender: Remove packet 15715 [13:09:08]ProducePacketName [13:09:08]name=ofd_packets/00015715 [13:09:08]NVStorageDeleteData [13:09:08]Write to MH i2c: 01 00 00 00 48 48 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 07 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: 01 07 00 00 48 00 00 00 00 00 F6 0C 51 [13:09:08]RasterBufferAndPrint [13:09:08]line [13:09:08]line [13:09:08]line [13:09:08]line [13:09:08]line [13:09:08]written 0, free lines is 3324 [13:09:08]MH_Cut [13:09:08]Write to MH i2c: D1 01 00 07 48 01 21 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: D1 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: D1 01 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: D1 01 00 07 48 00 20 [13:09:08]Write to MH i2c: 01 00 00 08 48 50 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:09]OFD Sender: No OFD packet to send [13:09:09]*** Cut start [13:09:09]*** Partial cut [13:09:09]*** CUTSNS_PIN = 1 [13:09:09]*** CUTSNS_PIN = 0 [13:09:09]*** Brake cut motor [13:09:10]Read from MH i2c: 01 [13:09:10]MH_I2C_Read... [13:09:10]*** Stop cut motor [13:09:10]*** Cut end [13:09:10]Read from MH i2c: 01 07 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 08 48 00 00 00 00 00 FF 0F 65 [13:09:10]process_action close_receipt done [13:09:10]requested_data is exist [13:09:10]produce_requested_data [13:09:10]requested_item fm.sn is exist - process it [13:09:10]wFMCommunicate request_size=4 [13:09:10]MH_SAM_APDU [13:09:10]CAPDU: 80 11 00 00 [13:09:10]Write to MH i2c: E2 08 00 09 48 80 11 00 00 00 00 00 00 CB [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:10]Read from MH i2c: E2 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 17 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 17 00 09 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1A [13:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:09:10]wFMCommunicate OK [13:09:10]requested_item fd.num is exist - process it [13:09:10]SAM_PROTO_GetFieldsCounters [13:09:10]wFMCommunicate request_size=4 [13:09:10]MH_SAM_APDU [13:09:10]CAPDU: 80 13 00 00 [13:09:10]Write to MH i2c: E2 08 00 0A 48 80 13 00 00 00 00 00 00 CE [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:10]Read from MH i2c: E2 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 62 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 62 00 0A 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 63 3D 00 00 0E 04 04 00 AC 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 F5 [13:09:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 63 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:10]wFMCommunicate OK [13:09:10]SAM_PROTO_GetFieldsCounters done [13:09:10]requested_item shift.num is exist - process it [13:09:10]requested_item shift.opened is exist - process it [13:09:10]req_shift_opened [13:09:10]FM_GetShiftState [13:09:10]SAM_PROTO_GetShiftState [13:09:10]wFMCommunicate request_size=4 [13:09:10]MH_SAM_APDU [13:09:10]CAPDU: 80 13 01 00 [13:09:10]Write to MH i2c: E2 08 00 0B 48 80 13 01 00 00 00 00 00 D0 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:10]Read from MH i2c: E2 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 0E 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: E2 0E 00 0B 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 25 [13:09:10]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:09:10]wFMCommunicate OK [13:09:10]SAM_PROTO_GetShiftState done [13:09:10]FM_GetShiftState done [13:09:10]req_shift_opened done [13:09:10]requested_item shift.open_date is exist - process it [13:09:10]req_shift_open_date [13:09:10]req_shift_open_date done [13:09:10]produce_requested_data done [13:09:10]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15715,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:09:10]process_action_free close_receipt [13:09:10]json_value_free [13:09:10]json_value_free done [13:09:10]process_json_proto returns [13:09:10]Send response to host [13:09:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15715,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:09:10]free response buf [13:09:10]execute_script done [13:09:10]execute_script returns [13:09:10]free content buf [13:09:10]Sock 9.Close socket [13:09:10]Sock 9.Thread stoped [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:38]accept exits with 8 [13:09:38]New connection [13:09:38]New thread 3066731876 created [13:09:38]Thread 3066588516 joined [13:09:38]Waiting for new connection... [13:09:38] Sock 8.Parse request [13:09:38]Sock 8.Check first char [13:09:38]Sock 8.First char is OK [13:09:38]request: POST /json_proto HTTP/1.0 [13:09:38]Method: POST [13:09:38]URL: /json_proto [13:09:38]Method is POST - this is cgi request [13:09:38]url: /json_proto [13:09:38]query_string will be loaded in cgi processing [13:09:38]execute_cgi json_proto POST (null) [13:09:38]execute_cgi path=json_proto method=POST [13:09:38]POST find Content-Length [13:09:38]Host: 172.17.54.195:8080 [13:09:38]Content-Length: 681 [13:09:38]Content-Type: application/json [13:09:38] [13:09:38]POST finish read [13:09:38]Found Content-Length = 681 [13:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [13:09:38]execute_script... [13:09: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)16265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [13:09:38]POST & json_proto [13:09:38]process_json_proto [13:09:38]json parsed OK: [13:09:38]protocol is kg_v1.0 [13:09:38]action value=close_receipt [13:09:38]process_action close_receipt [13:09:38]cmd_close_receipt [13:09:38]MH_GetDate [13:09:38]Write to MH i2c: F0 00 00 0C 48 43 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: F0 09 00 0C 48 00 9D DE 20 67 8D 90 A3 66 74 [13:09:38]GetLastDocTimeStamp 1730207357 [13:09:38]current date 1730207389 [13:09:38]FM_GetShiftState [13:09:38]SAM_PROTO_GetShiftState [13:09:38]wFMCommunicate request_size=4 [13:09:38]MH_SAM_APDU [13:09:38]CAPDU: 80 13 01 00 [13:09:38]Write to MH i2c: E2 08 00 0D 48 80 13 01 00 00 00 00 00 D2 [13:09:38]Write i2c OK [13:09:38]MH_I2C_Read... [13:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:38]Read from MH i2c: E2 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 [13:09:38]MH_I2C_Read... [13:09:38]Read from MH i2c: E2 0E 00 0D 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 27 [13:09:38]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:09:38]wFMCommunicate OK [13:09:38]SAM_PROTO_GetShiftState done [13:09:38]FM_GetShiftState done [13:09:38]opened in 1730161559 [13:09:38]opened+sec_in_day 1730247959 [13:09:38]quantity*price = 100015 [13:09:38]sum+1 = 100017 [13:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 62 29.10.2024 13:09 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15716 ФПД: 47965373643495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15716&fm=47965373643495&tin=02508201610067®Number=0000000000161798&sum=100000 [13:09:39]StoreToDocumentArchive [13:09:39]shift 172 fd 15716 [13:09:39]save to /storage/0172/doc_00015716 [13:09:39]save last doc name /storage/0172/doc_00015716 to /storage/kkm_last_doc_name [13:09:39]save OK [13:09:39]Clear old archive folders... [13:09:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:39]tlvbuf is 0044BD20 [13:09:39]SAM_PROTO_ClearQueue [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 09 00 00 [13:09:39]Write to MH i2c: E2 08 00 1A 48 80 09 00 00 00 00 00 00 D4 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_ClearQueue done [13:09:39]KKMCreateOFDPacket [13:09:39]OFDProtocolAddRootSTLVToBuf [13:09:39]FM_MakeSignedData [13:09:39]FM_MakeSignedData [13:09:39]SAM_PROTO_SignData [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 01 02 [13:09:39]Write to MH i2c: E2 08 00 1B 48 80 0D 01 02 00 00 00 00 DC [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 1B 48 00 90 00 D7 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=255 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 9D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 64 3D 00 00 35 04 06 00 2B [13:09:39]Write to MH i2c: E2 02 01 1C 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3E 00 00 00 F4 03 04 00 9D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 64 3D 00 00 35 04 06 00 2B 00 00 20 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 1C 48 00 90 00 D8 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=10 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 02 02 05 9F CF 0E BA E7 [13:09:39]Write to MH i2c: E2 0D 00 1D 48 80 0D 02 02 05 00 9F CF 0E BA E7 00 00 06 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 03 00 1D 48 00 90 00 D9 [13:09:39]RAPDU: 90 00 [13:09:39]wFMCommunicate OK [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 0D 03 02 [13:09:39]Write to MH i2c: E2 08 00 1E 48 80 0D 03 02 00 00 00 00 E1 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 0B 00 1E 48 00 ED 17 10 91 3D 33 A8 D2 90 00 71 [13:09:39]RAPDU: ED 17 10 91 3D 33 A8 D2 90 00 [13:09:39]wFMCommunicate OK [13:09:39]SAM_PROTO_SignData done [13:09:39]FM_MakeSignedData done [13:09:39]CreateOFDProtocolMessage [13:09:39]wFMCommunicate request_size=4 [13:09:39]MH_SAM_APDU [13:09:39]CAPDU: 80 11 00 00 [13:09:39]Write to MH i2c: E2 08 00 1F 48 80 11 00 00 00 00 00 00 E1 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:39]Read from MH i2c: E2 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: E2 17 00 1F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 30 [13:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:09:39]wFMCommunicate OK [13:09:39]CreateOFDProtocolMessage done [13:09:39]OFDSenderStorePacket 15716 [13:09:39]StoreOFDPacket docnum=15716 [13:09:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 F4 E4 07 01 3F 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 35 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 3E 00 00 00 F4 03 04 00 9D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 64 3D 00 00 35 04 06 00 2B 9F CF 0E BA E7 ED 17 10 91 3D 33 A8 D2 [13:09:39]CheckFolder [13:09:39]dirname=/storage/ofd_packets [13:09:39]CheckFolder done [13:09:39]ProducePacketName [13:09:39]name=ofd_packets/00015716 [13:09:39]NVStorageSaveData ofd_packets/00015716 [13:09:39]File name is /storage/ofd_packets/00015716 [13:09:39]Write 301 bytes [13:09:39]NVStorageSaveData done [13:09:39]OFDSenderStorePacket done [13:09:39]KKMCreateOFDPacket done [13:09:39]NVStorageSaveData kkm_last_timestamp [13:09:39]File name is /storage/kkm_last_timestamp [13:09:39]Write 4 bytes [13:09:39]NVStorageSaveData done [13:09:39]ExternCall_PrintAddStr [13:09:39]wPrintStart [13:09:39]Write to MH i2c: 01 00 00 20 48 68 [13:09:39]Write i2c OK [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 [13:09:39]MH_I2C_Read... [13:09:39]Read from MH i2c: 01 07 00 20 48 00 00 00 00 00 FF 0F 7D [13:09:39]RasterBufferAndPrint [13:09:39]line Счет N : (1)16265 [13:09:39]line ИНН: 02508201610067 [13:09:39]line Контрольно-Кассовый Чек [13:09:39]line ПРОДАЖА [13:09:39]line ТРК (МРК, ГНК) : 21 [13:09:39]line Товар: 2710124130 [13:09:39]line Аи-92-К-5 [13:09:39]line 14.950 * 66.90 [13:09:39]line = 1000.16 [13:09:39]line НДС 12% НСП 1% [13:09:39]line > о реализуемом товаре [13:09:39]line ОКРУГЛЕНИЕ: -0.16 [13:09:39]line ИТОГО: 1000.00 [13:09:39]line Внесено: 1000.00 [13:09:39]line СДАЧА: 0.00 [13:09:39]line НСП 1% : 8.85 [13:09:39]line НДС 12% : 106.21 [13:09:39]line Наличными: 1000.00 [13:09:39]line Безнал.: 0.00 [13:09:39]line Место: АЗС № 178 "Партнер Нефть" [13:09:39]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:09:39]line СНО: Общий режим [13:09:39]line Чек 62 29.10.2024 13:09 [13:09:39]line Смена: 172 ФФД: 1.0 [13:09:39]line ЗНМ: 0300000014 [13:09:39]line РНМ: 0000000000161798 [13:09:39]line Версия ККМ: v1.0 [13:09:39]line ФМ: 0000000000963325 [13:09:39]line ФД: 15716 [13:09:39]line ФПД: 47965373643495 [13:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T130949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15716&fm=47965373643495&tin=02508201610067®Number=0000000000161798&sum=100000 [13:09:40]OFD Sender: Processing packet 15716 [packets to send 4, broken 3] [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00015716 [13:09:40]OFD Sender: To server: pG, [13:09:40]CommunicateWithHost lk.salyk.kg:30040 [13:09:40]ConnectInit lk.salyk.kg [13:09:40]written 0, free lines is 4095 [13:09:40]Connected sock=10 [13:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 F4 E4 07 01 3F 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 35 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 3E 00 00 00 F4 03 04 00 9D DE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 64 3D 00 00 35 04 06 00 2B 9F CF 0E BA E7 ED 17 10 91 3D 33 A8 D2 [13:09:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 11 4A 47 00 E3 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 64 3D 00 00 F4 03 04 00 8A 89 20 67 B6 04 01 00 00 4D C8 92 AF 1E 1D DB 4A [13:09:40]CommunicateWithHost err = 0 [13:09:40]CheckOFDResponse [13:09:40]1017 (14) - 77093643461234 [13:09:40]1041 (16) - 0000000000963325 [13:09:40]1040 (4) - 15716 [13:09:40]1012 (4) - 29.10.2024 07:06 [13:09:40]1206 (1) - 0 [13:09:40]OFD Sender: Remove packet 15716 [13:09:40]ProducePacketName [13:09:40]name=ofd_packets/00015716 [13:09:40]NVStorageDeleteData [13:09:40]Write to MH i2c: 01 00 00 4B 48 93 [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: 01 07 00 4B 48 00 00 00 00 00 0E 0D B5 [13:09:40]RasterBufferAndPrint [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]line [13:09:40]written 0, free lines is 3348 [13:09:40]MH_Cut [13:09:40]Write to MH i2c: D1 01 00 52 48 01 6C [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 [13:09:40]MH_I2C_Read... [13:09:40]Read from MH i2c: D1 01 00 52 48 00 6B [13:09:40]Write to MH i2c: 01 00 00 53 48 9B [13:09:40]Write i2c OK [13:09:40]MH_I2C_Read... [13:09:40]OFD Sender: No OFD packet to send [13:09:41]*** Cut start [13:09:41]*** Partial cut [13:09:41]*** CUTSNS_PIN = 1 [13:09:41]*** CUTSNS_PIN = 0 [13:09:41]*** Brake cut motor [13:09:41]Read from MH i2c: 01 [13:09:41]MH_I2C_Read... [13:09:41]*** Stop cut motor [13:09:41]*** Cut end [13:09:41]Read from MH i2c: 01 07 00 [13:09:41]MH_I2C_Read... [13:09:41]Read from MH i2c: 01 07 00 53 48 00 00 00 00 00 FF 0F B0 [13:09:41]process_action close_receipt done [13:09:41]requested_data is exist [13:09:41]produce_requested_data [13:09:41]requested_item fm.sn is exist - process it [13:09:41]wFMCommunicate request_size=4 [13:09:41]MH_SAM_APDU [13:09:41]CAPDU: 80 11 00 00 [13:09:41]Write to MH i2c: E2 08 00 54 48 80 11 00 00 00 00 00 00 16 [13:09:41]Write i2c OK [13:09:41]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 17 00 54 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 65 [13:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:09:42]wFMCommunicate OK [13:09:42]requested_item fd.num is exist - process it [13:09:42]SAM_PROTO_GetFieldsCounters [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 00 00 [13:09:42]Write to MH i2c: E2 08 00 55 48 80 13 00 00 00 00 00 00 19 [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 62 00 55 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 64 3D 00 00 0E 04 04 00 AC 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 44 [13:09:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 64 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetFieldsCounters done [13:09:42]requested_item shift.num is exist - process it [13:09:42]requested_item shift.opened is exist - process it [13:09:42]req_shift_opened [13:09:42]FM_GetShiftState [13:09:42]SAM_PROTO_GetShiftState [13:09:42]wFMCommunicate request_size=4 [13:09:42]MH_SAM_APDU [13:09:42]CAPDU: 80 13 01 00 [13:09:42]Write to MH i2c: E2 08 00 56 48 80 13 01 00 00 00 00 00 1B [13:09:42]Write i2c OK [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 [13:09:42]MH_I2C_Read... [13:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:42]Read from MH i2c: E2 0E 00 [13:09:42]MH_I2C_Read... [13:09:42]Read from MH i2c: E2 0E 00 56 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 70 [13:09:42]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:09:42]wFMCommunicate OK [13:09:42]SAM_PROTO_GetShiftState done [13:09:42]FM_GetShiftState done [13:09:42]req_shift_opened done [13:09:42]requested_item shift.open_date is exist - process it [13:09:42]req_shift_open_date [13:09:42]req_shift_open_date done [13:09:42]produce_requested_data done [13:09:42]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15716,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:09:42]process_action_free close_receipt [13:09:42]json_value_free [13:09:42]json_value_free done [13:09:42]process_json_proto returns [13:09:42]Send response to host [13:09:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15716,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:09:42]free response buf [13:09:42]execute_script done [13:09:42]execute_script returns [13:09:42]free content buf [13:09:42]Sock 8.Close socket [13:09:42]Sock 8.Thread stoped [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:41]OFD Sender: No OFD packet to send [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:15]accept exits with 9 [13:12:15]New connection [13:12:15]New thread 3066588516 created [13:12:15]Thread 3066731876 joined [13:12:15]Waiting for new connection... [13:12:15] Sock 9.Parse request [13:12:15]Sock 9.Check first char [13:12:15]Sock 9.First char is OK [13:12:15]request: POST /json_proto HTTP/1.0 [13:12:15]Method: POST [13:12:15]URL: /json_proto [13:12:15]Method is POST - this is cgi request [13:12:15]url: /json_proto [13:12:15]query_string will be loaded in cgi processing [13:12:15]execute_cgi json_proto POST (null) [13:12:15]execute_cgi path=json_proto method=POST [13:12:15]POST find Content-Length [13:12:15]Host: 172.17.54.195:8080 [13:12:15]Content-Length: 667 [13:12:15]Content-Type: application/json [13:12:15] [13:12:15]POST finish read [13:12:15]Found Content-Length = 667 [13:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:12:15]execute_script... [13:12: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)16266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "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:12:15]POST & json_proto [13:12:15]process_json_proto [13:12:15]json parsed OK: [13:12:15]protocol is kg_v1.0 [13:12:15]action value=close_receipt [13:12:15]process_action close_receipt [13:12:15]cmd_close_receipt [13:12:15]MH_GetDate [13:12:15]Write to MH i2c: F0 00 00 57 48 8E [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: F0 09 00 57 48 00 3A DF 20 67 8D 90 A3 66 5D [13:12:15]GetLastDocTimeStamp 1730207389 [13:12:15]current date 1730207546 [13:12:15]FM_GetShiftState [13:12:15]SAM_PROTO_GetShiftState [13:12:15]wFMCommunicate request_size=4 [13:12:15]MH_SAM_APDU [13:12:15]CAPDU: 80 13 01 00 [13:12:15]Write to MH i2c: E2 08 00 58 48 80 13 01 00 00 00 00 00 1D [13:12:15]Write i2c OK [13:12:15]MH_I2C_Read... [13:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:15]Read from MH i2c: E2 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 [13:12:15]MH_I2C_Read... [13:12:15]Read from MH i2c: E2 0E 00 58 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 72 [13:12:15]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:12:15]wFMCommunicate OK [13:12:15]SAM_PROTO_GetShiftState done [13:12:15]FM_GetShiftState done [13:12:15]opened in 1730161559 [13:12:15]opened+sec_in_day 1730247959 [13:12:15]quantity*price = 70041 [13:12:15]sum+1 = 70043 [13:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 63 29.10.2024 13:12 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15717 ФПД: 134794311515012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131226&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15717&fm=134794311515012&tin=02508201610067®Number=0000000000161798&sum=70000 [13:12:16]StoreToDocumentArchive [13:12:16]shift 172 fd 15717 [13:12:16]save to /storage/0172/doc_00015717 [13:12:16]save last doc name /storage/0172/doc_00015717 to /storage/kkm_last_doc_name [13:12:16]save OK [13:12:16]Clear old archive folders... [13:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:12:16]tlvbuf is 0046DC60 [13:12:16]SAM_PROTO_ClearQueue [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 09 00 00 [13:12:16]Write to MH i2c: E2 08 00 65 48 80 09 00 00 00 00 00 00 1F [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]SAM_PROTO_ClearQueue done [13:12:16]KKMCreateOFDPacket [13:12:16]OFDProtocolAddRootSTLVToBuf [13:12:16]FM_MakeSignedData [13:12:16]FM_MakeSignedData [13:12:16]SAM_PROTO_SignData [13:12:16]wFMCommunicate request_size=4 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 01 02 [13:12:16]Write to MH i2c: E2 08 00 66 48 80 0D 01 02 00 00 00 00 27 [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 [13:12:16]MH_I2C_Read... [13:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:16]Read from MH i2c: E2 03 00 [13:12:16]MH_I2C_Read... [13:12:16]Read from MH i2c: E2 03 00 66 48 00 90 00 22 [13:12:16]RAPDU: 90 00 [13:12:16]wFMCommunicate OK [13:12:16]wFMCommunicate request_size=255 [13:12:16]MH_SAM_APDU [13:12:16]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 3F 00 00 00 F4 03 04 00 3A DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 65 3D 00 00 35 04 06 00 7A 98 3F [13:12:16]Write to MH i2c: E2 02 01 67 48 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 3F 00 00 00 F4 03 04 00 3A DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 65 3D 00 00 35 04 06 00 7A 98 3F 00 00 EA [13:12:16]Write i2c OK [13:12:16]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 03 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 03 00 67 48 00 90 00 23 [13:12:17]RAPDU: 90 00 [13:12:17]wFMCommunicate OK [13:12:17]wFMCommunicate request_size=8 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 0D 02 02 03 0E 3B 84 [13:12:17]Write to MH i2c: E2 0B 00 68 48 80 0D 02 02 03 00 0E 3B 84 00 00 FD [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 03 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 03 00 68 48 00 90 00 24 [13:12:17]RAPDU: 90 00 [13:12:17]wFMCommunicate OK [13:12:17]wFMCommunicate request_size=4 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 0D 03 02 [13:12:17]Write to MH i2c: E2 08 00 69 48 80 0D 03 02 00 00 00 00 2C [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 0B 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 0B 00 69 48 00 B9 E6 C7 B5 A3 7F 9D 31 90 00 38 [13:12:17]RAPDU: B9 E6 C7 B5 A3 7F 9D 31 90 00 [13:12:17]wFMCommunicate OK [13:12:17]SAM_PROTO_SignData done [13:12:17]FM_MakeSignedData done [13:12:17]CreateOFDProtocolMessage [13:12:17]wFMCommunicate request_size=4 [13:12:17]MH_SAM_APDU [13:12:17]CAPDU: 80 11 00 00 [13:12:17]Write to MH i2c: E2 08 00 6A 48 80 11 00 00 00 00 00 00 2C [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:17]Read from MH i2c: E2 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: E2 17 00 6A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7B [13:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:12:17]wFMCommunicate OK [13:12:17]CreateOFDProtocolMessage done [13:12:17]OFDSenderStorePacket 15717 [13:12:17]StoreOFDPacket docnum=15717 [13:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 3A 4E 05 01 CA 71 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 3F 00 00 00 F4 03 04 00 3A DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 65 3D 00 00 35 04 06 00 7A 98 3F 0E 3B 84 B9 E6 C7 B5 A3 7F 9D 31 [13:12:17]CheckFolder [13:12:17]dirname=/storage/ofd_packets [13:12:17]CheckFolder done [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00015717 [13:12:17]NVStorageSaveData ofd_packets/00015717 [13:12:17]File name is /storage/ofd_packets/00015717 [13:12:17]Write 299 bytes [13:12:17]NVStorageSaveData done [13:12:17]OFDSenderStorePacket done [13:12:17]KKMCreateOFDPacket done [13:12:17]NVStorageSaveData kkm_last_timestamp [13:12:17]File name is /storage/kkm_last_timestamp [13:12:17]Write 4 bytes [13:12:17]NVStorageSaveData done [13:12:17]ExternCall_PrintAddStr [13:12:17]wPrintStart [13:12:17]Write to MH i2c: 01 00 00 6B 48 B3 [13:12:17]Write i2c OK [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 [13:12:17]MH_I2C_Read... [13:12:17]Read from MH i2c: 01 07 00 6B 48 00 00 00 00 00 FF 0F C8 [13:12:17]RasterBufferAndPrint [13:12:17]line Счет N : (1)16266 [13:12:17]line ИНН: 02508201610067 [13:12:17]line Контрольно-Кассовый Чек [13:12:17]line ПРОДАЖА [13:12:17]line ТРК (МРК, ГНК) : 12 [13:12:17]line Товар: 50.50.0 [13:12:17]line SUPER 92-К-5 [13:12:17]line 10.240 * 68.40 [13:12:17]line = 700.42 [13:12:17]line НДС 12% НСП 1% [13:12:17]line > о реализуемом товаре [13:12:17]line ОКРУГЛЕНИЕ: -0.42 [13:12:17]line ИТОГО: 700.00 [13:12:17]line Внесено: 700.00 [13:12:17]line СДАЧА: 0.00 [13:12:17]line НСП 1% : 6.20 [13:12:17]line НДС 12% : 74.38 [13:12:17]line Наличными: 700.00 [13:12:17]line Безнал.: 0.00 [13:12:17]line Место: АЗС № 178 "Партнер Нефть" [13:12:17]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:12:17]line СНО: Общий режим [13:12:17]line Чек 63 29.10.2024 13:12 [13:12:17]line Смена: 172 ФФД: 1.0 [13:12:17]line ЗНМ: 0300000014 [13:12:17]line РНМ: 0000000000161798 [13:12:17]line Версия ККМ: v1.0 [13:12:17]line ФМ: 0000000000963325 [13:12:17]line ФД: 15717 [13:12:17]line ФПД: 134794311515012 [13:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131226&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15717&fm=134794311515012&tin=02508201610067®Number=0000000000161798&sum=70000 [13:12:17]OFD Sender: Processing packet 15717 [packets to send 4, broken 3] [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00015717 [13:12:17]OFD Sender: To server: pG, [13:12:17]CommunicateWithHost lk.salyk.kg:30040 [13:12:17]ConnectInit lk.salyk.kg [13:12:17]written 0, free lines is 4095 [13:12:17]Connected sock=10 [13:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 3A 4E 05 01 CA 71 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 3F 00 00 00 F4 03 04 00 3A DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 65 3D 00 00 35 04 06 00 7A 98 3F 0E 3B 84 B9 E6 C7 B5 A3 7F 9D 31 [13:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 4F A3 47 00 A9 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 65 3D 00 00 F4 03 04 00 27 8A 20 67 B6 04 01 00 00 B2 41 36 40 2E 34 4D B3 [13:12:17]CommunicateWithHost err = 0 [13:12:17]CheckOFDResponse [13:12:17]1017 (14) - 77093643461234 [13:12:17]1041 (16) - 0000000000963325 [13:12:17]1040 (4) - 15717 [13:12:17]1012 (4) - 29.10.2024 07:09 [13:12:17]1206 (1) - 0 [13:12:17]OFD Sender: Remove packet 15717 [13:12:17]ProducePacketName [13:12:17]name=ofd_packets/00015717 [13:12:17]NVStorageDeleteData [13:12:18]Write to MH i2c: 01 00 00 96 48 DE [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 07 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: 01 07 00 96 48 00 00 00 00 00 EF 0C E0 [13:12:18]RasterBufferAndPrint [13:12:18]line [13:12:18]line [13:12:18]line [13:12:18]line [13:12:18]line [13:12:18]written 0, free lines is 3317 [13:12:18]MH_Cut [13:12:18]Write to MH i2c: D1 01 00 9D 48 01 B7 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: D1 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: D1 01 00 [13:12:18]MH_I2C_Read... [13:12:18]Read from MH i2c: D1 01 00 9D 48 00 B6 [13:12:18]Write to MH i2c: 01 00 00 9E 48 E6 [13:12:18]Write i2c OK [13:12:18]MH_I2C_Read... [13:12:18]OFD Sender: No OFD packet to send [13:12:18]*** Cut start [13:12:18]*** Partial cut [13:12:18]*** CUTSNS_PIN = 1 [13:12:18]*** CUTSNS_PIN = 0 [13:12:19]*** Brake cut motor [13:12:19]Read from MH i2c: 01 [13:12:19]MH_I2C_Read... [13:12:19]*** Stop cut motor [13:12:19]*** Cut end [13:12:19]Read from MH i2c: 01 07 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: 01 07 00 9E 48 00 00 00 00 00 FF 0F FB [13:12:19]process_action close_receipt done [13:12:19]requested_data is exist [13:12:19]produce_requested_data [13:12:19]requested_item fm.sn is exist - process it [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 11 00 00 [13:12:19]Write to MH i2c: E2 08 00 9F 48 80 11 00 00 00 00 00 00 61 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 17 00 9F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B0 [13:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:12:19]wFMCommunicate OK [13:12:19]requested_item fd.num is exist - process it [13:12:19]SAM_PROTO_GetFieldsCounters [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 00 00 [13:12:19]Write to MH i2c: E2 08 00 A0 48 80 13 00 00 00 00 00 00 64 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 62 00 A0 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 65 3D 00 00 0E 04 04 00 AC 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 93 [13:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 65 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetFieldsCounters done [13:12:19]requested_item shift.num is exist - process it [13:12:19]requested_item shift.opened is exist - process it [13:12:19]req_shift_opened [13:12:19]FM_GetShiftState [13:12:19]SAM_PROTO_GetShiftState [13:12:19]wFMCommunicate request_size=4 [13:12:19]MH_SAM_APDU [13:12:19]CAPDU: 80 13 01 00 [13:12:19]Write to MH i2c: E2 08 00 A1 48 80 13 01 00 00 00 00 00 66 [13:12:19]Write i2c OK [13:12:19]MH_I2C_Read... [13:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:19]Read from MH i2c: E2 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 [13:12:19]MH_I2C_Read... [13:12:19]Read from MH i2c: E2 0E 00 A1 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BB [13:12:19]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:12:19]wFMCommunicate OK [13:12:19]SAM_PROTO_GetShiftState done [13:12:19]FM_GetShiftState done [13:12:19]req_shift_opened done [13:12:19]requested_item shift.open_date is exist - process it [13:12:19]req_shift_open_date [13:12:19]req_shift_open_date done [13:12:19]produce_requested_data done [13:12:19]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15717,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:12:19]process_action_free close_receipt [13:12:19]json_value_free [13:12:19]json_value_free done [13:12:19]process_json_proto returns [13:12:19]Send response to host [13:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15717,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:12:19]free response buf [13:12:19]execute_script done [13:12:19]execute_script returns [13:12:19]free content buf [13:12:19]Sock 9.Close socket [13:12:19]Sock 9.Thread stoped [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:49]accept exits with 8 [13:12:49]New connection [13:12:49]New thread 3066731876 created [13:12:49]Thread 3066588516 joined [13:12:49]Waiting for new connection... [13:12:49] Sock 8.Parse request [13:12:49]Sock 8.Check first char [13:12:49]Sock 8.First char is OK [13:12:49]request: POST /json_proto HTTP/1.0 [13:12:49]Method: POST [13:12:49]URL: /json_proto [13:12:49]Method is POST - this is cgi request [13:12:49]url: /json_proto [13:12:49]query_string will be loaded in cgi processing [13:12:49]execute_cgi json_proto POST (null) [13:12:49]execute_cgi path=json_proto method=POST [13:12:49]POST find Content-Length [13:12:49]Host: 172.17.54.195:8080 [13:12:49]Content-Length: 628 [13:12:49]Content-Type: application/json [13:12:49] [13:12:49]POST finish read [13:12:49]Found Content-Length = 628 [13:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:49]execute_script... [13:12: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)16267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:49]POST & json_proto [13:12:49]process_json_proto [13:12:49]json parsed OK: [13:12:49]protocol is kg_v1.0 [13:12:49]action value=close_receipt [13:12:49]process_action close_receipt [13:12:49]cmd_close_receipt [13:12:49]MH_GetDate [13:12:49]Write to MH i2c: F0 00 00 A2 48 D9 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 A2 48 00 5C DF 20 67 8D 90 A3 66 CA [13:12:49]GetLastDocTimeStamp 1730207546 [13:12:49]current date 1730207580 [13:12:49]FM_GetShiftState [13:12:49]SAM_PROTO_GetShiftState [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 13 01 00 [13:12:49]Write to MH i2c: E2 08 00 A3 48 80 13 01 00 00 00 00 00 68 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 A3 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BD [13:12:49]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:12:49]wFMCommunicate OK [13:12:49]SAM_PROTO_GetShiftState done [13:12:49]FM_GetShiftState done [13:12:49]opened in 1730161559 [13:12:49]opened+sec_in_day 1730247959 [13:12:49]quantity*price = 50000 [13:12:49]sum+1 = 50001 [13:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 64 29.10.2024 13:13 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15718 ФПД: 221267969838119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131300&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15718&fm=221267969838119&tin=02508201610067®Number=0000000000161798&sum=50000 [13:12:50]StoreToDocumentArchive [13:12:50]shift 172 fd 15718 [13:12:50]save to /storage/0172/doc_00015718 [13:12:50]save last doc name /storage/0172/doc_00015718 to /storage/kkm_last_doc_name [13:12:50]save OK [13:12:50]Clear old archive folders... [13:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:12:50]tlvbuf is 00319810 [13:12:50]SAM_PROTO_ClearQueue [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 09 00 00 [13:12:50]Write to MH i2c: E2 08 00 B0 48 80 09 00 00 00 00 00 00 6A [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 B0 48 00 90 00 6C [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_ClearQueue done [13:12:50]KKMCreateOFDPacket [13:12:50]OFDProtocolAddRootSTLVToBuf [13:12:50]FM_MakeSignedData [13:12:50]FM_MakeSignedData [13:12:50]SAM_PROTO_SignData [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 01 02 [13:12:50]Write to MH i2c: E2 08 00 B1 48 80 0D 01 02 00 00 00 00 72 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 B1 48 00 90 00 6D [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=255 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5C DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 66 3D 00 00 35 04 06 00 C9 3D F6 [13:12:50]Write to MH i2c: E2 02 01 B2 48 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5C DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 66 3D 00 00 35 04 06 00 C9 3D F6 00 00 03 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 B2 48 00 90 00 6E [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=8 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 02 02 03 BE 0C 27 [13:12:50]Write to MH i2c: E2 0B 00 B3 48 80 0D 02 02 03 00 BE 0C 27 00 00 6C [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 B3 48 00 90 00 6F [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 03 02 [13:12:50]Write to MH i2c: E2 08 00 B4 48 80 0D 03 02 00 00 00 00 77 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0B 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 0B 00 B4 48 00 AC 37 FD C3 51 B7 D8 3A 90 00 35 [13:12:50]RAPDU: AC 37 FD C3 51 B7 D8 3A 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_SignData done [13:12:50]FM_MakeSignedData done [13:12:50]CreateOFDProtocolMessage [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 11 00 00 [13:12:50]Write to MH i2c: E2 08 00 B5 48 80 11 00 00 00 00 00 00 77 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 17 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 17 00 B5 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C6 [13:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:12:50]wFMCommunicate OK [13:12:50]CreateOFDProtocolMessage done [13:12:50]OFDSenderStorePacket 15718 [13:12:50]StoreOFDPacket docnum=15718 [13:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E1 F6 05 01 25 08 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5C DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 66 3D 00 00 35 04 06 00 C9 3D F6 BE 0C 27 AC 37 FD C3 51 B7 D8 3A [13:12:50]CheckFolder [13:12:50]dirname=/storage/ofd_packets [13:12:50]CheckFolder done [13:12:50]ProducePacketName [13:12:50]name=ofd_packets/00015718 [13:12:50]NVStorageSaveData ofd_packets/00015718 [13:12:50]File name is /storage/ofd_packets/00015718 [13:12:50]Write 299 bytes [13:12:50]NVStorageSaveData done [13:12:50]OFDSenderStorePacket done [13:12:50]KKMCreateOFDPacket done [13:12:50]NVStorageSaveData kkm_last_timestamp [13:12:50]File name is /storage/kkm_last_timestamp [13:12:50]Write 4 bytes [13:12:50]NVStorageSaveData done [13:12:50]ExternCall_PrintAddStr [13:12:50]wPrintStart [13:12:50]Write to MH i2c: 01 00 00 B6 48 FE [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 07 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: 01 07 00 B6 48 00 00 00 00 00 FF 0F 13 [13:12:50]RasterBufferAndPrint [13:12:50]line Счет N : (1)16267 [13:12:50]line ИНН: 02508201610067 [13:12:50]line Контрольно-Кассовый Чек [13:12:50]line ПРОДАЖА [13:12:50]line ТРК (МРК, ГНК) : 12 [13:12:50]line Товар: 50.50.0 [13:12:50]line SUPER 92-К-5 [13:12:50]line 7.310 * 68.40 [13:12:50]line = 500.00 [13:12:50]line НДС 12% НСП 1% [13:12:50]line > о реализуемом товаре [13:12:50]line ИТОГО: 500.00 [13:12:50]line НСП 1% : 4.42 [13:12:50]line НДС 12% : 53.10 [13:12:50]line Наличными: 500.00 [13:12:50]line Безнал.: 0.00 [13:12:50]line Место: АЗС № 178 "Партнер Нефть" [13:12:50]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:12:50]line СНО: Общий режим [13:12:50]line Чек 64 29.10.2024 13:13 [13:12:50]line Смена: 172 ФФД: 1.0 [13:12:50]line ЗНМ: 0300000014 [13:12:50]line РНМ: 0000000000161798 [13:12:50]line Версия ККМ: v1.0 [13:12:50]line ФМ: 0000000000963325 [13:12:50]line ФД: 15718 [13:12:50]line ФПД: 221267969838119 [13:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131300&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15718&fm=221267969838119&tin=02508201610067®Number=0000000000161798&sum=50000 [13:12:51]OFD Sender: Processing packet 15718 [packets to send 4, broken 3] [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00015718 [13:12:51]OFD Sender: To server: pG, [13:12:51]CommunicateWithHost lk.salyk.kg:30040 [13:12:51]ConnectInit lk.salyk.kg [13:12:51]written 0, free lines is 4095 [13:12:51]Connected sock=10 [13:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E1 F6 05 01 25 08 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 5C DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 66 3D 00 00 35 04 06 00 C9 3D F6 BE 0C 27 AC 37 FD C3 51 B7 D8 3A [13:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 BF 95 47 00 08 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 66 3D 00 00 F4 03 04 00 49 8A 20 67 B6 04 01 00 00 79 59 88 8D A5 3C A0 57 [13:12:51]CommunicateWithHost err = 0 [13:12:51]CheckOFDResponse [13:12:51]1017 (14) - 77093643461234 [13:12:51]1041 (16) - 0000000000963325 [13:12:51]1040 (4) - 15718 [13:12:51]1012 (4) - 29.10.2024 07:10 [13:12:51]1206 (1) - 0 [13:12:51]OFD Sender: Remove packet 15718 [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00015718 [13:12:51]NVStorageDeleteData [13:12:51]Write to MH i2c: 01 00 00 DE 48 26 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 DE 48 00 00 00 00 00 26 0D 60 [13:12:51]RasterBufferAndPrint [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]written 0, free lines is 3372 [13:12:51]MH_Cut [13:12:51]Write to MH i2c: D1 01 00 E5 48 01 FF [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 E5 48 00 FE [13:12:51]Write to MH i2c: 01 00 00 E6 48 2E [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:52]OFD Sender: No OFD packet to send [13:12:52]*** Cut start [13:12:52]*** Partial cut [13:12:52]*** CUTSNS_PIN = 1 [13:12:52]*** CUTSNS_PIN = 0 [13:12:52]*** Brake cut motor [13:12:52]Read from MH i2c: 01 [13:12:52]MH_I2C_Read... [13:12:52]*** Stop cut motor [13:12:52]*** Cut end [13:12:52]Read from MH i2c: 01 07 00 [13:12:52]MH_I2C_Read... [13:12:52]Read from MH i2c: 01 07 00 E6 48 00 00 00 00 00 FF 0F 43 [13:12:52]process_action close_receipt done [13:12:52]requested_data is exist [13:12:52]produce_requested_data [13:12:52]requested_item fm.sn is exist - process it [13:12:52]wFMCommunicate request_size=4 [13:12:52]MH_SAM_APDU [13:12:52]CAPDU: 80 11 00 00 [13:12:52]Write to MH i2c: E2 08 00 E7 48 80 11 00 00 00 00 00 00 A9 [13:12:52]Write i2c OK [13:12:52]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 E7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F8 [13:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:12:53]wFMCommunicate OK [13:12:53]requested_item fd.num is exist - process it [13:12:53]SAM_PROTO_GetFieldsCounters [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 00 00 [13:12:53]Write to MH i2c: E2 08 00 E8 48 80 13 00 00 00 00 00 00 AC [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 E8 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 66 3D 00 00 0E 04 04 00 AC 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 DF [13:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 66 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetFieldsCounters done [13:12:53]requested_item shift.num is exist - process it [13:12:53]requested_item shift.opened is exist - process it [13:12:53]req_shift_opened [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 E9 48 80 13 01 00 00 00 00 00 AE [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 E9 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 03 [13:12:53]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]req_shift_opened done [13:12:53]requested_item shift.open_date is exist - process it [13:12:53]req_shift_open_date [13:12:53]req_shift_open_date done [13:12:53]produce_requested_data done [13:12:53]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15718,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:12:53]process_action_free close_receipt [13:12:53]json_value_free [13:12:53]json_value_free done [13:12:53]process_json_proto returns [13:12:53]Send response to host [13:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15718,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:12:53]free response buf [13:12:53]execute_script done [13:12:53]execute_script returns [13:12:53]free content buf [13:12:53]Sock 8.Close socket [13:12:53]Sock 8.Thread stoped [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:02]accept exits with 9 [13:15:02]New connection [13:15:02]New thread 3066588516 created [13:15:02]Thread 3066731876 joined [13:15:02]Waiting for new connection... [13:15:02] Sock 9.Parse request [13:15:02]Sock 9.Check first char [13:15:02]Sock 9.First char is OK [13:15:02]request: POST /json_proto HTTP/1.0 [13:15:02]Method: POST [13:15:02]URL: /json_proto [13:15:02]Method is POST - this is cgi request [13:15:02]url: /json_proto [13:15:02]query_string will be loaded in cgi processing [13:15:02]execute_cgi json_proto POST (null) [13:15:02]execute_cgi path=json_proto method=POST [13:15:02]POST find Content-Length [13:15:02]Host: 172.17.54.195:8080 [13:15:02]Content-Length: 666 [13:15:02]Content-Type: application/json [13:15:02] [13:15:02]POST finish read [13:15:02]Found Content-Length = 666 [13:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.340, "sum" : 570.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:02]execute_script... [13:15: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)16268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 8.340, "sum" : 570.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 570.00, "total" : 570.00, "payments": [ { "type": 0, "sum" : 570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:02]POST & json_proto [13:15:02]process_json_proto [13:15:02]json parsed OK: [13:15:02]protocol is kg_v1.0 [13:15:02]action value=close_receipt [13:15:02]process_action close_receipt [13:15:02]cmd_close_receipt [13:15:02]MH_GetDate [13:15:02]Write to MH i2c: F0 00 00 EA 48 21 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 09 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: F0 09 00 EA 48 00 E1 DF 20 67 8D 90 A3 66 97 [13:15:02]GetLastDocTimeStamp 1730207580 [13:15:02]current date 1730207713 [13:15:02]FM_GetShiftState [13:15:02]SAM_PROTO_GetShiftState [13:15:02]wFMCommunicate request_size=4 [13:15:02]MH_SAM_APDU [13:15:02]CAPDU: 80 13 01 00 [13:15:02]Write to MH i2c: E2 08 00 EB 48 80 13 01 00 00 00 00 00 B0 [13:15:02]Write i2c OK [13:15:02]MH_I2C_Read... [13:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:02]Read from MH i2c: E2 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 0E 00 [13:15:02]MH_I2C_Read... [13:15:02]Read from MH i2c: E2 0E 00 EB 48 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 05 [13:15:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:15:02]wFMCommunicate OK [13:15:02]SAM_PROTO_GetShiftState done [13:15:02]FM_GetShiftState done [13:15:02]opened in 1730161559 [13:15:02]opened+sec_in_day 1730247959 [13:15:02]quantity*price = 57045 [13:15:02]sum+1 = 57047 [13:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 570.00 Внесено: 570.00 СДАЧА: 0.00 НСП 1% : 5.05 НДС 12% : 60.58 Наличными: 570.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 65 29.10.2024 13:15 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15719 ФПД: 138882819807209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131514&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15719&fm=138882819807209&tin=02508201610067®Number=0000000000161798&sum=57000 [13:15:03]StoreToDocumentArchive [13:15:03]shift 172 fd 15719 [13:15:03]save to /storage/0172/doc_00015719 [13:15:03]save last doc name /storage/0172/doc_00015719 to /storage/kkm_last_doc_name [13:15:03]save OK [13:15:03]Clear old archive folders... [13:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:15:03]tlvbuf is 00319E00 [13:15:03]SAM_PROTO_ClearQueue [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 09 00 00 [13:15:03]Write to MH i2c: E2 08 00 F8 48 80 09 00 00 00 00 00 00 B2 [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:03]Read from MH i2c: E2 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 [13:15:03]MH_I2C_Read... [13:15:03]Read from MH i2c: E2 03 00 F8 48 00 90 00 B4 [13:15:03]RAPDU: 90 00 [13:15:03]wFMCommunicate OK [13:15:03]SAM_PROTO_ClearQueue done [13:15:03]KKMCreateOFDPacket [13:15:03]OFDProtocolAddRootSTLVToBuf [13:15:03]FM_MakeSignedData [13:15:03]FM_MakeSignedData [13:15:03]SAM_PROTO_SignData [13:15:03]wFMCommunicate request_size=4 [13:15:03]MH_SAM_APDU [13:15:03]CAPDU: 80 0D 01 02 [13:15:03]Write to MH i2c: E2 08 00 F9 48 80 0D 01 02 00 00 00 00 BA [13:15:03]Write i2c OK [13:15:03]MH_I2C_Read... [13:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 03 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 03 00 F9 48 00 90 00 B5 [13:15:04]RAPDU: 90 00 [13:15:04]wFMCommunicate OK [13:15:04]wFMCommunicate request_size=255 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 D6 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 E2 DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 67 3D 00 00 35 04 06 00 7E 50 2D [13:15:04]Write to MH i2c: E2 02 01 FA 48 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 D6 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 E2 DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 67 3D 00 00 35 04 06 00 7E 50 2D 00 00 91 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 03 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 03 00 FA 48 00 90 00 B6 [13:15:04]RAPDU: 90 00 [13:15:04]wFMCommunicate OK [13:15:04]wFMCommunicate request_size=8 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 0D 02 02 03 23 D7 E9 [13:15:04]Write to MH i2c: E2 0B 00 FB 48 80 0D 02 02 03 00 23 D7 E9 00 00 A6 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:04]Read from MH i2c: E2 03 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 03 00 FB 48 00 90 00 B7 [13:15:04]RAPDU: 90 00 [13:15:04]wFMCommunicate OK [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 0D 03 02 [13:15:04]Write to MH i2c: E2 08 00 FC 48 80 0D 03 02 00 00 00 00 BF [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0B 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 0B 00 FC 48 00 6B AC 53 0D 01 66 F0 97 90 00 25 [13:15:04]RAPDU: 6B AC 53 0D 01 66 F0 97 90 00 [13:15:04]wFMCommunicate OK [13:15:04]SAM_PROTO_SignData done [13:15:04]FM_MakeSignedData done [13:15:04]CreateOFDProtocolMessage [13:15:04]wFMCommunicate request_size=4 [13:15:04]MH_SAM_APDU [13:15:04]CAPDU: 80 11 00 00 [13:15:04]Write to MH i2c: E2 08 00 FD 48 80 11 00 00 00 00 00 00 BF [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:04]Read from MH i2c: E2 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 17 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: E2 17 00 FD 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0E [13:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:15:04]wFMCommunicate OK [13:15:04]CreateOFDProtocolMessage done [13:15:04]OFDSenderStorePacket 15719 [13:15:04]StoreOFDPacket docnum=15719 [13:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 06 77 05 01 9B 6A 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 D6 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 E2 DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 67 3D 00 00 35 04 06 00 7E 50 2D 23 D7 E9 6B AC 53 0D 01 66 F0 97 [13:15:04]CheckFolder [13:15:04]dirname=/storage/ofd_packets [13:15:04]CheckFolder done [13:15:04]ProducePacketName [13:15:04]name=ofd_packets/00015719 [13:15:04]NVStorageSaveData ofd_packets/00015719 [13:15:04]File name is /storage/ofd_packets/00015719 [13:15:04]Write 299 bytes [13:15:04]NVStorageSaveData done [13:15:04]OFDSenderStorePacket done [13:15:04]KKMCreateOFDPacket done [13:15:04]NVStorageSaveData kkm_last_timestamp [13:15:04]File name is /storage/kkm_last_timestamp [13:15:04]Write 4 bytes [13:15:04]NVStorageSaveData done [13:15:04]ExternCall_PrintAddStr [13:15:04]wPrintStart [13:15:04]Write to MH i2c: 01 00 00 FE 48 46 [13:15:04]Write i2c OK [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 07 00 [13:15:04]MH_I2C_Read... [13:15:04]Read from MH i2c: 01 07 00 FE 48 00 00 00 00 00 FF 0F 5B [13:15:04]RasterBufferAndPrint [13:15:04]line Счет N : (1)16268 [13:15:04]line ИНН: 02508201610067 [13:15:04]line Контрольно-Кассовый Чек [13:15:04]line ПРОДАЖА [13:15:04]line ТРК (МРК, ГНК) : 12 [13:15:04]line Товар: 50.50.0 [13:15:04]line SUPER 92-К-5 [13:15:04]line 8.340 * 68.40 [13:15:04]line = 570.46 [13:15:04]line НДС 12% НСП 1% [13:15:04]line > о реализуемом товаре [13:15:04]line ОКРУГЛЕНИЕ: -0.46 [13:15:04]line ИТОГО: 570.00 [13:15:04]line Внесено: 570.00 [13:15:04]line СДАЧА: 0.00 [13:15:04]line НСП 1% : 5.05 [13:15:04]line НДС 12% : 60.58 [13:15:04]line Наличными: 570.00 [13:15:04]line Безнал.: 0.00 [13:15:04]line Место: АЗС № 178 "Партнер Нефть" [13:15:04]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:15:04]line СНО: Общий режим [13:15:04]line Чек 65 29.10.2024 13:15 [13:15:04]line Смена: 172 ФФД: 1.0 [13:15:04]line ЗНМ: 0300000014 [13:15:04]line РНМ: 0000000000161798 [13:15:04]line Версия ККМ: v1.0 [13:15:04]line ФМ: 0000000000963325 [13:15:04]line ФД: 15719 [13:15:04]line ФПД: 138882819807209 [13:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T131514&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15719&fm=138882819807209&tin=02508201610067®Number=0000000000161798&sum=57000 [13:15:04]written 0, free lines is 4095 [13:15:04]OFD Sender: Processing packet 15719 [packets to send 4, broken 3] [13:15:04]ProducePacketName [13:15:04]name=ofd_packets/00015719 [13:15:04]OFD Sender: To server: pG, [13:15:04]CommunicateWithHost lk.salyk.kg:30040 [13:15:04]ConnectInit lk.salyk.kg [13:15:04]Connected sock=11 [13:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 06 77 05 01 9B 6A 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 20 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 D6 DE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 DE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AA 17 00 00 00 00 07 04 06 00 A8 DE 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 E2 DF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 67 3D 00 00 35 04 06 00 7E 50 2D 23 D7 E9 6B AC 53 0D 01 66 F0 97 [13:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 2C C5 47 00 80 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 67 3D 00 00 F4 03 04 00 CE 8A 20 67 B6 04 01 00 00 74 AF AE 6A 78 3E ED BE [13:15:05]CommunicateWithHost err = 0 [13:15:05]CheckOFDResponse [13:15:05]1017 (14) - 77093643461234 [13:15:05]1041 (16) - 0000000000963325 [13:15:05]1040 (4) - 15719 [13:15:05]1012 (4) - 29.10.2024 07:12 [13:15:05]1206 (1) - 0 [13:15:05]OFD Sender: Remove packet 15719 [13:15:05]ProducePacketName [13:15:05]name=ofd_packets/00015719 [13:15:05]NVStorageDeleteData [13:15:05]Write to MH i2c: 01 00 00 29 49 72 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: 01 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: 01 07 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: 01 07 00 29 49 00 00 00 00 00 01 0D 87 [13:15:05]RasterBufferAndPrint [13:15:05]line [13:15:05]line [13:15:05]line [13:15:05]line [13:15:05]line [13:15:05]written 0, free lines is 3335 [13:15:05]MH_Cut [13:15:05]Write to MH i2c: D1 01 00 30 49 01 4B [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: D1 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: D1 01 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: D1 01 00 30 49 00 4A [13:15:05]Write to MH i2c: 01 00 00 31 49 7A [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]OFD Sender: No OFD packet to send [13:15:05]*** Cut start [13:15:05]*** Partial cut [13:15:05]*** CUTSNS_PIN = 1 [13:15:05]*** CUTSNS_PIN = 0 [13:15:06]*** Brake cut motor [13:15:06]Read from MH i2c: 01 [13:15:06]MH_I2C_Read... [13:15:06]*** Stop cut motor [13:15:06]*** Cut end [13:15:06]Read from MH i2c: 01 07 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: 01 07 00 31 49 00 00 00 00 00 FF 0F 8F [13:15:06]process_action close_receipt done [13:15:06]requested_data is exist [13:15:06]produce_requested_data [13:15:06]requested_item fm.sn is exist - process it [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 11 00 00 [13:15:06]Write to MH i2c: E2 08 00 32 49 80 11 00 00 00 00 00 00 F5 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 17 00 32 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 44 [13:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:15:06]wFMCommunicate OK [13:15:06]requested_item fd.num is exist - process it [13:15:06]SAM_PROTO_GetFieldsCounters [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 00 00 [13:15:06]Write to MH i2c: E2 08 00 33 49 80 13 00 00 00 00 00 00 F8 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 62 00 33 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 67 3D 00 00 0E 04 04 00 AC 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 2F [13:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 67 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetFieldsCounters done [13:15:06]requested_item shift.num is exist - process it [13:15:06]requested_item shift.opened is exist - process it [13:15:06]req_shift_opened [13:15:06]FM_GetShiftState [13:15:06]SAM_PROTO_GetShiftState [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 13 01 00 [13:15:06]Write to MH i2c: E2 08 00 34 49 80 13 01 00 00 00 00 00 FA [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 0E 00 34 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4F [13:15:06]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_GetShiftState done [13:15:06]FM_GetShiftState done [13:15:06]req_shift_opened done [13:15:06]requested_item shift.open_date is exist - process it [13:15:06]req_shift_open_date [13:15:06]req_shift_open_date done [13:15:06]produce_requested_data done [13:15:06]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15719,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:15:06]process_action_free close_receipt [13:15:06]json_value_free [13:15:06]json_value_free done [13:15:06]process_json_proto returns [13:15:06]Send response to host [13:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15719,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:15:06]free response buf [13:15:06]execute_script done [13:15:06]execute_script returns [13:15:06]free content buf [13:15:06]Sock 9.Close socket [13:15:06]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18: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:18]accept exits with 8 [13:20:18]New connection [13:20:18]New thread 3066731876 created [13:20:18]Thread 3066588516 joined [13:20:18]Waiting for new connection... [13:20:18] Sock 8.Parse request [13:20:18]Sock 8.Check first char [13:20:18]Sock 8.First char is OK [13:20:18]request: POST /json_proto HTTP/1.0 [13:20:18]Method: POST [13:20:18]URL: /json_proto [13:20:18]Method is POST - this is cgi request [13:20:18]url: /json_proto [13:20:18]query_string will be loaded in cgi processing [13:20:18]execute_cgi json_proto POST (null) [13:20:18]execute_cgi path=json_proto method=POST [13:20:18]POST find Content-Length [13:20:18]Host: 172.17.54.195:8080 [13:20:18]Content-Length: 676 [13:20:18]Content-Type: application/json [13:20:18] [13:20:18]POST finish read [13:20:18]Found Content-Length = 676 [13:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:20:18]execute_script... [13:20: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)16269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:20:18]POST & json_proto [13:20:18]process_json_proto [13:20:18]json parsed OK: [13:20:18]protocol is kg_v1.0 [13:20:18]action value=close_receipt [13:20:18]process_action close_receipt [13:20:18]cmd_close_receipt [13:20:18]MH_GetDate [13:20:18]Write to MH i2c: F0 00 00 35 49 6D [13:20:18]Write i2c OK [13:20:18]MH_I2C_Read... [13:20:18]Read from MH i2c: F0 [13:20:18]MH_I2C_Read... [13:20:18]Read from MH i2c: F0 09 00 [13:20:18]MH_I2C_Read... [13:20:18]Read from MH i2c: F0 09 00 35 49 00 1D E1 20 67 8D 90 A3 66 21 [13:20:18]GetLastDocTimeStamp 1730207714 [13:20:18]current date 1730208029 [13:20:18]FM_GetShiftState [13:20:18]SAM_PROTO_GetShiftState [13:20:18]wFMCommunicate request_size=4 [13:20:18]MH_SAM_APDU [13:20:18]CAPDU: 80 13 01 00 [13:20:18]Write to MH i2c: E2 08 00 36 49 80 13 01 00 00 00 00 00 FC [13:20:18]Write i2c OK [13:20:18]MH_I2C_Read... [13:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:18]Read from MH i2c: E2 [13:20:18]MH_I2C_Read... [13:20:18]Read from MH i2c: E2 0E 00 [13:20:18]MH_I2C_Read... [13:20:18]Read from MH i2c: E2 0E 00 36 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 51 [13:20:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:20:18]wFMCommunicate OK [13:20:18]SAM_PROTO_GetShiftState done [13:20:18]FM_GetShiftState done [13:20:18]opened in 1730161559 [13:20:18]opened+sec_in_day 1730247959 [13:20:18]quantity*price = 30038 [13:20:18]sum+1 = 30039 [13:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 66 29.10.2024 13:20 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15720 ФПД: 20908251760495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132029&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15720&fm=20908251760495&tin=02508201610067®Number=0000000000161798&sum=30000 [13:20:19]StoreToDocumentArchive [13:20:19]shift 172 fd 15720 [13:20:19]save to /storage/0172/doc_00015720 [13:20:19]save last doc name /storage/0172/doc_00015720 to /storage/kkm_last_doc_name [13:20:19]save OK [13:20:19]Clear old archive folders... [13:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:19]tlvbuf is 0044BFC0 [13:20:19]SAM_PROTO_ClearQueue [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 09 00 00 [13:20:19]Write to MH i2c: E2 08 00 43 49 80 09 00 00 00 00 00 00 FE [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 43 49 00 90 00 00 [13:20:19]RAPDU: 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_ClearQueue done [13:20:19]KKMCreateOFDPacket [13:20:19]OFDProtocolAddRootSTLVToBuf [13:20:19]FM_MakeSignedData [13:20:19]FM_MakeSignedData [13:20:19]SAM_PROTO_SignData [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 0D 01 02 [13:20:19]Write to MH i2c: E2 08 00 44 49 80 0D 01 02 00 00 00 00 06 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 44 49 00 90 00 01 [13:20:19]RAPDU: 90 00 [13:20:19]wFMCommunicate OK [13:20:19]wFMCommunicate request_size=255 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 1D E1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 68 3D 00 00 35 04 06 00 13 [13:20:19]Write to MH i2c: E2 02 01 45 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 1D E1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 68 3D 00 00 35 04 06 00 13 00 00 B7 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 45 49 00 90 00 02 [13:20:19]RAPDU: 90 00 [13:20:19]wFMCommunicate OK [13:20:19]wFMCommunicate request_size=10 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 0D 02 02 05 04 14 EB 47 6F [13:20:19]Write to MH i2c: E2 0D 00 46 49 80 0D 02 02 05 00 04 14 EB 47 6F 00 00 CC [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 03 00 46 49 00 90 00 03 [13:20:19]RAPDU: 90 00 [13:20:19]wFMCommunicate OK [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 0D 03 02 [13:20:19]Write to MH i2c: E2 08 00 47 49 80 0D 03 02 00 00 00 00 0B [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0B 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 0B 00 47 49 00 F4 C6 81 45 41 3B FB F6 90 00 F9 [13:20:19]RAPDU: F4 C6 81 45 41 3B FB F6 90 00 [13:20:19]wFMCommunicate OK [13:20:19]SAM_PROTO_SignData done [13:20:19]FM_MakeSignedData done [13:20:19]CreateOFDProtocolMessage [13:20:19]wFMCommunicate request_size=4 [13:20:19]MH_SAM_APDU [13:20:19]CAPDU: 80 11 00 00 [13:20:19]Write to MH i2c: E2 08 00 48 49 80 11 00 00 00 00 00 00 0B [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:19]Read from MH i2c: E2 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: E2 17 00 48 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 5A [13:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:20:19]wFMCommunicate OK [13:20:19]CreateOFDProtocolMessage done [13:20:19]OFDSenderStorePacket 15720 [13:20:19]StoreOFDPacket docnum=15720 [13:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E1 CB 07 01 EF F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 1D E1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 68 3D 00 00 35 04 06 00 13 04 14 EB 47 6F F4 C6 81 45 41 3B FB F6 [13:20:19]CheckFolder [13:20:19]dirname=/storage/ofd_packets [13:20:19]CheckFolder done [13:20:19]ProducePacketName [13:20:19]name=ofd_packets/00015720 [13:20:19]NVStorageSaveData ofd_packets/00015720 [13:20:19]File name is /storage/ofd_packets/00015720 [13:20:19]Write 301 bytes [13:20:19]NVStorageSaveData done [13:20:19]OFDSenderStorePacket done [13:20:19]KKMCreateOFDPacket done [13:20:19]NVStorageSaveData kkm_last_timestamp [13:20:19]File name is /storage/kkm_last_timestamp [13:20:19]Write 4 bytes [13:20:19]NVStorageSaveData done [13:20:19]ExternCall_PrintAddStr [13:20:19]wPrintStart [13:20:19]Write to MH i2c: 01 00 00 49 49 92 [13:20:19]Write i2c OK [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: 01 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: 01 07 00 [13:20:19]MH_I2C_Read... [13:20:19]Read from MH i2c: 01 07 00 49 49 00 00 00 00 00 FF 0F A7 [13:20:19]RasterBufferAndPrint [13:20:19]line Счет N : (1)16269 [13:20:19]line ИНН: 02508201610067 [13:20:19]line Контрольно-Кассовый Чек [13:20:19]line ПРОДАЖА [13:20:19]line ТРК (МРК, ГНК) : 21 [13:20:19]line Товар: 2710124130 [13:20:19]line Аи-92-К-5 [13:20:19]line 4.490 * 66.90 [13:20:19]line = 300.38 [13:20:19]line НДС 12% НСП 1% [13:20:19]line > о реализуемом товаре [13:20:19]line ОКРУГЛЕНИЕ: -0.38 [13:20:19]line ИТОГО: 300.00 [13:20:19]line Внесено: 300.00 [13:20:19]line СДАЧА: 0.00 [13:20:19]line НСП 1% : 2.66 [13:20:19]line НДС 12% : 31.90 [13:20:19]line Наличными: 300.00 [13:20:19]line Безнал.: 0.00 [13:20:19]line Место: АЗС № 178 "Партнер Нефть" [13:20:19]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:20:19]line СНО: Общий режим [13:20:19]line Чек 66 29.10.2024 13:20 [13:20:19]line Смена: 172 ФФД: 1.0 [13:20:19]line ЗНМ: 0300000014 [13:20:19]line РНМ: 0000000000161798 [13:20:19]line Версия ККМ: v1.0 [13:20:19]line ФМ: 0000000000963325 [13:20:19]line ФД: 15720 [13:20:19]line ФПД: 20908251760495 [13:20:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132029&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15720&fm=20908251760495&tin=02508201610067®Number=0000000000161798&sum=30000 [13:20:20]OFD Sender: Processing packet 15720 [packets to send 4, broken 3] [13:20:20]ProducePacketName [13:20:20]name=ofd_packets/00015720 [13:20:20]OFD Sender: To server: pG, [13:20:20]CommunicateWithHost lk.salyk.kg:30040 [13:20:20]ConnectInit lk.salyk.kg [13:20:20]written 0, free lines is 4095 [13:20:20]Connected sock=10 [13:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E1 CB 07 01 EF F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 1D E1 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 68 3D 00 00 35 04 06 00 13 04 14 EB 47 6F F4 C6 81 45 41 3B FB F6 [13:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 BF B1 47 00 2C 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 68 3D 00 00 F4 03 04 00 0A 8C 20 67 B6 04 01 00 00 DD 48 E5 AE CA F2 2E 6C [13:20:20]CommunicateWithHost err = 0 [13:20:20]CheckOFDResponse [13:20:20]1017 (14) - 77093643461234 [13:20:20]1041 (16) - 0000000000963325 [13:20:20]1040 (4) - 15720 [13:20:20]1012 (4) - 29.10.2024 07:17 [13:20:20]1206 (1) - 0 [13:20:20]OFD Sender: Remove packet 15720 [13:20:20]ProducePacketName [13:20:20]name=ofd_packets/00015720 [13:20:20]NVStorageDeleteData [13:20:20]Write to MH i2c: 01 00 00 74 49 BD [13:20:20]Write i2c OK [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: 01 [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: 01 07 00 [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: 01 07 00 74 49 00 00 00 00 00 E9 0C B9 [13:20:20]RasterBufferAndPrint [13:20:20]line [13:20:20]line [13:20:20]line [13:20:20]line [13:20:20]line [13:20:20]written 0, free lines is 3312 [13:20:20]MH_Cut [13:20:20]Write to MH i2c: D1 01 00 7B 49 01 96 [13:20:20]Write i2c OK [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: D1 [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: D1 01 00 [13:20:20]MH_I2C_Read... [13:20:20]Read from MH i2c: D1 01 00 7B 49 00 95 [13:20:20]Write to MH i2c: 01 00 00 7C 49 C5 [13:20:20]Write i2c OK [13:20:20]MH_I2C_Read... [13:20:20]OFD Sender: No OFD packet to send [13:20:21]*** Cut start [13:20:21]*** Partial cut [13:20:21]*** CUTSNS_PIN = 1 [13:20:21]*** CUTSNS_PIN = 0 [13:20:21]*** Brake cut motor [13:20:21]Read from MH i2c: 01 [13:20:22]MH_I2C_Read... [13:20:22]*** Stop cut motor [13:20:22]*** Cut end [13:20:22]Read from MH i2c: 01 07 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: 01 07 00 7C 49 00 00 00 00 00 FF 0F DA [13:20:22]process_action close_receipt done [13:20:22]requested_data is exist [13:20:22]produce_requested_data [13:20:22]requested_item fm.sn is exist - process it [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 11 00 00 [13:20:22]Write to MH i2c: E2 08 00 7D 49 80 11 00 00 00 00 00 00 40 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 17 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 17 00 7D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8F [13:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:20:22]wFMCommunicate OK [13:20:22]requested_item fd.num is exist - process it [13:20:22]SAM_PROTO_GetFieldsCounters [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 13 00 00 [13:20:22]Write to MH i2c: E2 08 00 7E 49 80 13 00 00 00 00 00 00 43 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 62 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 62 00 7E 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 68 3D 00 00 0E 04 04 00 AC 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 7E [13:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 68 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:22]wFMCommunicate OK [13:20:22]SAM_PROTO_GetFieldsCounters done [13:20:22]requested_item shift.num is exist - process it [13:20:22]requested_item shift.opened is exist - process it [13:20:22]req_shift_opened [13:20:22]FM_GetShiftState [13:20:22]SAM_PROTO_GetShiftState [13:20:22]wFMCommunicate request_size=4 [13:20:22]MH_SAM_APDU [13:20:22]CAPDU: 80 13 01 00 [13:20:22]Write to MH i2c: E2 08 00 7F 49 80 13 01 00 00 00 00 00 45 [13:20:22]Write i2c OK [13:20:22]MH_I2C_Read... [13:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:22]Read from MH i2c: E2 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 0E 00 [13:20:22]MH_I2C_Read... [13:20:22]Read from MH i2c: E2 0E 00 7F 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9A [13:20:22]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:20:22]wFMCommunicate OK [13:20:22]SAM_PROTO_GetShiftState done [13:20:22]FM_GetShiftState done [13:20:22]req_shift_opened done [13:20:22]requested_item shift.open_date is exist - process it [13:20:22]req_shift_open_date [13:20:22]req_shift_open_date done [13:20:22]produce_requested_data done [13:20:22]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15720,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:20:22]process_action_free close_receipt [13:20:22]json_value_free [13:20:22]json_value_free done [13:20:22]process_json_proto returns [13:20:22]Send response to host [13:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15720,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:20:22]free response buf [13:20:22]execute_script done [13:20:22]execute_script returns [13:20:22]free content buf [13:20:22]Sock 8.Close socket [13:20:22]Sock 8.Thread stoped [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:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:00]accept exits with 9 [13:25:00]New connection [13:25:00]New thread 3066588516 created [13:25:00]Thread 3066731876 joined [13:25:00]Waiting for new connection... [13:25:00] Sock 9.Parse request [13:25:00]Sock 9.Check first char [13:25:00]Sock 9.First char is OK [13:25:00]request: POST /json_proto HTTP/1.0 [13:25:00]Method: POST [13:25:00]URL: /json_proto [13:25:00]Method is POST - this is cgi request [13:25:00]url: /json_proto [13:25:00]query_string will be loaded in cgi processing [13:25:00]execute_cgi json_proto POST (null) [13:25:00]execute_cgi path=json_proto method=POST [13:25:00]POST find Content-Length [13:25:00]Host: 172.17.54.195:8080 [13:25:00]Content-Length: 676 [13:25:00]Content-Type: application/json [13:25:00] [13:25:00]POST finish read [13:25:00]Found Content-Length = 676 [13:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:00]execute_script... [13:25: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)16270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:00]POST & json_proto [13:25:00]process_json_proto [13:25:00]json parsed OK: [13:25:00]protocol is kg_v1.0 [13:25:00]action value=close_receipt [13:25:00]process_action close_receipt [13:25:00]cmd_close_receipt [13:25:00]MH_GetDate [13:25:00]Write to MH i2c: F0 00 00 80 49 B8 [13:25:00]Write i2c OK [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: F0 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: F0 09 00 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: F0 09 00 80 49 00 37 E2 20 67 8D 90 A3 66 87 [13:25:00]GetLastDocTimeStamp 1730208029 [13:25:00]current date 1730208311 [13:25:00]FM_GetShiftState [13:25:00]SAM_PROTO_GetShiftState [13:25:00]wFMCommunicate request_size=4 [13:25:00]MH_SAM_APDU [13:25:00]CAPDU: 80 13 01 00 [13:25:00]Write to MH i2c: E2 08 00 81 49 80 13 01 00 00 00 00 00 47 [13:25:00]Write i2c OK [13:25:00]MH_I2C_Read... [13:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:00]Read from MH i2c: E2 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: E2 0E 00 [13:25:00]MH_I2C_Read... [13:25:00]Read from MH i2c: E2 0E 00 81 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9C [13:25:00]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:25:00]wFMCommunicate OK [13:25:00]SAM_PROTO_GetShiftState done [13:25:00]FM_GetShiftState done [13:25:00]opened in 1730161559 [13:25:00]opened+sec_in_day 1730247959 [13:25:00]quantity*price = 22010 [13:25:00]sum+1 = 22011 [13:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 67 29.10.2024 13:25 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15721 ФПД: 129203965375786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132511&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15721&fm=129203965375786&tin=02508201610067®Number=0000000000161798&sum=22000 [13:25:01]StoreToDocumentArchive [13:25:01]shift 172 fd 15721 [13:25:01]save to /storage/0172/doc_00015721 [13:25:01]save last doc name /storage/0172/doc_00015721 to /storage/kkm_last_doc_name [13:25:01]save OK [13:25:01]Clear old archive folders... [13:25:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:01]tlvbuf is 00322000 [13:25:01]SAM_PROTO_ClearQueue [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 09 00 00 [13:25:01]Write to MH i2c: E2 08 00 8E 49 80 09 00 00 00 00 00 00 49 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 03 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 03 00 8E 49 00 90 00 4B [13:25:01]RAPDU: 90 00 [13:25:01]wFMCommunicate OK [13:25:01]SAM_PROTO_ClearQueue done [13:25:01]KKMCreateOFDPacket [13:25:01]OFDProtocolAddRootSTLVToBuf [13:25:01]FM_MakeSignedData [13:25:01]FM_MakeSignedData [13:25:01]SAM_PROTO_SignData [13:25:01]wFMCommunicate request_size=4 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 0D 01 02 [13:25:01]Write to MH i2c: E2 08 00 8F 49 80 0D 01 02 00 00 00 00 51 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:01]Read from MH i2c: E2 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 03 00 [13:25:01]MH_I2C_Read... [13:25:01]Read from MH i2c: E2 03 00 8F 49 00 90 00 4C [13:25:01]RAPDU: 90 00 [13:25:01]wFMCommunicate OK [13:25:01]wFMCommunicate request_size=255 [13:25:01]MH_SAM_APDU [13:25:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 37 E2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 69 3D 00 00 35 04 06 00 75 [13:25:01]Write to MH i2c: E2 02 01 90 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 37 E2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 69 3D 00 00 35 04 06 00 75 00 00 F0 [13:25:01]Write i2c OK [13:25:01]MH_I2C_Read... [13:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:02]Read from MH i2c: E2 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 03 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [13:25:02]RAPDU: 90 00 [13:25:02]wFMCommunicate OK [13:25:02]wFMCommunicate request_size=10 [13:25:02]MH_SAM_APDU [13:25:02]CAPDU: 80 0D 02 02 05 82 A4 75 B5 2A [13:25:02]Write to MH i2c: E2 0D 00 91 49 80 0D 02 02 05 00 82 A4 75 B5 2A 00 00 D8 [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:02]Read from MH i2c: E2 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 03 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 03 00 91 49 00 90 00 4E [13:25:02]RAPDU: 90 00 [13:25:02]wFMCommunicate OK [13:25:02]wFMCommunicate request_size=4 [13:25:02]MH_SAM_APDU [13:25:02]CAPDU: 80 0D 03 02 [13:25:02]Write to MH i2c: E2 08 00 92 49 80 0D 03 02 00 00 00 00 56 [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:02]Read from MH i2c: E2 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 0B 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 0B 00 92 49 00 53 84 57 4B CA E1 F4 61 90 00 D0 [13:25:02]RAPDU: 53 84 57 4B CA E1 F4 61 90 00 [13:25:02]wFMCommunicate OK [13:25:02]SAM_PROTO_SignData done [13:25:02]FM_MakeSignedData done [13:25:02]CreateOFDProtocolMessage [13:25:02]wFMCommunicate request_size=4 [13:25:02]MH_SAM_APDU [13:25:02]CAPDU: 80 11 00 00 [13:25:02]Write to MH i2c: E2 08 00 93 49 80 11 00 00 00 00 00 00 56 [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:02]Read from MH i2c: E2 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 17 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: E2 17 00 93 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A5 [13:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:25:02]wFMCommunicate OK [13:25:02]CreateOFDProtocolMessage done [13:25:02]OFDSenderStorePacket 15721 [13:25:02]StoreOFDPacket docnum=15721 [13:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 73 B1 07 01 ED 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 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 37 E2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 69 3D 00 00 35 04 06 00 75 82 A4 75 B5 2A 53 84 57 4B CA E1 F4 61 [13:25:02]CheckFolder [13:25:02]dirname=/storage/ofd_packets [13:25:02]CheckFolder done [13:25:02]ProducePacketName [13:25:02]name=ofd_packets/00015721 [13:25:02]NVStorageSaveData ofd_packets/00015721 [13:25:02]File name is /storage/ofd_packets/00015721 [13:25:02]Write 301 bytes [13:25:02]NVStorageSaveData done [13:25:02]OFDSenderStorePacket done [13:25:02]KKMCreateOFDPacket done [13:25:02]NVStorageSaveData kkm_last_timestamp [13:25:02]File name is /storage/kkm_last_timestamp [13:25:02]Write 4 bytes [13:25:02]NVStorageSaveData done [13:25:02]ExternCall_PrintAddStr [13:25:02]wPrintStart [13:25:02]Write to MH i2c: 01 00 00 94 49 DD [13:25:02]Write i2c OK [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: 01 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: 01 07 00 [13:25:02]MH_I2C_Read... [13:25:02]Read from MH i2c: 01 07 00 94 49 00 00 00 00 00 FF 0F F2 [13:25:02]RasterBufferAndPrint [13:25:02]line Счет N : (1)16270 [13:25:02]line ИНН: 02508201610067 [13:25:02]line Контрольно-Кассовый Чек [13:25:02]line ПРОДАЖА [13:25:02]line ТРК (МРК, ГНК) : 21 [13:25:02]line Товар: 2710124130 [13:25:02]line Аи-92-К-5 [13:25:02]line 3.290 * 66.90 [13:25:02]line = 220.10 [13:25:02]line НДС 12% НСП 1% [13:25:02]line > о реализуемом товаре [13:25:02]line ОКРУГЛЕНИЕ: -0.10 [13:25:02]line ИТОГО: 220.00 [13:25:02]line Внесено: 220.00 [13:25:02]line СДАЧА: 0.00 [13:25:02]line НСП 1% : 1.95 [13:25:02]line НДС 12% : 23.37 [13:25:02]line Наличными: 220.00 [13:25:02]line Безнал.: 0.00 [13:25:02]line Место: АЗС № 178 "Партнер Нефть" [13:25:02]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:25:02]line СНО: Общий режим [13:25:02]line Чек 67 29.10.2024 13:25 [13:25:02]line Смена: 172 ФФД: 1.0 [13:25:02]line ЗНМ: 0300000014 [13:25:02]line РНМ: 0000000000161798 [13:25:02]line Версия ККМ: v1.0 [13:25:02]line ФМ: 0000000000963325 [13:25:02]line ФД: 15721 [13:25:02]line ФПД: 129203965375786 [13:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132511&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15721&fm=129203965375786&tin=02508201610067®Number=0000000000161798&sum=22000 [13:25:02]OFD Sender: Processing packet 15721 [packets to send 4, broken 3] [13:25:02]ProducePacketName [13:25:02]name=ofd_packets/00015721 [13:25:02]OFD Sender: To server: pG, [13:25:02]CommunicateWithHost lk.salyk.kg:30040 [13:25:02]ConnectInit lk.salyk.kg [13:25:02]written 0, free lines is 4095 [13:25:02]Connected sock=10 [13:25:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 73 B1 07 01 ED 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 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 37 E2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 69 3D 00 00 35 04 06 00 75 82 A4 75 B5 2A 53 84 57 4B CA E1 F4 61 [13:25:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5A EC 47 00 CD 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 69 3D 00 00 F4 03 04 00 24 8D 20 67 B6 04 01 00 00 91 E8 05 19 5B A7 23 35 [13:25:02]CommunicateWithHost err = 0 [13:25:02]CheckOFDResponse [13:25:02]1017 (14) - 77093643461234 [13:25:02]1041 (16) - 0000000000963325 [13:25:02]1040 (4) - 15721 [13:25:02]1012 (4) - 29.10.2024 07:22 [13:25:02]1206 (1) - 0 [13:25:02]OFD Sender: Remove packet 15721 [13:25:02]ProducePacketName [13:25:02]name=ofd_packets/00015721 [13:25:02]NVStorageDeleteData [13:25:03]Write to MH i2c: 01 00 00 BF 49 08 [13:25:03]Write i2c OK [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: 01 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: 01 07 00 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 EB 0C 06 [13:25:03]RasterBufferAndPrint [13:25:03]line [13:25:03]line [13:25:03]line [13:25:03]line [13:25:03]line [13:25:03]written 0, free lines is 3314 [13:25:03]MH_Cut [13:25:03]Write to MH i2c: D1 01 00 C6 49 01 E1 [13:25:03]Write i2c OK [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: D1 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: D1 01 00 [13:25:03]MH_I2C_Read... [13:25:03]Read from MH i2c: D1 01 00 C6 49 00 E0 [13:25:03]Write to MH i2c: 01 00 00 C7 49 10 [13:25:03]Write i2c OK [13:25:03]MH_I2C_Read... [13:25:03]OFD Sender: No OFD packet to send [13:25:03]*** Cut start [13:25:03]*** Partial cut [13:25:03]*** CUTSNS_PIN = 1 [13:25:03]*** CUTSNS_PIN = 0 [13:25:04]*** Brake cut motor [13:25:04]Read from MH i2c: 01 [13:25:04]MH_I2C_Read... [13:25:04]*** Stop cut motor [13:25:04]*** Cut end [13:25:04]Read from MH i2c: 01 07 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: 01 07 00 C7 49 00 00 00 00 00 FF 0F 25 [13:25:04]process_action close_receipt done [13:25:04]requested_data is exist [13:25:04]produce_requested_data [13:25:04]requested_item fm.sn is exist - process it [13:25:04]wFMCommunicate request_size=4 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 11 00 00 [13:25:04]Write to MH i2c: E2 08 00 C8 49 80 11 00 00 00 00 00 00 8B [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 17 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 17 00 C8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 DA [13:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:25:04]wFMCommunicate OK [13:25:04]requested_item fd.num is exist - process it [13:25:04]SAM_PROTO_GetFieldsCounters [13:25:04]wFMCommunicate request_size=4 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 13 00 00 [13:25:04]Write to MH i2c: E2 08 00 C9 49 80 13 00 00 00 00 00 00 8E [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 62 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 62 00 C9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 69 3D 00 00 0E 04 04 00 AC 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 CD [13:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 69 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:04]wFMCommunicate OK [13:25:04]SAM_PROTO_GetFieldsCounters done [13:25:04]requested_item shift.num is exist - process it [13:25:04]requested_item shift.opened is exist - process it [13:25:04]req_shift_opened [13:25:04]FM_GetShiftState [13:25:04]SAM_PROTO_GetShiftState [13:25:04]wFMCommunicate request_size=4 [13:25:04]MH_SAM_APDU [13:25:04]CAPDU: 80 13 01 00 [13:25:04]Write to MH i2c: E2 08 00 CA 49 80 13 01 00 00 00 00 00 90 [13:25:04]Write i2c OK [13:25:04]MH_I2C_Read... [13:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:04]Read from MH i2c: E2 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 0E 00 [13:25:04]MH_I2C_Read... [13:25:04]Read from MH i2c: E2 0E 00 CA 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E5 [13:25:04]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:25:04]wFMCommunicate OK [13:25:04]SAM_PROTO_GetShiftState done [13:25:04]FM_GetShiftState done [13:25:04]req_shift_opened done [13:25:04]requested_item shift.open_date is exist - process it [13:25:04]req_shift_open_date [13:25:04]req_shift_open_date done [13:25:04]produce_requested_data done [13:25:04]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15721,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:25:04]process_action_free close_receipt [13:25:04]json_value_free [13:25:04]json_value_free done [13:25:04]process_json_proto returns [13:25:04]Send response to host [13:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15721,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:25:04]free response buf [13:25:04]execute_script done [13:25:04]execute_script returns [13:25:04]free content buf [13:25:04]Sock 9.Close socket [13:25:04]Sock 9.Thread stoped [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:36]accept exits with 8 [13:29:36]New connection [13:29:36]New thread 3066731876 created [13:29:36]Thread 3066588516 joined [13:29:36]Waiting for new connection... [13:29:36] Sock 8.Parse request [13:29:36]Sock 8.Check first char [13:29:36]Sock 8.First char is OK [13:29:36]request: POST /json_proto HTTP/1.0 [13:29:36]Method: POST [13:29:36]URL: /json_proto [13:29:36]Method is POST - this is cgi request [13:29:36]url: /json_proto [13:29:36]query_string will be loaded in cgi processing [13:29:36]execute_cgi json_proto POST (null) [13:29:36]execute_cgi path=json_proto method=POST [13:29:36]POST find Content-Length [13:29:36]Host: 172.17.54.195:8080 [13:29:36]Content-Length: 983 [13:29:36]Content-Type: application/json [13:29:36] [13:29:36]POST finish read [13:29:36]Found Content-Length = 983 [13:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:36]execute_script... [13:29: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)16271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 65.90, "quantity" : 22.770, "sum" : 1500.54, "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\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 22.77 \u0441\u043E\u043C", "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:36]POST & json_proto [13:29:36]process_json_proto [13:29:36]json parsed OK: [13:29:36]protocol is kg_v1.0 [13:29:36]action value=close_receipt [13:29:36]process_action close_receipt [13:29:36]cmd_close_receipt [13:29:36]MH_GetDate [13:29:36]Write to MH i2c: F0 00 00 CB 49 03 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 09 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: F0 09 00 CB 49 00 4C E3 20 67 8D 90 A3 66 E8 [13:29:36]GetLastDocTimeStamp 1730208311 [13:29:36]current date 1730208588 [13:29:36]FM_GetShiftState [13:29:36]SAM_PROTO_GetShiftState [13:29:36]wFMCommunicate request_size=4 [13:29:36]MH_SAM_APDU [13:29:36]CAPDU: 80 13 01 00 [13:29:36]Write to MH i2c: E2 08 00 CC 49 80 13 01 00 00 00 00 00 92 [13:29:36]Write i2c OK [13:29:36]MH_I2C_Read... [13:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:36]Read from MH i2c: E2 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: E2 0E 00 [13:29:36]MH_I2C_Read... [13:29:36]Read from MH i2c: E2 0E 00 CC 49 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E7 [13:29:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:29:36]wFMCommunicate OK [13:29:36]SAM_PROTO_GetShiftState done [13:29:36]FM_GetShiftState done [13:29:36]opened in 1730161559 [13:29:36]opened+sec_in_day 1730247959 [13:29:36]quantity*price = 150054 [13:29:36]sum+1 = 150055 [13:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 68 29.10.2024 13:29 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа АИ-92 номер 178 сэкономлено 22.77 сом ФМ: 0000000000963325 ФД: 15722 ФПД: 172198286337138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132948&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15722&fm=172198286337138&tin=02508201610067®Number=0000000000161798&sum=150000 [13:29:38]StoreToDocumentArchive [13:29:38]shift 172 fd 15722 [13:29:38]save to /storage/0172/doc_00015722 [13:29:38]save last doc name /storage/0172/doc_00015722 to /storage/kkm_last_doc_name [13:29:38]save OK [13:29:38]Clear old archive folders... [13:29:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:38]tlvbuf is 002EF9A0 [13:29:38]SAM_PROTO_ClearQueue [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 09 00 00 [13:29:38]Write to MH i2c: E2 08 00 D9 49 80 09 00 00 00 00 00 00 94 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [13:29:38]RAPDU: 90 00 [13:29:38]wFMCommunicate OK [13:29:38]SAM_PROTO_ClearQueue done [13:29:38]KKMCreateOFDPacket [13:29:38]OFDProtocolAddRootSTLVToBuf [13:29:38]FM_MakeSignedData [13:29:38]FM_MakeSignedData [13:29:38]SAM_PROTO_SignData [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 0D 01 02 [13:29:38]Write to MH i2c: E2 08 00 DA 49 80 0D 01 02 00 00 00 00 9C [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [13:29:38]RAPDU: 90 00 [13:29:38]wFMCommunicate OK [13:29:38]wFMCommunicate request_size=255 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 44 00 00 00 F4 03 04 00 4C E3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6A 3D 00 00 35 04 06 00 9C [13:29:38]Write to MH i2c: E2 02 01 DB 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 44 00 00 00 F4 03 04 00 4C E3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6A 3D 00 00 35 04 06 00 9C 00 00 4D [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 DB 49 00 90 00 98 [13:29:38]RAPDU: 90 00 [13:29:38]wFMCommunicate OK [13:29:38]wFMCommunicate request_size=10 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 0D 02 02 05 9D 09 B0 24 72 [13:29:38]Write to MH i2c: E2 0D 00 DC 49 80 0D 02 02 05 00 9D 09 B0 24 72 00 00 95 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 03 00 DC 49 00 90 00 99 [13:29:38]RAPDU: 90 00 [13:29:38]wFMCommunicate OK [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 0D 03 02 [13:29:38]Write to MH i2c: E2 08 00 DD 49 80 0D 03 02 00 00 00 00 A1 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0B 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 0B 00 DD 49 00 C8 D0 A2 88 7A 44 8D F0 90 00 9F [13:29:38]RAPDU: C8 D0 A2 88 7A 44 8D F0 90 00 [13:29:38]wFMCommunicate OK [13:29:38]SAM_PROTO_SignData done [13:29:38]FM_MakeSignedData done [13:29:38]CreateOFDProtocolMessage [13:29:38]wFMCommunicate request_size=4 [13:29:38]MH_SAM_APDU [13:29:38]CAPDU: 80 11 00 00 [13:29:38]Write to MH i2c: E2 08 00 DE 49 80 11 00 00 00 00 00 00 A1 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:38]Read from MH i2c: E2 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: E2 17 00 DE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F0 [13:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:29:38]wFMCommunicate OK [13:29:38]CreateOFDProtocolMessage done [13:29:38]OFDSenderStorePacket 15722 [13:29:38]StoreOFDPacket docnum=15722 [13:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 28 45 07 01 5B EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 44 00 00 00 F4 03 04 00 4C E3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6A 3D 00 00 35 04 06 00 9C 9D 09 B0 24 72 C8 D0 A2 88 7A 44 8D F0 [13:29:38]CheckFolder [13:29:38]dirname=/storage/ofd_packets [13:29:38]CheckFolder done [13:29:38]ProducePacketName [13:29:38]name=ofd_packets/00015722 [13:29:38]NVStorageSaveData ofd_packets/00015722 [13:29:38]File name is /storage/ofd_packets/00015722 [13:29:38]Write 301 bytes [13:29:38]NVStorageSaveData done [13:29:38]OFDSenderStorePacket done [13:29:38]KKMCreateOFDPacket done [13:29:38]NVStorageSaveData kkm_last_timestamp [13:29:38]File name is /storage/kkm_last_timestamp [13:29:38]Write 4 bytes [13:29:38]NVStorageSaveData done [13:29:38]ExternCall_PrintAddStr [13:29:38]wPrintStart [13:29:38]Write to MH i2c: 01 00 00 DF 49 28 [13:29:38]Write i2c OK [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 [13:29:38]MH_I2C_Read... [13:29:38]Read from MH i2c: 01 07 00 DF 49 00 00 00 00 00 FF 0F 3D [13:29:38]RasterBufferAndPrint [13:29:38]line Счет N : (1)16271 [13:29:38]line ИНН: 02508201610067 [13:29:38]line Контрольно-Кассовый Чек [13:29:38]line ПРОДАЖА [13:29:38]line ТРК (МРК, ГНК) : 21 [13:29:38]line Товар: 2710124130 [13:29:38]line Аи-92-К-5 [13:29:38]line 22.770 * 65.90 [13:29:38]line = 1500.54 [13:29:38]line НДС 12% НСП 1% [13:29:38]line > о реализуемом товаре [13:29:38]line ОКРУГЛЕНИЕ: -0.54 [13:29:38]line ИТОГО: 1500.00 [13:29:38]line Внесено: 1500.00 [13:29:38]line СДАЧА: 0.00 [13:29:38]line НСП 1% : 13.28 [13:29:38]line НДС 12% : 159.35 [13:29:38]line Наличными: 1500.00 [13:29:38]line Безнал.: 0.00 [13:29:38]line Место: АЗС № 178 "Партнер Нефть" [13:29:38]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:29:38]line СНО: Общий режим [13:29:38]line Чек 68 29.10.2024 13:29 [13:29:38]line Смена: 172 ФФД: 1.0 [13:29:38]line ЗНМ: 0300000014 [13:29:38]line РНМ: 0000000000161798 [13:29:38]line Версия ККМ: v1.0 [13:29:38]line [13:29:38]line Дисконтная программа [13:29:38]line АИ-92 [13:29:38]line номер 178 [13:29:38]line сэкономлено 22.77 сом [13:29:38]line ФМ: 0000000000963325 [13:29:38]line ФД: 15722 [13:29:38]line ФПД: 172198286337138 [13:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T132948&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15722&fm=172198286337138&tin=02508201610067®Number=0000000000161798&sum=150000 [13:29:38]OFD Sender: Processing packet 15722 [packets to send 4, broken 3] [13:29:38]ProducePacketName [13:29:38]name=ofd_packets/00015722 [13:29:38]OFD Sender: To server: pG, [13:29:38]CommunicateWithHost lk.salyk.kg:30040 [13:29:38]ConnectInit lk.salyk.kg [13:29:38]written 0, free lines is 4095 [13:29:39]Connected sock=10 [13:29:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 28 45 07 01 5B EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 58 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 26 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 44 00 00 00 F4 03 04 00 4C E3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6A 3D 00 00 35 04 06 00 9C 9D 09 B0 24 72 C8 D0 A2 88 7A 44 8D F0 [13:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5F 4C 47 00 6A 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6A 3D 00 00 F4 03 04 00 38 8E 20 67 B6 04 01 00 00 0D 6A 6A B8 6B 9A F9 D3 [13:29:39]CommunicateWithHost err = 0 [13:29:39]CheckOFDResponse [13:29:39]1017 (14) - 77093643461234 [13:29:39]1041 (16) - 0000000000963325 [13:29:39]1040 (4) - 15722 [13:29:39]1012 (4) - 29.10.2024 07:26 [13:29:39]1206 (1) - 0 [13:29:39]OFD Sender: Remove packet 15722 [13:29:39]ProducePacketName [13:29:39]name=ofd_packets/00015722 [13:29:39]NVStorageDeleteData [13:29:39]Write to MH i2c: 01 00 00 0F 4A 59 [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: 01 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: 01 07 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: 01 07 00 0F 4A 00 00 00 00 00 9E 0C 0A [13:29:39]RasterBufferAndPrint [13:29:39]line [13:29:39]line [13:29:39]line [13:29:39]line [13:29:39]line [13:29:39]written 0, free lines is 3237 [13:29:39]MH_Cut [13:29:39]Write to MH i2c: D1 01 00 16 4A 01 32 [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: D1 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: D1 01 00 [13:29:39]MH_I2C_Read... [13:29:39]Read from MH i2c: D1 01 00 16 4A 00 31 [13:29:39]Write to MH i2c: 01 00 00 17 4A 61 [13:29:39]Write i2c OK [13:29:39]MH_I2C_Read... [13:29:39]OFD Sender: No OFD packet to send [13:29:40]*** Cut start [13:29:40]*** Partial cut [13:29:40]*** CUTSNS_PIN = 1 [13:29:40]*** CUTSNS_PIN = 0 [13:29:40]*** Brake cut motor [13:29:40]Read from MH i2c: 01 [13:29:40]MH_I2C_Read... [13:29:40]*** Stop cut motor [13:29:40]*** Cut end [13:29:40]Read from MH i2c: 01 07 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: 01 07 00 17 4A 00 00 00 00 00 FF 0F 76 [13:29:40]process_action close_receipt done [13:29:40]requested_data is exist [13:29:40]produce_requested_data [13:29:40]requested_item fm.sn is exist - process it [13:29:40]wFMCommunicate request_size=4 [13:29:40]MH_SAM_APDU [13:29:40]CAPDU: 80 11 00 00 [13:29:40]Write to MH i2c: E2 08 00 18 4A 80 11 00 00 00 00 00 00 DC [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:40]Read from MH i2c: E2 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 17 00 [13:29:40]MH_I2C_Read... [13:29:40]Read from MH i2c: E2 17 00 18 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2B [13:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:29:40]wFMCommunicate OK [13:29:40]requested_item fd.num is exist - process it [13:29:40]SAM_PROTO_GetFieldsCounters [13:29:40]wFMCommunicate request_size=4 [13:29:40]MH_SAM_APDU [13:29:40]CAPDU: 80 13 00 00 [13:29:40]Write to MH i2c: E2 08 00 19 4A 80 13 00 00 00 00 00 00 DF [13:29:40]Write i2c OK [13:29:40]MH_I2C_Read... [13:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:41]Read from MH i2c: E2 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 62 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 62 00 19 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6A 3D 00 00 0E 04 04 00 AC 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 22 [13:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6A 3D 00 00 0E 04 04 00 AC 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 [13:29:41]wFMCommunicate OK [13:29:41]SAM_PROTO_GetFieldsCounters done [13:29:41]requested_item shift.num is exist - process it [13:29:41]requested_item shift.opened is exist - process it [13:29:41]req_shift_opened [13:29:41]FM_GetShiftState [13:29:41]SAM_PROTO_GetShiftState [13:29:41]wFMCommunicate request_size=4 [13:29:41]MH_SAM_APDU [13:29:41]CAPDU: 80 13 01 00 [13:29:41]Write to MH i2c: E2 08 00 1A 4A 80 13 01 00 00 00 00 00 E1 [13:29:41]Write i2c OK [13:29:41]MH_I2C_Read... [13:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:41]Read from MH i2c: E2 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 0E 00 [13:29:41]MH_I2C_Read... [13:29:41]Read from MH i2c: E2 0E 00 1A 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 36 [13:29:41]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:29:41]wFMCommunicate OK [13:29:41]SAM_PROTO_GetShiftState done [13:29:41]FM_GetShiftState done [13:29:41]req_shift_opened done [13:29:41]requested_item shift.open_date is exist - process it [13:29:41]req_shift_open_date [13:29:41]req_shift_open_date done [13:29:41]produce_requested_data done [13:29:41]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15722,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:29:41]process_action_free close_receipt [13:29:41]json_value_free [13:29:41]json_value_free done [13:29:41]process_json_proto returns [13:29:41]Send response to host [13:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15722,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:29:41]free response buf [13:29:41]execute_script done [13:29:41]execute_script returns [13:29:41]free content buf [13:29:41]Sock 8.Close socket [13:29:41]Sock 8.Thread stoped [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:13]accept exits with 9 [13:36:13]New connection [13:36:13]New thread 3066588516 created [13:36:13]Thread 3066731876 joined [13:36:13]Waiting for new connection... [13:36:13] Sock 9.Parse request [13:36:13]Sock 9.Check first char [13:36:13]Sock 9.First char is OK [13:36:13]request: POST /json_proto HTTP/1.0 [13:36:13]Method: POST [13:36:13]URL: /json_proto [13:36:13]Method is POST - this is cgi request [13:36:13]url: /json_proto [13:36:13]query_string will be loaded in cgi processing [13:36:13]execute_cgi json_proto POST (null) [13:36:13]execute_cgi path=json_proto method=POST [13:36:13]POST find Content-Length [13:36:13]Host: 172.17.54.195:8080 [13:36:13]Content-Length: 671 [13:36:13]Content-Type: application/json [13:36:13] [13:36:13]POST finish read [13:36:13]Found Content-Length = 671 [13:36:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 17.700, "sum" : 1210.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1210.00, "total" : 1210.00, "payments": [ { "type": 0, "sum" : 1210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:13]execute_script... [13:36: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)16272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 17.700, "sum" : 1210.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1210.00, "total" : 1210.00, "payments": [ { "type": 0, "sum" : 1210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:13]POST & json_proto [13:36:13]process_json_proto [13:36:13]json parsed OK: [13:36:13]protocol is kg_v1.0 [13:36:13]action value=close_receipt [13:36:13]process_action close_receipt [13:36:13]cmd_close_receipt [13:36:13]MH_GetDate [13:36:13]Write to MH i2c: F0 00 00 1B 4A 54 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: F0 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: F0 09 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: F0 09 00 1B 4A 00 D9 E4 20 67 8D 90 A3 66 C7 [13:36:13]GetLastDocTimeStamp 1730208588 [13:36:13]current date 1730208985 [13:36:13]FM_GetShiftState [13:36:13]SAM_PROTO_GetShiftState [13:36:13]wFMCommunicate request_size=4 [13:36:13]MH_SAM_APDU [13:36:13]CAPDU: 80 13 01 00 [13:36:13]Write to MH i2c: E2 08 00 1C 4A 80 13 01 00 00 00 00 00 E3 [13:36:13]Write i2c OK [13:36:13]MH_I2C_Read... [13:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:13]Read from MH i2c: E2 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0E 00 [13:36:13]MH_I2C_Read... [13:36:13]Read from MH i2c: E2 0E 00 1C 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 38 [13:36:13]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:36:13]wFMCommunicate OK [13:36:13]SAM_PROTO_GetShiftState done [13:36:13]FM_GetShiftState done [13:36:13]opened in 1730161559 [13:36:13]opened+sec_in_day 1730247959 [13:36:13]quantity*price = 121068 [13:36:13]sum+1 = 121069 [13:36:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1210.00 Внесено: 1210.00 СДАЧА: 0.00 НСП 1% : 10.71 НДС 12% : 128.57 Наличными: 1210.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 69 29.10.2024 13:36 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15723 ФПД: 80320172020221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T133625&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15723&fm=80320172020221&tin=02508201610067®Number=0000000000161798&sum=121000 [13:36:14]StoreToDocumentArchive [13:36:14]shift 172 fd 15723 [13:36:14]save to /storage/0172/doc_00015723 [13:36:14]save last doc name /storage/0172/doc_00015723 to /storage/kkm_last_doc_name [13:36:14]save OK [13:36:14]Clear old archive folders... [13:36:14]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:36:14]tlvbuf is 0044B760 [13:36:14]SAM_PROTO_ClearQueue [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 09 00 00 [13:36:14]Write to MH i2c: E2 08 00 29 4A 80 09 00 00 00 00 00 00 E5 [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:14]Read from MH i2c: E2 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 [13:36:14]MH_I2C_Read... [13:36:14]Read from MH i2c: E2 03 00 29 4A 00 90 00 E7 [13:36:14]RAPDU: 90 00 [13:36:14]wFMCommunicate OK [13:36:14]SAM_PROTO_ClearQueue done [13:36:14]KKMCreateOFDPacket [13:36:14]OFDProtocolAddRootSTLVToBuf [13:36:14]FM_MakeSignedData [13:36:14]FM_MakeSignedData [13:36:14]SAM_PROTO_SignData [13:36:14]wFMCommunicate request_size=4 [13:36:14]MH_SAM_APDU [13:36:14]CAPDU: 80 0D 01 02 [13:36:14]Write to MH i2c: E2 08 00 2A 4A 80 0D 01 02 00 00 00 00 ED [13:36:14]Write i2c OK [13:36:14]MH_I2C_Read... [13:36:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 03 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 03 00 2A 4A 00 90 00 E8 [13:36:15]RAPDU: 90 00 [13:36:15]wFMCommunicate OK [13:36:15]wFMCommunicate request_size=255 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EC D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 32 00 00 00 00 07 04 06 00 A8 D8 01 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 D9 E4 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6B 3D 00 00 35 04 06 00 49 0C FF [13:36:15]Write to MH i2c: E2 02 01 2B 4A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EC D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 32 00 00 00 00 07 04 06 00 A8 D8 01 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 D9 E4 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6B 3D 00 00 35 04 06 00 49 0C FF 00 00 C0 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]OFD Sender: No OFD packet to send [13:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 03 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 03 00 2B 4A 00 90 00 E9 [13:36:15]RAPDU: 90 00 [13:36:15]wFMCommunicate OK [13:36:15]wFMCommunicate request_size=8 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 0D 02 02 03 52 51 FD [13:36:15]Write to MH i2c: E2 0B 00 2C 4A 80 0D 02 02 03 00 52 51 FD 00 00 96 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:15]Read from MH i2c: E2 03 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 03 00 2C 4A 00 90 00 EA [13:36:15]RAPDU: 90 00 [13:36:15]wFMCommunicate OK [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 0D 03 02 [13:36:15]Write to MH i2c: E2 08 00 2D 4A 80 0D 03 02 00 00 00 00 F2 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0B 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 0B 00 2D 4A 00 6C EA 35 EB 6D B6 CD 05 90 00 5E [13:36:15]RAPDU: 6C EA 35 EB 6D B6 CD 05 90 00 [13:36:15]wFMCommunicate OK [13:36:15]SAM_PROTO_SignData done [13:36:15]FM_MakeSignedData done [13:36:15]CreateOFDProtocolMessage [13:36:15]wFMCommunicate request_size=4 [13:36:15]MH_SAM_APDU [13:36:15]CAPDU: 80 11 00 00 [13:36:15]Write to MH i2c: E2 08 00 2E 4A 80 11 00 00 00 00 00 00 F2 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:15]Read from MH i2c: E2 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 17 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: E2 17 00 2E 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 41 [13:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:36:15]wFMCommunicate OK [13:36:15]CreateOFDProtocolMessage done [13:36:15]OFDSenderStorePacket 15723 [13:36:15]StoreOFDPacket docnum=15723 [13:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 5E 91 05 01 CF AA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EC D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 32 00 00 00 00 07 04 06 00 A8 D8 01 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 D9 E4 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6B 3D 00 00 35 04 06 00 49 0C FF 52 51 FD 6C EA 35 EB 6D B6 CD 05 [13:36:15]CheckFolder [13:36:15]dirname=/storage/ofd_packets [13:36:15]CheckFolder done [13:36:15]ProducePacketName [13:36:15]name=ofd_packets/00015723 [13:36:15]NVStorageSaveData ofd_packets/00015723 [13:36:15]File name is /storage/ofd_packets/00015723 [13:36:15]Write 299 bytes [13:36:15]NVStorageSaveData done [13:36:15]OFDSenderStorePacket done [13:36:15]KKMCreateOFDPacket done [13:36:15]NVStorageSaveData kkm_last_timestamp [13:36:15]File name is /storage/kkm_last_timestamp [13:36:15]Write 4 bytes [13:36:15]NVStorageSaveData done [13:36:15]ExternCall_PrintAddStr [13:36:15]wPrintStart [13:36:15]Write to MH i2c: 01 00 00 2F 4A 79 [13:36:15]Write i2c OK [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 [13:36:15]MH_I2C_Read... [13:36:15]Read from MH i2c: 01 07 00 2F 4A 00 00 00 00 00 FF 0F 8E [13:36:15]RasterBufferAndPrint [13:36:15]line Счет N : (1)16272 [13:36:15]line ИНН: 02508201610067 [13:36:15]line Контрольно-Кассовый Чек [13:36:15]line ПРОДАЖА [13:36:15]line ТРК (МРК, ГНК) : 12 [13:36:15]line Товар: 50.50.0 [13:36:15]line SUPER 92-К-5 [13:36:15]line 17.700 * 68.40 [13:36:15]line = 1210.68 [13:36:15]line НДС 12% НСП 1% [13:36:15]line > о реализуемом товаре [13:36:15]line ОКРУГЛЕНИЕ: -0.68 [13:36:15]line ИТОГО: 1210.00 [13:36:15]line Внесено: 1210.00 [13:36:15]line СДАЧА: 0.00 [13:36:15]line НСП 1% : 10.71 [13:36:15]line НДС 12% : 128.57 [13:36:15]line Наличными: 1210.00 [13:36:15]line Безнал.: 0.00 [13:36:15]line Место: АЗС № 178 "Партнер Нефть" [13:36:15]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [13:36:15]line СНО: Общий режим [13:36:15]line Чек 69 29.10.2024 13:36 [13:36:15]line Смена: 172 ФФД: 1.0 [13:36:15]line ЗНМ: 0300000014 [13:36:15]line РНМ: 0000000000161798 [13:36:15]line Версия ККМ: v1.0 [13:36:15]line ФМ: 0000000000963325 [13:36:15]line ФД: 15723 [13:36:15]line ФПД: 80320172020221 [13:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T133625&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15723&fm=80320172020221&tin=02508201610067®Number=0000000000161798&sum=121000 [13:36:15]OFD Sender: Processing packet 15723 [packets to send 4, broken 3] [13:36:15]ProducePacketName [13:36:15]name=ofd_packets/00015723 [13:36:15]OFD Sender: To server: pG, [13:36:15]CommunicateWithHost lk.salyk.kg:30040 [13:36:15]ConnectInit lk.salyk.kg [13:36:15]written 0, free lines is 4095 [13:36:15]Connected sock=8 [13:36:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 5E 91 05 01 CF AA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EC D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 32 00 00 00 00 07 04 06 00 A8 D8 01 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 D9 E4 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6B 3D 00 00 35 04 06 00 49 0C FF 52 51 FD 6C EA 35 EB 6D B6 CD 05 [13:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8F 69 47 00 D7 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6B 3D 00 00 F4 03 04 00 C5 8F 20 67 B6 04 01 00 00 0E 75 3D EF 52 F3 44 43 [13:36:16]CommunicateWithHost err = 0 [13:36:16]CheckOFDResponse [13:36:16]1017 (14) - 77093643461234 [13:36:16]1041 (16) - 0000000000963325 [13:36:16]1040 (4) - 15723 [13:36:16]1012 (4) - 29.10.2024 07:33 [13:36:16]1206 (1) - 0 [13:36:16]OFD Sender: Remove packet 15723 [13:36:16]ProducePacketName [13:36:16]name=ofd_packets/00015723 [13:36:16]NVStorageDeleteData [13:36:16]Write to MH i2c: 01 00 00 5A 4A A4 [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 07 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: 01 07 00 5A 4A 00 00 00 00 00 E8 0C 9F [13:36:16]RasterBufferAndPrint [13:36:16]line [13:36:16]line [13:36:16]line [13:36:16]line [13:36:16]line [13:36:16]written 0, free lines is 3311 [13:36:16]MH_Cut [13:36:16]Write to MH i2c: D1 01 00 61 4A 01 7D [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: D1 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: D1 01 00 [13:36:16]MH_I2C_Read... [13:36:16]Read from MH i2c: D1 01 00 61 4A 00 7C [13:36:16]Write to MH i2c: 01 00 00 62 4A AC [13:36:16]Write i2c OK [13:36:16]MH_I2C_Read... [13:36:16]OFD Sender: No OFD packet to send [13:36:16]*** Cut start [13:36:16]*** Partial cut [13:36:16]*** CUTSNS_PIN = 1 [13:36:16]*** CUTSNS_PIN = 0 [13:36:17]*** Brake cut motor [13:36:17]Read from MH i2c: 01 [13:36:17]MH_I2C_Read... [13:36:17]*** Stop cut motor [13:36:17]*** Cut end [13:36:17]Read from MH i2c: 01 07 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: 01 07 00 62 4A 00 00 00 00 00 FF 0F C1 [13:36:17]process_action close_receipt done [13:36:17]requested_data is exist [13:36:17]produce_requested_data [13:36:17]requested_item fm.sn is exist - process it [13:36:17]wFMCommunicate request_size=4 [13:36:17]MH_SAM_APDU [13:36:17]CAPDU: 80 11 00 00 [13:36:17]Write to MH i2c: E2 08 00 63 4A 80 11 00 00 00 00 00 00 27 [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:17]Read from MH i2c: E2 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 17 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 17 00 63 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 76 [13:36:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [13:36:17]wFMCommunicate OK [13:36:17]requested_item fd.num is exist - process it [13:36:17]SAM_PROTO_GetFieldsCounters [13:36:17]wFMCommunicate request_size=4 [13:36:17]MH_SAM_APDU [13:36:17]CAPDU: 80 13 00 00 [13:36:17]Write to MH i2c: E2 08 00 64 4A 80 13 00 00 00 00 00 00 2A [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:36:17]Read from MH i2c: E2 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 62 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 62 00 64 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6B 3D 00 00 0E 04 04 00 AC 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 71 [13:36:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6B 3D 00 00 0E 04 04 00 AC 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 [13:36:17]wFMCommunicate OK [13:36:17]SAM_PROTO_GetFieldsCounters done [13:36:17]requested_item shift.num is exist - process it [13:36:17]requested_item shift.opened is exist - process it [13:36:17]req_shift_opened [13:36:17]FM_GetShiftState [13:36:17]SAM_PROTO_GetShiftState [13:36:17]wFMCommunicate request_size=4 [13:36:17]MH_SAM_APDU [13:36:17]CAPDU: 80 13 01 00 [13:36:17]Write to MH i2c: E2 08 00 65 4A 80 13 01 00 00 00 00 00 2C [13:36:17]Write i2c OK [13:36:17]MH_I2C_Read... [13:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:17]Read from MH i2c: E2 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 0E 00 [13:36:17]MH_I2C_Read... [13:36:17]Read from MH i2c: E2 0E 00 65 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 81 [13:36:17]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [13:36:17]wFMCommunicate OK [13:36:17]SAM_PROTO_GetShiftState done [13:36:17]FM_GetShiftState done [13:36:17]req_shift_opened done [13:36:17]requested_item shift.open_date is exist - process it [13:36:17]req_shift_open_date [13:36:17]req_shift_open_date done [13:36:17]produce_requested_data done [13:36:17]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15723,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [13:36:17]process_action_free close_receipt [13:36:17]json_value_free [13:36:17]json_value_free done [13:36:17]process_json_proto returns [13:36:17]Send response to host [13:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15723,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [13:36:17]free response buf [13:36:17]execute_script done [13:36:17]execute_script returns [13:36:17]free content buf [13:36:17]Sock 9.Close socket [13:36:17]Sock 9.Thread stoped [13:36:21]OFD Sender: No OFD packet to send [13:36:26]OFD Sender: No OFD packet to send [13:36:31]OFD Sender: No OFD packet to send [13:36:36]OFD Sender: No OFD packet to send [13:36:41]OFD Sender: No OFD packet to send [13:36:46]OFD Sender: No OFD packet to send [13:36:51]OFD Sender: No OFD packet to send [13:36:56]OFD Sender: No OFD packet to send [13:37:01]OFD Sender: No OFD packet to send [13:37:06]OFD Sender: No OFD packet to send [13:37:11]OFD Sender: No OFD packet to send [13:37:16]OFD Sender: No OFD packet to send [13:37:21]OFD Sender: No OFD packet to send [13:37:26]OFD Sender: No OFD packet to send [13:37:31]OFD Sender: No OFD packet to send [13:37:36]OFD Sender: No OFD packet to send [13:37:41]OFD Sender: No OFD packet to send [13:37:46]OFD Sender: No OFD packet to send [13:37:51]OFD Sender: No OFD packet to send [13:37:56]OFD Sender: No OFD packet to send [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:21]accept exits with 10 [14:05:21]New connection [14:05:21]New thread 3066731876 created [14:05:21]Thread 3066588516 joined [14:05:21]Waiting for new connection... [14:05:21] Sock 10.Parse request [14:05:21]Sock 10.Check first char [14:05:21]Sock 10.First char is OK [14:05:21]request: POST /json_proto HTTP/1.0 [14:05:21]Method: POST [14:05:21]URL: /json_proto [14:05:21]Method is POST - this is cgi request [14:05:21]url: /json_proto [14:05:21]query_string will be loaded in cgi processing [14:05:21]execute_cgi json_proto POST (null) [14:05:21]execute_cgi path=json_proto method=POST [14:05:21]POST find Content-Length [14:05:21]Host: 172.17.54.195:8080 [14:05:21]Content-Length: 673 [14:05:21]Content-Type: application/json [14:05:21] [14:05:21]POST finish read [14:05:21]Found Content-Length = 673 [14:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:21]execute_script... [14:05: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)16273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:21]POST & json_proto [14:05:21]process_json_proto [14:05:21]json parsed OK: [14:05:21]protocol is kg_v1.0 [14:05:21]action value=close_receipt [14:05:21]process_action close_receipt [14:05:21]cmd_close_receipt [14:05:21]MH_GetDate [14:05:21]Write to MH i2c: F0 00 00 66 4A 9F [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 09 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: F0 09 00 66 4A 00 AC EB 20 67 8D 90 A3 66 EC [14:05:21]GetLastDocTimeStamp 1730208985 [14:05:21]current date 1730210732 [14:05:21]FM_GetShiftState [14:05:21]SAM_PROTO_GetShiftState [14:05:21]wFMCommunicate request_size=4 [14:05:21]MH_SAM_APDU [14:05:21]CAPDU: 80 13 01 00 [14:05:21]Write to MH i2c: E2 08 00 67 4A 80 13 01 00 00 00 00 00 2E [14:05:21]Write i2c OK [14:05:21]MH_I2C_Read... [14:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:21]Read from MH i2c: E2 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 [14:05:21]MH_I2C_Read... [14:05:21]Read from MH i2c: E2 0E 00 67 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 83 [14:05:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:05:21]wFMCommunicate OK [14:05:21]SAM_PROTO_GetShiftState done [14:05:21]FM_GetShiftState done [14:05:21]opened in 1730161559 [14:05:21]opened+sec_in_day 1730247959 [14:05:21]quantity*price = 75057 [14:05:21]sum+1 = 75058 [14:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 70 29.10.2024 14:05 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15724 ФПД: 101939535202088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T140532&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15724&fm=101939535202088&tin=02508201610067®Number=0000000000161798&sum=75000 [14:05:22]StoreToDocumentArchive [14:05:22]shift 172 fd 15724 [14:05:22]save to /storage/0172/doc_00015724 [14:05:22]save last doc name /storage/0172/doc_00015724 to /storage/kkm_last_doc_name [14:05:22]save OK [14:05:22]Clear old archive folders... [14:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:22]tlvbuf is 003DC100 [14:05:22]SAM_PROTO_ClearQueue [14:05:22]wFMCommunicate request_size=4 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 09 00 00 [14:05:22]Write to MH i2c: E2 08 00 74 4A 80 09 00 00 00 00 00 00 30 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 74 4A 00 90 00 32 [14:05:22]RAPDU: 90 00 [14:05:22]wFMCommunicate OK [14:05:22]SAM_PROTO_ClearQueue done [14:05:22]KKMCreateOFDPacket [14:05:22]OFDProtocolAddRootSTLVToBuf [14:05:22]FM_MakeSignedData [14:05:22]FM_MakeSignedData [14:05:22]SAM_PROTO_SignData [14:05:22]wFMCommunicate request_size=4 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 0D 01 02 [14:05:22]Write to MH i2c: E2 08 00 75 4A 80 0D 01 02 00 00 00 00 38 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 75 4A 00 90 00 33 [14:05:22]RAPDU: 90 00 [14:05:22]wFMCommunicate OK [14:05:22]wFMCommunicate request_size=255 [14:05:22]MH_SAM_APDU [14:05: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 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 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 AC EB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6C 3D 00 00 35 04 06 00 5C B6 A5 C8 [14:05:22]Write to MH i2c: E2 02 01 76 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 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 AC EB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6C 3D 00 00 35 04 06 00 5C B6 A5 C8 00 00 BE [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 76 4A 00 90 00 34 [14:05:22]RAPDU: 90 00 [14:05:22]wFMCommunicate OK [14:05:22]wFMCommunicate request_size=7 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 0D 02 02 02 C7 28 [14:05:22]Write to MH i2c: E2 0A 00 77 4A 80 0D 02 02 02 00 C7 28 00 00 2E [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 03 00 77 4A 00 90 00 35 [14:05:22]RAPDU: 90 00 [14:05:22]wFMCommunicate OK [14:05:22]wFMCommunicate request_size=4 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 0D 03 02 [14:05:22]Write to MH i2c: E2 08 00 78 4A 80 0D 03 02 00 00 00 00 3D [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 0B 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 0B 00 78 4A 00 EE 57 6B 13 C9 49 B6 03 90 00 CC [14:05:22]RAPDU: EE 57 6B 13 C9 49 B6 03 90 00 [14:05:22]wFMCommunicate OK [14:05:22]SAM_PROTO_SignData done [14:05:22]FM_MakeSignedData done [14:05:22]CreateOFDProtocolMessage [14:05:22]wFMCommunicate request_size=4 [14:05:22]MH_SAM_APDU [14:05:22]CAPDU: 80 11 00 00 [14:05:22]Write to MH i2c: E2 08 00 79 4A 80 11 00 00 00 00 00 00 3D [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:22]Read from MH i2c: E2 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 17 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: E2 17 00 79 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8C [14:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:05:22]wFMCommunicate OK [14:05:22]CreateOFDProtocolMessage done [14:05:22]OFDSenderStorePacket 15724 [14:05:22]StoreOFDPacket docnum=15724 [14:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 FA 68 04 01 E4 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 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 AC EB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6C 3D 00 00 35 04 06 00 5C B6 A5 C8 C7 28 EE 57 6B 13 C9 49 B6 03 [14:05:22]CheckFolder [14:05:22]dirname=/storage/ofd_packets [14:05:22]CheckFolder done [14:05:22]ProducePacketName [14:05:22]name=ofd_packets/00015724 [14:05:22]NVStorageSaveData ofd_packets/00015724 [14:05:22]File name is /storage/ofd_packets/00015724 [14:05:22]Write 298 bytes [14:05:22]NVStorageSaveData done [14:05:22]OFDSenderStorePacket done [14:05:22]KKMCreateOFDPacket done [14:05:22]NVStorageSaveData kkm_last_timestamp [14:05:22]File name is /storage/kkm_last_timestamp [14:05:22]Write 4 bytes [14:05:22]NVStorageSaveData done [14:05:22]ExternCall_PrintAddStr [14:05:22]wPrintStart [14:05:22]Write to MH i2c: 01 00 00 7A 4A C4 [14:05:22]Write i2c OK [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: 01 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: 01 07 00 [14:05:22]MH_I2C_Read... [14:05:22]Read from MH i2c: 01 07 00 7A 4A 00 00 00 00 00 FF 0F D9 [14:05:22]RasterBufferAndPrint [14:05:22]line Счет N : (1)16273 [14:05:22]line ИНН: 02508201610067 [14:05:22]line Контрольно-Кассовый Чек [14:05:22]line ПРОДАЖА [14:05:22]line ТРК (МРК, ГНК) : 22 [14:05:22]line Товар: 2710194210 [14:05:22]line ДТ-К-5 [14:05:22]line 9.850 * 76.20 [14:05:22]line = 750.57 [14:05:22]line НДС 12% НСП 1% [14:05:22]line > о реализуемом товаре [14:05:22]line ОКРУГЛЕНИЕ: -0.57 [14:05:22]line ИТОГО: 750.00 [14:05:22]line Внесено: 750.00 [14:05:22]line СДАЧА: 0.00 [14:05:22]line НСП 1% : 6.64 [14:05:22]line НДС 12% : 79.71 [14:05:22]line Наличными: 750.00 [14:05:22]line Безнал.: 0.00 [14:05:22]line Место: АЗС № 178 "Партнер Нефть" [14:05:22]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:05:22]line СНО: Общий режим [14:05:22]line Чек 70 29.10.2024 14:05 [14:05:22]line Смена: 172 ФФД: 1.0 [14:05:22]line ЗНМ: 0300000014 [14:05:22]line РНМ: 0000000000161798 [14:05:22]line Версия ККМ: v1.0 [14:05:22]line ФМ: 0000000000963325 [14:05:22]line ФД: 15724 [14:05:22]line ФПД: 101939535202088 [14:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T140532&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15724&fm=101939535202088&tin=02508201610067®Number=0000000000161798&sum=75000 [14:05:23]OFD Sender: Processing packet 15724 [packets to send 4, broken 3] [14:05:23]ProducePacketName [14:05:23]name=ofd_packets/00015724 [14:05:23]OFD Sender: To server: pG, [14:05:23]CommunicateWithHost lk.salyk.kg:30040 [14:05:23]ConnectInit lk.salyk.kg [14:05:23]written 0, free lines is 4095 [14:05:23]Connected sock=9 [14:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 FA 68 04 01 E4 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 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 AC EB 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6C 3D 00 00 35 04 06 00 5C B6 A5 C8 C7 28 EE 57 6B 13 C9 49 B6 03 [14:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 6D 5F 47 00 23 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6C 3D 00 00 F4 03 04 00 99 96 20 67 B6 04 01 00 00 14 DF D9 E7 74 33 1D 31 [14:05:23]CommunicateWithHost err = 0 [14:05:23]CheckOFDResponse [14:05:23]1017 (14) - 77093643461234 [14:05:23]1041 (16) - 0000000000963325 [14:05:23]1040 (4) - 15724 [14:05:23]1012 (4) - 29.10.2024 08:02 [14:05:23]1206 (1) - 0 [14:05:23]OFD Sender: Remove packet 15724 [14:05:23]ProducePacketName [14:05:23]name=ofd_packets/00015724 [14:05:23]NVStorageDeleteData [14:05:23]Write to MH i2c: 01 00 00 A5 4A EF [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: 01 07 00 A5 4A 00 00 00 00 00 F0 0C F2 [14:05:23]RasterBufferAndPrint [14:05:23]line [14:05:23]line [14:05:23]line [14:05:23]line [14:05:23]line [14:05:23]written 0, free lines is 3318 [14:05:23]MH_Cut [14:05:23]Write to MH i2c: D1 01 00 AC 4A 01 C8 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: D1 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: D1 01 00 [14:05:23]MH_I2C_Read... [14:05:23]Read from MH i2c: D1 01 00 AC 4A 00 C7 [14:05:23]Write to MH i2c: 01 00 00 AD 4A F7 [14:05:23]Write i2c OK [14:05:23]MH_I2C_Read... [14:05:23]OFD Sender: No OFD packet to send [14:05:24]*** Cut start [14:05:24]*** Partial cut [14:05:24]*** CUTSNS_PIN = 1 [14:05:24]*** CUTSNS_PIN = 0 [14:05:24]*** Brake cut motor [14:05:25]Read from MH i2c: 01 [14:05:25]MH_I2C_Read... [14:05:25]*** Stop cut motor [14:05:25]*** Cut end [14:05:25]Read from MH i2c: 01 07 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: 01 07 00 AD 4A 00 00 00 00 00 FF 0F 0C [14:05:25]process_action close_receipt done [14:05:25]requested_data is exist [14:05:25]produce_requested_data [14:05:25]requested_item fm.sn is exist - process it [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 11 00 00 [14:05:25]Write to MH i2c: E2 08 00 AE 4A 80 11 00 00 00 00 00 00 72 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 17 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 17 00 AE 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C1 [14:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:05:25]wFMCommunicate OK [14:05:25]requested_item fd.num is exist - process it [14:05:25]SAM_PROTO_GetFieldsCounters [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 13 00 00 [14:05:25]Write to MH i2c: E2 08 00 AF 4A 80 13 00 00 00 00 00 00 75 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 62 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 62 00 AF 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6C 3D 00 00 0E 04 04 00 AC 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 C0 [14:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6C 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:25]wFMCommunicate OK [14:05:25]SAM_PROTO_GetFieldsCounters done [14:05:25]requested_item shift.num is exist - process it [14:05:25]requested_item shift.opened is exist - process it [14:05:25]req_shift_opened [14:05:25]FM_GetShiftState [14:05:25]SAM_PROTO_GetShiftState [14:05:25]wFMCommunicate request_size=4 [14:05:25]MH_SAM_APDU [14:05:25]CAPDU: 80 13 01 00 [14:05:25]Write to MH i2c: E2 08 00 B0 4A 80 13 01 00 00 00 00 00 77 [14:05:25]Write i2c OK [14:05:25]MH_I2C_Read... [14:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:25]Read from MH i2c: E2 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 0E 00 [14:05:25]MH_I2C_Read... [14:05:25]Read from MH i2c: E2 0E 00 B0 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CC [14:05:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:05:25]wFMCommunicate OK [14:05:25]SAM_PROTO_GetShiftState done [14:05:25]FM_GetShiftState done [14:05:25]req_shift_opened done [14:05:25]requested_item shift.open_date is exist - process it [14:05:25]req_shift_open_date [14:05:25]req_shift_open_date done [14:05:25]produce_requested_data done [14:05:25]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15724,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:05:25]process_action_free close_receipt [14:05:25]json_value_free [14:05:25]json_value_free done [14:05:25]process_json_proto returns [14:05:25]Send response to host [14:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15724,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:05:25]free response buf [14:05:25]execute_script done [14:05:25]execute_script returns [14:05:25]free content buf [14:05:25]Sock 10.Close socket [14:05:25]Sock 10.Thread stoped [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:21]accept exits with 8 [14:07:21]New connection [14:07:21]New thread 3066588516 created [14:07:21]Thread 3066731876 joined [14:07:21]Waiting for new connection... [14:07:21] Sock 8.Parse request [14:07:21]Sock 8.Check first char [14:07:21]Sock 8.First char is OK [14:07:21]request: POST /json_proto HTTP/1.0 [14:07:21]Method: POST [14:07:21]URL: /json_proto [14:07:21]Method is POST - this is cgi request [14:07:21]url: /json_proto [14:07:21]query_string will be loaded in cgi processing [14:07:21]execute_cgi json_proto POST (null) [14:07:21]execute_cgi path=json_proto method=POST [14:07:21]POST find Content-Length [14:07:21]Host: 172.17.54.195:8080 [14:07:21]Content-Length: 678 [14:07:21]Content-Type: application/json [14:07:21] [14:07:21]POST finish read [14:07:21]Found Content-Length = 678 [14:07:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [14:07:21]execute_script... [14:07:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [14:07:21]POST & json_proto [14:07:21]process_json_proto [14:07:21]json parsed OK: [14:07:21]protocol is kg_v1.0 [14:07:21]action value=close_receipt [14:07:21]process_action close_receipt [14:07:21]cmd_close_receipt [14:07:21]MH_GetDate [14:07:21]Write to MH i2c: F0 00 00 B1 4A EA [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: F0 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: F0 09 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: F0 09 00 B1 4A 00 24 EC 20 67 8D 90 A3 66 B0 [14:07:21]GetLastDocTimeStamp 1730210732 [14:07:21]current date 1730210852 [14:07:21]FM_GetShiftState [14:07:21]SAM_PROTO_GetShiftState [14:07:21]wFMCommunicate request_size=4 [14:07:21]MH_SAM_APDU [14:07:21]CAPDU: 80 13 01 00 [14:07:21]Write to MH i2c: E2 08 00 B2 4A 80 13 01 00 00 00 00 00 79 [14:07:21]Write i2c OK [14:07:21]MH_I2C_Read... [14:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:21]Read from MH i2c: E2 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: E2 0E 00 [14:07:21]MH_I2C_Read... [14:07:21]Read from MH i2c: E2 0E 00 B2 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CE [14:07:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:07:21]wFMCommunicate OK [14:07:21]SAM_PROTO_GetShiftState done [14:07:21]FM_GetShiftState done [14:07:21]opened in 1730161559 [14:07:21]opened+sec_in_day 1730247959 [14:07:21]quantity*price = 100050 [14:07:21]sum+1 = 100052 [14:07:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 71 29.10.2024 14:07 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15725 ФПД: 209829197949942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T140732&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15725&fm=209829197949942&tin=02508201610067®Number=0000000000161798&sum=100000 [14:07:22]StoreToDocumentArchive [14:07:22]shift 172 fd 15725 [14:07:22]save to /storage/0172/doc_00015725 [14:07:22]save last doc name /storage/0172/doc_00015725 to /storage/kkm_last_doc_name [14:07:22]save OK [14:07:22]Clear old archive folders... [14:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:07:22]tlvbuf is 003F8BB0 [14:07:22]SAM_PROTO_ClearQueue [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 09 00 00 [14:07:22]Write to MH i2c: E2 08 00 BF 4A 80 09 00 00 00 00 00 00 7B [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 BF 4A 00 90 00 7D [14:07:22]RAPDU: 90 00 [14:07:22]wFMCommunicate OK [14:07:22]SAM_PROTO_ClearQueue done [14:07:22]KKMCreateOFDPacket [14:07:22]OFDProtocolAddRootSTLVToBuf [14:07:22]FM_MakeSignedData [14:07:22]FM_MakeSignedData [14:07:22]SAM_PROTO_SignData [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 0D 01 02 [14:07:22]Write to MH i2c: E2 08 00 C0 4A 80 0D 01 02 00 00 00 00 83 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 C0 4A 00 90 00 7E [14:07:22]RAPDU: 90 00 [14:07:22]wFMCommunicate OK [14:07:22]wFMCommunicate request_size=255 [14:07:22]MH_SAM_APDU [14:07: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 35 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 47 00 00 00 F4 03 04 00 24 EC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6D 3D 00 00 35 04 06 00 BE D6 AA CE [14:07:22]Write to MH i2c: E2 02 01 C1 4A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 24 EC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6D 3D 00 00 35 04 06 00 BE D6 AA CE 00 00 4B [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 C1 4A 00 90 00 7F [14:07:22]RAPDU: 90 00 [14:07:22]wFMCommunicate OK [14:07:22]wFMCommunicate request_size=7 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 0D 02 02 02 AB F6 [14:07:22]Write to MH i2c: E2 0A 00 C2 4A 80 0D 02 02 02 00 AB F6 00 00 2B [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 03 00 C2 4A 00 90 00 80 [14:07:22]RAPDU: 90 00 [14:07:22]wFMCommunicate OK [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 0D 03 02 [14:07:22]Write to MH i2c: E2 08 00 C3 4A 80 0D 03 02 00 00 00 00 88 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 0B 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 0B 00 C3 4A 00 11 C6 86 32 A2 A0 10 EB 90 00 55 [14:07:22]RAPDU: 11 C6 86 32 A2 A0 10 EB 90 00 [14:07:22]wFMCommunicate OK [14:07:22]SAM_PROTO_SignData done [14:07:22]FM_MakeSignedData done [14:07:22]CreateOFDProtocolMessage [14:07:22]wFMCommunicate request_size=4 [14:07:22]MH_SAM_APDU [14:07:22]CAPDU: 80 11 00 00 [14:07:22]Write to MH i2c: E2 08 00 C4 4A 80 11 00 00 00 00 00 00 88 [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:22]Read from MH i2c: E2 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 17 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: E2 17 00 C4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D7 [14:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:07:22]wFMCommunicate OK [14:07:22]CreateOFDProtocolMessage done [14:07:22]OFDSenderStorePacket 15725 [14:07:22]StoreOFDPacket docnum=15725 [14:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D6 4B 04 01 B3 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 24 EC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6D 3D 00 00 35 04 06 00 BE D6 AA CE AB F6 11 C6 86 32 A2 A0 10 EB [14:07:22]CheckFolder [14:07:22]dirname=/storage/ofd_packets [14:07:22]CheckFolder done [14:07:22]ProducePacketName [14:07:22]name=ofd_packets/00015725 [14:07:22]NVStorageSaveData ofd_packets/00015725 [14:07:22]File name is /storage/ofd_packets/00015725 [14:07:22]Write 298 bytes [14:07:22]NVStorageSaveData done [14:07:22]OFDSenderStorePacket done [14:07:22]KKMCreateOFDPacket done [14:07:22]NVStorageSaveData kkm_last_timestamp [14:07:22]File name is /storage/kkm_last_timestamp [14:07:22]Write 4 bytes [14:07:22]NVStorageSaveData done [14:07:22]ExternCall_PrintAddStr [14:07:22]wPrintStart [14:07:22]Write to MH i2c: 01 00 00 C5 4A 0F [14:07:22]Write i2c OK [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: 01 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: 01 07 00 [14:07:22]MH_I2C_Read... [14:07:22]Read from MH i2c: 01 07 00 C5 4A 00 00 00 00 00 FF 0F 24 [14:07:22]RasterBufferAndPrint [14:07:22]line Счет N : (1)16274 [14:07:22]line ИНН: 02508201610067 [14:07:22]line Контрольно-Кассовый Чек [14:07:22]line ПРОДАЖА [14:07:22]line ТРК (МРК, ГНК) : 22 [14:07:22]line Товар: 2710194210 [14:07:22]line ДТ-К-5 [14:07:22]line 13.130 * 76.20 [14:07:22]line = 1000.51 [14:07:22]line НДС 12% НСП 1% [14:07:22]line > о реализуемом товаре [14:07:22]line ОКРУГЛЕНИЕ: -0.51 [14:07:22]line ИТОГО: 1000.00 [14:07:22]line Внесено: 1000.00 [14:07:22]line СДАЧА: 0.00 [14:07:22]line НСП 1% : 8.85 [14:07:22]line НДС 12% : 106.25 [14:07:22]line Наличными: 1000.00 [14:07:22]line Безнал.: 0.00 [14:07:22]line Место: АЗС № 178 "Партнер Нефть" [14:07:22]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:07:22]line СНО: Общий режим [14:07:22]line Чек 71 29.10.2024 14:07 [14:07:22]line Смена: 172 ФФД: 1.0 [14:07:22]line ЗНМ: 0300000014 [14:07:22]line РНМ: 0000000000161798 [14:07:22]line Версия ККМ: v1.0 [14:07:22]line ФМ: 0000000000963325 [14:07:22]line ФД: 15725 [14:07:22]line ФПД: 209829197949942 [14:07:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T140732&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15725&fm=209829197949942&tin=02508201610067®Number=0000000000161798&sum=100000 [14:07:23]OFD Sender: Processing packet 15725 [packets to send 4, broken 3] [14:07:23]ProducePacketName [14:07:23]name=ofd_packets/00015725 [14:07:23]OFD Sender: To server: pG, [14:07:23]CommunicateWithHost lk.salyk.kg:30040 [14:07:23]ConnectInit lk.salyk.kg [14:07:23]written 0, free lines is 4095 [14:07:23]Connected sock=10 [14:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D6 4B 04 01 B3 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 24 EC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6D 3D 00 00 35 04 06 00 BE D6 AA CE AB F6 11 C6 86 32 A2 A0 10 EB [14:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 56 67 47 00 FF 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6D 3D 00 00 F4 03 04 00 11 97 20 67 B6 04 01 00 00 E4 49 10 83 7A 39 A7 7E [14:07:23]CommunicateWithHost err = 0 [14:07:23]CheckOFDResponse [14:07:23]1017 (14) - 77093643461234 [14:07:23]1041 (16) - 0000000000963325 [14:07:23]1040 (4) - 15725 [14:07:23]1012 (4) - 29.10.2024 08:04 [14:07:23]1206 (1) - 0 [14:07:23]OFD Sender: Remove packet 15725 [14:07:23]ProducePacketName [14:07:23]name=ofd_packets/00015725 [14:07:23]NVStorageDeleteData [14:07:23]Write to MH i2c: 01 00 00 F0 4A 3A [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: 01 07 00 F0 4A 00 00 00 00 00 EB 0C 38 [14:07:23]RasterBufferAndPrint [14:07:23]line [14:07:23]line [14:07:23]line [14:07:23]line [14:07:23]line [14:07:23]written 0, free lines is 3314 [14:07:23]MH_Cut [14:07:23]Write to MH i2c: D1 01 00 F7 4A 01 13 [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: D1 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: D1 01 00 [14:07:23]MH_I2C_Read... [14:07:23]Read from MH i2c: D1 01 00 F7 4A 00 12 [14:07:23]Write to MH i2c: 01 00 00 F8 4A 42 [14:07:23]Write i2c OK [14:07:23]MH_I2C_Read... [14:07:23]OFD Sender: No OFD packet to send [14:07:24]*** Cut start [14:07:24]*** Partial cut [14:07:24]*** CUTSNS_PIN = 1 [14:07:24]*** CUTSNS_PIN = 0 [14:07:24]*** Brake cut motor [14:07:24]Read from MH i2c: 01 [14:07:24]MH_I2C_Read... [14:07:24]*** Stop cut motor [14:07:24]*** Cut end [14:07:24]Read from MH i2c: 01 07 00 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: 01 07 00 F8 4A 00 00 00 00 00 FF 0F 57 [14:07:24]process_action close_receipt done [14:07:24]requested_data is exist [14:07:24]produce_requested_data [14:07:24]requested_item fm.sn is exist - process it [14:07:24]wFMCommunicate request_size=4 [14:07:24]MH_SAM_APDU [14:07:24]CAPDU: 80 11 00 00 [14:07:24]Write to MH i2c: E2 08 00 F9 4A 80 11 00 00 00 00 00 00 BD [14:07:24]Write i2c OK [14:07:24]MH_I2C_Read... [14:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:07:24]Read from MH i2c: E2 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 17 00 [14:07:24]MH_I2C_Read... [14:07:24]Read from MH i2c: E2 17 00 F9 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0C [14:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:07:24]wFMCommunicate OK [14:07:24]requested_item fd.num is exist - process it [14:07:24]SAM_PROTO_GetFieldsCounters [14:07:24]wFMCommunicate request_size=4 [14:07:24]MH_SAM_APDU [14:07:24]CAPDU: 80 13 00 00 [14:07:24]Write to MH i2c: E2 08 00 FA 4A 80 13 00 00 00 00 00 00 C0 [14:07:24]Write i2c OK [14:07:24]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 62 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 62 00 FA 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6D 3D 00 00 0E 04 04 00 AC 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 0F [14:07:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6D 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:07:25]wFMCommunicate OK [14:07:25]SAM_PROTO_GetFieldsCounters done [14:07:25]requested_item shift.num is exist - process it [14:07:25]requested_item shift.opened is exist - process it [14:07:25]req_shift_opened [14:07:25]FM_GetShiftState [14:07:25]SAM_PROTO_GetShiftState [14:07:25]wFMCommunicate request_size=4 [14:07:25]MH_SAM_APDU [14:07:25]CAPDU: 80 13 01 00 [14:07:25]Write to MH i2c: E2 08 00 FB 4A 80 13 01 00 00 00 00 00 C2 [14:07:25]Write i2c OK [14:07:25]MH_I2C_Read... [14:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:07:25]Read from MH i2c: E2 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 0E 00 [14:07:25]MH_I2C_Read... [14:07:25]Read from MH i2c: E2 0E 00 FB 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 17 [14:07:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:07:25]wFMCommunicate OK [14:07:25]SAM_PROTO_GetShiftState done [14:07:25]FM_GetShiftState done [14:07:25]req_shift_opened done [14:07:25]requested_item shift.open_date is exist - process it [14:07:25]req_shift_open_date [14:07:25]req_shift_open_date done [14:07:25]produce_requested_data done [14:07:25]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15725,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:07:25]process_action_free close_receipt [14:07:25]json_value_free [14:07:25]json_value_free done [14:07:25]process_json_proto returns [14:07:25]Send response to host [14:07:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15725,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:07:25]free response buf [14:07:25]execute_script done [14:07:25]execute_script returns [14:07:25]free content buf [14:07:25]Sock 8.Close socket [14:07:25]Sock 8.Thread stoped [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09: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:08]accept exits with 9 [14:11:08]New connection [14:11:08]New thread 3066731876 created [14:11:08]Thread 3066588516 joined [14:11:08]Waiting for new connection... [14:11:08] Sock 9.Parse request [14:11:08]Sock 9.Check first char [14:11:08]Sock 9.First char is OK [14:11:08]request: POST /json_proto HTTP/1.0 [14:11:08]Method: POST [14:11:08]URL: /json_proto [14:11:08]Method is POST - this is cgi request [14:11:08]url: /json_proto [14:11:08]query_string will be loaded in cgi processing [14:11:08]execute_cgi json_proto POST (null) [14:11:08]execute_cgi path=json_proto method=POST [14:11:08]POST find Content-Length [14:11:08]Host: 172.17.54.195:8080 [14:11:08]Content-Length: 671 [14:11:08]Content-Type: application/json [14:11:08] [14:11:08]POST finish read [14:11:08]Found Content-Length = 671 [14:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:08]execute_script... [14:11: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)16275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:08]POST & json_proto [14:11:08]process_json_proto [14:11:08]json parsed OK: [14:11:08]protocol is kg_v1.0 [14:11:08]action value=close_receipt [14:11:08]process_action close_receipt [14:11:08]cmd_close_receipt [14:11:08]MH_GetDate [14:11:08]Write to MH i2c: F0 00 00 FC 4A 35 [14:11:08]Write i2c OK [14:11:08]MH_I2C_Read... [14:11:08]Read from MH i2c: F0 [14:11:08]MH_I2C_Read... [14:11:08]Read from MH i2c: F0 09 00 [14:11:08]MH_I2C_Read... [14:11:08]Read from MH i2c: F0 09 00 FC 4A 00 07 ED 20 67 8D 90 A3 66 DF [14:11:08]GetLastDocTimeStamp 1730210852 [14:11:08]current date 1730211079 [14:11:08]FM_GetShiftState [14:11:08]SAM_PROTO_GetShiftState [14:11:08]wFMCommunicate request_size=4 [14:11:08]MH_SAM_APDU [14:11:08]CAPDU: 80 13 01 00 [14:11:08]Write to MH i2c: E2 08 00 FD 4A 80 13 01 00 00 00 00 00 C4 [14:11:08]Write i2c OK [14:11:08]MH_I2C_Read... [14:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:08]Read from MH i2c: E2 [14:11:08]MH_I2C_Read... [14:11:08]Read from MH i2c: E2 0E 00 [14:11:08]MH_I2C_Read... [14:11:08]Read from MH i2c: E2 0E 00 FD 4A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 19 [14:11:08]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:11:08]wFMCommunicate OK [14:11:08]SAM_PROTO_GetShiftState done [14:11:08]FM_GetShiftState done [14:11:08]opened in 1730161559 [14:11:08]opened+sec_in_day 1730247959 [14:11:08]quantity*price = 100000 [14:11:08]sum+1 = 100002 [14:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 72 29.10.2024 14:11 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15726 ФПД: 154293288502282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141119&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15726&fm=154293288502282&tin=02508201610067®Number=0000000000161798&sum=100000 [14:11:09]StoreToDocumentArchive [14:11:09]shift 172 fd 15726 [14:11:09]save to /storage/0172/doc_00015726 [14:11:09]save last doc name /storage/0172/doc_00015726 to /storage/kkm_last_doc_name [14:11:09]save OK [14:11:09]Clear old archive folders... [14:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:11:09]tlvbuf is 0044B6B0 [14:11:09]SAM_PROTO_ClearQueue [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 09 00 00 [14:11:09]Write to MH i2c: E2 08 00 0A 4B 80 09 00 00 00 00 00 00 C7 [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 03 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 03 00 0A 4B 00 90 00 C9 [14:11:09]RAPDU: 90 00 [14:11:09]wFMCommunicate OK [14:11:09]SAM_PROTO_ClearQueue done [14:11:09]KKMCreateOFDPacket [14:11:09]OFDProtocolAddRootSTLVToBuf [14:11:09]FM_MakeSignedData [14:11:09]FM_MakeSignedData [14:11:09]SAM_PROTO_SignData [14:11:09]wFMCommunicate request_size=4 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 0D 01 02 [14:11:09]Write to MH i2c: E2 08 00 0B 4B 80 0D 01 02 00 00 00 00 CF [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:09]Read from MH i2c: E2 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 03 00 [14:11:09]MH_I2C_Read... [14:11:09]Read from MH i2c: E2 03 00 0B 4B 00 90 00 CA [14:11:09]RAPDU: 90 00 [14:11:09]wFMCommunicate OK [14:11:09]wFMCommunicate request_size=255 [14:11:09]MH_SAM_APDU [14:11:09]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6E 3D 00 00 35 04 06 00 8C 54 34 [14:11:09]Write to MH i2c: E2 02 01 0C 4B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6E 3D 00 00 35 04 06 00 8C 54 34 00 00 B9 [14:11:09]Write i2c OK [14:11:09]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 03 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 03 00 0C 4B 00 90 00 CB [14:11:10]RAPDU: 90 00 [14:11:10]wFMCommunicate OK [14:11:10]wFMCommunicate request_size=8 [14:11:10]MH_SAM_APDU [14:11:10]CAPDU: 80 0D 02 02 03 A7 04 0A [14:11:10]Write to MH i2c: E2 0B 00 0D 4B 80 0D 02 02 03 00 A7 04 0A 00 00 8D [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 03 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 03 00 0D 4B 00 90 00 CC [14:11:10]RAPDU: 90 00 [14:11:10]wFMCommunicate OK [14:11:10]wFMCommunicate request_size=4 [14:11:10]MH_SAM_APDU [14:11:10]CAPDU: 80 0D 03 02 [14:11:10]Write to MH i2c: E2 08 00 0E 4B 80 0D 03 02 00 00 00 00 D4 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0B 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 0B 00 0E 4B 00 66 AA 72 E2 8B F6 73 53 90 00 80 [14:11:10]RAPDU: 66 AA 72 E2 8B F6 73 53 90 00 [14:11:10]wFMCommunicate OK [14:11:10]SAM_PROTO_SignData done [14:11:10]FM_MakeSignedData done [14:11:10]CreateOFDProtocolMessage [14:11:10]wFMCommunicate request_size=4 [14:11:10]MH_SAM_APDU [14:11:10]CAPDU: 80 11 00 00 [14:11:10]Write to MH i2c: E2 08 00 0F 4B 80 11 00 00 00 00 00 00 D4 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:10]Read from MH i2c: E2 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 17 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: E2 17 00 0F 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 23 [14:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:11:10]wFMCommunicate OK [14:11:10]CreateOFDProtocolMessage done [14:11:10]OFDSenderStorePacket 15726 [14:11:10]StoreOFDPacket docnum=15726 [14:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 1E E7 05 01 0B 4A 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6E 3D 00 00 35 04 06 00 8C 54 34 A7 04 0A 66 AA 72 E2 8B F6 73 53 [14:11:10]CheckFolder [14:11:10]dirname=/storage/ofd_packets [14:11:10]CheckFolder done [14:11:10]ProducePacketName [14:11:10]name=ofd_packets/00015726 [14:11:10]NVStorageSaveData ofd_packets/00015726 [14:11:10]File name is /storage/ofd_packets/00015726 [14:11:10]Write 299 bytes [14:11:10]NVStorageSaveData done [14:11:10]OFDSenderStorePacket done [14:11:10]KKMCreateOFDPacket done [14:11:10]NVStorageSaveData kkm_last_timestamp [14:11:10]File name is /storage/kkm_last_timestamp [14:11:10]Write 4 bytes [14:11:10]NVStorageSaveData done [14:11:10]ExternCall_PrintAddStr [14:11:10]wPrintStart [14:11:10]Write to MH i2c: 01 00 00 10 4B 5B [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 07 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 07 00 10 4B 00 00 00 00 00 FF 0F 70 [14:11:10]RasterBufferAndPrint [14:11:10]line Счет N : (1)16275 [14:11:10]line ИНН: 02508201610067 [14:11:10]line Контрольно-Кассовый Чек [14:11:10]line ПРОДАЖА [14:11:10]line ТРК (МРК, ГНК) : 12 [14:11:10]line Товар: 50.50.0 [14:11:10]line SUPER 92-К-5 [14:11:10]line 14.620 * 68.40 [14:11:10]line = 1000.01 [14:11:10]line НДС 12% НСП 1% [14:11:10]line > о реализуемом товаре [14:11:10]line ОКРУГЛЕНИЕ: -0.01 [14:11:10]line ИТОГО: 1000.00 [14:11:10]line Внесено: 1000.00 [14:11:10]line СДАЧА: 0.00 [14:11:10]line НСП 1% : 8.85 [14:11:10]line НДС 12% : 106.20 [14:11:10]line Наличными: 1000.00 [14:11:10]line Безнал.: 0.00 [14:11:10]line Место: АЗС № 178 "Партнер Нефть" [14:11:10]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:11:10]line СНО: Общий режим [14:11:10]line Чек 72 29.10.2024 14:11 [14:11:10]line Смена: 172 ФФД: 1.0 [14:11:10]line ЗНМ: 0300000014 [14:11:10]line РНМ: 0000000000161798 [14:11:10]line Версия ККМ: v1.0 [14:11:10]line ФМ: 0000000000963325 [14:11:10]line ФД: 15726 [14:11:10]line ФПД: 154293288502282 [14:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141119&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15726&fm=154293288502282&tin=02508201610067®Number=0000000000161798&sum=100000 [14:11:10]OFD Sender: Processing packet 15726 [packets to send 4, broken 3] [14:11:10]ProducePacketName [14:11:10]name=ofd_packets/00015726 [14:11:10]OFD Sender: To server: pG, [14:11:10]CommunicateWithHost lk.salyk.kg:30040 [14:11:10]ConnectInit lk.salyk.kg [14:11:10]written 0, free lines is 4095 [14:11:10]Connected sock=10 [14:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 1E E7 05 01 0B 4A 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 07 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6E 3D 00 00 35 04 06 00 8C 54 34 A7 04 0A 66 AA 72 E2 8B F6 73 53 [14:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 54 69 47 00 E1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6E 3D 00 00 F4 03 04 00 F4 97 20 67 B6 04 01 00 00 E0 B1 FF EB 07 F4 44 F6 [14:11:10]CommunicateWithHost err = 0 [14:11:10]CheckOFDResponse [14:11:10]1017 (14) - 77093643461234 [14:11:10]1041 (16) - 0000000000963325 [14:11:10]1040 (4) - 15726 [14:11:10]1012 (4) - 29.10.2024 08:08 [14:11:10]1206 (1) - 0 [14:11:10]OFD Sender: Remove packet 15726 [14:11:10]ProducePacketName [14:11:10]name=ofd_packets/00015726 [14:11:10]NVStorageDeleteData [14:11:10]Write to MH i2c: 01 00 00 3B 4B 86 [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 07 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: 01 07 00 3B 4B 00 00 00 00 00 F3 0C 8C [14:11:10]RasterBufferAndPrint [14:11:10]line [14:11:10]line [14:11:10]line [14:11:10]line [14:11:10]line [14:11:10]written 0, free lines is 3321 [14:11:10]MH_Cut [14:11:10]Write to MH i2c: D1 01 00 42 4B 01 5F [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: D1 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: D1 01 00 [14:11:10]MH_I2C_Read... [14:11:10]Read from MH i2c: D1 01 00 42 4B 00 5E [14:11:10]Write to MH i2c: 01 00 00 43 4B 8E [14:11:10]Write i2c OK [14:11:10]MH_I2C_Read... [14:11:11]OFD Sender: No OFD packet to send [14:11:11]*** Cut start [14:11:11]*** Partial cut [14:11:11]*** CUTSNS_PIN = 1 [14:11:11]*** CUTSNS_PIN = 0 [14:11:11]*** Brake cut motor [14:11:12]Read from MH i2c: 01 [14:11:12]MH_I2C_Read... [14:11:12]*** Stop cut motor [14:11:12]*** Cut end [14:11:12]Read from MH i2c: 01 07 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: 01 07 00 43 4B 00 00 00 00 00 FF 0F A3 [14:11:12]process_action close_receipt done [14:11:12]requested_data is exist [14:11:12]produce_requested_data [14:11:12]requested_item fm.sn is exist - process it [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 11 00 00 [14:11:12]Write to MH i2c: E2 08 00 44 4B 80 11 00 00 00 00 00 00 09 [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 17 00 44 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 58 [14:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:11:12]wFMCommunicate OK [14:11:12]requested_item fd.num is exist - process it [14:11:12]SAM_PROTO_GetFieldsCounters [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 13 00 00 [14:11:12]Write to MH i2c: E2 08 00 45 4B 80 13 00 00 00 00 00 00 0C [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 62 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 62 00 45 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6E 3D 00 00 0E 04 04 00 AC 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 5F [14:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6E 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_GetFieldsCounters done [14:11:12]requested_item shift.num is exist - process it [14:11:12]requested_item shift.opened is exist - process it [14:11:12]req_shift_opened [14:11:12]FM_GetShiftState [14:11:12]SAM_PROTO_GetShiftState [14:11:12]wFMCommunicate request_size=4 [14:11:12]MH_SAM_APDU [14:11:12]CAPDU: 80 13 01 00 [14:11:12]Write to MH i2c: E2 08 00 46 4B 80 13 01 00 00 00 00 00 0E [14:11:12]Write i2c OK [14:11:12]MH_I2C_Read... [14:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:12]Read from MH i2c: E2 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0E 00 [14:11:12]MH_I2C_Read... [14:11:12]Read from MH i2c: E2 0E 00 46 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 63 [14:11:12]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:11:12]wFMCommunicate OK [14:11:12]SAM_PROTO_GetShiftState done [14:11:12]FM_GetShiftState done [14:11:12]req_shift_opened done [14:11:12]requested_item shift.open_date is exist - process it [14:11:12]req_shift_open_date [14:11:12]req_shift_open_date done [14:11:12]produce_requested_data done [14:11:12]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15726,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:11:12]process_action_free close_receipt [14:11:12]json_value_free [14:11:12]json_value_free done [14:11:12]process_json_proto returns [14:11:12]Send response to host [14:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15726,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:11:12]free response buf [14:11:12]execute_script done [14:11:12]execute_script returns [14:11:12]free content buf [14:11:12]Sock 9.Close socket [14:11:12]Sock 9.Thread stoped [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:47]accept exits with 8 [14:13:47]New connection [14:13:47]New thread 3066588516 created [14:13:47]Thread 3066731876 joined [14:13:47]Waiting for new connection... [14:13:47] Sock 8.Parse request [14:13:47]Sock 8.Check first char [14:13:47]Sock 8.First char is OK [14:13:47]request: POST /json_proto HTTP/1.0 [14:13:47]Method: POST [14:13:47]URL: /json_proto [14:13:47]Method is POST - this is cgi request [14:13:47]url: /json_proto [14:13:47]query_string will be loaded in cgi processing [14:13:47]execute_cgi json_proto POST (null) [14:13:47]execute_cgi path=json_proto method=POST [14:13:47]POST find Content-Length [14:13:47]Host: 172.17.54.195:8080 [14:13:47]Content-Length: 774 [14:13:47]Content-Type: application/json [14:13:47] [14:13:47]POST finish read [14:13:47]Found Content-Length = 774 [14:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "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: Mbank", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:47]execute_script... [14:13: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)16276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 13.160, "sum" : 900.14, "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: Mbank", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:47]POST & json_proto [14:13:47]process_json_proto [14:13:47]json parsed OK: [14:13:47]protocol is kg_v1.0 [14:13:47]action value=close_receipt [14:13:47]process_action close_receipt [14:13:47]cmd_close_receipt [14:13:47]MH_GetDate [14:13:47]Write to MH i2c: F0 00 00 47 4B 81 [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: F0 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: F0 09 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: F0 09 00 47 4B 00 A6 ED 20 67 8D 90 A3 66 CA [14:13:47]GetLastDocTimeStamp 1730211079 [14:13:47]current date 1730211238 [14:13:47]FM_GetShiftState [14:13:47]SAM_PROTO_GetShiftState [14:13:47]wFMCommunicate request_size=4 [14:13:47]MH_SAM_APDU [14:13:47]CAPDU: 80 13 01 00 [14:13:47]Write to MH i2c: E2 08 00 48 4B 80 13 01 00 00 00 00 00 10 [14:13:47]Write i2c OK [14:13:47]MH_I2C_Read... [14:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:47]Read from MH i2c: E2 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 [14:13:47]MH_I2C_Read... [14:13:47]Read from MH i2c: E2 0E 00 48 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 65 [14:13:47]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:13:47]wFMCommunicate OK [14:13:47]SAM_PROTO_GetShiftState done [14:13:47]FM_GetShiftState done [14:13:47]opened in 1730161559 [14:13:47]opened+sec_in_day 1730247959 [14:13:47]quantity*price = 90014 [14:13:47]sum+1 = 90015 [14:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 900.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 73 29.10.2024 14:13 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15727 ФПД: 158578685062526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141358&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15727&fm=158578685062526&tin=02508201610067®Number=0000000000161798&sum=90000 [14:13:48]StoreToDocumentArchive [14:13:48]shift 172 fd 15727 [14:13:48]save to /storage/0172/doc_00015727 [14:13:48]save last doc name /storage/0172/doc_00015727 to /storage/kkm_last_doc_name [14:13:48]save OK [14:13:48]Clear old archive folders... [14:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:13:48]tlvbuf is 0044B890 [14:13:48]SAM_PROTO_ClearQueue [14:13:48]wFMCommunicate request_size=4 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 09 00 00 [14:13:48]Write to MH i2c: E2 08 00 55 4B 80 09 00 00 00 00 00 00 12 [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 55 4B 00 90 00 14 [14:13:48]RAPDU: 90 00 [14:13:48]wFMCommunicate OK [14:13:48]SAM_PROTO_ClearQueue done [14:13:48]KKMCreateOFDPacket [14:13:48]OFDProtocolAddRootSTLVToBuf [14:13:48]FM_MakeSignedData [14:13:48]FM_MakeSignedData [14:13:48]SAM_PROTO_SignData [14:13:48]wFMCommunicate request_size=4 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 0D 01 02 [14:13:48]Write to MH i2c: E2 08 00 56 4B 80 0D 01 02 00 00 00 00 1A [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 56 4B 00 90 00 15 [14:13:48]RAPDU: 90 00 [14:13:48]wFMCommunicate OK [14:13:48]wFMCommunicate request_size=255 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6F 3D 00 00 35 04 06 00 90 39 FA [14:13:48]Write to MH i2c: E2 02 01 57 4B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6F 3D 00 00 35 04 06 00 90 39 FA 00 00 81 [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 57 4B 00 90 00 16 [14:13:48]RAPDU: 90 00 [14:13:48]wFMCommunicate OK [14:13:48]wFMCommunicate request_size=8 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 0D 02 02 03 31 2D 7E [14:13:48]Write to MH i2c: E2 0B 00 58 4B 80 0D 02 02 03 00 31 2D 7E 00 00 FF [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:48]Read from MH i2c: E2 03 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 03 00 58 4B 00 90 00 17 [14:13:48]RAPDU: 90 00 [14:13:48]wFMCommunicate OK [14:13:48]wFMCommunicate request_size=4 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 0D 03 02 [14:13:48]Write to MH i2c: E2 08 00 59 4B 80 0D 03 02 00 00 00 00 1F [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 0B 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 0B 00 59 4B 00 41 9A 34 57 D5 B3 7B D3 90 00 5C [14:13:48]RAPDU: 41 9A 34 57 D5 B3 7B D3 90 00 [14:13:48]wFMCommunicate OK [14:13:48]SAM_PROTO_SignData done [14:13:48]FM_MakeSignedData done [14:13:48]CreateOFDProtocolMessage [14:13:48]wFMCommunicate request_size=4 [14:13:48]MH_SAM_APDU [14:13:48]CAPDU: 80 11 00 00 [14:13:48]Write to MH i2c: E2 08 00 5A 4B 80 11 00 00 00 00 00 00 1F [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:48]Read from MH i2c: E2 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 17 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: E2 17 00 5A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 6E [14:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:13:48]wFMCommunicate OK [14:13:48]CreateOFDProtocolMessage done [14:13:48]OFDSenderStorePacket 15727 [14:13:48]StoreOFDPacket docnum=15727 [14:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F9 2D 05 01 20 21 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6F 3D 00 00 35 04 06 00 90 39 FA 31 2D 7E 41 9A 34 57 D5 B3 7B D3 [14:13:48]CheckFolder [14:13:48]dirname=/storage/ofd_packets [14:13:48]CheckFolder done [14:13:48]ProducePacketName [14:13:48]name=ofd_packets/00015727 [14:13:48]NVStorageSaveData ofd_packets/00015727 [14:13:48]File name is /storage/ofd_packets/00015727 [14:13:48]Write 299 bytes [14:13:48]NVStorageSaveData done [14:13:48]OFDSenderStorePacket done [14:13:48]KKMCreateOFDPacket done [14:13:48]NVStorageSaveData kkm_last_timestamp [14:13:48]File name is /storage/kkm_last_timestamp [14:13:48]Write 4 bytes [14:13:48]NVStorageSaveData done [14:13:48]ExternCall_PrintAddStr [14:13:48]wPrintStart [14:13:48]Write to MH i2c: 01 00 00 5B 4B A6 [14:13:48]Write i2c OK [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: 01 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: 01 07 00 [14:13:48]MH_I2C_Read... [14:13:48]Read from MH i2c: 01 07 00 5B 4B 00 00 00 00 00 FF 0F BB [14:13:48]RasterBufferAndPrint [14:13:48]line Счет N : (1)16276 [14:13:48]line ИНН: 02508201610067 [14:13:48]line Контрольно-Кассовый Чек [14:13:48]line ПРОДАЖА [14:13:48]line ТРК (МРК, ГНК) : 12 [14:13:48]line Товар: 50.50.0 [14:13:48]line SUPER 92-К-5 [14:13:48]line 13.160 * 68.40 [14:13:48]line = 900.14 [14:13:48]line НДС 12% НСП 1% [14:13:48]line > о реализуемом товаре [14:13:48]line ОКРУГЛЕНИЕ: -0.14 [14:13:48]line ИТОГО: 900.00 [14:13:48]line НСП 1% : 7.97 [14:13:48]line НДС 12% : 95.59 [14:13:48]line Наличными: 0.00 [14:13:48]line Безнал.: 900.00 [14:13:48]line Место: АЗС № 178 "Партнер Нефть" [14:13:48]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:13:48]line СНО: Общий режим [14:13:48]line Чек 73 29.10.2024 14:13 [14:13:48]line Смена: 172 ФФД: 1.0 [14:13:48]line ЗНМ: 0300000014 [14:13:48]line РНМ: 0000000000161798 [14:13:48]line Версия ККМ: v1.0 [14:13:48]line Платежная система: Mbank [14:13:48]line ФМ: 0000000000963325 [14:13:48]line ФД: 15727 [14:13:48]line ФПД: 158578685062526 [14:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141358&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15727&fm=158578685062526&tin=02508201610067®Number=0000000000161798&sum=90000 [14:13:49]written 0, free lines is 4095 [14:13:49]OFD Sender: Processing packet 15727 [packets to send 4, broken 3] [14:13:49]ProducePacketName [14:13:49]name=ofd_packets/00015727 [14:13:49]OFD Sender: To server: pG, [14:13:49]CommunicateWithHost lk.salyk.kg:30040 [14:13:49]ConnectInit lk.salyk.kg [14:13:49]Connected sock=10 [14:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F9 2D 05 01 20 21 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 68 33 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9E 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 A6 ED 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6F 3D 00 00 35 04 06 00 90 39 FA 31 2D 7E 41 9A 34 57 D5 B3 7B D3 [14:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 45 39 47 00 E2 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 6F 3D 00 00 F4 03 04 00 93 98 20 67 B6 04 01 00 00 95 6A BE 03 0E 2F 73 68 [14:13:49]CommunicateWithHost err = 0 [14:13:49]CheckOFDResponse [14:13:49]1017 (14) - 77093643461234 [14:13:49]1041 (16) - 0000000000963325 [14:13:49]1040 (4) - 15727 [14:13:49]1012 (4) - 29.10.2024 08:10 [14:13:49]1206 (1) - 0 [14:13:49]OFD Sender: Remove packet 15727 [14:13:49]ProducePacketName [14:13:49]name=ofd_packets/00015727 [14:13:49]NVStorageDeleteData [14:13:49]Write to MH i2c: 01 00 00 85 4B D0 [14:13:49]Write i2c OK [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: 01 [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: 01 07 00 [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: 01 07 00 85 4B 00 00 00 00 00 FF 0C E2 [14:13:49]RasterBufferAndPrint [14:13:49]line [14:13:49]line [14:13:49]line [14:13:49]line [14:13:49]line [14:13:49]written 0, free lines is 3333 [14:13:49]MH_Cut [14:13:49]Write to MH i2c: D1 01 00 8C 4B 01 A9 [14:13:49]Write i2c OK [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: D1 [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: D1 01 00 [14:13:49]MH_I2C_Read... [14:13:49]Read from MH i2c: D1 01 00 8C 4B 00 A8 [14:13:49]Write to MH i2c: 01 00 00 8D 4B D8 [14:13:49]Write i2c OK [14:13:49]MH_I2C_Read... [14:13:50]OFD Sender: No OFD packet to send [14:13:50]*** Cut start [14:13:50]*** Partial cut [14:13:50]*** CUTSNS_PIN = 1 [14:13:50]*** CUTSNS_PIN = 0 [14:13:50]*** Brake cut motor [14:13:51]Read from MH i2c: 01 [14:13:51]MH_I2C_Read... [14:13:51]*** Stop cut motor [14:13:51]*** Cut end [14:13:51]Read from MH i2c: 01 07 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: 01 07 00 8D 4B 00 00 00 00 00 FF 0F ED [14:13:51]process_action close_receipt done [14:13:51]requested_data is exist [14:13:51]produce_requested_data [14:13:51]requested_item fm.sn is exist - process it [14:13:51]wFMCommunicate request_size=4 [14:13:51]MH_SAM_APDU [14:13:51]CAPDU: 80 11 00 00 [14:13:51]Write to MH i2c: E2 08 00 8E 4B 80 11 00 00 00 00 00 00 53 [14:13:51]Write i2c OK [14:13:51]MH_I2C_Read... [14:13:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:51]Read from MH i2c: E2 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 17 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 17 00 8E 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A2 [14:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:13:51]wFMCommunicate OK [14:13:51]requested_item fd.num is exist - process it [14:13:51]SAM_PROTO_GetFieldsCounters [14:13:51]wFMCommunicate request_size=4 [14:13:51]MH_SAM_APDU [14:13:51]CAPDU: 80 13 00 00 [14:13:51]Write to MH i2c: E2 08 00 8F 4B 80 13 00 00 00 00 00 00 56 [14:13:51]Write i2c OK [14:13:51]MH_I2C_Read... [14:13:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:51]Read from MH i2c: E2 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 62 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 62 00 8F 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6F 3D 00 00 0E 04 04 00 AC 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 AD [14:13:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 6F 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:51]wFMCommunicate OK [14:13:51]SAM_PROTO_GetFieldsCounters done [14:13:51]requested_item shift.num is exist - process it [14:13:51]requested_item shift.opened is exist - process it [14:13:51]req_shift_opened [14:13:51]FM_GetShiftState [14:13:51]SAM_PROTO_GetShiftState [14:13:51]wFMCommunicate request_size=4 [14:13:51]MH_SAM_APDU [14:13:51]CAPDU: 80 13 01 00 [14:13:51]Write to MH i2c: E2 08 00 90 4B 80 13 01 00 00 00 00 00 58 [14:13:51]Write i2c OK [14:13:51]MH_I2C_Read... [14:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:51]Read from MH i2c: E2 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 0E 00 [14:13:51]MH_I2C_Read... [14:13:51]Read from MH i2c: E2 0E 00 90 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AD [14:13:51]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:13:51]wFMCommunicate OK [14:13:51]SAM_PROTO_GetShiftState done [14:13:51]FM_GetShiftState done [14:13:51]req_shift_opened done [14:13:51]requested_item shift.open_date is exist - process it [14:13:51]req_shift_open_date [14:13:51]req_shift_open_date done [14:13:51]produce_requested_data done [14:13:51]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15727,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:13:51]process_action_free close_receipt [14:13:51]json_value_free [14:13:51]json_value_free done [14:13:51]process_json_proto returns [14:13:51]Send response to host [14:13:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15727,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:13:51]free response buf [14:13:51]execute_script done [14:13:51]execute_script returns [14:13:51]free content buf [14:13:51]Sock 8.Close socket [14:13:51]Sock 8.Thread stoped [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:28]accept exits with 9 [14:17:28]New connection [14:17:28]New thread 3066731876 created [14:17:28]Thread 3066588516 joined [14:17:28]Waiting for new connection... [14:17:28] Sock 9.Parse request [14:17:28]Sock 9.Check first char [14:17:28]Sock 9.First char is OK [14:17:28]request: POST /json_proto HTTP/1.0 [14:17:28]Method: POST [14:17:28]URL: /json_proto [14:17:28]Method is POST - this is cgi request [14:17:28]url: /json_proto [14:17:28]query_string will be loaded in cgi processing [14:17:28]execute_cgi json_proto POST (null) [14:17:28]execute_cgi path=json_proto method=POST [14:17:28]POST find Content-Length [14:17:28]Host: 172.17.54.195:8080 [14:17:28]Content-Length: 628 [14:17:28]Content-Type: application/json [14:17:28] [14:17:28]POST finish read [14:17:28]Found Content-Length = 628 [14:17:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:28]execute_script... [14:17:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:28]POST & json_proto [14:17:28]process_json_proto [14:17:28]json parsed OK: [14:17:28]protocol is kg_v1.0 [14:17:28]action value=close_receipt [14:17:28]process_action close_receipt [14:17:28]cmd_close_receipt [14:17:28]MH_GetDate [14:17:28]Write to MH i2c: F0 00 00 91 4B CB [14:17:28]Write i2c OK [14:17:28]MH_I2C_Read... [14:17:28]Read from MH i2c: F0 [14:17:28]MH_I2C_Read... [14:17:28]Read from MH i2c: F0 09 00 [14:17:28]MH_I2C_Read... [14:17:28]Read from MH i2c: F0 09 00 91 4B 00 84 EE 20 67 8D 90 A3 66 F3 [14:17:28]GetLastDocTimeStamp 1730211238 [14:17:28]current date 1730211460 [14:17:28]FM_GetShiftState [14:17:28]SAM_PROTO_GetShiftState [14:17:28]wFMCommunicate request_size=4 [14:17:28]MH_SAM_APDU [14:17:28]CAPDU: 80 13 01 00 [14:17:28]Write to MH i2c: E2 08 00 92 4B 80 13 01 00 00 00 00 00 5A [14:17:28]Write i2c OK [14:17:28]MH_I2C_Read... [14:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:28]Read from MH i2c: E2 [14:17:28]MH_I2C_Read... [14:17:28]Read from MH i2c: E2 0E 00 [14:17:28]MH_I2C_Read... [14:17:28]Read from MH i2c: E2 0E 00 92 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AF [14:17:28]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:17:28]wFMCommunicate OK [14:17:28]SAM_PROTO_GetShiftState done [14:17:28]FM_GetShiftState done [14:17:28]opened in 1730161559 [14:17:28]opened+sec_in_day 1730247959 [14:17:28]quantity*price = 50000 [14:17:28]sum+1 = 50001 [14:17:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 74 29.10.2024 14:17 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15728 ФПД: 93912894124191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141740&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15728&fm=93912894124191&tin=02508201610067®Number=0000000000161798&sum=50000 [14:17:29]StoreToDocumentArchive [14:17:29]shift 172 fd 15728 [14:17:29]save to /storage/0172/doc_00015728 [14:17:29]save last doc name /storage/0172/doc_00015728 to /storage/kkm_last_doc_name [14:17:29]save OK [14:17:29]Clear old archive folders... [14:17:29]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:17:29]tlvbuf is 00380A40 [14:17:29]SAM_PROTO_ClearQueue [14:17:29]wFMCommunicate request_size=4 [14:17:29]MH_SAM_APDU [14:17:29]CAPDU: 80 09 00 00 [14:17:29]Write to MH i2c: E2 08 00 9F 4B 80 09 00 00 00 00 00 00 5C [14:17:29]Write i2c OK [14:17:29]MH_I2C_Read... [14:17:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:29]Read from MH i2c: E2 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 03 00 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 03 00 9F 4B 00 90 00 5E [14:17:29]RAPDU: 90 00 [14:17:29]wFMCommunicate OK [14:17:29]SAM_PROTO_ClearQueue done [14:17:29]KKMCreateOFDPacket [14:17:29]OFDProtocolAddRootSTLVToBuf [14:17:29]FM_MakeSignedData [14:17:29]FM_MakeSignedData [14:17:29]SAM_PROTO_SignData [14:17:29]wFMCommunicate request_size=4 [14:17:29]MH_SAM_APDU [14:17:29]CAPDU: 80 0D 01 02 [14:17:29]Write to MH i2c: E2 08 00 A0 4B 80 0D 01 02 00 00 00 00 64 [14:17:29]Write i2c OK [14:17:29]MH_I2C_Read... [14:17:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:29]Read from MH i2c: E2 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 03 00 [14:17:29]MH_I2C_Read... [14:17:29]Read from MH i2c: E2 03 00 A0 4B 00 90 00 5F [14:17:29]RAPDU: 90 00 [14:17:29]wFMCommunicate OK [14:17:29]wFMCommunicate request_size=255 [14:17:29]MH_SAM_APDU [14:17:29]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 84 EE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 70 3D 00 00 35 04 06 00 55 69 CC [14:17:30]Write to MH i2c: E2 02 01 A1 4B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 84 EE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 70 3D 00 00 35 04 06 00 55 69 CC 00 00 CE [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 A1 4B 00 90 00 60 [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]wFMCommunicate request_size=8 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 02 02 03 B1 B0 9F [14:17:30]Write to MH i2c: E2 0B 00 A2 4B 80 0D 02 02 03 00 B1 B0 9F 00 00 6D [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:30]Read from MH i2c: E2 03 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 03 00 A2 4B 00 90 00 61 [14:17:30]RAPDU: 90 00 [14:17:30]wFMCommunicate OK [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 0D 03 02 [14:17:30]Write to MH i2c: E2 08 00 A3 4B 80 0D 03 02 00 00 00 00 69 [14:17:30]OFD Sender: No OFD packet to send [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 0B 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 0B 00 A3 4B 00 1C 9C 19 34 79 13 00 93 90 00 8E [14:17:30]RAPDU: 1C 9C 19 34 79 13 00 93 90 00 [14:17:30]wFMCommunicate OK [14:17:30]SAM_PROTO_SignData done [14:17:30]FM_MakeSignedData done [14:17:30]CreateOFDProtocolMessage [14:17:30]wFMCommunicate request_size=4 [14:17:30]MH_SAM_APDU [14:17:30]CAPDU: 80 11 00 00 [14:17:30]Write to MH i2c: E2 08 00 A4 4B 80 11 00 00 00 00 00 00 69 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:30]Read from MH i2c: E2 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 17 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: E2 17 00 A4 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B8 [14:17:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:17:30]wFMCommunicate OK [14:17:30]CreateOFDProtocolMessage done [14:17:30]OFDSenderStorePacket 15728 [14:17:30]StoreOFDPacket docnum=15728 [14:17:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 DF 13 05 01 EE E8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 84 EE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 70 3D 00 00 35 04 06 00 55 69 CC B1 B0 9F 1C 9C 19 34 79 13 00 93 [14:17:30]CheckFolder [14:17:30]dirname=/storage/ofd_packets [14:17:30]CheckFolder done [14:17:30]ProducePacketName [14:17:30]name=ofd_packets/00015728 [14:17:30]NVStorageSaveData ofd_packets/00015728 [14:17:30]File name is /storage/ofd_packets/00015728 [14:17:30]Write 299 bytes [14:17:30]NVStorageSaveData done [14:17:30]OFDSenderStorePacket done [14:17:30]KKMCreateOFDPacket done [14:17:30]NVStorageSaveData kkm_last_timestamp [14:17:30]File name is /storage/kkm_last_timestamp [14:17:30]Write 4 bytes [14:17:30]NVStorageSaveData done [14:17:30]ExternCall_PrintAddStr [14:17:30]wPrintStart [14:17:30]Write to MH i2c: 01 00 00 A5 4B F0 [14:17:30]Write i2c OK [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 07 00 [14:17:30]MH_I2C_Read... [14:17:30]Read from MH i2c: 01 07 00 A5 4B 00 00 00 00 00 FF 0F 05 [14:17:30]RasterBufferAndPrint [14:17:30]line Счет N : (1)16277 [14:17:30]line ИНН: 02508201610067 [14:17:30]line Контрольно-Кассовый Чек [14:17:30]line ПРОДАЖА [14:17:30]line ТРК (МРК, ГНК) : 12 [14:17:30]line Товар: 50.50.0 [14:17:30]line SUPER 92-К-5 [14:17:30]line 7.310 * 68.40 [14:17:30]line = 500.00 [14:17:30]line НДС 12% НСП 1% [14:17:30]line > о реализуемом товаре [14:17:30]line ИТОГО: 500.00 [14:17:30]line НСП 1% : 4.42 [14:17:30]line НДС 12% : 53.10 [14:17:30]line Наличными: 500.00 [14:17:30]line Безнал.: 0.00 [14:17:30]line Место: АЗС № 178 "Партнер Нефть" [14:17:30]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:17:30]line СНО: Общий режим [14:17:30]line Чек 74 29.10.2024 14:17 [14:17:30]line Смена: 172 ФФД: 1.0 [14:17:30]line ЗНМ: 0300000014 [14:17:30]line РНМ: 0000000000161798 [14:17:30]line Версия ККМ: v1.0 [14:17:30]line ФМ: 0000000000963325 [14:17:30]line ФД: 15728 [14:17:30]line ФПД: 93912894124191 [14:17:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141740&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15728&fm=93912894124191&tin=02508201610067®Number=0000000000161798&sum=50000 [14:17:30]OFD Sender: Processing packet 15728 [packets to send 4, broken 3] [14:17:30]ProducePacketName [14:17:30]name=ofd_packets/00015728 [14:17:30]OFD Sender: To server: pG, [14:17:30]CommunicateWithHost lk.salyk.kg:30040 [14:17:30]ConnectInit lk.salyk.kg [14:17:30]written 0, free lines is 4095 [14:17:30]Connected sock=10 [14:17:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 DF 13 05 01 EE E8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 84 EE 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 70 3D 00 00 35 04 06 00 55 69 CC B1 B0 9F 1C 9C 19 34 79 13 00 93 [14:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 41 6E 47 00 07 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 70 3D 00 00 F4 03 04 00 70 99 20 67 B6 04 01 00 00 3C 89 3F 76 16 00 44 A7 [14:17:31]CommunicateWithHost err = 0 [14:17:31]CheckOFDResponse [14:17:31]1017 (14) - 77093643461234 [14:17:31]1041 (16) - 0000000000963325 [14:17:31]1040 (4) - 15728 [14:17:31]1012 (4) - 29.10.2024 08:14 [14:17:31]1206 (1) - 0 [14:17:31]OFD Sender: Remove packet 15728 [14:17:31]ProducePacketName [14:17:31]name=ofd_packets/00015728 [14:17:31]NVStorageDeleteData [14:17:31]Write to MH i2c: 01 00 00 CD 4B 18 [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 07 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: 01 07 00 CD 4B 00 00 00 00 00 14 0D 40 [14:17:31]RasterBufferAndPrint [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]line [14:17:31]written 0, free lines is 3354 [14:17:31]MH_Cut [14:17:31]Write to MH i2c: D1 01 00 D4 4B 01 F1 [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 01 00 [14:17:31]MH_I2C_Read... [14:17:31]Read from MH i2c: D1 01 00 D4 4B 00 F0 [14:17:31]Write to MH i2c: 01 00 00 D5 4B 20 [14:17:31]Write i2c OK [14:17:31]MH_I2C_Read... [14:17:31]OFD Sender: No OFD packet to send [14:17:31]*** Cut start [14:17:31]*** Partial cut [14:17:31]*** CUTSNS_PIN = 1 [14:17:31]*** CUTSNS_PIN = 0 [14:17:32]*** Brake cut motor [14:17:32]Read from MH i2c: 01 [14:17:32]MH_I2C_Read... [14:17:32]*** Stop cut motor [14:17:32]*** Cut end [14:17:32]Read from MH i2c: 01 07 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: 01 07 00 D5 4B 00 00 00 00 00 FF 0F 35 [14:17:32]process_action close_receipt done [14:17:32]requested_data is exist [14:17:32]produce_requested_data [14:17:32]requested_item fm.sn is exist - process it [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 11 00 00 [14:17:32]Write to MH i2c: E2 08 00 D6 4B 80 11 00 00 00 00 00 00 9B [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 17 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 17 00 D6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 EA [14:17:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:17:32]wFMCommunicate OK [14:17:32]requested_item fd.num is exist - process it [14:17:32]SAM_PROTO_GetFieldsCounters [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 13 00 00 [14:17:32]Write to MH i2c: E2 08 00 D7 4B 80 13 00 00 00 00 00 00 9E [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 62 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 62 00 D7 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 70 3D 00 00 0E 04 04 00 AC 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 F9 [14:17:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 70 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:32]wFMCommunicate OK [14:17:32]SAM_PROTO_GetFieldsCounters done [14:17:32]requested_item shift.num is exist - process it [14:17:32]requested_item shift.opened is exist - process it [14:17:32]req_shift_opened [14:17:32]FM_GetShiftState [14:17:32]SAM_PROTO_GetShiftState [14:17:32]wFMCommunicate request_size=4 [14:17:32]MH_SAM_APDU [14:17:32]CAPDU: 80 13 01 00 [14:17:32]Write to MH i2c: E2 08 00 D8 4B 80 13 01 00 00 00 00 00 A0 [14:17:32]Write i2c OK [14:17:32]MH_I2C_Read... [14:17:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:32]Read from MH i2c: E2 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 0E 00 [14:17:32]MH_I2C_Read... [14:17:32]Read from MH i2c: E2 0E 00 D8 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F5 [14:17:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:17:32]wFMCommunicate OK [14:17:32]SAM_PROTO_GetShiftState done [14:17:32]FM_GetShiftState done [14:17:32]req_shift_opened done [14:17:32]requested_item shift.open_date is exist - process it [14:17:32]req_shift_open_date [14:17:32]req_shift_open_date done [14:17:32]produce_requested_data done [14:17:32]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15728,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:17:32]process_action_free close_receipt [14:17:32]json_value_free [14:17:32]json_value_free done [14:17:32]process_json_proto returns [14:17:32]Send response to host [14:17:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15728,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:17:32]free response buf [14:17:32]execute_script done [14:17:32]execute_script returns [14:17:32]free content buf [14:17:32]Sock 9.Close socket [14:17:32]Sock 9.Thread stoped [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17: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:32]accept exits with 8 [14:19:32]New connection [14:19:32]New thread 3066588516 created [14:19:32]Thread 3066731876 joined [14:19:32]Waiting for new connection... [14:19:32] Sock 8.Parse request [14:19:32]Sock 8.Check first char [14:19:32]Sock 8.First char is OK [14:19:32]request: POST /json_proto HTTP/1.0 [14:19:32]Method: POST [14:19:32]URL: /json_proto [14:19:32]Method is POST - this is cgi request [14:19:32]url: /json_proto [14:19:32]query_string will be loaded in cgi processing [14:19:32]execute_cgi json_proto POST (null) [14:19:32]execute_cgi path=json_proto method=POST [14:19:32]POST find Content-Length [14:19:32]Host: 172.17.54.195:8080 [14:19:32]Content-Length: 666 [14:19:32]Content-Type: application/json [14:19:32] [14:19:32]POST finish read [14:19:32]Found Content-Length = 666 [14:19:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [14:19:32]execute_script... [14:19: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)16278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [14:19:32]POST & json_proto [14:19:32]process_json_proto [14:19:32]json parsed OK: [14:19:32]protocol is kg_v1.0 [14:19:32]action value=close_receipt [14:19:32]process_action close_receipt [14:19:32]cmd_close_receipt [14:19:32]MH_GetDate [14:19:32]Write to MH i2c: F0 00 00 D9 4B 13 [14:19:32]Write i2c OK [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: F0 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: F0 09 00 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: F0 09 00 D9 4B 00 00 EF 20 67 8D 90 A3 66 B8 [14:19:32]GetLastDocTimeStamp 1730211460 [14:19:32]current date 1730211584 [14:19:32]FM_GetShiftState [14:19:32]SAM_PROTO_GetShiftState [14:19:32]wFMCommunicate request_size=4 [14:19:32]MH_SAM_APDU [14:19:32]CAPDU: 80 13 01 00 [14:19:32]Write to MH i2c: E2 08 00 DA 4B 80 13 01 00 00 00 00 00 A2 [14:19:32]Write i2c OK [14:19:32]MH_I2C_Read... [14:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:32]Read from MH i2c: E2 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: E2 0E 00 [14:19:32]MH_I2C_Read... [14:19:32]Read from MH i2c: E2 0E 00 DA 4B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F7 [14:19:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:19:32]wFMCommunicate OK [14:19:32]SAM_PROTO_GetShiftState done [14:19:32]FM_GetShiftState done [14:19:32]opened in 1730161559 [14:19:32]opened+sec_in_day 1730247959 [14:19:32]quantity*price = 20041 [14:19:32]sum+1 = 20042 [14:19:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 75 29.10.2024 14:19 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15729 ФПД: 8989866884458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141944&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15729&fm=8989866884458&tin=02508201610067®Number=0000000000161798&sum=20000 [14:19:34]StoreToDocumentArchive [14:19:34]shift 172 fd 15729 [14:19:34]save to /storage/0172/doc_00015729 [14:19:34]save last doc name /storage/0172/doc_00015729 to /storage/kkm_last_doc_name [14:19:34]save OK [14:19:34]Clear old archive folders... [14:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:19:34]tlvbuf is 003F84C0 [14:19:34]SAM_PROTO_ClearQueue [14:19:34]wFMCommunicate request_size=4 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 09 00 00 [14:19:34]Write to MH i2c: E2 08 00 E7 4B 80 09 00 00 00 00 00 00 A4 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 E7 4B 00 90 00 A6 [14:19:34]RAPDU: 90 00 [14:19:34]wFMCommunicate OK [14:19:34]SAM_PROTO_ClearQueue done [14:19:34]KKMCreateOFDPacket [14:19:34]OFDProtocolAddRootSTLVToBuf [14:19:34]FM_MakeSignedData [14:19:34]FM_MakeSignedData [14:19:34]SAM_PROTO_SignData [14:19:34]wFMCommunicate request_size=4 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 0D 01 02 [14:19:34]Write to MH i2c: E2 08 00 E8 4B 80 0D 01 02 00 00 00 00 AC [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 E8 4B 00 90 00 A7 [14:19:34]RAPDU: 90 00 [14:19:34]wFMCommunicate OK [14:19:34]wFMCommunicate request_size=255 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 4B 00 00 00 F4 03 04 00 00 EF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 71 3D 00 00 35 04 06 00 08 2D 1D [14:19:34]Write to MH i2c: E2 02 01 E9 4B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 4B 00 00 00 F4 03 04 00 00 EF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 71 3D 00 00 35 04 06 00 08 2D 1D 00 00 E6 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 E9 4B 00 90 00 A8 [14:19:34]RAPDU: 90 00 [14:19:34]wFMCommunicate OK [14:19:34]wFMCommunicate request_size=8 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 0D 02 02 03 D2 7D 6A [14:19:34]Write to MH i2c: E2 0B 00 EA 4B 80 0D 02 02 03 00 D2 7D 6A 00 00 6E [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 03 00 EA 4B 00 90 00 A9 [14:19:34]RAPDU: 90 00 [14:19:34]wFMCommunicate OK [14:19:34]wFMCommunicate request_size=4 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 0D 03 02 [14:19:34]Write to MH i2c: E2 08 00 EB 4B 80 0D 03 02 00 00 00 00 B1 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 0B 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 0B 00 EB 4B 00 6A 21 30 0D 03 66 6E 04 90 00 55 [14:19:34]RAPDU: 6A 21 30 0D 03 66 6E 04 90 00 [14:19:34]wFMCommunicate OK [14:19:34]SAM_PROTO_SignData done [14:19:34]FM_MakeSignedData done [14:19:34]CreateOFDProtocolMessage [14:19:34]wFMCommunicate request_size=4 [14:19:34]MH_SAM_APDU [14:19:34]CAPDU: 80 11 00 00 [14:19:34]Write to MH i2c: E2 08 00 EC 4B 80 11 00 00 00 00 00 00 B1 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:34]Read from MH i2c: E2 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 17 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: E2 17 00 EC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 00 [14:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:19:34]wFMCommunicate OK [14:19:34]CreateOFDProtocolMessage done [14:19:34]OFDSenderStorePacket 15729 [14:19:34]StoreOFDPacket docnum=15729 [14:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 37 98 05 01 7C 69 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 4B 00 00 00 F4 03 04 00 00 EF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 71 3D 00 00 35 04 06 00 08 2D 1D D2 7D 6A 6A 21 30 0D 03 66 6E 04 [14:19:34]CheckFolder [14:19:34]dirname=/storage/ofd_packets [14:19:34]CheckFolder done [14:19:34]ProducePacketName [14:19:34]name=ofd_packets/00015729 [14:19:34]NVStorageSaveData ofd_packets/00015729 [14:19:34]File name is /storage/ofd_packets/00015729 [14:19:34]Write 299 bytes [14:19:34]NVStorageSaveData done [14:19:34]OFDSenderStorePacket done [14:19:34]KKMCreateOFDPacket done [14:19:34]NVStorageSaveData kkm_last_timestamp [14:19:34]File name is /storage/kkm_last_timestamp [14:19:34]Write 4 bytes [14:19:34]NVStorageSaveData done [14:19:34]ExternCall_PrintAddStr [14:19:34]wPrintStart [14:19:34]Write to MH i2c: 01 00 00 ED 4B 38 [14:19:34]Write i2c OK [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: 01 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: 01 07 00 [14:19:34]MH_I2C_Read... [14:19:34]Read from MH i2c: 01 07 00 ED 4B 00 00 00 00 00 FF 0F 4D [14:19:34]RasterBufferAndPrint [14:19:34]line Счет N : (1)16278 [14:19:34]line ИНН: 02508201610067 [14:19:34]line Контрольно-Кассовый Чек [14:19:34]line ПРОДАЖА [14:19:34]line ТРК (МРК, ГНК) : 12 [14:19:34]line Товар: 50.50.0 [14:19:34]line SUPER 92-К-5 [14:19:34]line 2.930 * 68.40 [14:19:34]line = 200.41 [14:19:34]line НДС 12% НСП 1% [14:19:34]line > о реализуемом товаре [14:19:34]line ОКРУГЛЕНИЕ: -0.41 [14:19:34]line ИТОГО: 200.00 [14:19:34]line Внесено: 200.00 [14:19:34]line СДАЧА: 0.00 [14:19:34]line НСП 1% : 1.77 [14:19:34]line НДС 12% : 21.28 [14:19:34]line Наличными: 200.00 [14:19:34]line Безнал.: 0.00 [14:19:34]line Место: АЗС № 178 "Партнер Нефть" [14:19:34]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:19:34]line СНО: Общий режим [14:19:34]line Чек 75 29.10.2024 14:19 [14:19:34]line Смена: 172 ФФД: 1.0 [14:19:34]line ЗНМ: 0300000014 [14:19:34]line РНМ: 0000000000161798 [14:19:34]line Версия ККМ: v1.0 [14:19:34]line ФМ: 0000000000963325 [14:19:34]line ФД: 15729 [14:19:34]line ФПД: 8989866884458 [14:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T141944&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15729&fm=8989866884458&tin=02508201610067®Number=0000000000161798&sum=20000 [14:19:34]OFD Sender: Processing packet 15729 [packets to send 4, broken 3] [14:19:34]ProducePacketName [14:19:34]name=ofd_packets/00015729 [14:19:34]OFD Sender: To server: pG, [14:19:34]CommunicateWithHost lk.salyk.kg:30040 [14:19:34]ConnectInit lk.salyk.kg [14:19:34]written 0, free lines is 4095 [14:19:34]Connected sock=10 [14:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 37 98 05 01 7C 69 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 4B 00 00 00 F4 03 04 00 00 EF 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 71 3D 00 00 35 04 06 00 08 2D 1D D2 7D 6A 6A 21 30 0D 03 66 6E 04 [14:19:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 EB E9 47 00 A0 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 71 3D 00 00 F4 03 04 00 ED 99 20 67 B6 04 01 00 00 B8 A3 E7 DE F6 FA EE 0A [14:19:35]CommunicateWithHost err = 0 [14:19:35]CheckOFDResponse [14:19:35]1017 (14) - 77093643461234 [14:19:35]1041 (16) - 0000000000963325 [14:19:35]1040 (4) - 15729 [14:19:35]1012 (4) - 29.10.2024 08:16 [14:19:35]1206 (1) - 0 [14:19:35]OFD Sender: Remove packet 15729 [14:19:35]ProducePacketName [14:19:35]name=ofd_packets/00015729 [14:19:35]NVStorageDeleteData [14:19:35]Write to MH i2c: 01 00 00 18 4C 64 [14:19:35]Write i2c OK [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: 01 [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: 01 07 00 [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: 01 07 00 18 4C 00 00 00 00 00 E4 0C 5B [14:19:35]RasterBufferAndPrint [14:19:35]line [14:19:35]line [14:19:35]line [14:19:35]line [14:19:35]line [14:19:35]written 0, free lines is 3306 [14:19:35]MH_Cut [14:19:35]Write to MH i2c: D1 01 00 1F 4C 01 3D [14:19:35]Write i2c OK [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: D1 [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: D1 01 00 [14:19:35]MH_I2C_Read... [14:19:35]Read from MH i2c: D1 01 00 1F 4C 00 3C [14:19:35]Write to MH i2c: 01 00 00 20 4C 6C [14:19:35]Write i2c OK [14:19:35]MH_I2C_Read... [14:19:35]OFD Sender: No OFD packet to send [14:19:36]*** Cut start [14:19:36]*** Partial cut [14:19:36]*** CUTSNS_PIN = 1 [14:19:36]*** CUTSNS_PIN = 0 [14:19:36]*** Brake cut motor [14:19:36]Read from MH i2c: 01 [14:19:36]MH_I2C_Read... [14:19:36]*** Stop cut motor [14:19:36]*** Cut end [14:19:36]Read from MH i2c: 01 07 00 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: 01 07 00 20 4C 00 00 00 00 00 FF 0F 81 [14:19:36]process_action close_receipt done [14:19:36]requested_data is exist [14:19:36]produce_requested_data [14:19:36]requested_item fm.sn is exist - process it [14:19:36]wFMCommunicate request_size=4 [14:19:36]MH_SAM_APDU [14:19:36]CAPDU: 80 11 00 00 [14:19:36]Write to MH i2c: E2 08 00 21 4C 80 11 00 00 00 00 00 00 E7 [14:19:36]Write i2c OK [14:19:36]MH_I2C_Read... [14:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:36]Read from MH i2c: E2 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 17 00 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 17 00 21 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 36 [14:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:19:36]wFMCommunicate OK [14:19:36]requested_item fd.num is exist - process it [14:19:36]SAM_PROTO_GetFieldsCounters [14:19:36]wFMCommunicate request_size=4 [14:19:36]MH_SAM_APDU [14:19:36]CAPDU: 80 13 00 00 [14:19:36]Write to MH i2c: E2 08 00 22 4C 80 13 00 00 00 00 00 00 EA [14:19:36]Write i2c OK [14:19:36]MH_I2C_Read... [14:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:36]Read from MH i2c: E2 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 62 00 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 62 00 22 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 71 3D 00 00 0E 04 04 00 AC 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 49 [14:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 71 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:36]wFMCommunicate OK [14:19:36]SAM_PROTO_GetFieldsCounters done [14:19:36]requested_item shift.num is exist - process it [14:19:36]requested_item shift.opened is exist - process it [14:19:36]req_shift_opened [14:19:36]FM_GetShiftState [14:19:36]SAM_PROTO_GetShiftState [14:19:36]wFMCommunicate request_size=4 [14:19:36]MH_SAM_APDU [14:19:36]CAPDU: 80 13 01 00 [14:19:36]Write to MH i2c: E2 08 00 23 4C 80 13 01 00 00 00 00 00 EC [14:19:36]Write i2c OK [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 [14:19:36]MH_I2C_Read... [14:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:36]Read from MH i2c: E2 0E 00 [14:19:36]MH_I2C_Read... [14:19:36]Read from MH i2c: E2 0E 00 23 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 41 [14:19:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:19:36]wFMCommunicate OK [14:19:36]SAM_PROTO_GetShiftState done [14:19:36]FM_GetShiftState done [14:19:36]req_shift_opened done [14:19:36]requested_item shift.open_date is exist - process it [14:19:36]req_shift_open_date [14:19:36]req_shift_open_date done [14:19:36]produce_requested_data done [14:19:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15729,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:19:36]process_action_free close_receipt [14:19:36]json_value_free [14:19:36]json_value_free done [14:19:36]process_json_proto returns [14:19:36]Send response to host [14:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15729,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:19:36]free response buf [14:19:36]execute_script done [14:19:36]execute_script returns [14:19:36]free content buf [14:19:36]Sock 8.Close socket [14:19:36]Sock 8.Thread stoped [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:32]accept exits with 9 [14:35:32]New connection [14:35:32]New thread 3066731876 created [14:35:32]Thread 3066588516 joined [14:35:32]Waiting for new connection... [14:35:32] Sock 9.Parse request [14:35:32]Sock 9.Check first char [14:35:32]Sock 9.First char is OK [14:35:32]request: POST /json_proto HTTP/1.0 [14:35:32]Method: POST [14:35:32]URL: /json_proto [14:35:32]Method is POST - this is cgi request [14:35:32]url: /json_proto [14:35:32]query_string will be loaded in cgi processing [14:35:32]execute_cgi json_proto POST (null) [14:35:32]execute_cgi path=json_proto method=POST [14:35:32]POST find Content-Length [14:35:32]Host: 172.17.54.195:8080 [14:35:32]Content-Length: 667 [14:35:32]Content-Type: application/json [14:35:32] [14:35:32]POST finish read [14:35:32]Found Content-Length = 667 [14:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]execute_script... [14:35: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)16279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:32]POST & json_proto [14:35:32]process_json_proto [14:35:32]json parsed OK: [14:35:32]protocol is kg_v1.0 [14:35:32]action value=close_receipt [14:35:32]process_action close_receipt [14:35:32]cmd_close_receipt [14:35:32]MH_GetDate [14:35:32]Write to MH i2c: F0 00 00 24 4C 5F [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: F0 09 00 24 4C 00 C0 F2 20 67 8D 90 A3 66 C7 [14:35:32]GetLastDocTimeStamp 1730211584 [14:35:32]current date 1730212544 [14:35:32]FM_GetShiftState [14:35:32]SAM_PROTO_GetShiftState [14:35:32]wFMCommunicate request_size=4 [14:35:32]MH_SAM_APDU [14:35:32]CAPDU: 80 13 01 00 [14:35:32]Write to MH i2c: E2 08 00 25 4C 80 13 01 00 00 00 00 00 EE [14:35:32]Write i2c OK [14:35:32]MH_I2C_Read... [14:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:32]Read from MH i2c: E2 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 [14:35:32]MH_I2C_Read... [14:35:32]Read from MH i2c: E2 0E 00 25 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 43 [14:35:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:35:32]wFMCommunicate OK [14:35:32]SAM_PROTO_GetShiftState done [14:35:32]FM_GetShiftState done [14:35:32]opened in 1730161559 [14:35:32]opened+sec_in_day 1730247959 [14:35:32]quantity*price = 70041 [14:35:32]sum+1 = 70043 [14:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 76 29.10.2024 14:35 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15730 ФПД: 8002810666498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143544&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15730&fm=8002810666498&tin=02508201610067®Number=0000000000161798&sum=70000 [14:35:33]StoreToDocumentArchive [14:35:33]shift 172 fd 15730 [14:35:33]save to /storage/0172/doc_00015730 [14:35:33]save last doc name /storage/0172/doc_00015730 to /storage/kkm_last_doc_name [14:35:33]save OK [14:35:33]Clear old archive folders... [14:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:35:33]tlvbuf is 0036F0C0 [14:35:33]SAM_PROTO_ClearQueue [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 09 00 00 [14:35:33]Write to MH i2c: E2 08 00 32 4C 80 09 00 00 00 00 00 00 F0 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 32 4C 00 90 00 F2 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]SAM_PROTO_ClearQueue done [14:35:33]KKMCreateOFDPacket [14:35:33]OFDProtocolAddRootSTLVToBuf [14:35:33]FM_MakeSignedData [14:35:33]FM_MakeSignedData [14:35:33]SAM_PROTO_SignData [14:35:33]wFMCommunicate request_size=4 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 01 02 [14:35:33]Write to MH i2c: E2 08 00 33 4C 80 0D 01 02 00 00 00 00 F8 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 33 4C 00 90 00 F3 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=255 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 4C 00 00 00 F4 03 04 00 C0 F2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 72 3D 00 00 35 04 06 00 07 47 4C [14:35:33]Write to MH i2c: E2 02 01 34 4C 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 4C 00 00 00 F4 03 04 00 C0 F2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 72 3D 00 00 35 04 06 00 07 47 4C 00 00 B7 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:33]Read from MH i2c: E2 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 [14:35:33]MH_I2C_Read... [14:35:33]Read from MH i2c: E2 03 00 34 4C 00 90 00 F4 [14:35:33]RAPDU: 90 00 [14:35:33]wFMCommunicate OK [14:35:33]wFMCommunicate request_size=8 [14:35:33]MH_SAM_APDU [14:35:33]CAPDU: 80 0D 02 02 03 AF DE 02 [14:35:33]Write to MH i2c: E2 0B 00 35 4C 80 0D 02 02 03 00 AF DE 02 00 00 90 [14:35:33]Write i2c OK [14:35:33]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:34]Read from MH i2c: E2 03 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 03 00 35 4C 00 90 00 F5 [14:35:34]RAPDU: 90 00 [14:35:34]wFMCommunicate OK [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 0D 03 02 [14:35:34]Write to MH i2c: E2 08 00 36 4C 80 0D 03 02 00 00 00 00 FD [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 0B 00 36 4C 00 46 09 B5 C8 2A A4 08 EB 90 00 8B [14:35:34]RAPDU: 46 09 B5 C8 2A A4 08 EB 90 00 [14:35:34]wFMCommunicate OK [14:35:34]SAM_PROTO_SignData done [14:35:34]FM_MakeSignedData done [14:35:34]CreateOFDProtocolMessage [14:35:34]wFMCommunicate request_size=4 [14:35:34]MH_SAM_APDU [14:35:34]CAPDU: 80 11 00 00 [14:35:34]Write to MH i2c: E2 08 00 37 4C 80 11 00 00 00 00 00 00 FD [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:34]Read from MH i2c: E2 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: E2 17 00 37 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4C [14:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:35:34]wFMCommunicate OK [14:35:34]CreateOFDProtocolMessage done [14:35:34]OFDSenderStorePacket 15730 [14:35:34]StoreOFDPacket docnum=15730 [14:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 1B 0F 05 01 3E A9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 4C 00 00 00 F4 03 04 00 C0 F2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 72 3D 00 00 35 04 06 00 07 47 4C AF DE 02 46 09 B5 C8 2A A4 08 EB [14:35:34]CheckFolder [14:35:34]dirname=/storage/ofd_packets [14:35:34]CheckFolder done [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00015730 [14:35:34]NVStorageSaveData ofd_packets/00015730 [14:35:34]File name is /storage/ofd_packets/00015730 [14:35:34]Write 299 bytes [14:35:34]NVStorageSaveData done [14:35:34]OFDSenderStorePacket done [14:35:34]KKMCreateOFDPacket done [14:35:34]NVStorageSaveData kkm_last_timestamp [14:35:34]File name is /storage/kkm_last_timestamp [14:35:34]Write 4 bytes [14:35:34]NVStorageSaveData done [14:35:34]ExternCall_PrintAddStr [14:35:34]wPrintStart [14:35:34]Write to MH i2c: 01 00 00 38 4C 84 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 38 4C 00 00 00 00 00 FF 0F 99 [14:35:34]RasterBufferAndPrint [14:35:34]line Счет N : (1)16279 [14:35:34]line ИНН: 02508201610067 [14:35:34]line Контрольно-Кассовый Чек [14:35:34]line ПРОДАЖА [14:35:34]line ТРК (МРК, ГНК) : 12 [14:35:34]line Товар: 50.50.0 [14:35:34]line SUPER 92-К-5 [14:35:34]line 10.240 * 68.40 [14:35:34]line = 700.42 [14:35:34]line НДС 12% НСП 1% [14:35:34]line > о реализуемом товаре [14:35:34]line ОКРУГЛЕНИЕ: -0.42 [14:35:34]line ИТОГО: 700.00 [14:35:34]line Внесено: 700.00 [14:35:34]line СДАЧА: 0.00 [14:35:34]line НСП 1% : 6.20 [14:35:34]line НДС 12% : 74.38 [14:35:34]line Наличными: 700.00 [14:35:34]line Безнал.: 0.00 [14:35:34]line Место: АЗС № 178 "Партнер Нефть" [14:35:34]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:35:34]line СНО: Общий режим [14:35:34]line Чек 76 29.10.2024 14:35 [14:35:34]line Смена: 172 ФФД: 1.0 [14:35:34]line ЗНМ: 0300000014 [14:35:34]line РНМ: 0000000000161798 [14:35:34]line Версия ККМ: v1.0 [14:35:34]line ФМ: 0000000000963325 [14:35:34]line ФД: 15730 [14:35:34]line ФПД: 8002810666498 [14:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143544&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15730&fm=8002810666498&tin=02508201610067®Number=0000000000161798&sum=70000 [14:35:34]written 0, free lines is 4095 [14:35:34]OFD Sender: Processing packet 15730 [packets to send 4, broken 3] [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00015730 [14:35:34]OFD Sender: To server: pG, [14:35:34]CommunicateWithHost lk.salyk.kg:30040 [14:35:34]ConnectInit lk.salyk.kg [14:35:34]Connected sock=10 [14:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 1B 0F 05 01 3E A9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 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 4C 00 00 00 F4 03 04 00 C0 F2 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 72 3D 00 00 35 04 06 00 07 47 4C AF DE 02 46 09 B5 C8 2A A4 08 EB [14:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C2 2B 47 00 25 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 72 3D 00 00 F4 03 04 00 AC 9D 20 67 B6 04 01 00 00 11 AF 7F 64 56 F4 1B B2 [14:35:34]CommunicateWithHost err = 0 [14:35:34]CheckOFDResponse [14:35:34]1017 (14) - 77093643461234 [14:35:34]1041 (16) - 0000000000963325 [14:35:34]1040 (4) - 15730 [14:35:34]1012 (4) - 29.10.2024 08:32 [14:35:34]1206 (1) - 0 [14:35:34]OFD Sender: Remove packet 15730 [14:35:34]ProducePacketName [14:35:34]name=ofd_packets/00015730 [14:35:34]NVStorageDeleteData [14:35:34]Write to MH i2c: 01 00 00 63 4C AF [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: 01 07 00 63 4C 00 00 00 00 00 F4 0C B6 [14:35:34]RasterBufferAndPrint [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]line [14:35:34]written 0, free lines is 3322 [14:35:34]MH_Cut [14:35:34]Write to MH i2c: D1 01 00 6A 4C 01 88 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 01 00 [14:35:34]MH_I2C_Read... [14:35:34]Read from MH i2c: D1 01 00 6A 4C 00 87 [14:35:34]Write to MH i2c: 01 00 00 6B 4C B7 [14:35:34]Write i2c OK [14:35:34]MH_I2C_Read... [14:35:35]OFD Sender: No OFD packet to send [14:35:35]*** Cut start [14:35:35]*** Partial cut [14:35:35]*** CUTSNS_PIN = 1 [14:35:35]*** CUTSNS_PIN = 0 [14:35:35]*** Brake cut motor [14:35:36]Read from MH i2c: 01 [14:35:36]MH_I2C_Read... [14:35:36]*** Stop cut motor [14:35:36]*** Cut end [14:35:36]Read from MH i2c: 01 07 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: 01 07 00 6B 4C 00 00 00 00 00 FF 0F CC [14:35:36]process_action close_receipt done [14:35:36]requested_data is exist [14:35:36]produce_requested_data [14:35:36]requested_item fm.sn is exist - process it [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 11 00 00 [14:35:36]Write to MH i2c: E2 08 00 6C 4C 80 11 00 00 00 00 00 00 32 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 17 00 6C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 81 [14:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:35:36]wFMCommunicate OK [14:35:36]requested_item fd.num is exist - process it [14:35:36]SAM_PROTO_GetFieldsCounters [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 13 00 00 [14:35:36]Write to MH i2c: E2 08 00 6D 4C 80 13 00 00 00 00 00 00 35 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 62 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 62 00 6D 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 72 3D 00 00 0E 04 04 00 AC 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 98 [14:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 72 3D 00 00 0E 04 04 00 AC 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 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_GetFieldsCounters done [14:35:36]requested_item shift.num is exist - process it [14:35:36]requested_item shift.opened is exist - process it [14:35:36]req_shift_opened [14:35:36]FM_GetShiftState [14:35:36]SAM_PROTO_GetShiftState [14:35:36]wFMCommunicate request_size=4 [14:35:36]MH_SAM_APDU [14:35:36]CAPDU: 80 13 01 00 [14:35:36]Write to MH i2c: E2 08 00 6E 4C 80 13 01 00 00 00 00 00 37 [14:35:36]Write i2c OK [14:35:36]MH_I2C_Read... [14:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:36]Read from MH i2c: E2 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 [14:35:36]MH_I2C_Read... [14:35:36]Read from MH i2c: E2 0E 00 6E 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8C [14:35:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:35:36]wFMCommunicate OK [14:35:36]SAM_PROTO_GetShiftState done [14:35:36]FM_GetShiftState done [14:35:36]req_shift_opened done [14:35:36]requested_item shift.open_date is exist - process it [14:35:36]req_shift_open_date [14:35:36]req_shift_open_date done [14:35:36]produce_requested_data done [14:35:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15730,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:35:36]process_action_free close_receipt [14:35:36]json_value_free [14:35:36]json_value_free done [14:35:36]process_json_proto returns [14:35:36]Send response to host [14:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15730,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:35:36]free response buf [14:35:36]execute_script done [14:35:36]execute_script returns [14:35:36]free content buf [14:35:36]Sock 9.Close socket [14:35:36]Sock 9.Thread stoped [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]accept exits with 8 [14:37:10]New connection [14:37:10]New thread 3066588516 created [14:37:10]Thread 3066731876 joined [14:37:10]Waiting for new connection... [14:37:10] Sock 8.Parse request [14:37:10]Sock 8.Check first char [14:37:10]Sock 8.First char is OK [14:37:10]request: POST /json_proto HTTP/1.0 [14:37:10]Method: POST [14:37:10]URL: /json_proto [14:37:10]Method is POST - this is cgi request [14:37:10]url: /json_proto [14:37:10]query_string will be loaded in cgi processing [14:37:10]execute_cgi json_proto POST (null) [14:37:10]execute_cgi path=json_proto method=POST [14:37:10]POST find Content-Length [14:37:10]Host: 172.17.54.195:8080 [14:37:10]Content-Length: 773 [14:37:10]Content-Type: application/json [14:37:10] [14:37:10]POST finish read [14:37:10]Found Content-Length = 773 [14:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.830, "sum" : 330.37, "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: Mbank", "total" : 330.00, "payments": [ { "type": 1, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:10]execute_script... [14:37: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)16280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.830, "sum" : 330.37, "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: Mbank", "total" : 330.00, "payments": [ { "type": 1, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:10]POST & json_proto [14:37:10]process_json_proto [14:37:10]json parsed OK: [14:37:10]protocol is kg_v1.0 [14:37:10]action value=close_receipt [14:37:10]process_action close_receipt [14:37:10]cmd_close_receipt [14:37:10]MH_GetDate [14:37:10]Write to MH i2c: F0 00 00 6F 4C AA [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: F0 09 00 6F 4C 00 21 F3 20 67 8D 90 A3 66 74 [14:37:10]GetLastDocTimeStamp 1730212544 [14:37:10]current date 1730212641 [14:37:10]FM_GetShiftState [14:37:10]SAM_PROTO_GetShiftState [14:37:10]wFMCommunicate request_size=4 [14:37:10]MH_SAM_APDU [14:37:10]CAPDU: 80 13 01 00 [14:37:10]Write to MH i2c: E2 08 00 70 4C 80 13 01 00 00 00 00 00 39 [14:37:10]Write i2c OK [14:37:10]MH_I2C_Read... [14:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:10]Read from MH i2c: E2 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 [14:37:10]MH_I2C_Read... [14:37:10]Read from MH i2c: E2 0E 00 70 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8E [14:37:10]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:37:10]wFMCommunicate OK [14:37:10]SAM_PROTO_GetShiftState done [14:37:10]FM_GetShiftState done [14:37:10]opened in 1730161559 [14:37:10]opened+sec_in_day 1730247959 [14:37:10]quantity*price = 33037 [14:37:10]sum+1 = 33038 [14:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.08 Наличными: 0.00 Безнал.: 330.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 77 29.10.2024 14:37 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15731 ФПД: 241567107248917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143721&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15731&fm=241567107248917&tin=02508201610067®Number=0000000000161798&sum=33000 [14:37:11]StoreToDocumentArchive [14:37:11]shift 172 fd 15731 [14:37:11]save to /storage/0172/doc_00015731 [14:37:11]save last doc name /storage/0172/doc_00015731 to /storage/kkm_last_doc_name [14:37:11]save OK [14:37:11]Clear old archive folders... [14:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:37:11]tlvbuf is 004803F0 [14:37:11]SAM_PROTO_ClearQueue [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 09 00 00 [14:37:11]Write to MH i2c: E2 08 00 7D 4C 80 09 00 00 00 00 00 00 3B [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 7D 4C 00 90 00 3D [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]SAM_PROTO_ClearQueue done [14:37:11]KKMCreateOFDPacket [14:37:11]OFDProtocolAddRootSTLVToBuf [14:37:11]FM_MakeSignedData [14:37:11]FM_MakeSignedData [14:37:11]SAM_PROTO_SignData [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 01 02 [14:37:11]Write to MH i2c: E2 08 00 7E 4C 80 0D 01 02 00 00 00 00 43 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 7E 4C 00 90 00 3E [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=255 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 21 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 73 3D 00 00 35 04 06 00 DB B4 39 [14:37:11]Write to MH i2c: E2 02 01 7F 4C 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 21 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 73 3D 00 00 35 04 06 00 DB B4 39 00 00 57 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 7F 4C 00 90 00 3F [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=8 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 02 02 03 9D F3 15 [14:37:11]Write to MH i2c: E2 0B 00 80 4C 80 0D 02 02 03 00 9D F3 15 00 00 F1 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 03 00 80 4C 00 90 00 40 [14:37:11]RAPDU: 90 00 [14:37:11]wFMCommunicate OK [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 0D 03 02 [14:37:11]Write to MH i2c: E2 08 00 81 4C 80 0D 03 02 00 00 00 00 48 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 0B 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 0B 00 81 4C 00 A5 41 22 37 66 B7 55 F1 90 00 EB [14:37:11]RAPDU: A5 41 22 37 66 B7 55 F1 90 00 [14:37:11]wFMCommunicate OK [14:37:11]SAM_PROTO_SignData done [14:37:11]FM_MakeSignedData done [14:37:11]CreateOFDProtocolMessage [14:37:11]wFMCommunicate request_size=4 [14:37:11]MH_SAM_APDU [14:37:11]CAPDU: 80 11 00 00 [14:37:11]Write to MH i2c: E2 08 00 82 4C 80 11 00 00 00 00 00 00 48 [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:11]Read from MH i2c: E2 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 17 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: E2 17 00 82 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 97 [14:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:37:11]wFMCommunicate OK [14:37:11]CreateOFDProtocolMessage done [14:37:11]OFDSenderStorePacket 15731 [14:37:11]StoreOFDPacket docnum=15731 [14:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C0 69 05 01 BB 10 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 21 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 73 3D 00 00 35 04 06 00 DB B4 39 9D F3 15 A5 41 22 37 66 B7 55 F1 [14:37:11]CheckFolder [14:37:11]dirname=/storage/ofd_packets [14:37:11]CheckFolder done [14:37:11]ProducePacketName [14:37:11]name=ofd_packets/00015731 [14:37:11]NVStorageSaveData ofd_packets/00015731 [14:37:11]File name is /storage/ofd_packets/00015731 [14:37:11]Write 299 bytes [14:37:11]NVStorageSaveData done [14:37:11]OFDSenderStorePacket done [14:37:11]KKMCreateOFDPacket done [14:37:11]NVStorageSaveData kkm_last_timestamp [14:37:11]File name is /storage/kkm_last_timestamp [14:37:11]Write 4 bytes [14:37:11]NVStorageSaveData done [14:37:11]ExternCall_PrintAddStr [14:37:11]wPrintStart [14:37:11]Write to MH i2c: 01 00 00 83 4C CF [14:37:11]Write i2c OK [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: 01 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: 01 07 00 [14:37:11]MH_I2C_Read... [14:37:11]Read from MH i2c: 01 07 00 83 4C 00 00 00 00 00 FF 0F E4 [14:37:11]RasterBufferAndPrint [14:37:11]line Счет N : (1)16280 [14:37:11]line ИНН: 02508201610067 [14:37:11]line Контрольно-Кассовый Чек [14:37:11]line ПРОДАЖА [14:37:11]line ТРК (МРК, ГНК) : 12 [14:37:11]line Товар: 50.50.0 [14:37:11]line SUPER 92-К-5 [14:37:11]line 4.830 * 68.40 [14:37:11]line = 330.37 [14:37:11]line НДС 12% НСП 1% [14:37:11]line > о реализуемом товаре [14:37:11]line ОКРУГЛЕНИЕ: -0.37 [14:37:11]line ИТОГО: 330.00 [14:37:11]line НСП 1% : 2.92 [14:37:11]line НДС 12% : 35.08 [14:37:11]line Наличными: 0.00 [14:37:11]line Безнал.: 330.00 [14:37:11]line Место: АЗС № 178 "Партнер Нефть" [14:37:11]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:37:11]line СНО: Общий режим [14:37:11]line Чек 77 29.10.2024 14:37 [14:37:11]line Смена: 172 ФФД: 1.0 [14:37:11]line ЗНМ: 0300000014 [14:37:11]line РНМ: 0000000000161798 [14:37:12]line Версия ККМ: v1.0 [14:37:12]line Платежная система: Mbank [14:37:12]line ФМ: 0000000000963325 [14:37:12]line ФД: 15731 [14:37:12]line ФПД: 241567107248917 [14:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143721&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15731&fm=241567107248917&tin=02508201610067®Number=0000000000161798&sum=33000 [14:37:12]OFD Sender: Processing packet 15731 [packets to send 4, broken 3] [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00015731 [14:37:12]OFD Sender: To server: pG, [14:37:12]CommunicateWithHost lk.salyk.kg:30040 [14:37:12]ConnectInit lk.salyk.kg [14:37:12]written 0, free lines is 4095 [14:37:12]Connected sock=10 [14:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C0 69 05 01 BB 10 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0D 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 21 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 73 3D 00 00 35 04 06 00 DB B4 39 9D F3 15 A5 41 22 37 66 B7 55 F1 [14:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 F2 B7 47 00 22 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 73 3D 00 00 F4 03 04 00 0E 9E 20 67 B6 04 01 00 00 89 AB 6B C4 CA 0F 49 57 [14:37:12]CommunicateWithHost err = 0 [14:37:12]CheckOFDResponse [14:37:12]1017 (14) - 77093643461234 [14:37:12]1041 (16) - 0000000000963325 [14:37:12]1040 (4) - 15731 [14:37:12]1012 (4) - 29.10.2024 08:34 [14:37:12]1206 (1) - 0 [14:37:12]OFD Sender: Remove packet 15731 [14:37:12]ProducePacketName [14:37:12]name=ofd_packets/00015731 [14:37:12]NVStorageDeleteData [14:37:12]Write to MH i2c: 01 00 00 AD 4C F9 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: 01 07 00 AD 4C 00 00 00 00 00 0B 0D 18 [14:37:12]RasterBufferAndPrint [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]line [14:37:12]written 0, free lines is 3345 [14:37:12]MH_Cut [14:37:12]Write to MH i2c: D1 01 00 B4 4C 01 D2 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 [14:37:12]MH_I2C_Read... [14:37:12]Read from MH i2c: D1 01 00 B4 4C 00 D1 [14:37:12]Write to MH i2c: 01 00 00 B5 4C 01 [14:37:12]Write i2c OK [14:37:12]MH_I2C_Read... [14:37:13]OFD Sender: No OFD packet to send [14:37:13]*** Cut start [14:37:13]*** Partial cut [14:37:13]*** CUTSNS_PIN = 1 [14:37:13]*** CUTSNS_PIN = 0 [14:37:13]*** Brake cut motor [14:37:14]Read from MH i2c: 01 [14:37:14]MH_I2C_Read... [14:37:14]*** Stop cut motor [14:37:14]*** Cut end [14:37:14]Read from MH i2c: 01 07 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: 01 07 00 B5 4C 00 00 00 00 00 FF 0F 16 [14:37:14]process_action close_receipt done [14:37:14]requested_data is exist [14:37:14]produce_requested_data [14:37:14]requested_item fm.sn is exist - process it [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 11 00 00 [14:37:14]Write to MH i2c: E2 08 00 B6 4C 80 11 00 00 00 00 00 00 7C [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 17 00 B6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CB [14:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:37:14]wFMCommunicate OK [14:37:14]requested_item fd.num is exist - process it [14:37:14]SAM_PROTO_GetFieldsCounters [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 00 00 [14:37:14]Write to MH i2c: E2 08 00 B7 4C 80 13 00 00 00 00 00 00 7F [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 62 00 B7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 73 3D 00 00 0E 04 04 00 AC 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 E6 [14:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 73 3D 00 00 0E 04 04 00 AC 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 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetFieldsCounters done [14:37:14]requested_item shift.num is exist - process it [14:37:14]requested_item shift.opened is exist - process it [14:37:14]req_shift_opened [14:37:14]FM_GetShiftState [14:37:14]SAM_PROTO_GetShiftState [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 13 01 00 [14:37:14]Write to MH i2c: E2 08 00 B8 4C 80 13 01 00 00 00 00 00 81 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 0E 00 B8 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D6 [14:37:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_GetShiftState done [14:37:14]FM_GetShiftState done [14:37:14]req_shift_opened done [14:37:14]requested_item shift.open_date is exist - process it [14:37:14]req_shift_open_date [14:37:14]req_shift_open_date done [14:37:14]produce_requested_data done [14:37:14]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15731,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:37:14]process_action_free close_receipt [14:37:14]json_value_free [14:37:14]json_value_free done [14:37:14]process_json_proto returns [14:37:14]Send response to host [14:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15731,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:37:14]free response buf [14:37:14]execute_script done [14:37:14]execute_script returns [14:37:14]free content buf [14:37:14]Sock 8.Close socket [14:37:14]Sock 8.Thread stoped [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:40]accept exits with 9 [14:37:40]New connection [14:37:40]New thread 3066731876 created [14:37:40]Thread 3066588516 joined [14:37:40]Waiting for new connection... [14:37:40] Sock 9.Parse request [14:37:40]Sock 9.Check first char [14:37:40]Sock 9.First char is OK [14:37:40]request: POST /json_proto HTTP/1.0 [14:37:40]Method: POST [14:37:40]URL: /json_proto [14:37:40]Method is POST - this is cgi request [14:37:40]url: /json_proto [14:37:40]query_string will be loaded in cgi processing [14:37:40]execute_cgi json_proto POST (null) [14:37:40]execute_cgi path=json_proto method=POST [14:37:40]POST find Content-Length [14:37:40]Host: 172.17.54.195:8080 [14:37:40]Content-Length: 666 [14:37:40]Content-Type: application/json [14:37:40] [14:37:40]POST finish read [14:37:40]Found Content-Length = 666 [14:37:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 3.510, "sum" : 240.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:40]execute_script... [14:37: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)16281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 3.510, "sum" : 240.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:40]POST & json_proto [14:37:40]process_json_proto [14:37:40]json parsed OK: [14:37:40]protocol is kg_v1.0 [14:37:40]action value=close_receipt [14:37:40]process_action close_receipt [14:37:40]cmd_close_receipt [14:37:40]MH_GetDate [14:37:40]Write to MH i2c: F0 00 00 B9 4C F4 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: F0 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: F0 09 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: F0 09 00 B9 4C 00 40 F3 20 67 8D 90 A3 66 DD [14:37:40]GetLastDocTimeStamp 1730212641 [14:37:40]current date 1730212672 [14:37:40]FM_GetShiftState [14:37:40]SAM_PROTO_GetShiftState [14:37:40]wFMCommunicate request_size=4 [14:37:40]MH_SAM_APDU [14:37:40]CAPDU: 80 13 01 00 [14:37:40]Write to MH i2c: E2 08 00 BA 4C 80 13 01 00 00 00 00 00 83 [14:37:40]Write i2c OK [14:37:40]MH_I2C_Read... [14:37:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:40]Read from MH i2c: E2 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0E 00 [14:37:40]MH_I2C_Read... [14:37:40]Read from MH i2c: E2 0E 00 BA 4C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D8 [14:37:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:37:40]wFMCommunicate OK [14:37:40]SAM_PROTO_GetShiftState done [14:37:40]FM_GetShiftState done [14:37:40]opened in 1730161559 [14:37:40]opened+sec_in_day 1730247959 [14:37:40]quantity*price = 24008 [14:37:40]sum+1 = 24009 [14:37:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 78 29.10.2024 14:37 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15732 ФПД: 144516851499370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143752&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15732&fm=144516851499370&tin=02508201610067®Number=0000000000161798&sum=24000 [14:37:41]StoreToDocumentArchive [14:37:41]shift 172 fd 15732 [14:37:41]save to /storage/0172/doc_00015732 [14:37:41]save last doc name /storage/0172/doc_00015732 to /storage/kkm_last_doc_name [14:37:41]save OK [14:37:41]Clear old archive folders... [14:37:41]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:37:41]tlvbuf is 0031F210 [14:37:41]SAM_PROTO_ClearQueue [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 09 00 00 [14:37:41]Write to MH i2c: E2 08 00 C7 4C 80 09 00 00 00 00 00 00 85 [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:41]Read from MH i2c: E2 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 03 00 [14:37:41]MH_I2C_Read... [14:37:41]Read from MH i2c: E2 03 00 C7 4C 00 90 00 87 [14:37:41]RAPDU: 90 00 [14:37:41]wFMCommunicate OK [14:37:41]SAM_PROTO_ClearQueue done [14:37:41]KKMCreateOFDPacket [14:37:41]OFDProtocolAddRootSTLVToBuf [14:37:41]FM_MakeSignedData [14:37:41]FM_MakeSignedData [14:37:41]SAM_PROTO_SignData [14:37:41]wFMCommunicate request_size=4 [14:37:41]MH_SAM_APDU [14:37:41]CAPDU: 80 0D 01 02 [14:37:41]Write to MH i2c: E2 08 00 C8 4C 80 0D 01 02 00 00 00 00 8D [14:37:41]Write i2c OK [14:37:41]MH_I2C_Read... [14:37:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 C8 4C 00 90 00 88 [14:37:42]RAPDU: 90 00 [14:37:42]wFMCommunicate OK [14:37:42]wFMCommunicate request_size=255 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 40 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 74 3D 00 00 35 04 06 00 83 6F F3 [14:37:42]Write to MH i2c: E2 02 01 C9 4C 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 40 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 74 3D 00 00 35 04 06 00 83 6F F3 00 00 9F [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 C9 4C 00 90 00 89 [14:37:42]RAPDU: 90 00 [14:37:42]wFMCommunicate OK [14:37:42]wFMCommunicate request_size=8 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 0D 02 02 03 99 01 6A [14:37:42]Write to MH i2c: E2 0B 00 CA 4C 80 0D 02 02 03 00 99 01 6A 00 00 9A [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 03 00 CA 4C 00 90 00 8A [14:37:42]RAPDU: 90 00 [14:37:42]wFMCommunicate OK [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 0D 03 02 [14:37:42]Write to MH i2c: E2 08 00 CB 4C 80 0D 03 02 00 00 00 00 92 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0B 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 0B 00 CB 4C 00 35 0D 38 A5 B4 AF 84 F3 90 00 8C [14:37:42]RAPDU: 35 0D 38 A5 B4 AF 84 F3 90 00 [14:37:42]wFMCommunicate OK [14:37:42]SAM_PROTO_SignData done [14:37:42]FM_MakeSignedData done [14:37:42]CreateOFDProtocolMessage [14:37:42]wFMCommunicate request_size=4 [14:37:42]MH_SAM_APDU [14:37:42]CAPDU: 80 11 00 00 [14:37:42]Write to MH i2c: E2 08 00 CC 4C 80 11 00 00 00 00 00 00 92 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:42]Read from MH i2c: E2 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: E2 17 00 CC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E1 [14:37:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:37:42]wFMCommunicate OK [14:37:42]CreateOFDProtocolMessage done [14:37:42]OFDSenderStorePacket 15732 [14:37:42]StoreOFDPacket docnum=15732 [14:37:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 59 2D 05 01 4C 15 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 40 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 74 3D 00 00 35 04 06 00 83 6F F3 99 01 6A 35 0D 38 A5 B4 AF 84 F3 [14:37:42]CheckFolder [14:37:42]dirname=/storage/ofd_packets [14:37:42]CheckFolder done [14:37:42]ProducePacketName [14:37:42]name=ofd_packets/00015732 [14:37:42]NVStorageSaveData ofd_packets/00015732 [14:37:42]File name is /storage/ofd_packets/00015732 [14:37:42]Write 299 bytes [14:37:42]NVStorageSaveData done [14:37:42]OFDSenderStorePacket done [14:37:42]KKMCreateOFDPacket done [14:37:42]NVStorageSaveData kkm_last_timestamp [14:37:42]File name is /storage/kkm_last_timestamp [14:37:42]Write 4 bytes [14:37:42]NVStorageSaveData done [14:37:42]ExternCall_PrintAddStr [14:37:42]wPrintStart [14:37:42]Write to MH i2c: 01 00 00 CD 4C 19 [14:37:42]Write i2c OK [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: 01 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: 01 07 00 [14:37:42]MH_I2C_Read... [14:37:42]Read from MH i2c: 01 07 00 CD 4C 00 00 00 00 00 FF 0F 2E [14:37:42]RasterBufferAndPrint [14:37:42]line Счет N : (1)16281 [14:37:42]line ИНН: 02508201610067 [14:37:42]line Контрольно-Кассовый Чек [14:37:42]line ПРОДАЖА [14:37:42]line ТРК (МРК, ГНК) : 12 [14:37:42]line Товар: 50.50.0 [14:37:42]line SUPER 92-К-5 [14:37:42]line 3.510 * 68.40 [14:37:42]line = 240.08 [14:37:42]line НДС 12% НСП 1% [14:37:42]line > о реализуемом товаре [14:37:42]line ОКРУГЛЕНИЕ: -0.08 [14:37:42]line ИТОГО: 240.00 [14:37:42]line Внесено: 240.00 [14:37:42]line СДАЧА: 0.00 [14:37:42]line НСП 1% : 2.12 [14:37:42]line НДС 12% : 25.49 [14:37:42]line Наличными: 240.00 [14:37:42]line Безнал.: 0.00 [14:37:42]line Место: АЗС № 178 "Партнер Нефть" [14:37:42]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:37:42]line СНО: Общий режим [14:37:42]line Чек 78 29.10.2024 14:37 [14:37:42]line Смена: 172 ФФД: 1.0 [14:37:42]line ЗНМ: 0300000014 [14:37:42]line РНМ: 0000000000161798 [14:37:42]line Версия ККМ: v1.0 [14:37:42]line ФМ: 0000000000963325 [14:37:42]line ФД: 15732 [14:37:42]line ФПД: 144516851499370 [14:37:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T143752&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15732&fm=144516851499370&tin=02508201610067®Number=0000000000161798&sum=24000 [14:37:42]OFD Sender: Processing packet 15732 [packets to send 4, broken 3] [14:37:42]ProducePacketName [14:37:42]name=ofd_packets/00015732 [14:37:42]OFD Sender: To server: pG, [14:37:42]CommunicateWithHost lk.salyk.kg:30040 [14:37:42]ConnectInit lk.salyk.kg [14:37:42]written 0, free lines is 4095 [14:37:42]Connected sock=11 [14:37:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 59 2D 05 01 4C 15 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 C8 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 40 F3 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 74 3D 00 00 35 04 06 00 83 6F F3 99 01 6A 35 0D 38 A5 B4 AF 84 F3 [14:37:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C5 4C 47 00 6D 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 74 3D 00 00 F4 03 04 00 2C 9E 20 67 B6 04 01 00 00 40 BF 67 B4 BF 4A 53 8B [14:37:43]CommunicateWithHost err = 0 [14:37:43]CheckOFDResponse [14:37:43]1017 (14) - 77093643461234 [14:37:43]1041 (16) - 0000000000963325 [14:37:43]1040 (4) - 15732 [14:37:43]1012 (4) - 29.10.2024 08:34 [14:37:43]1206 (1) - 0 [14:37:43]OFD Sender: Remove packet 15732 [14:37:43]ProducePacketName [14:37:43]name=ofd_packets/00015732 [14:37:43]NVStorageDeleteData [14:37:43]Write to MH i2c: 01 00 00 F8 4C 44 [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: 01 07 00 F8 4C 00 00 00 00 00 F3 0C 4A [14:37:43]RasterBufferAndPrint [14:37:43]line [14:37:43]line [14:37:43]line [14:37:43]line [14:37:43]line [14:37:43]written 0, free lines is 3321 [14:37:43]MH_Cut [14:37:43]Write to MH i2c: D1 01 00 FF 4C 01 1D [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: D1 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: D1 01 00 [14:37:43]MH_I2C_Read... [14:37:43]Read from MH i2c: D1 01 00 FF 4C 00 1C [14:37:43]Write to MH i2c: 01 00 00 00 4D 4D [14:37:43]Write i2c OK [14:37:43]MH_I2C_Read... [14:37:43]OFD Sender: No OFD packet to send [14:37:43]*** Cut start [14:37:43]*** Partial cut [14:37:43]*** CUTSNS_PIN = 1 [14:37:43]*** CUTSNS_PIN = 0 [14:37:44]*** Brake cut motor [14:37:44]Read from MH i2c: 01 [14:37:44]MH_I2C_Read... [14:37:44]*** Stop cut motor [14:37:44]*** Cut end [14:37:44]Read from MH i2c: 01 07 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: 01 07 00 00 4D 00 00 00 00 00 FF 0F 62 [14:37:44]process_action close_receipt done [14:37:44]requested_data is exist [14:37:44]produce_requested_data [14:37:44]requested_item fm.sn is exist - process it [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 11 00 00 [14:37:44]Write to MH i2c: E2 08 00 01 4D 80 11 00 00 00 00 00 00 C8 [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 17 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 17 00 01 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 17 [14:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:37:44]wFMCommunicate OK [14:37:44]requested_item fd.num is exist - process it [14:37:44]SAM_PROTO_GetFieldsCounters [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 13 00 00 [14:37:44]Write to MH i2c: E2 08 00 02 4D 80 13 00 00 00 00 00 00 CB [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 62 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 62 00 02 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 74 3D 00 00 0E 04 04 00 AC 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 36 [14:37:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 74 3D 00 00 0E 04 04 00 AC 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 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetFieldsCounters done [14:37:44]requested_item shift.num is exist - process it [14:37:44]requested_item shift.opened is exist - process it [14:37:44]req_shift_opened [14:37:44]FM_GetShiftState [14:37:44]SAM_PROTO_GetShiftState [14:37:44]wFMCommunicate request_size=4 [14:37:44]MH_SAM_APDU [14:37:44]CAPDU: 80 13 01 00 [14:37:44]Write to MH i2c: E2 08 00 03 4D 80 13 01 00 00 00 00 00 CD [14:37:44]Write i2c OK [14:37:44]MH_I2C_Read... [14:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:44]Read from MH i2c: E2 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 [14:37:44]MH_I2C_Read... [14:37:44]Read from MH i2c: E2 0E 00 03 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 22 [14:37:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:37:44]wFMCommunicate OK [14:37:44]SAM_PROTO_GetShiftState done [14:37:44]FM_GetShiftState done [14:37:44]req_shift_opened done [14:37:44]requested_item shift.open_date is exist - process it [14:37:44]req_shift_open_date [14:37:44]req_shift_open_date done [14:37:44]produce_requested_data done [14:37:44]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15732,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:37:44]process_action_free close_receipt [14:37:44]json_value_free [14:37:44]json_value_free done [14:37:44]process_json_proto returns [14:37:44]Send response to host [14:37:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15732,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:37:44]free response buf [14:37:44]execute_script done [14:37:44]execute_script returns [14:37:44]free content buf [14:37:44]Sock 9.Close socket [14:37:44]Sock 9.Thread stoped [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:03]OFD Sender: No OFD packet to send [14:46:08]OFD Sender: No OFD packet to send [14:46:13]OFD Sender: No OFD packet to send [14:46:18]OFD Sender: No OFD packet to send [14:46:21]accept exits with 8 [14:46:21]New connection [14:46:21]New thread 3066588516 created [14:46:21]Thread 3066731876 joined [14:46:21]Waiting for new connection... [14:46:21] Sock 8.Parse request [14:46:21]Sock 8.Check first char [14:46:21]Sock 8.First char is OK [14:46:21]request: POST /json_proto HTTP/1.0 [14:46:21]Method: POST [14:46:21]URL: /json_proto [14:46:21]Method is POST - this is cgi request [14:46:21]url: /json_proto [14:46:21]query_string will be loaded in cgi processing [14:46:21]execute_cgi json_proto POST (null) [14:46:21]execute_cgi path=json_proto method=POST [14:46:21]POST find Content-Length [14:46:21]Host: 172.17.54.195:8080 [14:46:21]Content-Length: 777 [14:46:21]Content-Type: application/json [14:46:21] [14:46:21]POST finish read [14:46:21]Found Content-Length = 777 [14:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:21]execute_script... [14:46: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)16282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:21]POST & json_proto [14:46:21]process_json_proto [14:46:21]json parsed OK: [14:46:21]protocol is kg_v1.0 [14:46:21]action value=close_receipt [14:46:21]process_action close_receipt [14:46:21]cmd_close_receipt [14:46:21]MH_GetDate [14:46:21]Write to MH i2c: F0 00 00 04 4D 40 [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 09 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: F0 09 00 04 4D 00 49 F5 20 67 8D 90 A3 66 34 [14:46:21]GetLastDocTimeStamp 1730212672 [14:46:21]current date 1730213193 [14:46:21]FM_GetShiftState [14:46:21]SAM_PROTO_GetShiftState [14:46:21]wFMCommunicate request_size=4 [14:46:21]MH_SAM_APDU [14:46:21]CAPDU: 80 13 01 00 [14:46:21]Write to MH i2c: E2 08 00 05 4D 80 13 01 00 00 00 00 00 CF [14:46:21]Write i2c OK [14:46:21]MH_I2C_Read... [14:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:21]Read from MH i2c: E2 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 [14:46:21]MH_I2C_Read... [14:46:21]Read from MH i2c: E2 0E 00 05 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 24 [14:46:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:46:21]wFMCommunicate OK [14:46:21]SAM_PROTO_GetShiftState done [14:46:21]FM_GetShiftState done [14:46:21]opened in 1730161559 [14:46:21]opened+sec_in_day 1730247959 [14:46:21]quantity*price = 100000 [14:46:21]sum+1 = 100002 [14:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 79 29.10.2024 14:46 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15733 ФПД: 229953619611148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T144633&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15733&fm=229953619611148&tin=02508201610067®Number=0000000000161798&sum=100000 [14:46:22]StoreToDocumentArchive [14:46:22]shift 172 fd 15733 [14:46:22]save to /storage/0172/doc_00015733 [14:46:22]save last doc name /storage/0172/doc_00015733 to /storage/kkm_last_doc_name [14:46:22]save OK [14:46:22]Clear old archive folders... [14:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:46:22]tlvbuf is 003F8470 [14:46:22]SAM_PROTO_ClearQueue [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 09 00 00 [14:46:22]Write to MH i2c: E2 08 00 12 4D 80 09 00 00 00 00 00 00 D1 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 12 4D 00 90 00 D3 [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]SAM_PROTO_ClearQueue done [14:46:22]KKMCreateOFDPacket [14:46:22]OFDProtocolAddRootSTLVToBuf [14:46:22]FM_MakeSignedData [14:46:22]FM_MakeSignedData [14:46:22]SAM_PROTO_SignData [14:46:22]wFMCommunicate request_size=4 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 01 02 [14:46:22]Write to MH i2c: E2 08 00 13 4D 80 0D 01 02 00 00 00 00 D9 [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:22]Read from MH i2c: E2 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 [14:46:22]MH_I2C_Read... [14:46:22]Read from MH i2c: E2 03 00 13 4D 00 90 00 D4 [14:46:22]RAPDU: 90 00 [14:46:22]wFMCommunicate OK [14:46:22]wFMCommunicate request_size=255 [14:46:22]MH_SAM_APDU [14:46:22]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 49 F5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 75 3D 00 00 35 04 06 00 D1 24 3F [14:46:22]Write to MH i2c: E2 02 01 14 4D 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 49 F5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 75 3D 00 00 35 04 06 00 D1 24 3F 00 00 3B [14:46:22]Write i2c OK [14:46:22]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 03 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 03 00 14 4D 00 90 00 D5 [14:46:23]RAPDU: 90 00 [14:46:23]wFMCommunicate OK [14:46:23]wFMCommunicate request_size=8 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 0D 02 02 03 CF CE 0C [14:46:23]Write to MH i2c: E2 0B 00 15 4D 80 0D 02 02 03 00 CF CE 0C 00 00 8B [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:23]Read from MH i2c: E2 03 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 03 00 15 4D 00 90 00 D6 [14:46:23]RAPDU: 90 00 [14:46:23]wFMCommunicate OK [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 0D 03 02 [14:46:23]Write to MH i2c: E2 08 00 16 4D 80 0D 03 02 00 00 00 00 DE [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0B 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 0B 00 16 4D 00 47 C7 AF 79 2E 8F 47 29 90 00 42 [14:46:23]RAPDU: 47 C7 AF 79 2E 8F 47 29 90 00 [14:46:23]wFMCommunicate OK [14:46:23]SAM_PROTO_SignData done [14:46:23]FM_MakeSignedData done [14:46:23]CreateOFDProtocolMessage [14:46:23]wFMCommunicate request_size=4 [14:46:23]MH_SAM_APDU [14:46:23]CAPDU: 80 11 00 00 [14:46:23]Write to MH i2c: E2 08 00 17 4D 80 11 00 00 00 00 00 00 DE [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:23]Read from MH i2c: E2 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: E2 17 00 17 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2D [14:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:46:23]wFMCommunicate OK [14:46:23]CreateOFDProtocolMessage done [14:46:23]OFDSenderStorePacket 15733 [14:46:23]StoreOFDPacket docnum=15733 [14:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 CC 48 05 01 F6 F0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 49 F5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 75 3D 00 00 35 04 06 00 D1 24 3F CF CE 0C 47 C7 AF 79 2E 8F 47 29 [14:46:23]CheckFolder [14:46:23]dirname=/storage/ofd_packets [14:46:23]CheckFolder done [14:46:23]ProducePacketName [14:46:23]name=ofd_packets/00015733 [14:46:23]NVStorageSaveData ofd_packets/00015733 [14:46:23]File name is /storage/ofd_packets/00015733 [14:46:23]Write 299 bytes [14:46:23]NVStorageSaveData done [14:46:23]OFDSenderStorePacket done [14:46:23]KKMCreateOFDPacket done [14:46:23]NVStorageSaveData kkm_last_timestamp [14:46:23]File name is /storage/kkm_last_timestamp [14:46:23]Write 4 bytes [14:46:23]NVStorageSaveData done [14:46:23]ExternCall_PrintAddStr [14:46:23]wPrintStart [14:46:23]Write to MH i2c: 01 00 00 18 4D 65 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 18 4D 00 00 00 00 00 FF 0F 7A [14:46:23]RasterBufferAndPrint [14:46:23]line Счет N : (1)16282 [14:46:23]line ИНН: 02508201610067 [14:46:23]line Контрольно-Кассовый Чек [14:46:23]line ПРОДАЖА [14:46:23]line ТРК (МРК, ГНК) : 12 [14:46:23]line Товар: 50.50.0 [14:46:23]line SUPER 92-К-5 [14:46:23]line 14.620 * 68.40 [14:46:23]line = 1000.01 [14:46:23]line НДС 12% НСП 1% [14:46:23]line > о реализуемом товаре [14:46:23]line ОКРУГЛЕНИЕ: -0.01 [14:46:23]line ИТОГО: 1000.00 [14:46:23]line НСП 1% : 8.85 [14:46:23]line НДС 12% : 106.20 [14:46:23]line Наличными: 0.00 [14:46:23]line Безнал.: 1000.00 [14:46:23]line Место: АЗС № 178 "Партнер Нефть" [14:46:23]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:46:23]line СНО: Общий режим [14:46:23]line Чек 79 29.10.2024 14:46 [14:46:23]line Смена: 172 ФФД: 1.0 [14:46:23]line ЗНМ: 0300000014 [14:46:23]line РНМ: 0000000000161798 [14:46:23]line Версия ККМ: v1.0 [14:46:23]line Платежная система: Mbank [14:46:23]line ФМ: 0000000000963325 [14:46:23]line ФД: 15733 [14:46:23]line ФПД: 229953619611148 [14:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T144633&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15733&fm=229953619611148&tin=02508201610067®Number=0000000000161798&sum=100000 [14:46:23]written 0, free lines is 4095 [14:46:23]OFD Sender: Processing packet 15733 [packets to send 4, broken 3] [14:46:23]ProducePacketName [14:46:23]name=ofd_packets/00015733 [14:46:23]OFD Sender: To server: pG, [14:46:23]CommunicateWithHost lk.salyk.kg:30040 [14:46:23]ConnectInit lk.salyk.kg [14:46:23]Connected sock=10 [14:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 CC 48 05 01 F6 F0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 49 F5 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 75 3D 00 00 35 04 06 00 D1 24 3F CF CE 0C 47 C7 AF 79 2E 8F 47 29 [14:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 A4 44 47 00 C4 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 75 3D 00 00 F4 03 04 00 35 A0 20 67 B6 04 01 00 00 11 AA A0 93 05 EC 52 22 [14:46:23]CommunicateWithHost err = 0 [14:46:23]CheckOFDResponse [14:46:23]1017 (14) - 77093643461234 [14:46:23]1041 (16) - 0000000000963325 [14:46:23]1040 (4) - 15733 [14:46:23]1012 (4) - 29.10.2024 08:43 [14:46:23]1206 (1) - 0 [14:46:23]OFD Sender: Remove packet 15733 [14:46:23]ProducePacketName [14:46:23]name=ofd_packets/00015733 [14:46:23]NVStorageDeleteData [14:46:23]Write to MH i2c: 01 00 00 42 4D 8F [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: 01 07 00 42 4D 00 00 00 00 00 07 0D AA [14:46:23]RasterBufferAndPrint [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]line [14:46:23]written 0, free lines is 3342 [14:46:23]MH_Cut [14:46:23]Write to MH i2c: D1 01 00 49 4D 01 68 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 01 00 [14:46:23]MH_I2C_Read... [14:46:23]Read from MH i2c: D1 01 00 49 4D 00 67 [14:46:23]Write to MH i2c: 01 00 00 4A 4D 97 [14:46:23]Write i2c OK [14:46:23]MH_I2C_Read... [14:46:24]OFD Sender: No OFD packet to send [14:46:24]*** Cut start [14:46:24]*** Partial cut [14:46:24]*** CUTSNS_PIN = 1 [14:46:24]*** CUTSNS_PIN = 0 [14:46:24]*** Brake cut motor [14:46:25]Read from MH i2c: 01 [14:46:25]MH_I2C_Read... [14:46:25]*** Stop cut motor [14:46:25]*** Cut end [14:46:25]Read from MH i2c: 01 07 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: 01 07 00 4A 4D 00 00 00 00 00 FF 0F AC [14:46:25]process_action close_receipt done [14:46:25]requested_data is exist [14:46:25]produce_requested_data [14:46:25]requested_item fm.sn is exist - process it [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 11 00 00 [14:46:25]Write to MH i2c: E2 08 00 4B 4D 80 11 00 00 00 00 00 00 12 [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 17 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 17 00 4B 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 61 [14:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:46:25]wFMCommunicate OK [14:46:25]requested_item fd.num is exist - process it [14:46:25]SAM_PROTO_GetFieldsCounters [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 13 00 00 [14:46:25]Write to MH i2c: E2 08 00 4C 4D 80 13 00 00 00 00 00 00 15 [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 62 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 62 00 4C 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 75 3D 00 00 0E 04 04 00 AC 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 84 [14:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 75 3D 00 00 0E 04 04 00 AC 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 [14:46:25]wFMCommunicate OK [14:46:25]SAM_PROTO_GetFieldsCounters done [14:46:25]requested_item shift.num is exist - process it [14:46:25]requested_item shift.opened is exist - process it [14:46:25]req_shift_opened [14:46:25]FM_GetShiftState [14:46:25]SAM_PROTO_GetShiftState [14:46:25]wFMCommunicate request_size=4 [14:46:25]MH_SAM_APDU [14:46:25]CAPDU: 80 13 01 00 [14:46:25]Write to MH i2c: E2 08 00 4D 4D 80 13 01 00 00 00 00 00 17 [14:46:25]Write i2c OK [14:46:25]MH_I2C_Read... [14:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:25]Read from MH i2c: E2 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 0E 00 [14:46:25]MH_I2C_Read... [14:46:25]Read from MH i2c: E2 0E 00 4D 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6C [14:46:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:46:25]wFMCommunicate OK [14:46:25]SAM_PROTO_GetShiftState done [14:46:25]FM_GetShiftState done [14:46:25]req_shift_opened done [14:46:25]requested_item shift.open_date is exist - process it [14:46:25]req_shift_open_date [14:46:25]req_shift_open_date done [14:46:25]produce_requested_data done [14:46:25]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15733,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:46:25]process_action_free close_receipt [14:46:25]json_value_free [14:46:25]json_value_free done [14:46:25]process_json_proto returns [14:46:25]Send response to host [14:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15733,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:46:25]free response buf [14:46:25]execute_script done [14:46:25]execute_script returns [14:46:25]free content buf [14:46:25]Sock 8.Close socket [14:46:25]Sock 8.Thread stoped [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:11]accept exits with 9 [14:54:11]New connection [14:54:11]New thread 3066731876 created [14:54:11]Thread 3066588516 joined [14:54:11]Waiting for new connection... [14:54:11] Sock 9.Parse request [14:54:11]Sock 9.Check first char [14:54:11]Sock 9.First char is OK [14:54:11]request: POST /json_proto HTTP/1.0 [14:54:11]Method: POST [14:54:11]URL: /json_proto [14:54:11]Method is POST - this is cgi request [14:54:11]url: /json_proto [14:54:11]query_string will be loaded in cgi processing [14:54:11]execute_cgi json_proto POST (null) [14:54:11]execute_cgi path=json_proto method=POST [14:54:11]POST find Content-Length [14:54:11]Host: 172.17.54.195:8080 [14:54:11]Content-Length: 671 [14:54:11]Content-Type: application/json [14:54:11] [14:54:11]POST finish read [14:54:11]Found Content-Length = 671 [14:54:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.960, "sum" : 1091.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1091.00, "payments": [ { "type": 0, "sum" : 1091.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:11]execute_script... [14: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)16283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 15.960, "sum" : 1091.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1091.00, "payments": [ { "type": 0, "sum" : 1091.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:11]POST & json_proto [14:54:11]process_json_proto [14:54:11]json parsed OK: [14:54:11]protocol is kg_v1.0 [14:54:11]action value=close_receipt [14:54:11]process_action close_receipt [14:54:11]cmd_close_receipt [14:54:11]MH_GetDate [14:54:11]Write to MH i2c: F0 00 00 4E 4D 8A [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: F0 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: F0 09 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: F0 09 00 4E 4D 00 1E F7 20 67 8D 90 A3 66 55 [14:54:11]GetLastDocTimeStamp 1730213193 [14:54:11]current date 1730213662 [14:54:11]FM_GetShiftState [14:54:11]SAM_PROTO_GetShiftState [14:54:11]wFMCommunicate request_size=4 [14:54:11]MH_SAM_APDU [14:54:11]CAPDU: 80 13 01 00 [14:54:11]Write to MH i2c: E2 08 00 4F 4D 80 13 01 00 00 00 00 00 19 [14:54:11]Write i2c OK [14:54:11]MH_I2C_Read... [14:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:11]Read from MH i2c: E2 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 [14:54:11]MH_I2C_Read... [14:54:11]Read from MH i2c: E2 0E 00 4F 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6E [14:54:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:54:11]wFMCommunicate OK [14:54:11]SAM_PROTO_GetShiftState done [14:54:11]FM_GetShiftState done [14:54:11]opened in 1730161559 [14:54:11]opened+sec_in_day 1730247959 [14:54:11]quantity*price = 109166 [14:54:11]sum+1 = 109167 [14:54:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1091.00 Внесено: 1600.00 СДАЧА: 509.00 НСП 1% : 9.66 НДС 12% : 115.93 Наличными: 1091.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 80 29.10.2024 14:54 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15734 ФПД: 29759863799654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T145422&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15734&fm=29759863799654&tin=02508201610067®Number=0000000000161798&sum=109100 [14:54:12]StoreToDocumentArchive [14:54:12]shift 172 fd 15734 [14:54:12]save to /storage/0172/doc_00015734 [14:54:12]save last doc name /storage/0172/doc_00015734 to /storage/kkm_last_doc_name [14:54:12]save OK [14:54:12]Clear old archive folders... [14:54:12]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:54:12]tlvbuf is 00377590 [14:54:12]SAM_PROTO_ClearQueue [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 09 00 00 [14:54:12]Write to MH i2c: E2 08 00 5C 4D 80 09 00 00 00 00 00 00 1B [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 5C 4D 00 90 00 1D [14:54:12]RAPDU: 90 00 [14:54:12]wFMCommunicate OK [14:54:12]SAM_PROTO_ClearQueue done [14:54:12]KKMCreateOFDPacket [14:54:12]OFDProtocolAddRootSTLVToBuf [14:54:12]FM_MakeSignedData [14:54:12]FM_MakeSignedData [14:54:12]SAM_PROTO_SignData [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 0D 01 02 [14:54:12]Write to MH i2c: E2 08 00 5D 4D 80 0D 01 02 00 00 00 00 23 [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 5D 4D 00 90 00 1E [14:54:12]RAPDU: 90 00 [14:54:12]wFMCommunicate OK [14:54:12]wFMCommunicate request_size=255 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 6E AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 2D 00 00 00 00 07 04 06 00 2C AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1E F7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 76 3D 00 00 35 04 06 00 1B 11 02 [14:54:12]Write to MH i2c: E2 02 01 5E 4D 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 6E AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 2D 00 00 00 00 07 04 06 00 2C AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1E F7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 76 3D 00 00 35 04 06 00 1B 11 02 00 00 0C [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 5E 4D 00 90 00 1F [14:54:12]RAPDU: 90 00 [14:54:12]wFMCommunicate OK [14:54:12]wFMCommunicate request_size=8 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 0D 02 02 03 1C 3F 66 [14:54:12]Write to MH i2c: E2 0B 00 5F 4D 80 0D 02 02 03 00 1C 3F 66 00 00 ED [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 03 00 5F 4D 00 90 00 20 [14:54:12]RAPDU: 90 00 [14:54:12]wFMCommunicate OK [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 0D 03 02 [14:54:12]Write to MH i2c: E2 08 00 60 4D 80 0D 03 02 00 00 00 00 28 [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 0B 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 0B 00 60 4D 00 02 D4 EF 6E 38 C6 2E 4E 90 00 D6 [14:54:12]RAPDU: 02 D4 EF 6E 38 C6 2E 4E 90 00 [14:54:12]wFMCommunicate OK [14:54:12]SAM_PROTO_SignData done [14:54:12]FM_MakeSignedData done [14:54:12]CreateOFDProtocolMessage [14:54:12]wFMCommunicate request_size=4 [14:54:12]MH_SAM_APDU [14:54:12]CAPDU: 80 11 00 00 [14:54:12]Write to MH i2c: E2 08 00 61 4D 80 11 00 00 00 00 00 00 28 [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:12]Read from MH i2c: E2 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 17 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: E2 17 00 61 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 77 [14:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:54:12]wFMCommunicate OK [14:54:12]CreateOFDProtocolMessage done [14:54:12]OFDSenderStorePacket 15734 [14:54:12]StoreOFDPacket docnum=15734 [14:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 B8 8B 05 01 75 46 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 6E AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 2D 00 00 00 00 07 04 06 00 2C AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1E F7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 76 3D 00 00 35 04 06 00 1B 11 02 1C 3F 66 02 D4 EF 6E 38 C6 2E 4E [14:54:12]CheckFolder [14:54:12]dirname=/storage/ofd_packets [14:54:12]CheckFolder done [14:54:12]ProducePacketName [14:54:12]name=ofd_packets/00015734 [14:54:12]NVStorageSaveData ofd_packets/00015734 [14:54:12]File name is /storage/ofd_packets/00015734 [14:54:12]Write 299 bytes [14:54:12]NVStorageSaveData done [14:54:12]OFDSenderStorePacket done [14:54:12]KKMCreateOFDPacket done [14:54:12]NVStorageSaveData kkm_last_timestamp [14:54:12]File name is /storage/kkm_last_timestamp [14:54:12]Write 4 bytes [14:54:12]NVStorageSaveData done [14:54:12]ExternCall_PrintAddStr [14:54:12]wPrintStart [14:54:12]Write to MH i2c: 01 00 00 62 4D AF [14:54:12]Write i2c OK [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: 01 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: 01 07 00 [14:54:12]MH_I2C_Read... [14:54:12]Read from MH i2c: 01 07 00 62 4D 00 00 00 00 00 FF 0F C4 [14:54:12]RasterBufferAndPrint [14:54:12]line Счет N : (1)16283 [14:54:12]line ИНН: 02508201610067 [14:54:12]line Контрольно-Кассовый Чек [14:54:12]line ПРОДАЖА [14:54:12]line ТРК (МРК, ГНК) : 12 [14:54:12]line Товар: 50.50.0 [14:54:12]line SUPER 92-К-5 [14:54:12]line 15.960 * 68.40 [14:54:12]line = 1091.66 [14:54:12]line НДС 12% НСП 1% [14:54:12]line > о реализуемом товаре [14:54:12]line ОКРУГЛЕНИЕ: -0.66 [14:54:12]line ИТОГО: 1091.00 [14:54:12]line Внесено: 1600.00 [14:54:12]line СДАЧА: 509.00 [14:54:12]line НСП 1% : 9.66 [14:54:12]line НДС 12% : 115.93 [14:54:12]line Наличными: 1091.00 [14:54:12]line Безнал.: 0.00 [14:54:12]line Место: АЗС № 178 "Партнер Нефть" [14:54:12]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [14:54:12]line СНО: Общий режим [14:54:12]line Чек 80 29.10.2024 14:54 [14:54:12]line Смена: 172 ФФД: 1.0 [14:54:13]line ЗНМ: 0300000014 [14:54:13]line РНМ: 0000000000161798 [14:54:13]line Версия ККМ: v1.0 [14:54:13]line ФМ: 0000000000963325 [14:54:13]line ФД: 15734 [14:54:13]line ФПД: 29759863799654 [14:54:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T145422&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15734&fm=29759863799654&tin=02508201610067®Number=0000000000161798&sum=109100 [14:54:13]OFD Sender: Processing packet 15734 [packets to send 4, broken 3] [14:54:13]ProducePacketName [14:54:13]name=ofd_packets/00015734 [14:54:13]OFD Sender: To server: pG, [14:54:13]CommunicateWithHost lk.salyk.kg:30040 [14:54:13]ConnectInit lk.salyk.kg [14:54:13]written 0, free lines is 4095 [14:54:13]Connected sock=10 [14:54:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 B8 8B 05 01 75 46 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 58 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 6E AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C6 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 2D 00 00 00 00 07 04 06 00 2C AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 1E F7 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 76 3D 00 00 35 04 06 00 1B 11 02 1C 3F 66 02 D4 EF 6E 38 C6 2E 4E [14:54:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 25 60 47 00 EC E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 76 3D 00 00 F4 03 04 00 0B A2 20 67 B6 04 01 00 00 33 D3 E2 90 67 8F 37 F2 [14:54:13]CommunicateWithHost err = 0 [14:54:13]CheckOFDResponse [14:54:13]1017 (14) - 77093643461234 [14:54:13]1041 (16) - 0000000000963325 [14:54:13]1040 (4) - 15734 [14:54:13]1012 (4) - 29.10.2024 08:51 [14:54:13]1206 (1) - 0 [14:54:13]OFD Sender: Remove packet 15734 [14:54:13]ProducePacketName [14:54:13]name=ofd_packets/00015734 [14:54:13]NVStorageDeleteData [14:54:13]Write to MH i2c: 01 00 00 8D 4D DA [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: 01 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: 01 07 00 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: 01 07 00 8D 4D 00 00 00 00 00 04 0D F2 [14:54:13]RasterBufferAndPrint [14:54:13]line [14:54:13]line [14:54:13]line [14:54:13]line [14:54:13]line [14:54:13]written 0, free lines is 3338 [14:54:13]MH_Cut [14:54:13]Write to MH i2c: D1 01 00 94 4D 01 B3 [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: D1 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: D1 01 00 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: D1 01 00 94 4D 00 B2 [14:54:13]Write to MH i2c: 01 00 00 95 4D E2 [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]OFD Sender: No OFD packet to send [14:54:14]*** Cut start [14:54:14]*** Partial cut [14:54:14]*** CUTSNS_PIN = 1 [14:54:14]*** CUTSNS_PIN = 0 [14:54:14]*** Brake cut motor [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]*** Stop cut motor [14:54:15]*** Cut end [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 95 4D 00 00 00 00 00 FF 0F F7 [14:54:15]process_action close_receipt done [14:54:15]requested_data is exist [14:54:15]produce_requested_data [14:54:15]requested_item fm.sn is exist - process it [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 11 00 00 [14:54:15]Write to MH i2c: E2 08 00 96 4D 80 11 00 00 00 00 00 00 5D [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 96 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AC [14:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [14:54:15]wFMCommunicate OK [14:54:15]requested_item fd.num is exist - process it [14:54:15]SAM_PROTO_GetFieldsCounters [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 13 00 00 [14:54:15]Write to MH i2c: E2 08 00 97 4D 80 13 00 00 00 00 00 00 60 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 62 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 62 00 97 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 76 3D 00 00 0E 04 04 00 AC 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 D3 [14:54:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 76 3D 00 00 0E 04 04 00 AC 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 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_GetFieldsCounters done [14:54:15]requested_item shift.num is exist - process it [14:54:15]requested_item shift.opened is exist - process it [14:54:15]req_shift_opened [14:54:15]FM_GetShiftState [14:54:15]SAM_PROTO_GetShiftState [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 13 01 00 [14:54:15]Write to MH i2c: E2 08 00 98 4D 80 13 01 00 00 00 00 00 62 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0E 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0E 00 98 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B7 [14:54:15]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_GetShiftState done [14:54:15]FM_GetShiftState done [14:54:15]req_shift_opened done [14:54:15]requested_item shift.open_date is exist - process it [14:54:15]req_shift_open_date [14:54:15]req_shift_open_date done [14:54:15]produce_requested_data done [14:54:15]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15734,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [14:54:15]process_action_free close_receipt [14:54:15]json_value_free [14:54:15]json_value_free done [14:54:15]process_json_proto returns [14:54:15]Send response to host [14:54:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15734,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [14:54:15]free response buf [14:54:15]execute_script done [14:54:15]execute_script returns [14:54:15]free content buf [14:54:15]Sock 9.Close socket [14:54:15]Sock 9.Thread stoped [14:54:18]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]accept exits with 8 [15:09:14]New connection [15:09:14]New thread 3066588516 created [15:09:14]Thread 3066731876 joined [15:09:14]Waiting for new connection... [15:09:14] Sock 8.Parse request [15:09:14]Sock 8.Check first char [15:09:14]Sock 8.First char is OK [15:09:14]request: POST /json_proto HTTP/1.0 [15:09:14]Method: POST [15:09:14]URL: /json_proto [15:09:14]Method is POST - this is cgi request [15:09:14]url: /json_proto [15:09:14]query_string will be loaded in cgi processing [15:09:14]execute_cgi json_proto POST (null) [15:09:14]execute_cgi path=json_proto method=POST [15:09:14]POST find Content-Length [15:09:14]Host: 172.17.54.195:8080 [15:09:14]Content-Length: 639 [15:09:14]Content-Type: application/json [15:09:14] [15:09:14]POST finish read [15:09:14]Found Content-Length = 639 [15:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:14]execute_script... [15:09: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)16284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:14]POST & json_proto [15:09:14]process_json_proto [15:09:14]json parsed OK: [15:09:14]protocol is kg_v1.0 [15:09:14]action value=close_receipt [15:09:14]process_action close_receipt [15:09:14]cmd_close_receipt [15:09:14]MH_GetDate [15:09:14]Write to MH i2c: F0 00 00 99 4D D5 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: F0 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: F0 09 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: F0 09 00 99 4D 00 A6 FA 20 67 8D 90 A3 66 2B [15:09:14]GetLastDocTimeStamp 1730213662 [15:09:14]current date 1730214566 [15:09:14]FM_GetShiftState [15:09:14]SAM_PROTO_GetShiftState [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 01 00 [15:09:14]Write to MH i2c: E2 08 00 9A 4D 80 13 01 00 00 00 00 00 64 [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 9A 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B9 [15:09:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetShiftState done [15:09:14]FM_GetShiftState done [15:09:14]opened in 1730161559 [15:09:14]opened+sec_in_day 1730247959 [15:09:14]quantity*price = 66900 [15:09:14]sum+1 = 66901 [15:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 81 29.10.2024 15:09 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15735 ФПД: 6194584160685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T150926&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15735&fm=6194584160685&tin=02508201610067®Number=0000000000161798&sum=66900 [15:09:15]StoreToDocumentArchive [15:09:15]shift 172 fd 15735 [15:09:15]save to /storage/0172/doc_00015735 [15:09:15]save last doc name /storage/0172/doc_00015735 to /storage/kkm_last_doc_name [15:09:15]save OK [15:09:15]Clear old archive folders... [15:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:15]tlvbuf is B6F22C60 [15:09:15]SAM_PROTO_ClearQueue [15:09:15]wFMCommunicate request_size=4 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 09 00 00 [15:09:15]Write to MH i2c: E2 08 00 A7 4D 80 09 00 00 00 00 00 00 66 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 A7 4D 00 90 00 68 [15:09:15]RAPDU: 90 00 [15:09:15]wFMCommunicate OK [15:09:15]SAM_PROTO_ClearQueue done [15:09:15]KKMCreateOFDPacket [15:09:15]OFDProtocolAddRootSTLVToBuf [15:09:15]FM_MakeSignedData [15:09:15]FM_MakeSignedData [15:09:15]SAM_PROTO_SignData [15:09:15]wFMCommunicate request_size=4 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 0D 01 02 [15:09:15]Write to MH i2c: E2 08 00 A8 4D 80 0D 01 02 00 00 00 00 6E [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 A8 4D 00 90 00 69 [15:09:15]RAPDU: 90 00 [15:09:15]wFMCommunicate OK [15:09:15]wFMCommunicate request_size=255 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 A6 FA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 77 3D 00 00 35 04 06 00 05 [15:09:15]Write to MH i2c: E2 02 01 A9 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 A6 FA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 77 3D 00 00 35 04 06 00 05 00 00 06 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 A9 4D 00 90 00 6A [15:09:15]RAPDU: 90 00 [15:09:15]wFMCommunicate OK [15:09:15]wFMCommunicate request_size=10 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 0D 02 02 05 A2 49 FD 09 AD [15:09:15]Write to MH i2c: E2 0D 00 AA 4D 80 0D 02 02 05 00 A2 49 FD 09 AD 00 00 19 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 03 00 AA 4D 00 90 00 6B [15:09:15]RAPDU: 90 00 [15:09:15]wFMCommunicate OK [15:09:15]wFMCommunicate request_size=4 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 0D 03 02 [15:09:15]Write to MH i2c: E2 08 00 AB 4D 80 0D 03 02 00 00 00 00 73 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 0B 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 0B 00 AB 4D 00 48 07 B8 7D D1 52 3A 95 90 00 EA [15:09:15]RAPDU: 48 07 B8 7D D1 52 3A 95 90 00 [15:09:15]wFMCommunicate OK [15:09:15]SAM_PROTO_SignData done [15:09:15]FM_MakeSignedData done [15:09:15]CreateOFDProtocolMessage [15:09:15]wFMCommunicate request_size=4 [15:09:15]MH_SAM_APDU [15:09:15]CAPDU: 80 11 00 00 [15:09:15]Write to MH i2c: E2 08 00 AC 4D 80 11 00 00 00 00 00 00 73 [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:15]Read from MH i2c: E2 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 17 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: E2 17 00 AC 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C2 [15:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:09:15]wFMCommunicate OK [15:09:15]CreateOFDProtocolMessage done [15:09:15]OFDSenderStorePacket 15735 [15:09:15]StoreOFDPacket docnum=15735 [15:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 DB 43 07 01 08 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 A6 FA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 77 3D 00 00 35 04 06 00 05 A2 49 FD 09 AD 48 07 B8 7D D1 52 3A 95 [15:09:15]CheckFolder [15:09:15]dirname=/storage/ofd_packets [15:09:15]CheckFolder done [15:09:15]ProducePacketName [15:09:15]name=ofd_packets/00015735 [15:09:15]NVStorageSaveData ofd_packets/00015735 [15:09:15]File name is /storage/ofd_packets/00015735 [15:09:15]Write 301 bytes [15:09:15]NVStorageSaveData done [15:09:15]OFDSenderStorePacket done [15:09:15]KKMCreateOFDPacket done [15:09:15]NVStorageSaveData kkm_last_timestamp [15:09:15]File name is /storage/kkm_last_timestamp [15:09:15]Write 4 bytes [15:09:15]NVStorageSaveData done [15:09:15]ExternCall_PrintAddStr [15:09:15]wPrintStart [15:09:15]Write to MH i2c: 01 00 00 AD 4D FA [15:09:15]Write i2c OK [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 07 00 [15:09:15]MH_I2C_Read... [15:09:15]Read from MH i2c: 01 07 00 AD 4D 00 00 00 00 00 FF 0F 0F [15:09:15]RasterBufferAndPrint [15:09:15]line Счет N : (1)16284 [15:09:16]line ИНН: 02508201610067 [15:09:16]line Контрольно-Кассовый Чек [15:09:16]line ПРОДАЖА [15:09:16]line ТРК (МРК, ГНК) : 21 [15:09:16]line Товар: 2710124130 [15:09:16]line Аи-92-К-5 [15:09:16]line 10.000 * 66.90 [15:09:16]line = 669.00 [15:09:16]line НДС 12% НСП 1% [15:09:16]line > о реализуемом товаре [15:09:16]line ИТОГО: 669.00 [15:09:16]line НСП 1% : 5.92 [15:09:16]line НДС 12% : 71.04 [15:09:16]line Наличными: 669.00 [15:09:16]line Безнал.: 0.00 [15:09:16]line Место: АЗС № 178 "Партнер Нефть" [15:09:16]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:09:16]line СНО: Общий режим [15:09:16]line Чек 81 29.10.2024 15:09 [15:09:16]line Смена: 172 ФФД: 1.0 [15:09:16]line ЗНМ: 0300000014 [15:09:16]line РНМ: 0000000000161798 [15:09:16]line Версия ККМ: v1.0 [15:09:16]line ФМ: 0000000000963325 [15:09:16]line ФД: 15735 [15:09:16]line ФПД: 6194584160685 [15:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T150926&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15735&fm=6194584160685&tin=02508201610067®Number=0000000000161798&sum=66900 [15:09:16]OFD Sender: Processing packet 15735 [packets to send 4, broken 3] [15:09:16]ProducePacketName [15:09:16]name=ofd_packets/00015735 [15:09:16]OFD Sender: To server: pG, [15:09:16]CommunicateWithHost lk.salyk.kg:30040 [15:09:16]ConnectInit lk.salyk.kg [15:09:16]written 0, free lines is 4095 [15:09:16]Connected sock=10 [15:09:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 DB 43 07 01 08 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 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 A6 FA 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 77 3D 00 00 35 04 06 00 05 A2 49 FD 09 AD 48 07 B8 7D D1 52 3A 95 [15:09:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 7C EE 47 00 EE B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 77 3D 00 00 F4 03 04 00 92 A5 20 67 B6 04 01 00 00 95 EC 0F C2 48 EE CD B9 [15:09:16]CommunicateWithHost err = 0 [15:09:16]CheckOFDResponse [15:09:16]1017 (14) - 77093643461234 [15:09:16]1041 (16) - 0000000000963325 [15:09:16]1040 (4) - 15735 [15:09:16]1012 (4) - 29.10.2024 09:06 [15:09:16]1206 (1) - 0 [15:09:16]OFD Sender: Remove packet 15735 [15:09:16]ProducePacketName [15:09:16]name=ofd_packets/00015735 [15:09:16]NVStorageDeleteData [15:09:16]Write to MH i2c: 01 00 00 D5 4D 22 [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: 01 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: 01 07 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: 01 07 00 D5 4D 00 00 00 00 00 22 0D 58 [15:09:16]RasterBufferAndPrint [15:09:16]line [15:09:16]line [15:09:16]line [15:09:16]line [15:09:16]line [15:09:16]written 0, free lines is 3369 [15:09:16]MH_Cut [15:09:16]Write to MH i2c: D1 01 00 DC 4D 01 FB [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: D1 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: D1 01 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: D1 01 00 DC 4D 00 FA [15:09:16]Write to MH i2c: 01 00 00 DD 4D 2A [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:17]OFD Sender: No OFD packet to send [15:09:17]*** Cut start [15:09:17]*** Partial cut [15:09:17]*** CUTSNS_PIN = 1 [15:09:17]*** CUTSNS_PIN = 0 [15:09:17]*** Brake cut motor [15:09:18]Read from MH i2c: 01 [15:09:18]MH_I2C_Read... [15:09:18]*** Stop cut motor [15:09:18]*** Cut end [15:09:18]Read from MH i2c: 01 07 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 DD 4D 00 00 00 00 00 FF 0F 3F [15:09:18]process_action close_receipt done [15:09:18]requested_data is exist [15:09:18]produce_requested_data [15:09:18]requested_item fm.sn is exist - process it [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 11 00 00 [15:09:18]Write to MH i2c: E2 08 00 DE 4D 80 11 00 00 00 00 00 00 A5 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 17 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 17 00 DE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F4 [15:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:09:18]wFMCommunicate OK [15:09:18]requested_item fd.num is exist - process it [15:09:18]SAM_PROTO_GetFieldsCounters [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 13 00 00 [15:09:18]Write to MH i2c: E2 08 00 DF 4D 80 13 00 00 00 00 00 00 A8 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 62 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 62 00 DF 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 77 3D 00 00 0E 04 04 00 AC 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 1F [15:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 77 3D 00 00 0E 04 04 00 AC 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 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_GetFieldsCounters done [15:09:18]requested_item shift.num is exist - process it [15:09:18]requested_item shift.opened is exist - process it [15:09:18]req_shift_opened [15:09:18]FM_GetShiftState [15:09:18]SAM_PROTO_GetShiftState [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 13 01 00 [15:09:18]Write to MH i2c: E2 08 00 E0 4D 80 13 01 00 00 00 00 00 AA [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0E 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0E 00 E0 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FF [15:09:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_GetShiftState done [15:09:18]FM_GetShiftState done [15:09:18]req_shift_opened done [15:09:18]requested_item shift.open_date is exist - process it [15:09:18]req_shift_open_date [15:09:18]req_shift_open_date done [15:09:18]produce_requested_data done [15:09:18]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15735,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:09:18]process_action_free close_receipt [15:09:18]json_value_free [15:09:18]json_value_free done [15:09:18]process_json_proto returns [15:09:18]Send response to host [15:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15735,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:09:18]free response buf [15:09:18]execute_script done [15:09:18]execute_script returns [15:09:18]free content buf [15:09:18]Sock 8.Close socket [15:09:18]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:42]OFD Sender: No OFD packet to send [15:15:47]OFD Sender: No OFD packet to send [15:15:52]OFD Sender: No OFD packet to send [15:15:57]OFD Sender: No OFD packet to send [15:16:02]OFD Sender: No OFD packet to send [15:16:07]OFD Sender: No OFD packet to send [15:16:12]OFD Sender: No OFD packet to send [15:16:17]OFD Sender: No OFD packet to send [15:16:22]OFD Sender: No OFD packet to send [15:16:27]OFD Sender: No OFD packet to send [15:16:32]OFD Sender: No OFD packet to send [15:16:37]OFD Sender: No OFD packet to send [15:16:42]OFD Sender: No OFD packet to send [15:16:47]OFD Sender: No OFD packet to send [15:16:52]OFD Sender: No OFD packet to send [15:16:57]OFD Sender: No OFD packet to send [15:17:02]OFD Sender: No OFD packet to send [15:17:07]OFD Sender: No OFD packet to send [15:17:12]OFD Sender: No OFD packet to send [15:17:17]OFD Sender: No OFD packet to send [15:17:22]OFD Sender: No OFD packet to send [15:17:27]OFD Sender: No OFD packet to send [15:17:32]OFD Sender: No OFD packet to send [15:17:37]OFD Sender: No OFD packet to send [15:17:42]OFD Sender: No OFD packet to send [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:17:58]accept exits with 9 [15:17:58]New connection [15:17:58]New thread 3066731876 created [15:17:58]Thread 3066588516 joined [15:17:58]Waiting for new connection... [15:17:58] Sock 9.Parse request [15:17:58]Sock 9.Check first char [15:17:58]Sock 9.First char is OK [15:17:58]request: POST /json_proto HTTP/1.0 [15:17:58]Method: POST [15:17:58]URL: /json_proto [15:17:58]Method is POST - this is cgi request [15:17:58]url: /json_proto [15:17:58]query_string will be loaded in cgi processing [15:17:58]execute_cgi json_proto POST (null) [15:17:58]execute_cgi path=json_proto method=POST [15:17:58]POST find Content-Length [15:17:58]Host: 172.17.54.195:8080 [15:17:58]Content-Length: 977 [15:17:58]Content-Type: application/json [15:17:58] [15:17:58]POST finish read [15:17:58]Found Content-Length = 977 [15:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:58]execute_script... [15: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)16285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:58]POST & json_proto [15:17:58]process_json_proto [15:17:58]json parsed OK: [15:17:58]protocol is kg_v1.0 [15:17:58]action value=close_receipt [15:17:58]process_action close_receipt [15:17:58]cmd_close_receipt [15:17:58]MH_GetDate [15:17:58]Write to MH i2c: F0 00 00 E1 4D 1D [15:17:58]Write i2c OK [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 09 00 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: F0 09 00 E1 4D 00 B2 FC 20 67 8D 90 A3 66 81 [15:17:58]GetLastDocTimeStamp 1730214566 [15:17:58]current date 1730215090 [15:17:58]FM_GetShiftState [15:17:58]SAM_PROTO_GetShiftState [15:17:58]wFMCommunicate request_size=4 [15:17:58]MH_SAM_APDU [15:17:58]CAPDU: 80 13 01 00 [15:17:58]Write to MH i2c: E2 08 00 E2 4D 80 13 01 00 00 00 00 00 AC [15:17:58]Write i2c OK [15:17:58]MH_I2C_Read... [15:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:58]Read from MH i2c: E2 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: E2 0E 00 [15:17:58]MH_I2C_Read... [15:17:58]Read from MH i2c: E2 0E 00 E2 4D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 01 [15:17:58]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:17:58]wFMCommunicate OK [15:17:58]SAM_PROTO_GetShiftState done [15:17:58]FM_GetShiftState done [15:17:58]opened in 1730161559 [15:17:58]opened+sec_in_day 1730247959 [15:17:58]quantity*price = 450072 [15:17:58]sum+1 = 450073 [15:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 82 29.10.2024 15:18 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа ДТ номер 178 сэкономлено 59.85 сом ФМ: 0000000000963325 ФД: 15736 ФПД: 93048097980311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T151810&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15736&fm=93048097980311&tin=02508201610067®Number=0000000000161798&sum=450000 [15:17:59]StoreToDocumentArchive [15:17:59]shift 172 fd 15736 [15:17:59]save to /storage/0172/doc_00015736 [15:17:59]save last doc name /storage/0172/doc_00015736 to /storage/kkm_last_doc_name [15:17:59]save OK [15:17:59]Clear old archive folders... [15:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:59]tlvbuf is 002E33E0 [15:17:59]SAM_PROTO_ClearQueue [15:17:59]wFMCommunicate request_size=4 [15:17:59]MH_SAM_APDU [15:17:59]CAPDU: 80 09 00 00 [15:17:59]Write to MH i2c: E2 08 00 EF 4D 80 09 00 00 00 00 00 00 AE [15:17:59]Write i2c OK [15:17:59]MH_I2C_Read... [15:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:59]Read from MH i2c: E2 [15:17:59]MH_I2C_Read... [15:17:59]Read from MH i2c: E2 03 00 [15:17:59]MH_I2C_Read... [15:17:59]Read from MH i2c: E2 03 00 EF 4D 00 90 00 B0 [15:17:59]RAPDU: 90 00 [15:17:59]wFMCommunicate OK [15:17:59]SAM_PROTO_ClearQueue done [15:17:59]KKMCreateOFDPacket [15:17:59]OFDProtocolAddRootSTLVToBuf [15:17:59]FM_MakeSignedData [15:17:59]FM_MakeSignedData [15:17:59]SAM_PROTO_SignData [15:17:59]wFMCommunicate request_size=4 [15:17:59]MH_SAM_APDU [15:17:59]CAPDU: 80 0D 01 02 [15:17:59]Write to MH i2c: E2 08 00 F0 4D 80 0D 01 02 00 00 00 00 B6 [15:17:59]Write i2c OK [15:17:59]MH_I2C_Read... [15:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:59]Read from MH i2c: E2 [15:17:59]MH_I2C_Read... [15:17:59]Read from MH i2c: E2 03 00 [15:17:59]MH_I2C_Read... [15:17:59]Read from MH i2c: E2 03 00 F0 4D 00 90 00 B1 [15:17:59]RAPDU: 90 00 [15:17:59]wFMCommunicate OK [15:17:59]wFMCommunicate request_size=255 [15:17:59]MH_SAM_APDU [15:17: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 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 B2 FC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 78 3D 00 00 35 04 06 00 54 A0 72 D3 [15:17:59]Write to MH i2c: E2 02 01 F1 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 B2 FC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 78 3D 00 00 35 04 06 00 54 A0 72 D3 00 00 D4 [15:17:59]Write i2c OK [15:17:59]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 F1 4D 00 90 00 B2 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]wFMCommunicate request_size=7 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 02 02 02 BF 97 [15:18:00]Write to MH i2c: E2 0A 00 F2 4D 80 0D 02 02 02 00 BF 97 00 00 13 [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 03 00 F2 4D 00 90 00 B3 [15:18:00]RAPDU: 90 00 [15:18:00]wFMCommunicate OK [15:18:00]wFMCommunicate request_size=4 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 0D 03 02 [15:18:00]Write to MH i2c: E2 08 00 F3 4D 80 0D 03 02 00 00 00 00 BB [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 0B 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 0B 00 F3 4D 00 55 61 54 C2 C3 E0 17 09 90 00 4B [15:18:00]RAPDU: 55 61 54 C2 C3 E0 17 09 90 00 [15:18:00]wFMCommunicate OK [15:18:00]SAM_PROTO_SignData done [15:18:00]FM_MakeSignedData done [15:18:00]CreateOFDProtocolMessage [15:18:00]wFMCommunicate request_size=4 [15:18:00]MH_SAM_APDU [15:18:00]CAPDU: 80 11 00 00 [15:18:00]Write to MH i2c: E2 08 00 F4 4D 80 11 00 00 00 00 00 00 BB [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:00]Read from MH i2c: E2 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 17 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: E2 17 00 F4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0A [15:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:18:00]wFMCommunicate OK [15:18:00]CreateOFDProtocolMessage done [15:18:00]OFDSenderStorePacket 15736 [15:18:00]StoreOFDPacket docnum=15736 [15:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 57 5F 04 01 1E 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 B2 FC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 78 3D 00 00 35 04 06 00 54 A0 72 D3 BF 97 55 61 54 C2 C3 E0 17 09 [15:18:00]CheckFolder [15:18:00]dirname=/storage/ofd_packets [15:18:00]CheckFolder done [15:18:00]ProducePacketName [15:18:00]name=ofd_packets/00015736 [15:18:00]NVStorageSaveData ofd_packets/00015736 [15:18:00]File name is /storage/ofd_packets/00015736 [15:18:00]Write 298 bytes [15:18:00]NVStorageSaveData done [15:18:00]OFDSenderStorePacket done [15:18:00]KKMCreateOFDPacket done [15:18:00]NVStorageSaveData kkm_last_timestamp [15:18:00]File name is /storage/kkm_last_timestamp [15:18:00]Write 4 bytes [15:18:00]NVStorageSaveData done [15:18:00]ExternCall_PrintAddStr [15:18:00]wPrintStart [15:18:00]Write to MH i2c: 01 00 00 F5 4D 42 [15:18:00]Write i2c OK [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 07 00 [15:18:00]MH_I2C_Read... [15:18:00]Read from MH i2c: 01 07 00 F5 4D 00 00 00 00 00 FF 0F 57 [15:18:00]RasterBufferAndPrint [15:18:00]line Счет N : (1)16285 [15:18:00]line ИНН: 02508201610067 [15:18:00]line Контрольно-Кассовый Чек [15:18:00]line ПРОДАЖА [15:18:00]line ТРК (МРК, ГНК) : 22 [15:18:00]line Товар: 2710194210 [15:18:00]line ДТ-К-5 [15:18:00]line 59.850 * 75.20 [15:18:00]line = 4500.72 [15:18:00]line НДС 12% НСП 1% [15:18:00]line > о реализуемом товаре [15:18:00]line ОКРУГЛЕНИЕ: -0.72 [15:18:00]line ИТОГО: 4500.00 [15:18:00]line Внесено: 4500.00 [15:18:00]line СДАЧА: 0.00 [15:18:00]line НСП 1% : 39.83 [15:18:00]line НДС 12% : 477.95 [15:18:00]line Наличными: 4500.00 [15:18:00]line Безнал.: 0.00 [15:18:00]line Место: АЗС № 178 "Партнер Нефть" [15:18:00]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:18:00]line СНО: Общий режим [15:18:00]line Чек 82 29.10.2024 15:18 [15:18:00]line Смена: 172 ФФД: 1.0 [15:18:00]line ЗНМ: 0300000014 [15:18:00]line РНМ: 0000000000161798 [15:18:00]line Версия ККМ: v1.0 [15:18:00]line [15:18:00]line Дисконтная программа [15:18:00]line ДТ [15:18:00]line номер 178 [15:18:00]line сэкономлено 59.85 сом [15:18:00]line ФМ: 0000000000963325 [15:18:00]line ФД: 15736 [15:18:00]line ФПД: 93048097980311 [15:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T151810&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15736&fm=93048097980311&tin=02508201610067®Number=0000000000161798&sum=450000 [15:18:00]OFD Sender: Processing packet 15736 [packets to send 4, broken 3] [15:18:00]ProducePacketName [15:18:00]name=ofd_packets/00015736 [15:18:00]OFD Sender: To server: pG, [15:18:00]CommunicateWithHost lk.salyk.kg:30040 [15:18:00]ConnectInit lk.salyk.kg [15:18:00]written 0, free lines is 4095 [15:18:00]Connected sock=10 [15:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 57 5F 04 01 1E 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 B2 FC 20 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 78 3D 00 00 35 04 06 00 54 A0 72 D3 BF 97 55 61 54 C2 C3 E0 17 09 [15:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 43 2B 47 00 6F 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 78 3D 00 00 F4 03 04 00 9E A7 20 67 B6 04 01 00 00 3C D4 3F F7 62 FB 1B A5 [15:18:00]CommunicateWithHost err = 0 [15:18:00]CheckOFDResponse [15:18:00]1017 (14) - 77093643461234 [15:18:00]1041 (16) - 0000000000963325 [15:18:00]1040 (4) - 15736 [15:18:00]1012 (4) - 29.10.2024 09:15 [15:18:00]1206 (1) - 0 [15:18:00]OFD Sender: Remove packet 15736 [15:18:00]ProducePacketName [15:18:00]name=ofd_packets/00015736 [15:18:00]NVStorageDeleteData [15:18:01]Write to MH i2c: 01 00 00 25 4E 73 [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 07 00 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: 01 07 00 25 4E 00 00 00 00 00 A5 0C 2B [15:18:01]RasterBufferAndPrint [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]line [15:18:01]written 0, free lines is 3243 [15:18:01]MH_Cut [15:18:01]Write to MH i2c: D1 01 00 2C 4E 01 4C [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 01 00 [15:18:01]MH_I2C_Read... [15:18:01]Read from MH i2c: D1 01 00 2C 4E 00 4B [15:18:01]Write to MH i2c: 01 00 00 2D 4E 7B [15:18:01]Write i2c OK [15:18:01]MH_I2C_Read... [15:18:01]OFD Sender: No OFD packet to send [15:18:01]*** Cut start [15:18:01]*** Partial cut [15:18:01]*** CUTSNS_PIN = 1 [15:18:01]*** CUTSNS_PIN = 0 [15:18:02]*** Brake cut motor [15:18:02]Read from MH i2c: 01 [15:18:02]MH_I2C_Read... [15:18:02]*** Stop cut motor [15:18:02]*** Cut end [15:18:02]Read from MH i2c: 01 07 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: 01 07 00 2D 4E 00 00 00 00 00 FF 0F 90 [15:18:02]process_action close_receipt done [15:18:02]requested_data is exist [15:18:02]produce_requested_data [15:18:02]requested_item fm.sn is exist - process it [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 11 00 00 [15:18:02]Write to MH i2c: E2 08 00 2E 4E 80 11 00 00 00 00 00 00 F6 [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 17 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 17 00 2E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 45 [15:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:18:02]wFMCommunicate OK [15:18:02]requested_item fd.num is exist - process it [15:18:02]SAM_PROTO_GetFieldsCounters [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 13 00 00 [15:18:02]Write to MH i2c: E2 08 00 2F 4E 80 13 00 00 00 00 00 00 F9 [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 62 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 62 00 2F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 78 3D 00 00 0E 04 04 00 AC 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 74 [15:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 78 3D 00 00 0E 04 04 00 AC 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 [15:18:02]wFMCommunicate OK [15:18:02]SAM_PROTO_GetFieldsCounters done [15:18:02]requested_item shift.num is exist - process it [15:18:02]requested_item shift.opened is exist - process it [15:18:02]req_shift_opened [15:18:02]FM_GetShiftState [15:18:02]SAM_PROTO_GetShiftState [15:18:02]wFMCommunicate request_size=4 [15:18:02]MH_SAM_APDU [15:18:02]CAPDU: 80 13 01 00 [15:18:02]Write to MH i2c: E2 08 00 30 4E 80 13 01 00 00 00 00 00 FB [15:18:02]Write i2c OK [15:18:02]MH_I2C_Read... [15:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:02]Read from MH i2c: E2 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 [15:18:02]MH_I2C_Read... [15:18:02]Read from MH i2c: E2 0E 00 30 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 50 [15:18:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:18:02]wFMCommunicate OK [15:18:02]SAM_PROTO_GetShiftState done [15:18:02]FM_GetShiftState done [15:18:02]req_shift_opened done [15:18:02]requested_item shift.open_date is exist - process it [15:18:02]req_shift_open_date [15:18:02]req_shift_open_date done [15:18:02]produce_requested_data done [15:18:02]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15736,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:18:02]process_action_free close_receipt [15:18:02]json_value_free [15:18:02]json_value_free done [15:18:02]process_json_proto returns [15:18:02]Send response to host [15:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15736,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:18:02]free response buf [15:18:02]execute_script done [15:18:02]execute_script returns [15:18:02]free content buf [15:18:02]Sock 9.Close socket [15:18:02]Sock 9.Thread stoped [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29: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:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]OFD Sender: No OFD packet to send [15:34:52]OFD Sender: No OFD packet to send [15:34:57]OFD Sender: No OFD packet to send [15:35:02]OFD Sender: No OFD packet to send [15:35:07]OFD Sender: No OFD packet to send [15:35:12]OFD Sender: No OFD packet to send [15:35:17]OFD Sender: No OFD packet to send [15:35:22]OFD Sender: No OFD packet to send [15:35:27]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:18]accept exits with 8 [15:45:18]New connection [15:45:18]New thread 3066588516 created [15:45:18]Thread 3066731876 joined [15:45:18]Waiting for new connection... [15:45:18] Sock 8.Parse request [15:45:18]Sock 8.Check first char [15:45:18]Sock 8.First char is OK [15:45:18]request: POST /json_proto HTTP/1.0 [15:45:18]Method: POST [15:45:18]URL: /json_proto [15:45:18]Method is POST - this is cgi request [15:45:18]url: /json_proto [15:45:18]query_string will be loaded in cgi processing [15:45:18]execute_cgi json_proto POST (null) [15:45:18]execute_cgi path=json_proto method=POST [15:45:18]POST find Content-Length [15:45:18]Host: 172.17.54.195:8080 [15:45:18]Content-Length: 676 [15:45:18]Content-Type: application/json [15:45:18] [15:45:18]POST finish read [15:45:18]Found Content-Length = 676 [15:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:45:18]execute_script... [15:45: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)16286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:45:18]POST & json_proto [15:45:18]process_json_proto [15:45:18]json parsed OK: [15:45:18]protocol is kg_v1.0 [15:45:18]action value=close_receipt [15:45:18]process_action close_receipt [15:45:18]cmd_close_receipt [15:45:18]MH_GetDate [15:45:18]Write to MH i2c: F0 00 00 31 4E 6E [15:45:18]Write i2c OK [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: F0 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: F0 09 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: F0 09 00 31 4E 00 1A 03 21 67 8D 90 A3 66 42 [15:45:18]GetLastDocTimeStamp 1730215090 [15:45:18]current date 1730216730 [15:45:18]FM_GetShiftState [15:45:18]SAM_PROTO_GetShiftState [15:45:18]wFMCommunicate request_size=4 [15:45:18]MH_SAM_APDU [15:45:18]CAPDU: 80 13 01 00 [15:45:18]Write to MH i2c: E2 08 00 32 4E 80 13 01 00 00 00 00 00 FD [15:45:18]Write i2c OK [15:45:18]MH_I2C_Read... [15:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:18]Read from MH i2c: E2 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 0E 00 [15:45:18]MH_I2C_Read... [15:45:18]Read from MH i2c: E2 0E 00 32 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 52 [15:45:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:45:18]wFMCommunicate OK [15:45:18]SAM_PROTO_GetShiftState done [15:45:18]FM_GetShiftState done [15:45:18]opened in 1730161559 [15:45:18]opened+sec_in_day 1730247959 [15:45:18]quantity*price = 30038 [15:45:18]sum+1 = 30039 [15:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 83 29.10.2024 15:45 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15737 ФПД: 90180499144277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154530&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15737&fm=90180499144277&tin=02508201610067®Number=0000000000161798&sum=30000 [15:45:19]StoreToDocumentArchive [15:45:19]shift 172 fd 15737 [15:45:19]save to /storage/0172/doc_00015737 [15:45:19]save last doc name /storage/0172/doc_00015737 to /storage/kkm_last_doc_name [15:45:19]save OK [15:45:19]Clear old archive folders... [15:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:19]tlvbuf is 003199F0 [15:45:19]SAM_PROTO_ClearQueue [15:45:19]wFMCommunicate request_size=4 [15:45:19]MH_SAM_APDU [15:45:19]CAPDU: 80 09 00 00 [15:45:19]Write to MH i2c: E2 08 00 3F 4E 80 09 00 00 00 00 00 00 FF [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:19]Read from MH i2c: E2 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 03 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 03 00 3F 4E 00 90 00 01 [15:45:19]RAPDU: 90 00 [15:45:19]wFMCommunicate OK [15:45:19]SAM_PROTO_ClearQueue done [15:45:19]KKMCreateOFDPacket [15:45:19]OFDProtocolAddRootSTLVToBuf [15:45:19]FM_MakeSignedData [15:45:19]FM_MakeSignedData [15:45:19]SAM_PROTO_SignData [15:45:19]wFMCommunicate request_size=4 [15:45:19]MH_SAM_APDU [15:45:19]CAPDU: 80 0D 01 02 [15:45:19]Write to MH i2c: E2 08 00 40 4E 80 0D 01 02 00 00 00 00 07 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:19]Read from MH i2c: E2 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 03 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 03 00 40 4E 00 90 00 02 [15:45:19]RAPDU: 90 00 [15:45:19]wFMCommunicate OK [15:45:19]wFMCommunicate request_size=255 [15:45:19]MH_SAM_APDU [15:45:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 1A 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 79 3D 00 00 35 04 06 00 52 [15:45:19]Write to MH i2c: E2 02 01 41 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 53 00 00 00 F4 03 04 00 1A 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 79 3D 00 00 35 04 06 00 52 00 00 39 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 41 4E 00 90 00 03 [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]wFMCommunicate request_size=10 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 02 02 05 04 C8 9D FE 55 [15:45:20]Write to MH i2c: E2 0D 00 42 4E 80 0D 02 02 05 00 04 C8 9D FE 55 00 00 D0 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 42 4E 00 90 00 04 [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 03 02 [15:45:20]Write to MH i2c: E2 08 00 43 4E 80 0D 03 02 00 00 00 00 0C [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 0B 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 0B 00 43 4E 00 4F 60 2D 18 7A A2 DC 28 90 00 21 [15:45:20]RAPDU: 4F 60 2D 18 7A A2 DC 28 90 00 [15:45:20]wFMCommunicate OK [15:45:20]SAM_PROTO_SignData done [15:45:20]FM_MakeSignedData done [15:45:20]CreateOFDProtocolMessage [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 11 00 00 [15:45:20]Write to MH i2c: E2 08 00 44 4E 80 11 00 00 00 00 00 00 0C [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 17 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 17 00 44 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 5B [15:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:45:20]wFMCommunicate OK [15:45:20]CreateOFDProtocolMessage done [15:45:20]OFDSenderStorePacket 15737 [15:45:20]StoreOFDPacket docnum=15737 [15:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 6F EA 07 01 73 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 35 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 53 00 00 00 F4 03 04 00 1A 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 79 3D 00 00 35 04 06 00 52 04 C8 9D FE 55 4F 60 2D 18 7A A2 DC 28 [15:45:20]CheckFolder [15:45:20]dirname=/storage/ofd_packets [15:45:20]CheckFolder done [15:45:20]ProducePacketName [15:45:20]name=ofd_packets/00015737 [15:45:20]NVStorageSaveData ofd_packets/00015737 [15:45:20]File name is /storage/ofd_packets/00015737 [15:45:20]Write 301 bytes [15:45:20]NVStorageSaveData done [15:45:20]OFDSenderStorePacket done [15:45:20]KKMCreateOFDPacket done [15:45:20]NVStorageSaveData kkm_last_timestamp [15:45:20]File name is /storage/kkm_last_timestamp [15:45:20]Write 4 bytes [15:45:20]NVStorageSaveData done [15:45:20]ExternCall_PrintAddStr [15:45:20]wPrintStart [15:45:20]Write to MH i2c: 01 00 00 45 4E 93 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: 01 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: 01 07 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: 01 07 00 45 4E 00 00 00 00 00 FF 0F A8 [15:45:20]RasterBufferAndPrint [15:45:20]line Счет N : (1)16286 [15:45:20]line ИНН: 02508201610067 [15:45:20]line Контрольно-Кассовый Чек [15:45:20]line ПРОДАЖА [15:45:20]line ТРК (МРК, ГНК) : 21 [15:45:20]line Товар: 2710124130 [15:45:20]line Аи-92-К-5 [15:45:20]line 4.490 * 66.90 [15:45:20]line = 300.38 [15:45:20]line НДС 12% НСП 1% [15:45:20]line > о реализуемом товаре [15:45:20]line ОКРУГЛЕНИЕ: -0.38 [15:45:20]line ИТОГО: 300.00 [15:45:20]line Внесено: 300.00 [15:45:20]line СДАЧА: 0.00 [15:45:20]line НСП 1% : 2.66 [15:45:20]line НДС 12% : 31.90 [15:45:20]line Наличными: 300.00 [15:45:20]line Безнал.: 0.00 [15:45:20]line Место: АЗС № 178 "Партнер Нефть" [15:45:20]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:45:20]line СНО: Общий режим [15:45:20]line Чек 83 29.10.2024 15:45 [15:45:20]line Смена: 172 ФФД: 1.0 [15:45:20]line ЗНМ: 0300000014 [15:45:20]line РНМ: 0000000000161798 [15:45:20]line Версия ККМ: v1.0 [15:45:20]line ФМ: 0000000000963325 [15:45:20]line ФД: 15737 [15:45:20]line ФПД: 90180499144277 [15:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154530&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15737&fm=90180499144277&tin=02508201610067®Number=0000000000161798&sum=30000 [15:45:20]OFD Sender: Processing packet 15737 [packets to send 4, broken 3] [15:45:20]ProducePacketName [15:45:20]name=ofd_packets/00015737 [15:45:20]OFD Sender: To server: pG, [15:45:20]CommunicateWithHost lk.salyk.kg:30040 [15:45:20]ConnectInit lk.salyk.kg [15:45:20]written 0, free lines is 4095 [15:45:20]Connected sock=10 [15:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 6F EA 07 01 73 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 35 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 53 00 00 00 F4 03 04 00 1A 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 79 3D 00 00 35 04 06 00 52 04 C8 9D FE 55 4F 60 2D 18 7A A2 DC 28 [15:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 A8 FF 47 00 B9 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 79 3D 00 00 F4 03 04 00 06 AE 20 67 B6 04 01 00 00 DD 54 CA 3E 49 68 2D 73 [15:45:20]CommunicateWithHost err = 0 [15:45:20]CheckOFDResponse [15:45:20]1017 (14) - 77093643461234 [15:45:20]1041 (16) - 0000000000963325 [15:45:20]1040 (4) - 15737 [15:45:20]1012 (4) - 29.10.2024 09:42 [15:45:20]1206 (1) - 0 [15:45:20]OFD Sender: Remove packet 15737 [15:45:20]ProducePacketName [15:45:20]name=ofd_packets/00015737 [15:45:20]NVStorageDeleteData [15:45:21]Write to MH i2c: 01 00 00 70 4E BE [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 70 4E 00 00 00 00 00 0B 0D DD [15:45:21]RasterBufferAndPrint [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]line [15:45:21]written 0, free lines is 3345 [15:45:21]MH_Cut [15:45:21]Write to MH i2c: D1 01 00 77 4E 01 97 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 01 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: D1 01 00 77 4E 00 96 [15:45:21]Write to MH i2c: 01 00 00 78 4E C6 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]OFD Sender: No OFD packet to send [15:45:21]*** Cut start [15:45:21]*** Partial cut [15:45:21]*** CUTSNS_PIN = 1 [15:45:21]*** CUTSNS_PIN = 0 [15:45:22]*** Brake cut motor [15:45:22]Read from MH i2c: 01 [15:45:22]MH_I2C_Read... [15:45:22]*** Stop cut motor [15:45:22]*** Cut end [15:45:22]Read from MH i2c: 01 07 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 78 4E 00 00 00 00 00 FF 0F DB [15:45:22]process_action close_receipt done [15:45:22]requested_data is exist [15:45:22]produce_requested_data [15:45:22]requested_item fm.sn is exist - process it [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 11 00 00 [15:45:22]Write to MH i2c: E2 08 00 79 4E 80 11 00 00 00 00 00 00 41 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 17 00 79 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 90 [15:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:45:22]wFMCommunicate OK [15:45:22]requested_item fd.num is exist - process it [15:45:22]SAM_PROTO_GetFieldsCounters [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 00 00 [15:45:22]Write to MH i2c: E2 08 00 7A 4E 80 13 00 00 00 00 00 00 44 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 62 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 62 00 7A 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 79 3D 00 00 0E 04 04 00 AC 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 C3 [15:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 79 3D 00 00 0E 04 04 00 AC 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 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetFieldsCounters done [15:45:22]requested_item shift.num is exist - process it [15:45:22]requested_item shift.opened is exist - process it [15:45:22]req_shift_opened [15:45:22]FM_GetShiftState [15:45:22]SAM_PROTO_GetShiftState [15:45:22]wFMCommunicate request_size=4 [15:45:22]MH_SAM_APDU [15:45:22]CAPDU: 80 13 01 00 [15:45:22]Write to MH i2c: E2 08 00 7B 4E 80 13 01 00 00 00 00 00 46 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:22]Read from MH i2c: E2 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: E2 0E 00 7B 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9B [15:45:22]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:45:22]wFMCommunicate OK [15:45:22]SAM_PROTO_GetShiftState done [15:45:22]FM_GetShiftState done [15:45:22]req_shift_opened done [15:45:22]requested_item shift.open_date is exist - process it [15:45:22]req_shift_open_date [15:45:22]req_shift_open_date done [15:45:22]produce_requested_data done [15:45:22]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15737,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:45:22]process_action_free close_receipt [15:45:22]json_value_free [15:45:22]json_value_free done [15:45:22]process_json_proto returns [15:45:22]Send response to host [15:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15737,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:45:22]free response buf [15:45:22]execute_script done [15:45:22]execute_script returns [15:45:22]free content buf [15:45:22]Sock 8.Close socket [15:45:22]Sock 8.Thread stoped [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:45:58]accept exits with 9 [15:45:58]New connection [15:45:58]New thread 3066731876 created [15:45:58]Thread 3066588516 joined [15:45:58]Waiting for new connection... [15:45:58] Sock 9.Parse request [15:45:58]Sock 9.Check first char [15:45:58]Sock 9.First char is OK [15:45:58]request: POST /json_proto HTTP/1.0 [15:45:58]Method: POST [15:45:58]URL: /json_proto [15:45:58]Method is POST - this is cgi request [15:45:58]url: /json_proto [15:45:58]query_string will be loaded in cgi processing [15:45:58]execute_cgi json_proto POST (null) [15:45:58]execute_cgi path=json_proto method=POST [15:45:58]POST find Content-Length [15:45:58]Host: 172.17.54.195:8080 [15:45:58]Content-Length: 662 [15:45:58]Content-Type: application/json [15:45:58] [15:45:58]POST finish read [15:45:58]Found Content-Length = 662 [15:45:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 1.170, "sum" : 80.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 80.00, "total" : 80.00, "payments": [ { "type": 0, "sum" : 80.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:58]execute_script... [15:45: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)16287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 1.170, "sum" : 80.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 80.00, "total" : 80.00, "payments": [ { "type": 0, "sum" : 80.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:58]POST & json_proto [15:45:58]process_json_proto [15:45:58]json parsed OK: [15:45:58]protocol is kg_v1.0 [15:45:58]action value=close_receipt [15:45:58]process_action close_receipt [15:45:58]cmd_close_receipt [15:45:58]MH_GetDate [15:45:58]Write to MH i2c: F0 00 00 7C 4E B9 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: F0 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: F0 09 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: F0 09 00 7C 4E 00 42 03 21 67 8D 90 A3 66 B5 [15:45:58]GetLastDocTimeStamp 1730216730 [15:45:58]current date 1730216770 [15:45:58]FM_GetShiftState [15:45:58]SAM_PROTO_GetShiftState [15:45:58]wFMCommunicate request_size=4 [15:45:58]MH_SAM_APDU [15:45:58]CAPDU: 80 13 01 00 [15:45:58]Write to MH i2c: E2 08 00 7D 4E 80 13 01 00 00 00 00 00 48 [15:45:58]Write i2c OK [15:45:58]MH_I2C_Read... [15:45:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:58]Read from MH i2c: E2 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 0E 00 [15:45:58]MH_I2C_Read... [15:45:58]Read from MH i2c: E2 0E 00 7D 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9D [15:45:58]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:45:58]wFMCommunicate OK [15:45:58]SAM_PROTO_GetShiftState done [15:45:58]FM_GetShiftState done [15:45:58]opened in 1730161559 [15:45:58]opened+sec_in_day 1730247959 [15:45:58]quantity*price = 8002 [15:45:58]sum+1 = 8004 [15:45:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 80.00 Внесено: 80.00 СДАЧА: 0.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 84 29.10.2024 15:46 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15738 ФПД: 48246413469381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154610&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15738&fm=48246413469381&tin=02508201610067®Number=0000000000161798&sum=8000 [15:45:59]StoreToDocumentArchive [15:45:59]shift 172 fd 15738 [15:45:59]save to /storage/0172/doc_00015738 [15:45:59]save last doc name /storage/0172/doc_00015738 to /storage/kkm_last_doc_name [15:45:59]save OK [15:45:59]Clear old archive folders... [15:45:59]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:45:59]tlvbuf is 003DB750 [15:45:59]SAM_PROTO_ClearQueue [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 09 00 00 [15:45:59]Write to MH i2c: E2 08 00 8A 4E 80 09 00 00 00 00 00 00 4A [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 8A 4E 00 90 00 4C [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_ClearQueue done [15:45:59]KKMCreateOFDPacket [15:45:59]OFDProtocolAddRootSTLVToBuf [15:45:59]FM_MakeSignedData [15:45:59]FM_MakeSignedData [15:45:59]SAM_PROTO_SignData [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 01 02 [15:45:59]Write to MH i2c: E2 08 00 8B 4E 80 0D 01 02 00 00 00 00 52 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 8B 4E 00 90 00 4D [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=255 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 04 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 43 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 42 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7A 3D 00 00 35 04 06 00 2B E1 3E [15:45:59]Write to MH i2c: E2 02 01 8C 4E 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 04 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 43 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 42 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7A 3D 00 00 35 04 06 00 2B E1 3E 00 00 46 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 8C 4E 00 90 00 4E [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=8 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 02 02 03 56 26 C5 [15:45:59]Write to MH i2c: E2 0B 00 8D 4E 80 0D 02 02 03 00 56 26 C5 00 00 9C [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:59]Read from MH i2c: E2 03 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 03 00 8D 4E 00 90 00 4F [15:45:59]RAPDU: 90 00 [15:45:59]wFMCommunicate OK [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 0D 03 02 [15:45:59]Write to MH i2c: E2 08 00 8E 4E 80 0D 03 02 00 00 00 00 57 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 0B 00 8E 4E 00 D0 A6 52 32 78 D2 AB 81 90 00 C8 [15:45:59]RAPDU: D0 A6 52 32 78 D2 AB 81 90 00 [15:45:59]wFMCommunicate OK [15:45:59]SAM_PROTO_SignData done [15:45:59]FM_MakeSignedData done [15:45:59]CreateOFDProtocolMessage [15:45:59]wFMCommunicate request_size=4 [15:45:59]MH_SAM_APDU [15:45:59]CAPDU: 80 11 00 00 [15:45:59]Write to MH i2c: E2 08 00 8F 4E 80 11 00 00 00 00 00 00 57 [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:59]Read from MH i2c: E2 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: E2 17 00 8F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A6 [15:45:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:45:59]wFMCommunicate OK [15:45:59]CreateOFDProtocolMessage done [15:45:59]OFDSenderStorePacket 15738 [15:45:59]StoreOFDPacket docnum=15738 [15:45:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 6D 5B 05 01 DB C2 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 04 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 43 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 42 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7A 3D 00 00 35 04 06 00 2B E1 3E 56 26 C5 D0 A6 52 32 78 D2 AB 81 [15:45:59]CheckFolder [15:45:59]dirname=/storage/ofd_packets [15:45:59]CheckFolder done [15:45:59]ProducePacketName [15:45:59]name=ofd_packets/00015738 [15:45:59]NVStorageSaveData ofd_packets/00015738 [15:45:59]File name is /storage/ofd_packets/00015738 [15:45:59]Write 299 bytes [15:45:59]NVStorageSaveData done [15:45:59]OFDSenderStorePacket done [15:45:59]KKMCreateOFDPacket done [15:45:59]NVStorageSaveData kkm_last_timestamp [15:45:59]File name is /storage/kkm_last_timestamp [15:45:59]Write 4 bytes [15:45:59]NVStorageSaveData done [15:45:59]ExternCall_PrintAddStr [15:45:59]wPrintStart [15:45:59]Write to MH i2c: 01 00 00 90 4E DE [15:45:59]Write i2c OK [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 [15:45:59]MH_I2C_Read... [15:45:59]Read from MH i2c: 01 07 00 90 4E 00 00 00 00 00 FF 0F F3 [15:45:59]RasterBufferAndPrint [15:45:59]line Счет N : (1)16287 [15:45:59]line ИНН: 02508201610067 [15:45:59]line Контрольно-Кассовый Чек [15:45:59]line ПРОДАЖА [15:45:59]line ТРК (МРК, ГНК) : 12 [15:45:59]line Товар: 50.50.0 [15:45:59]line SUPER 92-К-5 [15:45:59]line 1.170 * 68.40 [15:45:59]line = 80.03 [15:45:59]line НДС 12% НСП 1% [15:45:59]line > о реализуемом товаре [15:45:59]line ОКРУГЛЕНИЕ: -0.03 [15:45:59]line ИТОГО: 80.00 [15:45:59]line Внесено: 80.00 [15:45:59]line СДАЧА: 0.00 [15:45:59]line НСП 1% : 0.71 [15:45:59]line НДС 12% : 8.50 [15:45:59]line Наличными: 80.00 [15:45:59]line Безнал.: 0.00 [15:45:59]line Место: АЗС № 178 "Партнер Нефть" [15:45:59]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:45:59]line СНО: Общий режим [15:45:59]line Чек 84 29.10.2024 15:46 [15:45:59]line Смена: 172 ФФД: 1.0 [15:45:59]line ЗНМ: 0300000014 [15:45:59]line РНМ: 0000000000161798 [15:45:59]line Версия ККМ: v1.0 [15:45:59]line ФМ: 0000000000963325 [15:45:59]line ФД: 15738 [15:45:59]line ФПД: 48246413469381 [15:46:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154610&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15738&fm=48246413469381&tin=02508201610067®Number=0000000000161798&sum=8000 [15:46:00]OFD Sender: Processing packet 15738 [packets to send 4, broken 3] [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00015738 [15:46:00]OFD Sender: To server: pG, [15:46:00]CommunicateWithHost lk.salyk.kg:30040 [15:46:00]ConnectInit lk.salyk.kg [15:46:00]written 0, free lines is 4095 [15:46:00]Connected sock=10 [15:46:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 6D 5B 05 01 DB C2 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 04 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 43 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 42 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7A 3D 00 00 35 04 06 00 2B E1 3E 56 26 C5 D0 A6 52 32 78 D2 AB 81 [15:46:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 26 FA 47 00 9C B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7A 3D 00 00 F4 03 04 00 2E AE 20 67 B6 04 01 00 00 4A 40 EE D8 F8 9E 7C 71 [15:46:00]CommunicateWithHost err = 0 [15:46:00]CheckOFDResponse [15:46:00]1017 (14) - 77093643461234 [15:46:00]1041 (16) - 0000000000963325 [15:46:00]1040 (4) - 15738 [15:46:00]1012 (4) - 29.10.2024 09:43 [15:46:00]1206 (1) - 0 [15:46:00]OFD Sender: Remove packet 15738 [15:46:00]ProducePacketName [15:46:00]name=ofd_packets/00015738 [15:46:00]NVStorageDeleteData [15:46:00]Write to MH i2c: 01 00 00 BB 4E 09 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: 01 07 00 BB 4E 00 00 00 00 00 EF 0C 0B [15:46:00]RasterBufferAndPrint [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]line [15:46:00]written 0, free lines is 3317 [15:46:00]MH_Cut [15:46:00]Write to MH i2c: D1 01 00 C2 4E 01 E2 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 [15:46:00]MH_I2C_Read... [15:46:00]Read from MH i2c: D1 01 00 C2 4E 00 E1 [15:46:00]Write to MH i2c: 01 00 00 C3 4E 11 [15:46:00]Write i2c OK [15:46:00]MH_I2C_Read... [15:46:01]OFD Sender: No OFD packet to send [15:46:01]*** Cut start [15:46:01]*** Partial cut [15:46:01]*** CUTSNS_PIN = 1 [15:46:01]*** CUTSNS_PIN = 0 [15:46:01]*** Brake cut motor [15:46:02]Read from MH i2c: 01 [15:46:02]MH_I2C_Read... [15:46:02]*** Stop cut motor [15:46:02]*** Cut end [15:46:02]Read from MH i2c: 01 07 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: 01 07 00 C3 4E 00 00 00 00 00 FF 0F 26 [15:46:02]process_action close_receipt done [15:46:02]requested_data is exist [15:46:02]produce_requested_data [15:46:02]requested_item fm.sn is exist - process it [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 11 00 00 [15:46:02]Write to MH i2c: E2 08 00 C4 4E 80 11 00 00 00 00 00 00 8C [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 17 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 17 00 C4 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 DB [15:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:46:02]wFMCommunicate OK [15:46:02]requested_item fd.num is exist - process it [15:46:02]SAM_PROTO_GetFieldsCounters [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 13 00 00 [15:46:02]Write to MH i2c: E2 08 00 C5 4E 80 13 00 00 00 00 00 00 8F [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 62 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 62 00 C5 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7A 3D 00 00 0E 04 04 00 AC 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 12 [15:46:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7A 3D 00 00 0E 04 04 00 AC 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 [15:46:02]wFMCommunicate OK [15:46:02]SAM_PROTO_GetFieldsCounters done [15:46:02]requested_item shift.num is exist - process it [15:46:02]requested_item shift.opened is exist - process it [15:46:02]req_shift_opened [15:46:02]FM_GetShiftState [15:46:02]SAM_PROTO_GetShiftState [15:46:02]wFMCommunicate request_size=4 [15:46:02]MH_SAM_APDU [15:46:02]CAPDU: 80 13 01 00 [15:46:02]Write to MH i2c: E2 08 00 C6 4E 80 13 01 00 00 00 00 00 91 [15:46:02]Write i2c OK [15:46:02]MH_I2C_Read... [15:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:02]Read from MH i2c: E2 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 0E 00 [15:46:02]MH_I2C_Read... [15:46:02]Read from MH i2c: E2 0E 00 C6 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E6 [15:46:02]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:46:02]wFMCommunicate OK [15:46:02]SAM_PROTO_GetShiftState done [15:46:02]FM_GetShiftState done [15:46:02]req_shift_opened done [15:46:02]requested_item shift.open_date is exist - process it [15:46:02]req_shift_open_date [15:46:02]req_shift_open_date done [15:46:02]produce_requested_data done [15:46:02]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15738,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:46:02]process_action_free close_receipt [15:46:02]json_value_free [15:46:02]json_value_free done [15:46:02]process_json_proto returns [15:46:02]Send response to host [15:46:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15738,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:46:02]free response buf [15:46:02]execute_script done [15:46:02]execute_script returns [15:46:02]free content buf [15:46:02]Sock 9.Close socket [15:46:02]Sock 9.Thread stoped [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:55]accept exits with 8 [15:46:55]New connection [15:46:55]New thread 3066588516 created [15:46:55]Thread 3066731876 joined [15:46:55]Waiting for new connection... [15:46:55] Sock 8.Parse request [15:46:55]Sock 8.Check first char [15:46:55]Sock 8.First char is OK [15:46:55]request: POST /json_proto HTTP/1.0 [15:46:55]Method: POST [15:46:55]URL: /json_proto [15:46:55]Method is POST - this is cgi request [15:46:55]url: /json_proto [15:46:55]query_string will be loaded in cgi processing [15:46:55]execute_cgi json_proto POST (null) [15:46:55]execute_cgi path=json_proto method=POST [15:46:55]POST find Content-Length [15:46:55]Host: 172.17.54.195:8080 [15:46:55]Content-Length: 678 [15:46:55]Content-Type: application/json [15:46:55] [15:46:55]POST finish read [15:46:55]Found Content-Length = 678 [15:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [15:46:55]execute_script... [15:46: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)16288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [15:46:55]POST & json_proto [15:46:55]process_json_proto [15:46:55]json parsed OK: [15:46:55]protocol is kg_v1.0 [15:46:55]action value=close_receipt [15:46:55]process_action close_receipt [15:46:55]cmd_close_receipt [15:46:55]MH_GetDate [15:46:55]Write to MH i2c: F0 00 00 C7 4E 04 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 09 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 09 00 C7 4E 00 7B 03 21 67 8D 90 A3 66 39 [15:46:55]GetLastDocTimeStamp 1730216770 [15:46:55]current date 1730216827 [15:46:55]FM_GetShiftState [15:46:55]SAM_PROTO_GetShiftState [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 13 01 00 [15:46:55]Write to MH i2c: E2 08 00 C8 4E 80 13 01 00 00 00 00 00 93 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0E 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0E 00 C8 4E 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E8 [15:46:55]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:46:55]wFMCommunicate OK [15:46:55]SAM_PROTO_GetShiftState done [15:46:55]FM_GetShiftState done [15:46:55]opened in 1730161559 [15:46:55]opened+sec_in_day 1730247959 [15:46:55]quantity*price = 150037 [15:46:55]sum+1 = 150039 [15:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 85 29.10.2024 15:47 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15739 ФПД: 57993376111294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154707&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15739&fm=57993376111294&tin=02508201610067®Number=0000000000161798&sum=150000 [15:46:56]StoreToDocumentArchive [15:46:56]shift 172 fd 15739 [15:46:56]save to /storage/0172/doc_00015739 [15:46:56]save last doc name /storage/0172/doc_00015739 to /storage/kkm_last_doc_name [15:46:56]save OK [15:46:56]Clear old archive folders... [15:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:56]tlvbuf is B6F22370 [15:46:56]SAM_PROTO_ClearQueue [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 09 00 00 [15:46:56]Write to MH i2c: E2 08 00 D5 4E 80 09 00 00 00 00 00 00 95 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 09 00 00... 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 D5 4E 00 90 00 97 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]SAM_PROTO_ClearQueue done [15:46:56]KKMCreateOFDPacket [15:46:56]OFDProtocolAddRootSTLVToBuf [15:46:56]FM_MakeSignedData [15:46:56]FM_MakeSignedData [15:46:56]SAM_PROTO_SignData [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 0D 01 02 [15:46:56]Write to MH i2c: E2 08 00 D6 4E 80 0D 01 02 00 00 00 00 9D [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 01 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 D6 4E 00 90 00 98 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]wFMCommunicate request_size=255 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 7B 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7B 3D 00 00 35 04 06 00 34 BE A2 95 [15:46:56]Write to MH i2c: E2 02 01 D7 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 7B 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7B 3D 00 00 35 04 06 00 34 BE A2 95 00 00 84 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 D7 4E 00 90 00 99 [15:46:57]RAPDU: 90 00 [15:46:57]wFMCommunicate OK [15:46:57]wFMCommunicate request_size=7 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 0D 02 02 02 1A BE [15:46:57]Write to MH i2c: E2 0A 00 D8 4E 80 0D 02 02 02 00 1A BE 00 00 7C [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 D8 4E 00 90 00 9A [15:46:57]RAPDU: 90 00 [15:46:57]wFMCommunicate OK [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 0D 03 02 [15:46:57]Write to MH i2c: E2 08 00 D9 4E 80 0D 03 02 00 00 00 00 A2 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0B 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0B 00 D9 4E 00 22 6D 61 1E E3 04 CC BD 90 00 21 [15:46:57]RAPDU: 22 6D 61 1E E3 04 CC BD 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_SignData done [15:46:57]FM_MakeSignedData done [15:46:57]CreateOFDProtocolMessage [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 11 00 00 [15:46:57]Write to MH i2c: E2 08 00 DA 4E 80 11 00 00 00 00 00 00 A2 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 DA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F1 [15:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:46:57]wFMCommunicate OK [15:46:57]CreateOFDProtocolMessage done [15:46:57]OFDSenderStorePacket 15739 [15:46:57]StoreOFDPacket docnum=15739 [15:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 A3 A7 04 01 A9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 7B 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7B 3D 00 00 35 04 06 00 34 BE A2 95 1A BE 22 6D 61 1E E3 04 CC BD [15:46:57]CheckFolder [15:46:57]dirname=/storage/ofd_packets [15:46:57]CheckFolder done [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00015739 [15:46:57]NVStorageSaveData ofd_packets/00015739 [15:46:57]File name is /storage/ofd_packets/00015739 [15:46:57]Write 298 bytes [15:46:57]NVStorageSaveData done [15:46:57]OFDSenderStorePacket done [15:46:57]KKMCreateOFDPacket done [15:46:57]NVStorageSaveData kkm_last_timestamp [15:46:57]File name is /storage/kkm_last_timestamp [15:46:57]Write 4 bytes [15:46:57]NVStorageSaveData done [15:46:57]ExternCall_PrintAddStr [15:46:57]wPrintStart [15:46:57]Write to MH i2c: 01 00 00 DB 4E 29 [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 DB 4E 00 00 00 00 00 FF 0F 3E [15:46:57]RasterBufferAndPrint [15:46:57]line Счет N : (1)16288 [15:46:57]line ИНН: 02508201610067 [15:46:57]line Контрольно-Кассовый Чек [15:46:57]line ПРОДАЖА [15:46:57]line ТРК (МРК, ГНК) : 22 [15:46:57]line Товар: 2710194210 [15:46:57]line ДТ-К-5 [15:46:57]line 19.690 * 76.20 [15:46:57]line = 1500.38 [15:46:57]line НДС 12% НСП 1% [15:46:57]line > о реализуемом товаре [15:46:57]line ОКРУГЛЕНИЕ: -0.38 [15:46:57]line ИТОГО: 1500.00 [15:46:57]line Внесено: 1500.00 [15:46:57]line СДАЧА: 0.00 [15:46:57]line НСП 1% : 13.28 [15:46:57]line НДС 12% : 159.33 [15:46:57]line Наличными: 1500.00 [15:46:57]line Безнал.: 0.00 [15:46:57]line Место: АЗС № 178 "Партнер Нефть" [15:46:57]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:46:57]line СНО: Общий режим [15:46:57]line Чек 85 29.10.2024 15:47 [15:46:57]line Смена: 172 ФФД: 1.0 [15:46:57]line ЗНМ: 0300000014 [15:46:57]line РНМ: 0000000000161798 [15:46:57]line Версия ККМ: v1.0 [15:46:57]line ФМ: 0000000000963325 [15:46:57]line ФД: 15739 [15:46:57]line ФПД: 57993376111294 [15:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154707&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15739&fm=57993376111294&tin=02508201610067®Number=0000000000161798&sum=150000 [15:46:57]OFD Sender: Processing packet 15739 [packets to send 4, broken 3] [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00015739 [15:46:57]OFD Sender: To server: pG, [15:46:57]CommunicateWithHost lk.salyk.kg:30040 [15:46:57]ConnectInit lk.salyk.kg [15:46:57]written 0, free lines is 4095 [15:46:57]Connected sock=10 [15:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 A3 A7 04 01 A9 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 7B 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7B 3D 00 00 35 04 06 00 34 BE A2 95 1A BE 22 6D 61 1E E3 04 CC BD [15:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 6C C8 47 00 FF AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7B 3D 00 00 F4 03 04 00 67 AE 20 67 B6 04 01 00 00 A5 59 B6 42 30 41 FD 02 [15:46:57]CommunicateWithHost err = 0 [15:46:57]CheckOFDResponse [15:46:57]1017 (14) - 77093643461234 [15:46:57]1041 (16) - 0000000000963325 [15:46:57]1040 (4) - 15739 [15:46:57]1012 (4) - 29.10.2024 09:44 [15:46:57]1206 (1) - 0 [15:46:57]OFD Sender: Remove packet 15739 [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00015739 [15:46:57]NVStorageDeleteData [15:46:58]Write to MH i2c: 01 00 00 06 4F 55 [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: 01 [15:46:58]MH_I2C_Read... [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 06 4F 00 00 00 00 00 ED 0C 55 [15:46:58]RasterBufferAndPrint [15:46:58]line [15:46:58]line [15:46:58]line [15:46:58]line [15:46:58]line [15:46:58]written 0, free lines is 3318 [15:46:58]MH_Cut [15:46:58]Write to MH i2c: D1 01 00 0D 4F 01 2E [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: D1 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: D1 01 00 [15:46:58]MH_I2C_Read... [15:46:58]Read from MH i2c: D1 01 00 0D 4F 00 2D [15:46:58]Write to MH i2c: 01 00 00 0E 4F 5D [15:46:58]Write i2c OK [15:46:58]MH_I2C_Read... [15:46:58]OFD Sender: No OFD packet to send [15:46:58]*** Cut start [15:46:58]*** Partial cut [15:46:58]*** CUTSNS_PIN = 1 [15:46:58]*** CUTSNS_PIN = 0 [15:46:59]*** Brake cut motor [15:46:59]Read from MH i2c: 01 [15:46:59]MH_I2C_Read... [15:46:59]*** Stop cut motor [15:46:59]*** Cut end [15:46:59]Read from MH i2c: 01 07 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 0E 4F 00 00 00 00 00 FF 0F 72 [15:46:59]process_action close_receipt done [15:46:59]requested_data is exist [15:46:59]produce_requested_data [15:46:59]requested_item fm.sn is exist - process it [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 11 00 00 [15:46:59]Write to MH i2c: E2 08 00 0F 4F 80 11 00 00 00 00 00 00 D8 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 0F 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 27 [15:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:46:59]wFMCommunicate OK [15:46:59]requested_item fd.num is exist - process it [15:46:59]SAM_PROTO_GetFieldsCounters [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 13 00 00 [15:46:59]Write to MH i2c: E2 08 00 10 4F 80 13 00 00 00 00 00 00 DB [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 62 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 62 00 10 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7B 3D 00 00 0E 04 04 00 AC 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 62 [15:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7B 3D 00 00 0E 04 04 00 AC 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 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_GetFieldsCounters done [15:46:59]requested_item shift.num is exist - process it [15:46:59]requested_item shift.opened is exist - process it [15:46:59]req_shift_opened [15:46:59]FM_GetShiftState [15:46:59]SAM_PROTO_GetShiftState [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 13 01 00 [15:46:59]Write to MH i2c: E2 08 00 11 4F 80 13 01 00 00 00 00 00 DD [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 0E 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 0E 00 11 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 32 [15:46:59]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_GetShiftState done [15:46:59]FM_GetShiftState done [15:46:59]req_shift_opened done [15:46:59]requested_item shift.open_date is exist - process it [15:46:59]req_shift_open_date [15:46:59]req_shift_open_date done [15:46:59]produce_requested_data done [15:46:59]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15739,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:46:59]process_action_free close_receipt [15:46:59]json_value_free [15:46:59]json_value_free done [15:46:59]process_json_proto returns [15:46:59]Send response to host [15:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15739,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:46:59]free response buf [15:46:59]execute_script done [15:46:59]execute_script returns [15:46:59]free content buf [15:46:59]Sock 8.Close socket [15:46:59]Sock 8.Thread stoped [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:52]accept exits with 9 [15:47:52]New connection [15:47:52]New thread 3066731876 created [15:47:52]Thread 3066588516 joined [15:47:52]Waiting for new connection... [15:47:52] Sock 9.Parse request [15:47:52]Sock 9.Check first char [15:47:52]Sock 9.First char is OK [15:47:52]request: POST /json_proto HTTP/1.0 [15:47:52]Method: POST [15:47:52]URL: /json_proto [15:47:52]Method is POST - this is cgi request [15:47:52]url: /json_proto [15:47:52]query_string will be loaded in cgi processing [15:47:52]execute_cgi json_proto POST (null) [15:47:52]execute_cgi path=json_proto method=POST [15:47:52]POST find Content-Length [15:47:52]Host: 172.17.54.195:8080 [15:47:52]Content-Length: 666 [15:47:52]Content-Type: application/json [15:47:52] [15:47:52]POST finish read [15:47:52]Found Content-Length = 666 [15:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [15:47:52]execute_script... [15:47: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)16289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [15:47:52]POST & json_proto [15:47:52]process_json_proto [15:47:52]json parsed OK: [15:47:52]protocol is kg_v1.0 [15:47:52]action value=close_receipt [15:47:52]process_action close_receipt [15:47:52]cmd_close_receipt [15:47:52]MH_GetDate [15:47:52]Write to MH i2c: F0 00 00 12 4F 50 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 09 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 09 00 12 4F 00 B4 03 21 67 8D 90 A3 66 BE [15:47:52]GetLastDocTimeStamp 1730216827 [15:47:52]current date 1730216884 [15:47:52]FM_GetShiftState [15:47:52]SAM_PROTO_GetShiftState [15:47:52]wFMCommunicate request_size=4 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 13 01 00 [15:47:52]Write to MH i2c: E2 08 00 13 4F 80 13 01 00 00 00 00 00 DF [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0E 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0E 00 13 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 34 [15:47:52]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:47:52]wFMCommunicate OK [15:47:52]SAM_PROTO_GetShiftState done [15:47:52]FM_GetShiftState done [15:47:52]opened in 1730161559 [15:47:52]opened+sec_in_day 1730247959 [15:47:52]quantity*price = 40014 [15:47:52]sum+1 = 40015 [15:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 86 29.10.2024 15:48 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15740 ФПД: 132248539772165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154804&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15740&fm=132248539772165&tin=02508201610067®Number=0000000000161798&sum=40000 [15:47:54]StoreToDocumentArchive [15:47:54]shift 172 fd 15740 [15:47:54]save to /storage/0172/doc_00015740 [15:47:54]save last doc name /storage/0172/doc_00015740 to /storage/kkm_last_doc_name [15:47:54]save OK [15:47:54]Clear old archive folders... [15:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:47:54]tlvbuf is 002E3120 [15:47:54]SAM_PROTO_ClearQueue [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 09 00 00 [15:47:54]Write to MH i2c: E2 08 00 20 4F 80 09 00 00 00 00 00 00 E1 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 20 4F 00 90 00 E3 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_ClearQueue done [15:47:54]KKMCreateOFDPacket [15:47:54]OFDProtocolAddRootSTLVToBuf [15:47:54]FM_MakeSignedData [15:47:54]FM_MakeSignedData [15:47:54]SAM_PROTO_SignData [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 01 02 [15:47:54]Write to MH i2c: E2 08 00 21 4F 80 0D 01 02 00 00 00 00 E9 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 21 4F 00 90 00 E4 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=255 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 56 00 00 00 F4 03 04 00 B4 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7C 3D 00 00 35 04 06 00 78 47 83 [15:47:54]Write to MH i2c: E2 02 01 22 4F 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 56 00 00 00 F4 03 04 00 B4 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7C 3D 00 00 35 04 06 00 78 47 83 00 00 97 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 22 4F 00 90 00 E5 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=8 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 02 02 03 3C 35 05 [15:47:54]Write to MH i2c: E2 0B 00 23 4F 80 0D 02 02 03 00 3C 35 05 00 00 68 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 03 00 23 4F 00 90 00 E6 [15:47:54]RAPDU: 90 00 [15:47:54]wFMCommunicate OK [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 0D 03 02 [15:47:54]Write to MH i2c: E2 08 00 24 4F 80 0D 03 02 00 00 00 00 EE [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0B 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0B 00 24 4F 00 D6 27 CB 59 0F 69 AC 51 90 00 85 [15:47:54]RAPDU: D6 27 CB 59 0F 69 AC 51 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_SignData done [15:47:54]FM_MakeSignedData done [15:47:54]CreateOFDProtocolMessage [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 11 00 00 [15:47:54]Write to MH i2c: E2 08 00 25 4F 80 11 00 00 00 00 00 00 EE [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 25 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3D [15:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:47:54]wFMCommunicate OK [15:47:54]CreateOFDProtocolMessage done [15:47:54]OFDSenderStorePacket 15740 [15:47:54]StoreOFDPacket docnum=15740 [15:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 10 E3 05 01 0E B0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 56 00 00 00 F4 03 04 00 B4 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7C 3D 00 00 35 04 06 00 78 47 83 3C 35 05 D6 27 CB 59 0F 69 AC 51 [15:47:54]CheckFolder [15:47:54]dirname=/storage/ofd_packets [15:47:54]CheckFolder done [15:47:54]ProducePacketName [15:47:54]name=ofd_packets/00015740 [15:47:54]NVStorageSaveData ofd_packets/00015740 [15:47:54]File name is /storage/ofd_packets/00015740 [15:47:54]Write 299 bytes [15:47:54]NVStorageSaveData done [15:47:54]OFDSenderStorePacket done [15:47:54]KKMCreateOFDPacket done [15:47:54]NVStorageSaveData kkm_last_timestamp [15:47:54]File name is /storage/kkm_last_timestamp [15:47:54]Write 4 bytes [15:47:54]NVStorageSaveData done [15:47:54]ExternCall_PrintAddStr [15:47:54]wPrintStart [15:47:54]Write to MH i2c: 01 00 00 26 4F 75 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 26 4F 00 00 00 00 00 FF 0F 8A [15:47:54]RasterBufferAndPrint [15:47:54]line Счет N : (1)16289 [15:47:54]line ИНН: 02508201610067 [15:47:54]line Контрольно-Кассовый Чек [15:47:54]line ПРОДАЖА [15:47:54]line ТРК (МРК, ГНК) : 12 [15:47:54]line Товар: 50.50.0 [15:47:54]line SUPER 92-К-5 [15:47:54]line 5.850 * 68.40 [15:47:54]line = 400.14 [15:47:54]line НДС 12% НСП 1% [15:47:54]line > о реализуемом товаре [15:47:54]line ОКРУГЛЕНИЕ: -0.14 [15:47:54]line ИТОГО: 400.00 [15:47:54]line Внесено: 400.00 [15:47:54]line СДАЧА: 0.00 [15:47:54]line НСП 1% : 3.54 [15:47:54]line НДС 12% : 42.49 [15:47:54]line Наличными: 400.00 [15:47:54]line Безнал.: 0.00 [15:47:54]line Место: АЗС № 178 "Партнер Нефть" [15:47:54]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:47:54]line СНО: Общий режим [15:47:54]line Чек 86 29.10.2024 15:48 [15:47:54]line Смена: 172 ФФД: 1.0 [15:47:54]line ЗНМ: 0300000014 [15:47:54]line РНМ: 0000000000161798 [15:47:54]line Версия ККМ: v1.0 [15:47:54]line ФМ: 0000000000963325 [15:47:54]line ФД: 15740 [15:47:54]line ФПД: 132248539772165 [15:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T154804&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15740&fm=132248539772165&tin=02508201610067®Number=0000000000161798&sum=40000 [15:47:54]OFD Sender: Processing packet 15740 [packets to send 4, broken 3] [15:47:54]ProducePacketName [15:47:54]name=ofd_packets/00015740 [15:47:54]OFD Sender: To server: pG, [15:47:54]CommunicateWithHost lk.salyk.kg:30040 [15:47:54]ConnectInit lk.salyk.kg [15:47:54]written 0, free lines is 4095 [15:47:55]Connected sock=10 [15:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 10 E3 05 01 0E B0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 56 00 00 00 F4 03 04 00 B4 03 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7C 3D 00 00 35 04 06 00 78 47 83 3C 35 05 D6 27 CB 59 0F 69 AC 51 [15:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 45 39 47 00 87 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7C 3D 00 00 F4 03 04 00 A1 AE 20 67 B6 04 01 00 00 E7 34 B9 CA 50 4E A3 1D [15:47:55]CommunicateWithHost err = 0 [15:47:55]CheckOFDResponse [15:47:55]1017 (14) - 77093643461234 [15:47:55]1041 (16) - 0000000000963325 [15:47:55]1040 (4) - 15740 [15:47:55]1012 (4) - 29.10.2024 09:45 [15:47:55]1206 (1) - 0 [15:47:55]OFD Sender: Remove packet 15740 [15:47:55]ProducePacketName [15:47:55]name=ofd_packets/00015740 [15:47:55]NVStorageDeleteData [15:47:55]Write to MH i2c: 01 00 00 51 4F A0 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: 01 07 00 51 4F 00 00 00 00 00 17 0D CB [15:47:55]RasterBufferAndPrint [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]line [15:47:55]written 0, free lines is 3360 [15:47:55]MH_Cut [15:47:55]Write to MH i2c: D1 01 00 58 4F 01 79 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 01 00 [15:47:55]MH_I2C_Read... [15:47:55]Read from MH i2c: D1 01 00 58 4F 00 78 [15:47:55]Write to MH i2c: 01 00 00 59 4F A8 [15:47:55]Write i2c OK [15:47:55]MH_I2C_Read... [15:47:55]OFD Sender: No OFD packet to send [15:47:56]*** Cut start [15:47:56]*** Partial cut [15:47:56]*** CUTSNS_PIN = 1 [15:47:56]*** CUTSNS_PIN = 0 [15:47:56]*** Brake cut motor [15:47:56]Read from MH i2c: 01 [15:47:56]MH_I2C_Read... [15:47:56]*** Stop cut motor [15:47:56]*** Cut end [15:47:56]Read from MH i2c: 01 07 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: 01 07 00 59 4F 00 00 00 00 00 FF 0F BD [15:47:56]process_action close_receipt done [15:47:56]requested_data is exist [15:47:56]produce_requested_data [15:47:56]requested_item fm.sn is exist - process it [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 11 00 00 [15:47:56]Write to MH i2c: E2 08 00 5A 4F 80 11 00 00 00 00 00 00 23 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 17 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 17 00 5A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 72 [15:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:47:56]wFMCommunicate OK [15:47:56]requested_item fd.num is exist - process it [15:47:56]SAM_PROTO_GetFieldsCounters [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 13 00 00 [15:47:56]Write to MH i2c: E2 08 00 5B 4F 80 13 00 00 00 00 00 00 26 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:56]Read from MH i2c: E2 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 62 00 [15:47:56]MH_I2C_Read... [15:47:56]Read from MH i2c: E2 62 00 5B 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7C 3D 00 00 0E 04 04 00 AC 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 B1 [15:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7C 3D 00 00 0E 04 04 00 AC 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 [15:47:56]wFMCommunicate OK [15:47:56]SAM_PROTO_GetFieldsCounters done [15:47:56]requested_item shift.num is exist - process it [15:47:56]requested_item shift.opened is exist - process it [15:47:56]req_shift_opened [15:47:56]FM_GetShiftState [15:47:56]SAM_PROTO_GetShiftState [15:47:56]wFMCommunicate request_size=4 [15:47:56]MH_SAM_APDU [15:47:56]CAPDU: 80 13 01 00 [15:47:56]Write to MH i2c: E2 08 00 5C 4F 80 13 01 00 00 00 00 00 28 [15:47:56]Write i2c OK [15:47:56]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 5C 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 7D [15:47:57]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetShiftState done [15:47:57]FM_GetShiftState done [15:47:57]req_shift_opened done [15:47:57]requested_item shift.open_date is exist - process it [15:47:57]req_shift_open_date [15:47:57]req_shift_open_date done [15:47:57]produce_requested_data done [15:47:57]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15740,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:47:57]process_action_free close_receipt [15:47:57]json_value_free [15:47:57]json_value_free done [15:47:57]process_json_proto returns [15:47:57]Send response to host [15:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15740,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:47:57]free response buf [15:47:57]execute_script done [15:47:57]execute_script returns [15:47:57]free content buf [15:47:57]Sock 9.Close socket [15:47:57]Sock 9.Thread stoped [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:32]accept exits with 8 [15:54:32]New connection [15:54:32]New thread 3066588516 created [15:54:32]Thread 3066731876 joined [15:54:32]Waiting for new connection... [15:54:32] Sock 8.Parse request [15:54:32]Sock 8.Check first char [15:54:32]Sock 8.First char is OK [15:54:32]request: POST /json_proto HTTP/1.0 [15:54:32]Method: POST [15:54:32]URL: /json_proto [15:54:32]Method is POST - this is cgi request [15:54:32]url: /json_proto [15:54:32]query_string will be loaded in cgi processing [15:54:32]execute_cgi json_proto POST (null) [15:54:32]execute_cgi path=json_proto method=POST [15:54:32]POST find Content-Length [15:54:32]Host: 172.17.54.195:8080 [15:54:32]Content-Length: 671 [15:54:32]Content-Type: application/json [15:54:32] [15:54:32]POST finish read [15:54:32]Found Content-Length = 671 [15:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:54:32]execute_script... [15:54: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)16291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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:54:32]POST & json_proto [15:54:32]process_json_proto [15:54:32]json parsed OK: [15:54:32]protocol is kg_v1.0 [15:54:32]action value=close_receipt [15:54:32]process_action close_receipt [15:54:32]cmd_close_receipt [15:54:32]MH_GetDate [15:54:32]Write to MH i2c: F0 00 00 5D 4F 9B [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: F0 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: F0 09 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: F0 09 00 5D 4F 00 43 05 21 67 8D 90 A3 66 9A [15:54:32]GetLastDocTimeStamp 1730216884 [15:54:32]current date 1730217283 [15:54:32]FM_GetShiftState [15:54:32]SAM_PROTO_GetShiftState [15:54:32]wFMCommunicate request_size=4 [15:54:32]MH_SAM_APDU [15:54:32]CAPDU: 80 13 01 00 [15:54:32]Write to MH i2c: E2 08 00 5E 4F 80 13 01 00 00 00 00 00 2A [15:54:32]Write i2c OK [15:54:32]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 5E 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 7F [15:54:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:54:32]wFMCommunicate OK [15:54:32]SAM_PROTO_GetShiftState done [15:54:32]FM_GetShiftState done [15:54:32]opened in 1730161559 [15:54:32]opened+sec_in_day 1730247959 [15:54:32]quantity*price = 100000 [15:54:32]sum+1 = 100002 [15:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 87 29.10.2024 15:54 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15741 ФПД: 228291587172307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155444&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15741&fm=228291587172307&tin=02508201610067®Number=0000000000161798&sum=100000 [15:54:33]StoreToDocumentArchive [15:54:33]shift 172 fd 15741 [15:54:33]save to /storage/0172/doc_00015741 [15:54:33]save last doc name /storage/0172/doc_00015741 to /storage/kkm_last_doc_name [15:54:33]save OK [15:54:33]Clear old archive folders... [15:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:54:33]tlvbuf is 003258D0 [15:54:33]SAM_PROTO_ClearQueue [15:54:33]wFMCommunicate request_size=4 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 09 00 00 [15:54:33]Write to MH i2c: E2 08 00 6B 4F 80 09 00 00 00 00 00 00 2C [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 6B 4F 00 90 00 2E [15:54:33]RAPDU: 90 00 [15:54:33]wFMCommunicate OK [15:54:33]SAM_PROTO_ClearQueue done [15:54:33]KKMCreateOFDPacket [15:54:33]OFDProtocolAddRootSTLVToBuf [15:54:33]FM_MakeSignedData [15:54:33]FM_MakeSignedData [15:54:33]SAM_PROTO_SignData [15:54:33]wFMCommunicate request_size=4 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 0D 01 02 [15:54:33]Write to MH i2c: E2 08 00 6C 4F 80 0D 01 02 00 00 00 00 34 [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 6C 4F 00 90 00 2F [15:54:33]RAPDU: 90 00 [15:54:33]wFMCommunicate OK [15:54:33]wFMCommunicate request_size=255 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 44 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7D 3D 00 00 35 04 06 00 CF A1 46 [15:54:33]Write to MH i2c: E2 02 01 6D 4F 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 44 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7D 3D 00 00 35 04 06 00 CF A1 46 00 00 34 [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 6D 4F 00 90 00 30 [15:54:33]RAPDU: 90 00 [15:54:33]wFMCommunicate OK [15:54:33]wFMCommunicate request_size=8 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 0D 02 02 03 F5 67 D3 [15:54:33]Write to MH i2c: E2 0B 00 6E 4F 80 0D 02 02 03 00 F5 67 D3 00 00 6C [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 03 00 6E 4F 00 90 00 31 [15:54:33]RAPDU: 90 00 [15:54:33]wFMCommunicate OK [15:54:33]wFMCommunicate request_size=4 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 0D 03 02 [15:54:33]Write to MH i2c: E2 08 00 6F 4F 80 0D 03 02 00 00 00 00 39 [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 0B 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 0B 00 6F 4F 00 13 91 83 F4 6E 0C 8F 91 90 00 EF [15:54:33]RAPDU: 13 91 83 F4 6E 0C 8F 91 90 00 [15:54:33]wFMCommunicate OK [15:54:33]SAM_PROTO_SignData done [15:54:33]FM_MakeSignedData done [15:54:33]CreateOFDProtocolMessage [15:54:33]wFMCommunicate request_size=4 [15:54:33]MH_SAM_APDU [15:54:33]CAPDU: 80 11 00 00 [15:54:33]Write to MH i2c: E2 08 00 70 4F 80 11 00 00 00 00 00 00 39 [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:33]Read from MH i2c: E2 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 17 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: E2 17 00 70 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 88 [15:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:54:33]wFMCommunicate OK [15:54:33]CreateOFDProtocolMessage done [15:54:33]OFDSenderStorePacket 15741 [15:54:33]StoreOFDPacket docnum=15741 [15:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 0D CB 05 01 0F DA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 44 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7D 3D 00 00 35 04 06 00 CF A1 46 F5 67 D3 13 91 83 F4 6E 0C 8F 91 [15:54:33]CheckFolder [15:54:33]dirname=/storage/ofd_packets [15:54:33]CheckFolder done [15:54:33]ProducePacketName [15:54:33]name=ofd_packets/00015741 [15:54:33]NVStorageSaveData ofd_packets/00015741 [15:54:33]File name is /storage/ofd_packets/00015741 [15:54:33]Write 299 bytes [15:54:33]NVStorageSaveData done [15:54:33]OFDSenderStorePacket done [15:54:33]KKMCreateOFDPacket done [15:54:33]NVStorageSaveData kkm_last_timestamp [15:54:33]File name is /storage/kkm_last_timestamp [15:54:33]Write 4 bytes [15:54:33]NVStorageSaveData done [15:54:33]ExternCall_PrintAddStr [15:54:33]wPrintStart [15:54:33]Write to MH i2c: 01 00 00 71 4F C0 [15:54:33]Write i2c OK [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: 01 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: 01 07 00 [15:54:33]MH_I2C_Read... [15:54:33]Read from MH i2c: 01 07 00 71 4F 00 00 00 00 00 FF 0F D5 [15:54:33]RasterBufferAndPrint [15:54:33]line Счет N : (1)16291 [15:54:33]line ИНН: 02508201610067 [15:54:33]line Контрольно-Кассовый Чек [15:54:33]line ПРОДАЖА [15:54:33]line ТРК (МРК, ГНК) : 12 [15:54:33]line Товар: 50.50.0 [15:54:33]line SUPER 92-К-5 [15:54:33]line 14.620 * 68.40 [15:54:33]line = 1000.01 [15:54:33]line НДС 12% НСП 1% [15:54:33]line > о реализуемом товаре [15:54:33]line ОКРУГЛЕНИЕ: -0.01 [15:54:33]line ИТОГО: 1000.00 [15:54:33]line Внесено: 1000.00 [15:54:33]line СДАЧА: 0.00 [15:54:33]line НСП 1% : 8.85 [15:54:33]line НДС 12% : 106.20 [15:54:33]line Наличными: 1000.00 [15:54:33]line Безнал.: 0.00 [15:54:33]line Место: АЗС № 178 "Партнер Нефть" [15:54:33]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:54:33]line СНО: Общий режим [15:54:33]line Чек 87 29.10.2024 15:54 [15:54:33]line Смена: 172 ФФД: 1.0 [15:54:33]line ЗНМ: 0300000014 [15:54:33]line РНМ: 0000000000161798 [15:54:33]line Версия ККМ: v1.0 [15:54:33]line ФМ: 0000000000963325 [15:54:33]line ФД: 15741 [15:54:33]line ФПД: 228291587172307 [15:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155444&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15741&fm=228291587172307&tin=02508201610067®Number=0000000000161798&sum=100000 [15:54:34]OFD Sender: Processing packet 15741 [packets to send 4, broken 3] [15:54:34]ProducePacketName [15:54:34]name=ofd_packets/00015741 [15:54:34]OFD Sender: To server: pG, [15:54:34]CommunicateWithHost lk.salyk.kg:30040 [15:54:34]ConnectInit lk.salyk.kg [15:54:34]written 0, free lines is 4095 [15:54:34]Connected sock=10 [15:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 0D CB 05 01 0F DA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 44 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7D 3D 00 00 35 04 06 00 CF A1 46 F5 67 D3 13 91 83 F4 6E 0C 8F 91 [15:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 79 06 47 00 AE EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7D 3D 00 00 F4 03 04 00 30 B0 20 67 B6 04 01 00 00 12 09 34 B1 8B 84 56 A4 [15:54:34]CommunicateWithHost err = 0 [15:54:34]CheckOFDResponse [15:54:34]1017 (14) - 77093643461234 [15:54:34]1041 (16) - 0000000000963325 [15:54:34]1040 (4) - 15741 [15:54:34]1012 (4) - 29.10.2024 09:51 [15:54:34]1206 (1) - 0 [15:54:34]OFD Sender: Remove packet 15741 [15:54:34]ProducePacketName [15:54:34]name=ofd_packets/00015741 [15:54:34]NVStorageDeleteData [15:54:34]Write to MH i2c: 01 00 00 9C 4F EB [15:54:34]Write i2c OK [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: 01 [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: 01 07 00 [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: 01 07 00 9C 4F 00 00 00 00 00 F6 0C F4 [15:54:34]RasterBufferAndPrint [15:54:34]line [15:54:34]line [15:54:34]line [15:54:34]line [15:54:34]line [15:54:34]written 0, free lines is 3324 [15:54:34]MH_Cut [15:54:34]Write to MH i2c: D1 01 00 A3 4F 01 C4 [15:54:34]Write i2c OK [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: D1 [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: D1 01 00 [15:54:34]MH_I2C_Read... [15:54:34]Read from MH i2c: D1 01 00 A3 4F 00 C3 [15:54:34]Write to MH i2c: 01 00 00 A4 4F F3 [15:54:34]Write i2c OK [15:54:34]MH_I2C_Read... [15:54:34]OFD Sender: No OFD packet to send [15:54:35]*** Cut start [15:54:35]*** Partial cut [15:54:35]*** CUTSNS_PIN = 1 [15:54:35]*** CUTSNS_PIN = 0 [15:54:35]*** Brake cut motor [15:54:35]Read from MH i2c: 01 [15:54:35]MH_I2C_Read... [15:54:35]*** Stop cut motor [15:54:35]*** Cut end [15:54:35]Read from MH i2c: 01 07 00 [15:54:35]MH_I2C_Read... [15:54:35]Read from MH i2c: 01 07 00 A4 4F 00 00 00 00 00 FF 0F 08 [15:54:35]process_action close_receipt done [15:54:35]requested_data is exist [15:54:35]produce_requested_data [15:54:35]requested_item fm.sn is exist - process it [15:54:35]wFMCommunicate request_size=4 [15:54:35]MH_SAM_APDU [15:54:35]CAPDU: 80 11 00 00 [15:54:35]Write to MH i2c: E2 08 00 A5 4F 80 11 00 00 00 00 00 00 6E [15:54:35]Write i2c OK [15:54:35]MH_I2C_Read... [15:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:36]Read from MH i2c: E2 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 17 00 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 17 00 A5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 BD [15:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:54:36]wFMCommunicate OK [15:54:36]requested_item fd.num is exist - process it [15:54:36]SAM_PROTO_GetFieldsCounters [15:54:36]wFMCommunicate request_size=4 [15:54:36]MH_SAM_APDU [15:54:36]CAPDU: 80 13 00 00 [15:54:36]Write to MH i2c: E2 08 00 A6 4F 80 13 00 00 00 00 00 00 71 [15:54:36]Write i2c OK [15:54:36]MH_I2C_Read... [15:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:36]Read from MH i2c: E2 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 62 00 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 62 00 A6 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7D 3D 00 00 0E 04 04 00 AC 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 00 [15:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7D 3D 00 00 0E 04 04 00 AC 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 [15:54:36]wFMCommunicate OK [15:54:36]SAM_PROTO_GetFieldsCounters done [15:54:36]requested_item shift.num is exist - process it [15:54:36]requested_item shift.opened is exist - process it [15:54:36]req_shift_opened [15:54:36]FM_GetShiftState [15:54:36]SAM_PROTO_GetShiftState [15:54:36]wFMCommunicate request_size=4 [15:54:36]MH_SAM_APDU [15:54:36]CAPDU: 80 13 01 00 [15:54:36]Write to MH i2c: E2 08 00 A7 4F 80 13 01 00 00 00 00 00 73 [15:54:36]Write i2c OK [15:54:36]MH_I2C_Read... [15:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:36]Read from MH i2c: E2 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 0E 00 [15:54:36]MH_I2C_Read... [15:54:36]Read from MH i2c: E2 0E 00 A7 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 C8 [15:54:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:54:36]wFMCommunicate OK [15:54:36]SAM_PROTO_GetShiftState done [15:54:36]FM_GetShiftState done [15:54:36]req_shift_opened done [15:54:36]requested_item shift.open_date is exist - process it [15:54:36]req_shift_open_date [15:54:36]req_shift_open_date done [15:54:36]produce_requested_data done [15:54:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15741,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:54:36]process_action_free close_receipt [15:54:36]json_value_free [15:54:36]json_value_free done [15:54:36]process_json_proto returns [15:54:36]Send response to host [15:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15741,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:54:36]free response buf [15:54:36]execute_script done [15:54:36]execute_script returns [15:54:36]free content buf [15:54:36]Sock 8.Close socket [15:54:36]Sock 8.Thread stoped [15:54:39]OFD Sender: No OFD packet to send [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:08]accept exits with 9 [15:56:08]New connection [15:56:08]New thread 3066731876 created [15:56:08]Thread 3066588516 joined [15:56:08]Waiting for new connection... [15:56:08] Sock 9.Parse request [15:56:08]Sock 9.Check first char [15:56:08]Sock 9.First char is OK [15:56:08]request: POST /json_proto HTTP/1.0 [15:56:08]Method: POST [15:56:08]URL: /json_proto [15:56:08]Method is POST - this is cgi request [15:56:08]url: /json_proto [15:56:08]query_string will be loaded in cgi processing [15:56:08]execute_cgi json_proto POST (null) [15:56:08]execute_cgi path=json_proto method=POST [15:56:08]POST find Content-Length [15:56:08]Host: 172.17.54.195:8080 [15:56:08]Content-Length: 787 [15:56:08]Content-Type: application/json [15:56:08] [15:56:08]POST finish read [15:56:08]Found Content-Length = 787 [15:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "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: Mbank", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:08]execute_script... [15:56: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)16290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 23.140, "sum" : 900.15, "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: Mbank", "total" : 900.00, "payments": [ { "type": 1, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:08]POST & json_proto [15:56:08]process_json_proto [15:56:08]json parsed OK: [15:56:08]protocol is kg_v1.0 [15:56:08]action value=close_receipt [15:56:08]process_action close_receipt [15:56:08]cmd_close_receipt [15:56:08]MH_GetDate [15:56:08]Write to MH i2c: F0 00 00 A8 4F E6 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 09 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: F0 09 00 A8 4F 00 A4 05 21 67 8D 90 A3 66 46 [15:56:08]GetLastDocTimeStamp 1730217284 [15:56:08]current date 1730217380 [15:56:08]FM_GetShiftState [15:56:08]SAM_PROTO_GetShiftState [15:56:08]wFMCommunicate request_size=4 [15:56:08]MH_SAM_APDU [15:56:08]CAPDU: 80 13 01 00 [15:56:08]Write to MH i2c: E2 08 00 A9 4F 80 13 01 00 00 00 00 00 75 [15:56:08]Write i2c OK [15:56:08]MH_I2C_Read... [15:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:08]Read from MH i2c: E2 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 0E 00 [15:56:08]MH_I2C_Read... [15:56:08]Read from MH i2c: E2 0E 00 A9 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 CA [15:56:08]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:56:08]wFMCommunicate OK [15:56:08]SAM_PROTO_GetShiftState done [15:56:08]FM_GetShiftState done [15:56:08]opened in 1730161559 [15:56:08]opened+sec_in_day 1730247959 [15:56:08]quantity*price = 90014 [15:56:08]sum+1 = 90016 [15:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 900.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 0.00 Безнал.: 900.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 88 29.10.2024 15:56 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15742 ФПД: 41580124922917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155620&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15742&fm=41580124922917&tin=02508201610067®Number=0000000000161798&sum=90000 [15:56:09]StoreToDocumentArchive [15:56:09]shift 172 fd 15742 [15:56:09]save to /storage/0172/doc_00015742 [15:56:09]save last doc name /storage/0172/doc_00015742 to /storage/kkm_last_doc_name [15:56:09]save OK [15:56:09]Clear old archive folders... [15:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:56:09]tlvbuf is 003DB9D0 [15:56:09]SAM_PROTO_ClearQueue [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 09 00 00 [15:56:09]Write to MH i2c: E2 08 00 B6 4F 80 09 00 00 00 00 00 00 77 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 B6 4F 00 90 00 79 [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]SAM_PROTO_ClearQueue done [15:56:09]KKMCreateOFDPacket [15:56:09]OFDProtocolAddRootSTLVToBuf [15:56:09]FM_MakeSignedData [15:56:09]FM_MakeSignedData [15:56:09]SAM_PROTO_SignData [15:56:09]wFMCommunicate request_size=4 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 01 02 [15:56:09]Write to MH i2c: E2 08 00 B7 4F 80 0D 01 02 00 00 00 00 7F [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:09]Read from MH i2c: E2 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 [15:56:09]MH_I2C_Read... [15:56:09]Read from MH i2c: E2 03 00 B7 4F 00 90 00 7A [15:56:09]RAPDU: 90 00 [15:56:09]wFMCommunicate OK [15:56:09]wFMCommunicate request_size=255 [15:56:09]MH_SAM_APDU [15:56:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A4 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7E 3D 00 00 35 04 06 00 25 D1 [15:56:09]Write to MH i2c: E2 02 01 B8 4F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A4 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7E 3D 00 00 35 04 06 00 25 D1 00 00 93 [15:56:09]Write i2c OK [15:56:09]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 B8 4F 00 90 00 7B [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]wFMCommunicate request_size=9 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 02 02 04 20 93 64 25 [15:56:10]Write to MH i2c: E2 0C 00 B9 4F 80 0D 02 02 04 00 20 93 64 25 00 00 C6 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]OFD Sender: No OFD packet to send [15:56:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 03 00 B9 4F 00 90 00 7C [15:56:10]RAPDU: 90 00 [15:56:10]wFMCommunicate OK [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 0D 03 02 [15:56:10]Write to MH i2c: E2 08 00 BA 4F 80 0D 03 02 00 00 00 00 84 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0B 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0B 00 BA 4F 00 58 61 CA 43 44 C2 4D 61 90 00 FF [15:56:10]RAPDU: 58 61 CA 43 44 C2 4D 61 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_SignData done [15:56:10]FM_MakeSignedData done [15:56:10]CreateOFDProtocolMessage [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 11 00 00 [15:56:10]Write to MH i2c: E2 08 00 BB 4F 80 11 00 00 00 00 00 00 84 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 BB 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D3 [15:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:56:10]wFMCommunicate OK [15:56:10]CreateOFDProtocolMessage done [15:56:10]OFDSenderStorePacket 15742 [15:56:10]StoreOFDPacket docnum=15742 [15:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 C7 40 06 01 8A C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A4 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7E 3D 00 00 35 04 06 00 25 D1 20 93 64 25 58 61 CA 43 44 C2 4D 61 [15:56:10]CheckFolder [15:56:10]dirname=/storage/ofd_packets [15:56:10]CheckFolder done [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00015742 [15:56:10]NVStorageSaveData ofd_packets/00015742 [15:56:10]File name is /storage/ofd_packets/00015742 [15:56:10]Write 300 bytes [15:56:10]NVStorageSaveData done [15:56:10]OFDSenderStorePacket done [15:56:10]KKMCreateOFDPacket done [15:56:10]NVStorageSaveData kkm_last_timestamp [15:56:10]File name is /storage/kkm_last_timestamp [15:56:10]Write 4 bytes [15:56:10]NVStorageSaveData done [15:56:10]ExternCall_PrintAddStr [15:56:10]wPrintStart [15:56:10]Write to MH i2c: 01 00 00 BC 4F 0B [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 BC 4F 00 00 00 00 00 FF 0F 20 [15:56:10]RasterBufferAndPrint [15:56:10]line Счет N : (1)16290 [15:56:10]line ИНН: 02508201610067 [15:56:10]line Контрольно-Кассовый Чек [15:56:10]line ПРОДАЖА [15:56:10]line ТРК (МРК, ГНК) : 41 [15:56:10]line Товар: 2711190000 [15:56:10]line ГАЗ-К-5 [15:56:10]line 23.140 * 38.90 [15:56:10]line = 900.15 [15:56:10]line НДС 12% НСП 1% [15:56:10]line > о реализуемом товаре [15:56:10]line ОКРУГЛЕНИЕ: -0.15 [15:56:10]line ИТОГО: 900.00 [15:56:10]line НСП 1% : 7.97 [15:56:10]line НДС 12% : 95.59 [15:56:10]line Наличными: 0.00 [15:56:10]line Безнал.: 900.00 [15:56:10]line Место: АЗС № 178 "Партнер Нефть" [15:56:10]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:56:10]line СНО: Общий режим [15:56:10]line Чек 88 29.10.2024 15:56 [15:56:10]line Смена: 172 ФФД: 1.0 [15:56:10]line ЗНМ: 0300000014 [15:56:10]line РНМ: 0000000000161798 [15:56:10]line Версия ККМ: v1.0 [15:56:10]line Платежная система: Mbank [15:56:10]line ФМ: 0000000000963325 [15:56:10]line ФД: 15742 [15:56:10]line ФПД: 41580124922917 [15:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155620&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15742&fm=41580124922917&tin=02508201610067®Number=0000000000161798&sum=90000 [15:56:10]OFD Sender: Processing packet 15742 [packets to send 4, broken 3] [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00015742 [15:56:10]OFD Sender: To server: pG, [15:56:10]CommunicateWithHost lk.salyk.kg:30040 [15:56:10]ConnectInit lk.salyk.kg [15:56:10]written 0, free lines is 4095 [15:56:10]Connected sock=8 [15:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 C7 40 06 01 8A C7 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 5A 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 9F 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 A4 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7E 3D 00 00 35 04 06 00 25 D1 20 93 64 25 58 61 CA 43 44 C2 4D 61 [15:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 49 1B 47 00 F9 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7E 3D 00 00 F4 03 04 00 90 B0 20 67 B6 04 01 00 00 21 5B 44 F2 98 8C 74 0A [15:56:10]CommunicateWithHost err = 0 [15:56:10]CheckOFDResponse [15:56:10]1017 (14) - 77093643461234 [15:56:10]1041 (16) - 0000000000963325 [15:56:10]1040 (4) - 15742 [15:56:10]1012 (4) - 29.10.2024 09:53 [15:56:10]1206 (1) - 0 [15:56:10]OFD Sender: Remove packet 15742 [15:56:10]ProducePacketName [15:56:10]name=ofd_packets/00015742 [15:56:10]NVStorageDeleteData [15:56:10]Write to MH i2c: 01 00 00 E6 4F 35 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 07 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: 01 07 00 E6 4F 00 00 00 00 00 14 0D 5D [15:56:11]RasterBufferAndPrint [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]line [15:56:11]written 0, free lines is 3354 [15:56:11]MH_Cut [15:56:11]Write to MH i2c: D1 01 00 ED 4F 01 0E [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: D1 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: D1 01 00 [15:56:11]MH_I2C_Read... [15:56:11]Read from MH i2c: D1 01 00 ED 4F 00 0D [15:56:11]Write to MH i2c: 01 00 00 EE 4F 3D [15:56:11]Write i2c OK [15:56:11]MH_I2C_Read... [15:56:11]OFD Sender: No OFD packet to send [15:56:11]*** Cut start [15:56:11]*** Partial cut [15:56:11]*** CUTSNS_PIN = 1 [15:56:11]*** CUTSNS_PIN = 0 [15:56:12]*** Brake cut motor [15:56:12]Read from MH i2c: 01 [15:56:12]MH_I2C_Read... [15:56:12]*** Stop cut motor [15:56:12]*** Cut end [15:56:12]Read from MH i2c: 01 07 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: 01 07 00 EE 4F 00 00 00 00 00 FF 0F 52 [15:56:12]process_action close_receipt done [15:56:12]requested_data is exist [15:56:12]produce_requested_data [15:56:12]requested_item fm.sn is exist - process it [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 11 00 00 [15:56:12]Write to MH i2c: E2 08 00 EF 4F 80 11 00 00 00 00 00 00 B8 [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 17 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 17 00 EF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 07 [15:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:56:12]wFMCommunicate OK [15:56:12]requested_item fd.num is exist - process it [15:56:12]SAM_PROTO_GetFieldsCounters [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 13 00 00 [15:56:12]Write to MH i2c: E2 08 00 F0 4F 80 13 00 00 00 00 00 00 BB [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 62 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 62 00 F0 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7E 3D 00 00 0E 04 04 00 AC 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 4E [15:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7E 3D 00 00 0E 04 04 00 AC 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 [15:56:12]wFMCommunicate OK [15:56:12]SAM_PROTO_GetFieldsCounters done [15:56:12]requested_item shift.num is exist - process it [15:56:12]requested_item shift.opened is exist - process it [15:56:12]req_shift_opened [15:56:12]FM_GetShiftState [15:56:12]SAM_PROTO_GetShiftState [15:56:12]wFMCommunicate request_size=4 [15:56:12]MH_SAM_APDU [15:56:12]CAPDU: 80 13 01 00 [15:56:12]Write to MH i2c: E2 08 00 F1 4F 80 13 01 00 00 00 00 00 BD [15:56:12]Write i2c OK [15:56:12]MH_I2C_Read... [15:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:12]Read from MH i2c: E2 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 [15:56:12]MH_I2C_Read... [15:56:12]Read from MH i2c: E2 0E 00 F1 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 12 [15:56:12]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:56:12]wFMCommunicate OK [15:56:12]SAM_PROTO_GetShiftState done [15:56:12]FM_GetShiftState done [15:56:12]req_shift_opened done [15:56:12]requested_item shift.open_date is exist - process it [15:56:12]req_shift_open_date [15:56:12]req_shift_open_date done [15:56:12]produce_requested_data done [15:56:12]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15742,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:56:12]process_action_free close_receipt [15:56:12]json_value_free [15:56:12]json_value_free done [15:56:12]process_json_proto returns [15:56:12]Send response to host [15:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15742,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:56:12]free response buf [15:56:12]execute_script done [15:56:12]execute_script returns [15:56:12]free content buf [15:56:12]Sock 9.Close socket [15:56:12]Sock 9.Thread stoped [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]accept exits with 10 [15:57:21]New connection [15:57:21]New thread 3066588516 created [15:57:21]Thread 3066731876 joined [15:57:21]Waiting for new connection... [15:57:21] Sock 10.Parse request [15:57:21]Sock 10.Check first char [15:57:21]Sock 10.First char is OK [15:57:21]request: POST /json_proto HTTP/1.0 [15:57:21]Method: POST [15:57:21]URL: /json_proto [15:57:21]Method is POST - this is cgi request [15:57:21]url: /json_proto [15:57:21]query_string will be loaded in cgi processing [15:57:21]execute_cgi json_proto POST (null) [15:57:21]execute_cgi path=json_proto method=POST [15:57:21]POST find Content-Length [15:57:21]Host: 172.17.54.195:8080 [15:57:21]Content-Length: 666 [15:57:21]Content-Type: application/json [15:57:21] [15:57:21]POST finish read [15:57:21]Found Content-Length = 666 [15:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [15:57:21]execute_script... [15:57: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)16292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [15:57:21]POST & json_proto [15:57:21]process_json_proto [15:57:21]json parsed OK: [15:57:21]protocol is kg_v1.0 [15:57:21]action value=close_receipt [15:57:21]process_action close_receipt [15:57:21]cmd_close_receipt [15:57:21]MH_GetDate [15:57:21]Write to MH i2c: F0 00 00 F2 4F 30 [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: F0 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: F0 09 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: F0 09 00 F2 4F 00 ED 05 21 67 8D 90 A3 66 D9 [15:57:21]GetLastDocTimeStamp 1730217380 [15:57:21]current date 1730217453 [15:57:21]FM_GetShiftState [15:57:21]SAM_PROTO_GetShiftState [15:57:21]wFMCommunicate request_size=4 [15:57:21]MH_SAM_APDU [15:57:21]CAPDU: 80 13 01 00 [15:57:21]Write to MH i2c: E2 08 00 F3 4F 80 13 01 00 00 00 00 00 BF [15:57:21]Write i2c OK [15:57:21]MH_I2C_Read... [15:57:21]OFD Sender: No OFD packet to send [15:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:21]Read from MH i2c: E2 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 [15:57:21]MH_I2C_Read... [15:57:21]Read from MH i2c: E2 0E 00 F3 4F 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 14 [15:57:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:57:21]wFMCommunicate OK [15:57:21]SAM_PROTO_GetShiftState done [15:57:21]FM_GetShiftState done [15:57:21]opened in 1730161559 [15:57:21]opened+sec_in_day 1730247959 [15:57:21]quantity*price = 20041 [15:57:21]sum+1 = 20042 [15:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 89 29.10.2024 15:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15743 ФПД: 231016767927477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155733&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15743&fm=231016767927477&tin=02508201610067®Number=0000000000161798&sum=20000 [15:57:22]StoreToDocumentArchive [15:57:22]shift 172 fd 15743 [15:57:22]save to /storage/0172/doc_00015743 [15:57:22]save last doc name /storage/0172/doc_00015743 to /storage/kkm_last_doc_name [15:57:22]save OK [15:57:22]Clear old archive folders... [15:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:57:22]tlvbuf is 00424CE0 [15:57:22]SAM_PROTO_ClearQueue [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 09 00 00 [15:57:22]Write to MH i2c: E2 08 00 00 50 80 09 00 00 00 00 00 00 C2 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 00 50 00 90 00 C4 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]SAM_PROTO_ClearQueue done [15:57:22]KKMCreateOFDPacket [15:57:22]OFDProtocolAddRootSTLVToBuf [15:57:22]FM_MakeSignedData [15:57:22]FM_MakeSignedData [15:57:22]SAM_PROTO_SignData [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 01 02 [15:57:22]Write to MH i2c: E2 08 00 01 50 80 0D 01 02 00 00 00 00 CA [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 01 50 00 90 00 C5 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]wFMCommunicate request_size=255 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 59 00 00 00 F4 03 04 00 ED 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7F 3D 00 00 35 04 06 00 D2 1B C8 [15:57:22]Write to MH i2c: E2 02 01 02 50 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 59 00 00 00 F4 03 04 00 ED 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7F 3D 00 00 35 04 06 00 D2 1B C8 00 00 87 [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 02 50 00 90 00 C6 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]wFMCommunicate request_size=8 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 02 02 03 63 B4 B5 [15:57:22]Write to MH i2c: E2 0B 00 03 50 80 0D 02 02 03 00 63 B4 B5 00 00 9F [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 03 00 03 50 00 90 00 C7 [15:57:22]RAPDU: 90 00 [15:57:22]wFMCommunicate OK [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 0D 03 02 [15:57:22]Write to MH i2c: E2 08 00 04 50 80 0D 03 02 00 00 00 00 CF [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0B 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 0B 00 04 50 00 EB 86 FA 9E 0D 05 FC 94 90 00 7B [15:57:22]RAPDU: EB 86 FA 9E 0D 05 FC 94 90 00 [15:57:22]wFMCommunicate OK [15:57:22]SAM_PROTO_SignData done [15:57:22]FM_MakeSignedData done [15:57:22]CreateOFDProtocolMessage [15:57:22]wFMCommunicate request_size=4 [15:57:22]MH_SAM_APDU [15:57:22]CAPDU: 80 11 00 00 [15:57:22]Write to MH i2c: E2 08 00 05 50 80 11 00 00 00 00 00 00 CF [15:57:22]Write i2c OK [15:57:22]MH_I2C_Read... [15:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:22]Read from MH i2c: E2 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 17 00 [15:57:22]MH_I2C_Read... [15:57:22]Read from MH i2c: E2 17 00 05 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1E [15:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:57:22]wFMCommunicate OK [15:57:22]CreateOFDProtocolMessage done [15:57:22]OFDSenderStorePacket 15743 [15:57:22]StoreOFDPacket docnum=15743 [15:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 3E 4C 05 01 BE 2B 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 59 00 00 00 F4 03 04 00 ED 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7F 3D 00 00 35 04 06 00 D2 1B C8 63 B4 B5 EB 86 FA 9E 0D 05 FC 94 [15:57:22]CheckFolder [15:57:22]dirname=/storage/ofd_packets [15:57:22]CheckFolder done [15:57:22]ProducePacketName [15:57:22]name=ofd_packets/00015743 [15:57:22]NVStorageSaveData ofd_packets/00015743 [15:57:22]File name is /storage/ofd_packets/00015743 [15:57:22]Write 299 bytes [15:57:22]NVStorageSaveData done [15:57:22]OFDSenderStorePacket done [15:57:22]KKMCreateOFDPacket done [15:57:23]NVStorageSaveData kkm_last_timestamp [15:57:23]File name is /storage/kkm_last_timestamp [15:57:23]Write 4 bytes [15:57:23]NVStorageSaveData done [15:57:23]ExternCall_PrintAddStr [15:57:23]wPrintStart [15:57:23]Write to MH i2c: 01 00 00 06 50 56 [15:57:23]OFD Sender: Processing packet 15743 [packets to send 4, broken 3] [15:57:23]ProducePacketName [15:57:23]name=ofd_packets/00015743 [15:57:23]OFD Sender: To server: pG, [15:57:23]CommunicateWithHost lk.salyk.kg:30040 [15:57:23]ConnectInit lk.salyk.kg [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 06 50 00 00 00 00 00 FF 0F 6B [15:57:23]RasterBufferAndPrint [15:57:23]line Счет N : (1)16292 [15:57:23]line ИНН: 02508201610067 [15:57:23]line Контрольно-Кассовый Чек [15:57:23]line ПРОДАЖА [15:57:23]line ТРК (МРК, ГНК) : 12 [15:57:23]line Товар: 50.50.0 [15:57:23]line SUPER 92-К-5 [15:57:23]line 2.930 * 68.40 [15:57:23]line = 200.41 [15:57:23]line НДС 12% НСП 1% [15:57:23]line > о реализуемом товаре [15:57:23]line ОКРУГЛЕНИЕ: -0.41 [15:57:23]line ИТОГО: 200.00 [15:57:23]line Внесено: 200.00 [15:57:23]line СДАЧА: 0.00 [15:57:23]line НСП 1% : 1.77 [15:57:23]line НДС 12% : 21.28 [15:57:23]line Наличными: 200.00 [15:57:23]line Безнал.: 0.00 [15:57:23]line Место: АЗС № 178 "Партнер Нефть" [15:57:23]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [15:57:23]line СНО: Общий режим [15:57:23]line Чек 89 29.10.2024 15:57 [15:57:23]line Смена: 172 ФФД: 1.0 [15:57:23]line ЗНМ: 0300000014 [15:57:23]line РНМ: 0000000000161798 [15:57:23]line Версия ККМ: v1.0 [15:57:23]line ФМ: 0000000000963325 [15:57:23]line ФД: 15743 [15:57:23]line ФПД: 231016767927477 [15:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T155733&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15743&fm=231016767927477&tin=02508201610067®Number=0000000000161798&sum=20000 [15:57:23]Connected sock=9 [15:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 3E 4C 05 01 BE 2B 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 59 00 00 00 F4 03 04 00 ED 05 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7F 3D 00 00 35 04 06 00 D2 1B C8 63 B4 B5 EB 86 FA 9E 0D 05 FC 94 [15:57:23]written 0, free lines is 4095 [15:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 2B 7F 47 00 52 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 7F 3D 00 00 F4 03 04 00 D9 B0 20 67 B6 04 01 00 00 37 78 EB DA 76 80 EB D3 [15:57:23]CommunicateWithHost err = 0 [15:57:23]CheckOFDResponse [15:57:23]1017 (14) - 77093643461234 [15:57:23]1041 (16) - 0000000000963325 [15:57:23]1040 (4) - 15743 [15:57:23]1012 (4) - 29.10.2024 09:54 [15:57:23]1206 (1) - 0 [15:57:23]OFD Sender: Remove packet 15743 [15:57:23]ProducePacketName [15:57:23]name=ofd_packets/00015743 [15:57:23]NVStorageDeleteData [15:57:23]Write to MH i2c: 01 00 00 31 50 81 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: 01 07 00 31 50 00 00 00 00 00 EE 0C 82 [15:57:23]RasterBufferAndPrint [15:57:23]line [15:57:23]line [15:57:23]line [15:57:23]line [15:57:23]line [15:57:23]written 0, free lines is 3316 [15:57:23]MH_Cut [15:57:23]Write to MH i2c: D1 01 00 38 50 01 5A [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 01 00 [15:57:23]MH_I2C_Read... [15:57:23]Read from MH i2c: D1 01 00 38 50 00 59 [15:57:23]Write to MH i2c: 01 00 00 39 50 89 [15:57:23]Write i2c OK [15:57:23]MH_I2C_Read... [15:57:24]OFD Sender: No OFD packet to send [15:57:24]*** Cut start [15:57:24]*** Partial cut [15:57:24]*** CUTSNS_PIN = 1 [15:57:24]*** CUTSNS_PIN = 0 [15:57:24]*** Brake cut motor [15:57:25]Read from MH i2c: 01 [15:57:25]MH_I2C_Read... [15:57:25]*** Stop cut motor [15:57:25]*** Cut end [15:57:25]Read from MH i2c: 01 07 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: 01 07 00 39 50 00 00 00 00 00 FF 0F 9E [15:57:25]process_action close_receipt done [15:57:25]requested_data is exist [15:57:25]produce_requested_data [15:57:25]requested_item fm.sn is exist - process it [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 11 00 00 [15:57:25]Write to MH i2c: E2 08 00 3A 50 80 11 00 00 00 00 00 00 04 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 17 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 17 00 3A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 53 [15:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [15:57:25]wFMCommunicate OK [15:57:25]requested_item fd.num is exist - process it [15:57:25]SAM_PROTO_GetFieldsCounters [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 00 00 [15:57:25]Write to MH i2c: E2 08 00 3B 50 80 13 00 00 00 00 00 00 07 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 62 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 62 00 3B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7F 3D 00 00 0E 04 04 00 AC 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 9E [15:57:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 7F 3D 00 00 0E 04 04 00 AC 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 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetFieldsCounters done [15:57:25]requested_item shift.num is exist - process it [15:57:25]requested_item shift.opened is exist - process it [15:57:25]req_shift_opened [15:57:25]FM_GetShiftState [15:57:25]SAM_PROTO_GetShiftState [15:57:25]wFMCommunicate request_size=4 [15:57:25]MH_SAM_APDU [15:57:25]CAPDU: 80 13 01 00 [15:57:25]Write to MH i2c: E2 08 00 3C 50 80 13 01 00 00 00 00 00 09 [15:57:25]Write i2c OK [15:57:25]MH_I2C_Read... [15:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:25]Read from MH i2c: E2 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 [15:57:25]MH_I2C_Read... [15:57:25]Read from MH i2c: E2 0E 00 3C 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 5E [15:57:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [15:57:25]wFMCommunicate OK [15:57:25]SAM_PROTO_GetShiftState done [15:57:25]FM_GetShiftState done [15:57:25]req_shift_opened done [15:57:25]requested_item shift.open_date is exist - process it [15:57:25]req_shift_open_date [15:57:25]req_shift_open_date done [15:57:25]produce_requested_data done [15:57:25]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15743,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [15:57:25]process_action_free close_receipt [15:57:25]json_value_free [15:57:25]json_value_free done [15:57:25]process_json_proto returns [15:57:25]Send response to host [15:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15743,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [15:57:25]free response buf [15:57:25]execute_script done [15:57:25]execute_script returns [15:57:25]free content buf [15:57:25]Sock 10.Close socket [15:57:25]Sock 10.Thread stoped [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:44]OFD Sender: No OFD packet to send [16:04:49]OFD Sender: No OFD packet to send [16:04:54]OFD Sender: No OFD packet to send [16:04:59]OFD Sender: No OFD packet to send [16:05:04]OFD Sender: No OFD packet to send [16:05:09]OFD Sender: No OFD packet to send [16:05:14]OFD Sender: No OFD packet to send [16:05:19]OFD Sender: No OFD packet to send [16:05:24]OFD Sender: No OFD packet to send [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:39]OFD Sender: No OFD packet to send [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:25]OFD Sender: No OFD packet to send [16:18:30]OFD Sender: No OFD packet to send [16:18:35]OFD Sender: No OFD packet to send [16:18:40]OFD Sender: No OFD packet to send [16:18:45]OFD Sender: No OFD packet to send [16:18:50]OFD Sender: No OFD packet to send [16:18:55]OFD Sender: No OFD packet to send [16:19:00]OFD Sender: No OFD packet to send [16:19:05]OFD Sender: No OFD packet to send [16:19:10]OFD Sender: No OFD packet to send [16:19:15]OFD Sender: No OFD packet to send [16:19:20]OFD Sender: No OFD packet to send [16:19:25]OFD Sender: No OFD packet to send [16:19:30]OFD Sender: No OFD packet to send [16:19:35]OFD Sender: No OFD packet to send [16:19:40]OFD Sender: No OFD packet to send [16:19:45]OFD Sender: No OFD packet to send [16:19:50]OFD Sender: No OFD packet to send [16:19:55]OFD Sender: No OFD packet to send [16:20:00]OFD Sender: No OFD packet to send [16:20:05]OFD Sender: No OFD packet to send [16:20:10]OFD Sender: No OFD packet to send [16:20:15]OFD Sender: No OFD packet to send [16:20:20]OFD Sender: No OFD packet to send [16:20:25]OFD Sender: No OFD packet to send [16:20:30]OFD Sender: No OFD packet to send [16:20:35]OFD Sender: No OFD packet to send [16:20:40]OFD Sender: No OFD packet to send [16:20:45]OFD Sender: No OFD packet to send [16:20:50]OFD Sender: No OFD packet to send [16:20:55]OFD Sender: No OFD packet to send [16:21:00]OFD Sender: No OFD packet to send [16:21:05]OFD Sender: No OFD packet to send [16:21:10]OFD Sender: No OFD packet to send [16:21:15]OFD Sender: No OFD packet to send [16:21:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:39]accept exits with 8 [16:26:39]New connection [16:26:39]New thread 3066731876 created [16:26:39]Thread 3066588516 joined [16:26:39]Waiting for new connection... [16:26:39] Sock 8.Parse request [16:26:39]Sock 8.Check first char [16:26:39]Sock 8.First char is OK [16:26:39]request: POST /json_proto HTTP/1.0 [16:26:39]Method: POST [16:26:39]URL: /json_proto [16:26:39]Method is POST - this is cgi request [16:26:39]url: /json_proto [16:26:39]query_string will be loaded in cgi processing [16:26:39]execute_cgi json_proto POST (null) [16:26:39]execute_cgi path=json_proto method=POST [16:26:39]POST find Content-Length [16:26:39]Host: 172.17.54.195:8080 [16:26:39]Content-Length: 678 [16:26:39]Content-Type: application/json [16:26:39] [16:26:39]POST finish read [16:26:39]Found Content-Length = 678 [16:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.610, "sum" : 1494.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1494.00, "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:39]execute_script... [16:26: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)16294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.610, "sum" : 1494.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1494.00, "payments": [ { "type": 0, "sum" : 1494.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:39]POST & json_proto [16:26:39]process_json_proto [16:26:39]json parsed OK: [16:26:39]protocol is kg_v1.0 [16:26:39]action value=close_receipt [16:26:39]process_action close_receipt [16:26:39]cmd_close_receipt [16:26:39]MH_GetDate [16:26:39]Write to MH i2c: F0 00 00 3D 50 7C [16:26:39]Write i2c OK [16:26:39]MH_I2C_Read... [16:26:39]Read from MH i2c: F0 [16:26:39]MH_I2C_Read... [16:26:39]Read from MH i2c: F0 09 00 [16:26:39]MH_I2C_Read... [16:26:39]Read from MH i2c: F0 09 00 3D 50 00 CB 0C 21 67 8D 90 A3 66 0A [16:26:39]GetLastDocTimeStamp 1730217453 [16:26:39]current date 1730219211 [16:26:39]FM_GetShiftState [16:26:39]SAM_PROTO_GetShiftState [16:26:39]wFMCommunicate request_size=4 [16:26:39]MH_SAM_APDU [16:26:39]CAPDU: 80 13 01 00 [16:26:39]Write to MH i2c: E2 08 00 3E 50 80 13 01 00 00 00 00 00 0B [16:26:39]Write i2c OK [16:26:39]MH_I2C_Read... [16:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:39]Read from MH i2c: E2 [16:26:39]MH_I2C_Read... [16:26:39]Read from MH i2c: E2 0E 00 [16:26:39]MH_I2C_Read... [16:26:39]Read from MH i2c: E2 0E 00 3E 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 60 [16:26:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:26:39]wFMCommunicate OK [16:26:39]SAM_PROTO_GetShiftState done [16:26:39]FM_GetShiftState done [16:26:39]opened in 1730161559 [16:26:39]opened+sec_in_day 1730247959 [16:26:39]quantity*price = 149428 [16:26:39]sum+1 = 149429 [16:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1494.00 Внесено: 2000.00 СДАЧА: 506.00 НСП 1% : 13.22 НДС 12% : 158.68 Наличными: 1494.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 90 29.10.2024 16:26 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15744 ФПД: 68877126781626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T162651&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15744&fm=68877126781626&tin=02508201610067®Number=0000000000161798&sum=149400 [16:26:40]StoreToDocumentArchive [16:26:40]shift 172 fd 15744 [16:26:40]save to /storage/0172/doc_00015744 [16:26:40]save last doc name /storage/0172/doc_00015744 to /storage/kkm_last_doc_name [16:26:40]save OK [16:26:40]Clear old archive folders... [16:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:26:40]tlvbuf is 004A2040 [16:26:40]SAM_PROTO_ClearQueue [16:26:40]wFMCommunicate request_size=4 [16:26:40]MH_SAM_APDU [16:26:40]CAPDU: 80 09 00 00 [16:26:40]Write to MH i2c: E2 08 00 4B 50 80 09 00 00 00 00 00 00 0D [16:26:40]Write i2c OK [16:26:40]MH_I2C_Read... [16:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:40]Read from MH i2c: E2 [16:26:40]MH_I2C_Read... [16:26:40]Read from MH i2c: E2 03 00 [16:26:40]MH_I2C_Read... [16:26:40]Read from MH i2c: E2 03 00 4B 50 00 90 00 0F [16:26:40]RAPDU: 90 00 [16:26:40]wFMCommunicate OK [16:26:40]SAM_PROTO_ClearQueue done [16:26:40]KKMCreateOFDPacket [16:26:40]OFDProtocolAddRootSTLVToBuf [16:26:40]FM_MakeSignedData [16:26:40]FM_MakeSignedData [16:26:40]SAM_PROTO_SignData [16:26:40]wFMCommunicate request_size=4 [16:26:40]MH_SAM_APDU [16:26:40]CAPDU: 80 0D 01 02 [16:26:40]Write to MH i2c: E2 08 00 4C 50 80 0D 01 02 00 00 00 00 15 [16:26:40]Write i2c OK [16:26:40]MH_I2C_Read... [16:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:40]Read from MH i2c: E2 [16:26:40]MH_I2C_Read... [16:26:40]Read from MH i2c: E2 03 00 [16:26:40]MH_I2C_Read... [16:26:40]Read from MH i2c: E2 03 00 4C 50 00 90 00 10 [16:26:40]RAPDU: 90 00 [16:26:40]wFMCommunicate OK [16:26:40]wFMCommunicate request_size=255 [16:26:40]MH_SAM_APDU [16:26:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 3D 00 00 00 00 07 04 06 00 98 47 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 0C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 80 3D 00 00 35 04 06 00 3E A4 B4 AC [16:26:40]Write to MH i2c: E2 02 01 4D 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 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 3D 00 00 00 00 07 04 06 00 98 47 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 0C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 80 3D 00 00 35 04 06 00 3E A4 B4 AC 00 00 C7 [16:26:40]Write i2c OK [16:26:40]MH_I2C_Read... [16:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:41]Read from MH i2c: E2 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 03 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 03 00 4D 50 00 90 00 11 [16:26:41]RAPDU: 90 00 [16:26:41]wFMCommunicate OK [16:26:41]wFMCommunicate request_size=7 [16:26:41]MH_SAM_APDU [16:26:41]CAPDU: 80 0D 02 02 02 CA BA [16:26:41]Write to MH i2c: E2 0A 00 4E 50 80 0D 02 02 02 00 CA BA 00 00 A0 [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:41]Read from MH i2c: E2 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 03 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 03 00 4E 50 00 90 00 12 [16:26:41]RAPDU: 90 00 [16:26:41]wFMCommunicate OK [16:26:41]wFMCommunicate request_size=4 [16:26:41]MH_SAM_APDU [16:26:41]CAPDU: 80 0D 03 02 [16:26:41]Write to MH i2c: E2 08 00 4F 50 80 0D 03 02 00 00 00 00 1A [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:41]Read from MH i2c: E2 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 0B 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 0B 00 4F 50 00 5A 98 CA AF C3 5A 42 67 90 00 4C [16:26:41]RAPDU: 5A 98 CA AF C3 5A 42 67 90 00 [16:26:41]wFMCommunicate OK [16:26:41]SAM_PROTO_SignData done [16:26:41]FM_MakeSignedData done [16:26:41]CreateOFDProtocolMessage [16:26:41]wFMCommunicate request_size=4 [16:26:41]MH_SAM_APDU [16:26:41]CAPDU: 80 11 00 00 [16:26:41]Write to MH i2c: E2 08 00 50 50 80 11 00 00 00 00 00 00 1A [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:41]Read from MH i2c: E2 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 17 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: E2 17 00 50 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 69 [16:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:26:41]wFMCommunicate OK [16:26:41]CreateOFDProtocolMessage done [16:26:41]OFDSenderStorePacket 15744 [16:26:41]StoreOFDPacket docnum=15744 [16:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 44 02 04 01 2E 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 3D 00 00 00 00 07 04 06 00 98 47 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 0C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 80 3D 00 00 35 04 06 00 3E A4 B4 AC CA BA 5A 98 CA AF C3 5A 42 67 [16:26:41]CheckFolder [16:26:41]dirname=/storage/ofd_packets [16:26:41]CheckFolder done [16:26:41]ProducePacketName [16:26:41]name=ofd_packets/00015744 [16:26:41]NVStorageSaveData ofd_packets/00015744 [16:26:41]File name is /storage/ofd_packets/00015744 [16:26:41]Write 298 bytes [16:26:41]NVStorageSaveData done [16:26:41]OFDSenderStorePacket done [16:26:41]KKMCreateOFDPacket done [16:26:41]NVStorageSaveData kkm_last_timestamp [16:26:41]File name is /storage/kkm_last_timestamp [16:26:41]Write 4 bytes [16:26:41]NVStorageSaveData done [16:26:41]ExternCall_PrintAddStr [16:26:41]wPrintStart [16:26:41]Write to MH i2c: 01 00 00 51 50 A1 [16:26:41]Write i2c OK [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: 01 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: 01 07 00 [16:26:41]MH_I2C_Read... [16:26:41]Read from MH i2c: 01 07 00 51 50 00 00 00 00 00 FF 0F B6 [16:26:41]RasterBufferAndPrint [16:26:41]line Счет N : (1)16294 [16:26:41]line ИНН: 02508201610067 [16:26:41]line Контрольно-Кассовый Чек [16:26:41]line ПРОДАЖА [16:26:41]line ТРК (МРК, ГНК) : 31 [16:26:41]line Товар: 2710194210 [16:26:41]line ДТ-К-5 [16:26:41]line 19.610 * 76.20 [16:26:41]line = 1494.28 [16:26:41]line НДС 12% НСП 1% [16:26:41]line > о реализуемом товаре [16:26:41]line ОКРУГЛЕНИЕ: -0.28 [16:26:41]line ИТОГО: 1494.00 [16:26:41]line Внесено: 2000.00 [16:26:41]line СДАЧА: 506.00 [16:26:41]line НСП 1% : 13.22 [16:26:41]line НДС 12% : 158.68 [16:26:41]line Наличными: 1494.00 [16:26:41]line Безнал.: 0.00 [16:26:41]line Место: АЗС № 178 "Партнер Нефть" [16:26:41]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [16:26:41]line СНО: Общий режим [16:26:41]line Чек 90 29.10.2024 16:26 [16:26:41]line Смена: 172 ФФД: 1.0 [16:26:41]line ЗНМ: 0300000014 [16:26:41]line РНМ: 0000000000161798 [16:26:41]line Версия ККМ: v1.0 [16:26:41]line ФМ: 0000000000963325 [16:26:41]line ФД: 15744 [16:26:41]line ФПД: 68877126781626 [16:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T162651&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15744&fm=68877126781626&tin=02508201610067®Number=0000000000161798&sum=149400 [16:26:41]OFD Sender: Processing packet 15744 [packets to send 4, broken 3] [16:26:41]ProducePacketName [16:26:41]name=ofd_packets/00015744 [16:26:41]OFD Sender: To server: pG, [16:26:41]CommunicateWithHost lk.salyk.kg:30040 [16:26:41]ConnectInit lk.salyk.kg [16:26:41]written 0, free lines is 4095 [16:26:41]Connected sock=10 [16:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 44 02 04 01 2E 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B4 47 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 47 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 3D 00 00 00 00 07 04 06 00 98 47 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 0C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 80 3D 00 00 35 04 06 00 3E A4 B4 AC CA BA 5A 98 CA AF C3 5A 42 67 [16:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5E 65 47 00 00 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 80 3D 00 00 F4 03 04 00 B7 B7 20 67 B6 04 01 00 00 F3 8C 07 E0 8F C5 96 89 [16:26:41]CommunicateWithHost err = 0 [16:26:41]CheckOFDResponse [16:26:41]1017 (14) - 77093643461234 [16:26:41]1041 (16) - 0000000000963325 [16:26:41]1040 (4) - 15744 [16:26:41]1012 (4) - 29.10.2024 10:23 [16:26:41]1206 (1) - 0 [16:26:41]OFD Sender: Remove packet 15744 [16:26:41]ProducePacketName [16:26:41]name=ofd_packets/00015744 [16:26:41]NVStorageDeleteData [16:26:42]Write to MH i2c: 01 00 00 7C 50 CC [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: 01 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: 01 07 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: 01 07 00 7C 50 00 00 00 00 00 F9 0C D8 [16:26:42]RasterBufferAndPrint [16:26:42]line [16:26:42]line [16:26:42]line [16:26:42]line [16:26:42]line [16:26:42]written 0, free lines is 3327 [16:26:42]MH_Cut [16:26:42]Write to MH i2c: D1 01 00 83 50 01 A5 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: D1 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: D1 01 00 [16:26:42]MH_I2C_Read... [16:26:42]Read from MH i2c: D1 01 00 83 50 00 A4 [16:26:42]Write to MH i2c: 01 00 00 84 50 D4 [16:26:42]Write i2c OK [16:26:42]MH_I2C_Read... [16:26:42]OFD Sender: No OFD packet to send [16:26:42]*** Cut start [16:26:42]*** Partial cut [16:26:42]*** CUTSNS_PIN = 1 [16:26:42]*** CUTSNS_PIN = 0 [16:26:43]*** Brake cut motor [16:26:43]Read from MH i2c: 01 [16:26:43]MH_I2C_Read... [16:26:43]*** Stop cut motor [16:26:43]*** Cut end [16:26:43]Read from MH i2c: 01 07 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: 01 07 00 84 50 00 00 00 00 00 FF 0F E9 [16:26:43]process_action close_receipt done [16:26:43]requested_data is exist [16:26:43]produce_requested_data [16:26:43]requested_item fm.sn is exist - process it [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 11 00 00 [16:26:43]Write to MH i2c: E2 08 00 85 50 80 11 00 00 00 00 00 00 4F [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 17 00 85 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9E [16:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:26:43]wFMCommunicate OK [16:26:43]requested_item fd.num is exist - process it [16:26:43]SAM_PROTO_GetFieldsCounters [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 13 00 00 [16:26:43]Write to MH i2c: E2 08 00 86 50 80 13 00 00 00 00 00 00 52 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 62 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 62 00 86 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 80 3D 00 00 0E 04 04 00 AC 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 ED [16:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 80 3D 00 00 0E 04 04 00 AC 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 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_GetFieldsCounters done [16:26:43]requested_item shift.num is exist - process it [16:26:43]requested_item shift.opened is exist - process it [16:26:43]req_shift_opened [16:26:43]FM_GetShiftState [16:26:43]SAM_PROTO_GetShiftState [16:26:43]wFMCommunicate request_size=4 [16:26:43]MH_SAM_APDU [16:26:43]CAPDU: 80 13 01 00 [16:26:43]Write to MH i2c: E2 08 00 87 50 80 13 01 00 00 00 00 00 54 [16:26:43]Write i2c OK [16:26:43]MH_I2C_Read... [16:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:43]Read from MH i2c: E2 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0E 00 [16:26:43]MH_I2C_Read... [16:26:43]Read from MH i2c: E2 0E 00 87 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A9 [16:26:43]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:26:43]wFMCommunicate OK [16:26:43]SAM_PROTO_GetShiftState done [16:26:43]FM_GetShiftState done [16:26:43]req_shift_opened done [16:26:43]requested_item shift.open_date is exist - process it [16:26:43]req_shift_open_date [16:26:43]req_shift_open_date done [16:26:43]produce_requested_data done [16:26:43]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15744,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [16:26:43]process_action_free close_receipt [16:26:43]json_value_free [16:26:43]json_value_free done [16:26:43]process_json_proto returns [16:26:43]Send response to host [16:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15744,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [16:26:43]free response buf [16:26:43]execute_script done [16:26:43]execute_script returns [16:26:43]free content buf [16:26:43]Sock 8.Close socket [16:26:43]Sock 8.Thread stoped [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:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:40]accept exits with 9 [16:33:40]New connection [16:33:40]New thread 3066588516 created [16:33:40]Thread 3066731876 joined [16:33:40]Waiting for new connection... [16:33:40] Sock 9.Parse request [16:33:40]Sock 9.Check first char [16:33:40]Sock 9.First char is OK [16:33:40]request: POST /json_proto HTTP/1.0 [16:33:40]Method: POST [16:33:40]URL: /json_proto [16:33:40]Method is POST - this is cgi request [16:33:40]url: /json_proto [16:33:40]query_string will be loaded in cgi processing [16:33:40]execute_cgi json_proto POST (null) [16:33:40]execute_cgi path=json_proto method=POST [16:33:40]POST find Content-Length [16:33:40]Host: 172.17.54.195:8080 [16:33:40]Content-Length: 673 [16:33:40]Content-Type: application/json [16:33:40] [16:33:40]POST finish read [16:33:40]Found Content-Length = 673 [16:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [16:33:40]execute_script... [16:33: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)16295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [16:33:40]POST & json_proto [16:33:40]process_json_proto [16:33:40]json parsed OK: [16:33:40]protocol is kg_v1.0 [16:33:40]action value=close_receipt [16:33:40]process_action close_receipt [16:33:40]cmd_close_receipt [16:33:40]MH_GetDate [16:33:40]Write to MH i2c: F0 00 00 88 50 C7 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: F0 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: F0 09 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: F0 09 00 88 50 00 70 0E 21 67 8D 90 A3 66 FC [16:33:40]GetLastDocTimeStamp 1730219211 [16:33:40]current date 1730219632 [16:33:40]FM_GetShiftState [16:33:40]SAM_PROTO_GetShiftState [16:33:40]wFMCommunicate request_size=4 [16:33:40]MH_SAM_APDU [16:33:40]CAPDU: 80 13 01 00 [16:33:40]Write to MH i2c: E2 08 00 89 50 80 13 01 00 00 00 00 00 56 [16:33:40]Write i2c OK [16:33:40]MH_I2C_Read... [16:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:40]Read from MH i2c: E2 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 0E 00 [16:33:40]MH_I2C_Read... [16:33:40]Read from MH i2c: E2 0E 00 89 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 AB [16:33:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:33:40]wFMCommunicate OK [16:33:40]SAM_PROTO_GetShiftState done [16:33:40]FM_GetShiftState done [16:33:40]opened in 1730161559 [16:33:40]opened+sec_in_day 1730247959 [16:33:40]quantity*price = 50063 [16:33:40]sum+1 = 50064 [16:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 91 29.10.2024 16:33 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15745 ФПД: 265994910010530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T163352&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15745&fm=265994910010530&tin=02508201610067®Number=0000000000161798&sum=50000 [16:33:41]StoreToDocumentArchive [16:33:41]shift 172 fd 15745 [16:33:41]save to /storage/0172/doc_00015745 [16:33:41]save last doc name /storage/0172/doc_00015745 to /storage/kkm_last_doc_name [16:33:41]save OK [16:33:41]Clear old archive folders... [16:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:33:41]tlvbuf is 0031A0F0 [16:33:41]SAM_PROTO_ClearQueue [16:33:41]wFMCommunicate request_size=4 [16:33:41]MH_SAM_APDU [16:33:41]CAPDU: 80 09 00 00 [16:33:41]Write to MH i2c: E2 08 00 96 50 80 09 00 00 00 00 00 00 58 [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:41]Read from MH i2c: E2 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 96 50 00 90 00 5A [16:33:41]RAPDU: 90 00 [16:33:41]wFMCommunicate OK [16:33:41]SAM_PROTO_ClearQueue done [16:33:41]KKMCreateOFDPacket [16:33:41]OFDProtocolAddRootSTLVToBuf [16:33:41]FM_MakeSignedData [16:33:41]FM_MakeSignedData [16:33:41]SAM_PROTO_SignData [16:33:41]wFMCommunicate request_size=4 [16:33:41]MH_SAM_APDU [16:33:41]CAPDU: 80 0D 01 02 [16:33:41]Write to MH i2c: E2 08 00 97 50 80 0D 01 02 00 00 00 00 60 [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:41]Read from MH i2c: E2 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 [16:33:41]MH_I2C_Read... [16:33:41]Read from MH i2c: E2 03 00 97 50 00 90 00 5B [16:33:41]RAPDU: 90 00 [16:33:41]wFMCommunicate OK [16:33:41]wFMCommunicate request_size=255 [16:33:41]MH_SAM_APDU [16:33:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 70 0E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 81 3D 00 00 35 04 06 00 F1 EB C4 1F [16:33:41]Write to MH i2c: E2 02 01 98 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 35 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 5B 00 00 00 F4 03 04 00 70 0E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 81 3D 00 00 35 04 06 00 F1 EB C4 1F 00 00 FA [16:33:41]Write i2c OK [16:33:41]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 03 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 03 00 98 50 00 90 00 5C [16:33:42]RAPDU: 90 00 [16:33:42]wFMCommunicate OK [16:33:42]wFMCommunicate request_size=7 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 0D 02 02 02 8C A2 [16:33:42]Write to MH i2c: E2 0A 00 99 50 80 0D 02 02 02 00 8C A2 00 00 95 [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 03 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 03 00 99 50 00 90 00 5D [16:33:42]RAPDU: 90 00 [16:33:42]wFMCommunicate OK [16:33:42]wFMCommunicate request_size=4 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 0D 03 02 [16:33:42]Write to MH i2c: E2 08 00 9A 50 80 0D 03 02 00 00 00 00 65 [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 0B 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 0B 00 9A 50 00 67 A1 7E EE 66 C5 6D 08 90 00 7A [16:33:42]RAPDU: 67 A1 7E EE 66 C5 6D 08 90 00 [16:33:42]wFMCommunicate OK [16:33:42]SAM_PROTO_SignData done [16:33:42]FM_MakeSignedData done [16:33:42]CreateOFDProtocolMessage [16:33:42]wFMCommunicate request_size=4 [16:33:42]MH_SAM_APDU [16:33:42]CAPDU: 80 11 00 00 [16:33:42]Write to MH i2c: E2 08 00 9B 50 80 11 00 00 00 00 00 00 65 [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:42]Read from MH i2c: E2 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: E2 17 00 9B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B4 [16:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:33:42]wFMCommunicate OK [16:33:42]CreateOFDProtocolMessage done [16:33:42]OFDSenderStorePacket 15745 [16:33:42]StoreOFDPacket docnum=15745 [16:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 25 C9 04 01 3F B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 70 0E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 81 3D 00 00 35 04 06 00 F1 EB C4 1F 8C A2 67 A1 7E EE 66 C5 6D 08 [16:33:42]CheckFolder [16:33:42]dirname=/storage/ofd_packets [16:33:42]CheckFolder done [16:33:42]ProducePacketName [16:33:42]name=ofd_packets/00015745 [16:33:42]NVStorageSaveData ofd_packets/00015745 [16:33:42]File name is /storage/ofd_packets/00015745 [16:33:42]Write 298 bytes [16:33:42]NVStorageSaveData done [16:33:42]OFDSenderStorePacket done [16:33:42]KKMCreateOFDPacket done [16:33:42]NVStorageSaveData kkm_last_timestamp [16:33:42]File name is /storage/kkm_last_timestamp [16:33:42]Write 4 bytes [16:33:42]NVStorageSaveData done [16:33:42]ExternCall_PrintAddStr [16:33:42]wPrintStart [16:33:42]Write to MH i2c: 01 00 00 9C 50 EC [16:33:42]Write i2c OK [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: 01 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: 01 07 00 [16:33:42]MH_I2C_Read... [16:33:42]Read from MH i2c: 01 07 00 9C 50 00 00 00 00 00 FF 0F 01 [16:33:42]RasterBufferAndPrint [16:33:42]line Счет N : (1)16295 [16:33:42]line ИНН: 02508201610067 [16:33:42]line Контрольно-Кассовый Чек [16:33:42]line ПРОДАЖА [16:33:42]line ТРК (МРК, ГНК) : 22 [16:33:42]line Товар: 2710194210 [16:33:42]line ДТ-К-5 [16:33:42]line 6.570 * 76.20 [16:33:42]line = 500.63 [16:33:42]line НДС 12% НСП 1% [16:33:42]line > о реализуемом товаре [16:33:42]line ОКРУГЛЕНИЕ: -0.63 [16:33:42]line ИТОГО: 500.00 [16:33:42]line Внесено: 500.00 [16:33:42]line СДАЧА: 0.00 [16:33:42]line НСП 1% : 4.43 [16:33:42]line НДС 12% : 53.16 [16:33:42]line Наличными: 500.00 [16:33:42]line Безнал.: 0.00 [16:33:42]line Место: АЗС № 178 "Партнер Нефть" [16:33:42]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [16:33:42]line СНО: Общий режим [16:33:42]line Чек 91 29.10.2024 16:33 [16:33:42]line Смена: 172 ФФД: 1.0 [16:33:42]line ЗНМ: 0300000014 [16:33:42]line РНМ: 0000000000161798 [16:33:42]line Версия ККМ: v1.0 [16:33:42]line ФМ: 0000000000963325 [16:33:42]line ФД: 15745 [16:33:42]line ФПД: 265994910010530 [16:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T163352&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15745&fm=265994910010530&tin=02508201610067®Number=0000000000161798&sum=50000 [16:33:42]OFD Sender: Processing packet 15745 [packets to send 4, broken 3] [16:33:42]ProducePacketName [16:33:42]name=ofd_packets/00015745 [16:33:42]OFD Sender: To server: pG, [16:33:42]CommunicateWithHost lk.salyk.kg:30040 [16:33:42]ConnectInit lk.salyk.kg [16:33:42]written 0, free lines is 4095 [16:33:42]Connected sock=10 [16:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 25 C9 04 01 3F B7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 00 00 00 F4 03 04 00 70 0E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 81 3D 00 00 35 04 06 00 F1 EB C4 1F 8C A2 67 A1 7E EE 66 C5 6D 08 [16:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 A8 42 47 00 D8 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 81 3D 00 00 F4 03 04 00 5C B9 20 67 B6 04 01 00 00 AD 54 43 CD E2 CA 87 8D [16:33:42]CommunicateWithHost err = 0 [16:33:42]CheckOFDResponse [16:33:42]1017 (14) - 77093643461234 [16:33:42]1041 (16) - 0000000000963325 [16:33:42]1040 (4) - 15745 [16:33:42]1012 (4) - 29.10.2024 10:30 [16:33:42]1206 (1) - 0 [16:33:42]OFD Sender: Remove packet 15745 [16:33:42]ProducePacketName [16:33:42]name=ofd_packets/00015745 [16:33:42]NVStorageDeleteData [16:33:43]Write to MH i2c: 01 00 00 C7 50 17 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 07 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: 01 07 00 C7 50 00 00 00 00 00 F3 0C 1D [16:33:43]RasterBufferAndPrint [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]line [16:33:43]written 0, free lines is 3321 [16:33:43]MH_Cut [16:33:43]Write to MH i2c: D1 01 00 CE 50 01 F0 [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 01 00 [16:33:43]MH_I2C_Read... [16:33:43]Read from MH i2c: D1 01 00 CE 50 00 EF [16:33:43]Write to MH i2c: 01 00 00 CF 50 1F [16:33:43]Write i2c OK [16:33:43]MH_I2C_Read... [16:33:43]OFD Sender: No OFD packet to send [16:33:43]*** Cut start [16:33:43]*** Partial cut [16:33:43]*** CUTSNS_PIN = 1 [16:33:43]*** CUTSNS_PIN = 0 [16:33:44]*** Brake cut motor [16:33:44]Read from MH i2c: 01 [16:33:44]MH_I2C_Read... [16:33:44]*** Stop cut motor [16:33:44]*** Cut end [16:33:44]Read from MH i2c: 01 07 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: 01 07 00 CF 50 00 00 00 00 00 FF 0F 34 [16:33:44]process_action close_receipt done [16:33:44]requested_data is exist [16:33:44]produce_requested_data [16:33:44]requested_item fm.sn is exist - process it [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 11 00 00 [16:33:44]Write to MH i2c: E2 08 00 D0 50 80 11 00 00 00 00 00 00 9A [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 17 00 D0 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E9 [16:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:33:44]wFMCommunicate OK [16:33:44]requested_item fd.num is exist - process it [16:33:44]SAM_PROTO_GetFieldsCounters [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 13 00 00 [16:33:44]Write to MH i2c: E2 08 00 D1 50 80 13 00 00 00 00 00 00 9D [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 62 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 62 00 D1 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 81 3D 00 00 0E 04 04 00 AC 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 3C [16:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 81 3D 00 00 0E 04 04 00 AC 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 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_GetFieldsCounters done [16:33:44]requested_item shift.num is exist - process it [16:33:44]requested_item shift.opened is exist - process it [16:33:44]req_shift_opened [16:33:44]FM_GetShiftState [16:33:44]SAM_PROTO_GetShiftState [16:33:44]wFMCommunicate request_size=4 [16:33:44]MH_SAM_APDU [16:33:44]CAPDU: 80 13 01 00 [16:33:44]Write to MH i2c: E2 08 00 D2 50 80 13 01 00 00 00 00 00 9F [16:33:44]Write i2c OK [16:33:44]MH_I2C_Read... [16:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:44]Read from MH i2c: E2 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 [16:33:44]MH_I2C_Read... [16:33:44]Read from MH i2c: E2 0E 00 D2 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F4 [16:33:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:33:44]wFMCommunicate OK [16:33:44]SAM_PROTO_GetShiftState done [16:33:44]FM_GetShiftState done [16:33:44]req_shift_opened done [16:33:44]requested_item shift.open_date is exist - process it [16:33:44]req_shift_open_date [16:33:44]req_shift_open_date done [16:33:44]produce_requested_data done [16:33:44]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15745,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [16:33:44]process_action_free close_receipt [16:33:44]json_value_free [16:33:44]json_value_free done [16:33:44]process_json_proto returns [16:33:44]Send response to host [16:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15745,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [16:33:44]free response buf [16:33:44]execute_script done [16:33:44]execute_script returns [16:33:44]free content buf [16:33:44]Sock 9.Close socket [16:33:44]Sock 9.Thread stoped [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:19]accept exits with 8 [16:39:19]New connection [16:39:19]New thread 3066731876 created [16:39:19]Thread 3066588516 joined [16:39:19]Waiting for new connection... [16:39:19] Sock 8.Parse request [16:39:19]Sock 8.Check first char [16:39:19]Sock 8.First char is OK [16:39:19]request: POST /json_proto HTTP/1.0 [16:39:19]Method: POST [16:39:19]URL: /json_proto [16:39:19]Method is POST - this is cgi request [16:39:19]url: /json_proto [16:39:19]query_string will be loaded in cgi processing [16:39:19]execute_cgi json_proto POST (null) [16:39:19]execute_cgi path=json_proto method=POST [16:39:19]POST find Content-Length [16:39:19]Host: 172.17.54.195:8080 [16:39:19]Content-Length: 681 [16:39:19]Content-Type: application/json [16:39:19] [16:39:19]POST finish read [16:39:19]Found Content-Length = 681 [16:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [16:39:19]execute_script... [16:39:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 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" ] } } [16:39:19]POST & json_proto [16:39:19]process_json_proto [16:39:19]json parsed OK: [16:39:19]protocol is kg_v1.0 [16:39:19]action value=close_receipt [16:39:19]process_action close_receipt [16:39:19]cmd_close_receipt [16:39:19]MH_GetDate [16:39:19]Write to MH i2c: F0 00 00 D3 50 12 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: F0 09 00 D3 50 00 C3 0F 21 67 8D 90 A3 66 9B [16:39:19]GetLastDocTimeStamp 1730219632 [16:39:19]current date 1730219971 [16:39:19]FM_GetShiftState [16:39:19]SAM_PROTO_GetShiftState [16:39:19]wFMCommunicate request_size=4 [16:39:19]MH_SAM_APDU [16:39:19]CAPDU: 80 13 01 00 [16:39:19]Write to MH i2c: E2 08 00 D4 50 80 13 01 00 00 00 00 00 A1 [16:39:19]Write i2c OK [16:39:19]MH_I2C_Read... [16:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:19]Read from MH i2c: E2 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 [16:39:19]MH_I2C_Read... [16:39:19]Read from MH i2c: E2 0E 00 D4 50 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 F6 [16:39:19]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:39:19]wFMCommunicate OK [16:39:19]SAM_PROTO_GetShiftState done [16:39:19]FM_GetShiftState done [16:39:19]opened in 1730161559 [16:39:19]opened+sec_in_day 1730247959 [16:39:19]quantity*price = 100021 [16:39:19]sum+1 = 100023 [16:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 92 29.10.2024 16:39 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15746 ФПД: 68039329588011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T163931&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15746&fm=68039329588011&tin=02508201610067®Number=0000000000161798&sum=100000 [16:39:20]StoreToDocumentArchive [16:39:20]shift 172 fd 15746 [16:39:20]save to /storage/0172/doc_00015746 [16:39:20]save last doc name /storage/0172/doc_00015746 to /storage/kkm_last_doc_name [16:39:20]save OK [16:39:20]Clear old archive folders... [16:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:39:20]tlvbuf is 00325AF0 [16:39:20]SAM_PROTO_ClearQueue [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 09 00 00 [16:39:20]Write to MH i2c: E2 08 00 E1 50 80 09 00 00 00 00 00 00 A3 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 E1 50 00 90 00 A5 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]SAM_PROTO_ClearQueue done [16:39:20]KKMCreateOFDPacket [16:39:20]OFDProtocolAddRootSTLVToBuf [16:39:20]FM_MakeSignedData [16:39:20]FM_MakeSignedData [16:39:20]SAM_PROTO_SignData [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 01 02 [16:39:20]Write to MH i2c: E2 08 00 E2 50 80 0D 01 02 00 00 00 00 AB [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 E2 50 00 90 00 A6 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]wFMCommunicate request_size=255 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 5C 00 00 00 F4 03 04 00 C3 0F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 82 3D 00 00 35 04 06 00 3D [16:39:20]Write to MH i2c: E2 02 01 E3 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 5C 00 00 00 F4 03 04 00 C3 0F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 82 3D 00 00 35 04 06 00 3D 00 00 B8 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 E3 50 00 90 00 A7 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]wFMCommunicate request_size=10 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 02 02 05 E1 A4 12 23 2B [16:39:20]Write to MH i2c: E2 0D 00 E4 50 80 0D 02 02 05 00 E1 A4 12 23 2B 00 00 9D [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 03 00 E4 50 00 90 00 A8 [16:39:20]RAPDU: 90 00 [16:39:20]wFMCommunicate OK [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 0D 03 02 [16:39:20]Write to MH i2c: E2 08 00 E5 50 80 0D 03 02 00 00 00 00 B0 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 0B 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 0B 00 E5 50 00 5A 84 E3 F2 C0 24 6A 1E 90 00 D0 [16:39:20]RAPDU: 5A 84 E3 F2 C0 24 6A 1E 90 00 [16:39:20]wFMCommunicate OK [16:39:20]SAM_PROTO_SignData done [16:39:20]FM_MakeSignedData done [16:39:20]CreateOFDProtocolMessage [16:39:20]wFMCommunicate request_size=4 [16:39:20]MH_SAM_APDU [16:39:20]CAPDU: 80 11 00 00 [16:39:20]Write to MH i2c: E2 08 00 E6 50 80 11 00 00 00 00 00 00 B0 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:20]Read from MH i2c: E2 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 17 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: E2 17 00 E6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 FF [16:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:39:20]wFMCommunicate OK [16:39:20]CreateOFDProtocolMessage done [16:39:20]OFDSenderStorePacket 15746 [16:39:20]StoreOFDPacket docnum=15746 [16:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5C CD 07 01 DE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 5C 00 00 00 F4 03 04 00 C3 0F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 82 3D 00 00 35 04 06 00 3D E1 A4 12 23 2B 5A 84 E3 F2 C0 24 6A 1E [16:39:20]CheckFolder [16:39:20]dirname=/storage/ofd_packets [16:39:20]CheckFolder done [16:39:20]ProducePacketName [16:39:20]name=ofd_packets/00015746 [16:39:20]NVStorageSaveData ofd_packets/00015746 [16:39:20]File name is /storage/ofd_packets/00015746 [16:39:20]Write 301 bytes [16:39:20]NVStorageSaveData done [16:39:20]OFDSenderStorePacket done [16:39:20]KKMCreateOFDPacket done [16:39:20]NVStorageSaveData kkm_last_timestamp [16:39:20]File name is /storage/kkm_last_timestamp [16:39:20]Write 4 bytes [16:39:20]NVStorageSaveData done [16:39:20]ExternCall_PrintAddStr [16:39:20]wPrintStart [16:39:20]Write to MH i2c: 01 00 00 E7 50 37 [16:39:20]Write i2c OK [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: 01 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: 01 07 00 [16:39:20]MH_I2C_Read... [16:39:20]Read from MH i2c: 01 07 00 E7 50 00 00 00 00 00 FF 0F 4C [16:39:20]RasterBufferAndPrint [16:39:20]line Счет N : (1)16296 [16:39:20]line ИНН: 02508201610067 [16:39:20]line Контрольно-Кассовый Чек [16:39:20]line ПРОДАЖА [16:39:20]line ТРК (МРК, ГНК) : 11 [16:39:20]line Товар: 2710124500 [16:39:20]line Аи-95-К-5 [16:39:20]line 13.480 * 74.20 [16:39:20]line = 1000.22 [16:39:20]line НДС 12% НСП 1% [16:39:20]line > о реализуемом товаре [16:39:20]line ОКРУГЛЕНИЕ: -0.22 [16:39:20]line ИТОГО: 1000.00 [16:39:20]line Внесено: 1000.00 [16:39:20]line СДАЧА: 0.00 [16:39:20]line НСП 1% : 8.85 [16:39:20]line НДС 12% : 106.22 [16:39:20]line Наличными: 1000.00 [16:39:20]line Безнал.: 0.00 [16:39:20]line Место: АЗС № 178 "Партнер Нефть" [16:39:20]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [16:39:20]line СНО: Общий режим [16:39:20]line Чек 92 29.10.2024 16:39 [16:39:20]line Смена: 172 ФФД: 1.0 [16:39:20]line ЗНМ: 0300000014 [16:39:20]line РНМ: 0000000000161798 [16:39:20]line Версия ККМ: v1.0 [16:39:20]line ФМ: 0000000000963325 [16:39:20]line ФД: 15746 [16:39:20]line ФПД: 68039329588011 [16:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T163931&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15746&fm=68039329588011&tin=02508201610067®Number=0000000000161798&sum=100000 [16:39:21]OFD Sender: Processing packet 15746 [packets to send 4, broken 3] [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00015746 [16:39:21]OFD Sender: To server: pG, [16:39:21]CommunicateWithHost lk.salyk.kg:30040 [16:39:21]ConnectInit lk.salyk.kg [16:39:21]written 0, free lines is 4095 [16:39:21]Connected sock=10 [16:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5C CD 07 01 DE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 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 5C 00 00 00 F4 03 04 00 C3 0F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 82 3D 00 00 35 04 06 00 3D E1 A4 12 23 2B 5A 84 E3 F2 C0 24 6A 1E [16:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 7A 09 47 00 C6 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 82 3D 00 00 F4 03 04 00 AF BA 20 67 B6 04 01 00 00 81 E1 9F AE A5 00 FB C9 [16:39:21]CommunicateWithHost err = 0 [16:39:21]CheckOFDResponse [16:39:21]1017 (14) - 77093643461234 [16:39:21]1041 (16) - 0000000000963325 [16:39:21]1040 (4) - 15746 [16:39:21]1012 (4) - 29.10.2024 10:36 [16:39:21]1206 (1) - 0 [16:39:21]OFD Sender: Remove packet 15746 [16:39:21]ProducePacketName [16:39:21]name=ofd_packets/00015746 [16:39:21]NVStorageDeleteData [16:39:21]Write to MH i2c: 01 00 00 12 51 63 [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: 01 07 00 12 51 00 00 00 00 00 F6 0C 6C [16:39:21]RasterBufferAndPrint [16:39:21]line [16:39:21]line [16:39:21]line [16:39:21]line [16:39:21]line [16:39:21]written 0, free lines is 3324 [16:39:21]MH_Cut [16:39:21]Write to MH i2c: D1 01 00 19 51 01 3C [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: D1 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: D1 01 00 [16:39:21]MH_I2C_Read... [16:39:21]Read from MH i2c: D1 01 00 19 51 00 3B [16:39:21]Write to MH i2c: 01 00 00 1A 51 6B [16:39:21]Write i2c OK [16:39:21]MH_I2C_Read... [16:39:22]OFD Sender: No OFD packet to send [16:39:22]*** Cut start [16:39:22]*** Partial cut [16:39:22]*** CUTSNS_PIN = 1 [16:39:22]*** CUTSNS_PIN = 0 [16:39:22]*** Brake cut motor [16:39:23]Read from MH i2c: 01 [16:39:23]MH_I2C_Read... [16:39:23]*** Stop cut motor [16:39:23]*** Cut end [16:39:23]Read from MH i2c: 01 07 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: 01 07 00 1A 51 00 00 00 00 00 FF 0F 80 [16:39:23]process_action close_receipt done [16:39:23]requested_data is exist [16:39:23]produce_requested_data [16:39:23]requested_item fm.sn is exist - process it [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 11 00 00 [16:39:23]Write to MH i2c: E2 08 00 1B 51 80 11 00 00 00 00 00 00 E6 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 17 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 17 00 1B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 35 [16:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:39:23]wFMCommunicate OK [16:39:23]requested_item fd.num is exist - process it [16:39:23]SAM_PROTO_GetFieldsCounters [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 00 00 [16:39:23]Write to MH i2c: E2 08 00 1C 51 80 13 00 00 00 00 00 00 E9 [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 62 00 1C 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 82 3D 00 00 0E 04 04 00 AC 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 8C [16:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 82 3D 00 00 0E 04 04 00 AC 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 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetFieldsCounters done [16:39:23]requested_item shift.num is exist - process it [16:39:23]requested_item shift.opened is exist - process it [16:39:23]req_shift_opened [16:39:23]FM_GetShiftState [16:39:23]SAM_PROTO_GetShiftState [16:39:23]wFMCommunicate request_size=4 [16:39:23]MH_SAM_APDU [16:39:23]CAPDU: 80 13 01 00 [16:39:23]Write to MH i2c: E2 08 00 1D 51 80 13 01 00 00 00 00 00 EB [16:39:23]Write i2c OK [16:39:23]MH_I2C_Read... [16:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:23]Read from MH i2c: E2 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 [16:39:23]MH_I2C_Read... [16:39:23]Read from MH i2c: E2 0E 00 1D 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 40 [16:39:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:39:23]wFMCommunicate OK [16:39:23]SAM_PROTO_GetShiftState done [16:39:23]FM_GetShiftState done [16:39:23]req_shift_opened done [16:39:23]requested_item shift.open_date is exist - process it [16:39:23]req_shift_open_date [16:39:23]req_shift_open_date done [16:39:23]produce_requested_data done [16:39:23]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15746,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [16:39:23]process_action_free close_receipt [16:39:23]json_value_free [16:39:23]json_value_free done [16:39:23]process_json_proto returns [16:39:23]Send response to host [16:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15746,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [16:39:23]free response buf [16:39:23]execute_script done [16:39:23]execute_script returns [16:39:23]free content buf [16:39:23]Sock 8.Close socket [16:39:23]Sock 8.Thread stoped [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:52]OFD Sender: No OFD packet to send [16:48:57]OFD Sender: No OFD packet to send [16:49:02]OFD Sender: No OFD packet to send [16:49:07]OFD Sender: No OFD packet to send [16:49:12]OFD Sender: No OFD packet to send [16:49:17]OFD Sender: No OFD packet to send [16:49:22]OFD Sender: No OFD packet to send [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:17]OFD Sender: No OFD packet to send [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:16]accept exits with 9 [16:51:16]New connection [16:51:16]New thread 3066588516 created [16:51:16]Thread 3066731876 joined [16:51:16]Waiting for new connection... [16:51:16] Sock 9.Parse request [16:51:16]Sock 9.Check first char [16:51:16]Sock 9.First char is OK [16:51:16]request: POST /json_proto HTTP/1.0 [16:51:16]Method: POST [16:51:16]URL: /json_proto [16:51:16]Method is POST - this is cgi request [16:51:16]url: /json_proto [16:51:16]query_string will be loaded in cgi processing [16:51:16]execute_cgi json_proto POST (null) [16:51:16]execute_cgi path=json_proto method=POST [16:51:16]POST find Content-Length [16:51:16]Host: 172.17.54.195:8080 [16:51:16]Content-Length: 671 [16:51:16]Content-Type: application/json [16:51:16] [16:51:16]POST finish read [16:51:16]Found Content-Length = 671 [16:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 27.740, "sum" : 1897.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1897.00, "payments": [ { "type": 0, "sum" : 1897.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:16]execute_script... [16:51: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)16297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 27.740, "sum" : 1897.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1897.00, "payments": [ { "type": 0, "sum" : 1897.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:16]POST & json_proto [16:51:16]process_json_proto [16:51:16]json parsed OK: [16:51:16]protocol is kg_v1.0 [16:51:16]action value=close_receipt [16:51:16]process_action close_receipt [16:51:16]cmd_close_receipt [16:51:16]MH_GetDate [16:51:16]Write to MH i2c: F0 00 00 1E 51 5E [16:51:16]Write i2c OK [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: F0 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: F0 09 00 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: F0 09 00 1E 51 00 90 12 21 67 8D 90 A3 66 B7 [16:51:16]GetLastDocTimeStamp 1730219971 [16:51:16]current date 1730220688 [16:51:16]FM_GetShiftState [16:51:16]SAM_PROTO_GetShiftState [16:51:16]wFMCommunicate request_size=4 [16:51:16]MH_SAM_APDU [16:51:16]CAPDU: 80 13 01 00 [16:51:16]Write to MH i2c: E2 08 00 1F 51 80 13 01 00 00 00 00 00 ED [16:51:16]Write i2c OK [16:51:16]MH_I2C_Read... [16:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:16]Read from MH i2c: E2 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: E2 0E 00 [16:51:16]MH_I2C_Read... [16:51:16]Read from MH i2c: E2 0E 00 1F 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 42 [16:51:16]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:51:16]wFMCommunicate OK [16:51:16]SAM_PROTO_GetShiftState done [16:51:16]FM_GetShiftState done [16:51:16]opened in 1730161559 [16:51:16]opened+sec_in_day 1730247959 [16:51:16]quantity*price = 189741 [16:51:16]sum+1 = 189743 [16:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1897.00 Внесено: 2000.00 СДАЧА: 103.00 НСП 1% : 16.79 НДС 12% : 201.50 Наличными: 1897.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 93 29.10.2024 16:51 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15747 ФПД: 203628107792195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T165128&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15747&fm=203628107792195&tin=02508201610067®Number=0000000000161798&sum=189700 [16:51:17]StoreToDocumentArchive [16:51:17]shift 172 fd 15747 [16:51:17]save to /storage/0172/doc_00015747 [16:51:17]save last doc name /storage/0172/doc_00015747 to /storage/kkm_last_doc_name [16:51:17]save OK [16:51:17]Clear old archive folders... [16:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=249 [16:51:17]tlvbuf is B6F22480 [16:51:17]SAM_PROTO_ClearQueue [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 09 00 00 [16:51:17]Write to MH i2c: E2 08 00 2C 51 80 09 00 00 00 00 00 00 EF [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:17]Read from MH i2c: E2 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 03 00 [16:51:17]MH_I2C_Read... [16:51:17]Read from MH i2c: E2 03 00 2C 51 00 90 00 F1 [16:51:17]RAPDU: 90 00 [16:51:17]wFMCommunicate OK [16:51:17]SAM_PROTO_ClearQueue done [16:51:17]KKMCreateOFDPacket [16:51:17]OFDProtocolAddRootSTLVToBuf [16:51:17]FM_MakeSignedData [16:51:17]FM_MakeSignedData [16:51:17]SAM_PROTO_SignData [16:51:17]wFMCommunicate request_size=4 [16:51:17]MH_SAM_APDU [16:51:17]CAPDU: 80 0D 01 02 [16:51:17]Write to MH i2c: E2 08 00 2D 51 80 0D 01 02 00 00 00 00 F7 [16:51:17]Write i2c OK [16:51:17]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 2D 51 00 90 00 F2 [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=255 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 6C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 2E E5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 E5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 4E 00 00 00 00 07 04 06 00 04 E5 02 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 90 12 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 83 3D 00 00 35 04 06 00 B9 32 DD [16:51:18]Write to MH i2c: E2 02 01 2E 51 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 6C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 2E E5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 E5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 4E 00 00 00 00 07 04 06 00 04 E5 02 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 90 12 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 83 3D 00 00 35 04 06 00 B9 32 DD 00 00 D2 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 2E 51 00 90 00 F3 [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=8 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 02 02 03 07 FF 43 [16:51:18]Write to MH i2c: E2 0B 00 2F 51 80 0D 02 02 03 00 07 FF 43 00 00 49 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 03 00 2F 51 00 90 00 F4 [16:51:18]RAPDU: 90 00 [16:51:18]wFMCommunicate OK [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 0D 03 02 [16:51:18]Write to MH i2c: E2 08 00 30 51 80 0D 03 02 00 00 00 00 FC [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 0B 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 0B 00 30 51 00 72 B5 94 5D ED C3 C6 73 90 00 FE [16:51:18]RAPDU: 72 B5 94 5D ED C3 C6 73 90 00 [16:51:18]wFMCommunicate OK [16:51:18]SAM_PROTO_SignData done [16:51:18]FM_MakeSignedData done [16:51:18]CreateOFDProtocolMessage [16:51:18]wFMCommunicate request_size=4 [16:51:18]MH_SAM_APDU [16:51:18]CAPDU: 80 11 00 00 [16:51:18]Write to MH i2c: E2 08 00 31 51 80 11 00 00 00 00 00 00 FC [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:18]Read from MH i2c: E2 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 17 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: E2 17 00 31 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4B [16:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:51:18]wFMCommunicate OK [16:51:18]CreateOFDProtocolMessage done [16:51:18]OFDSenderStorePacket 15747 [16:51:18]StoreOFDPacket docnum=15747 [16:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 CD CE 05 01 48 3F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 6C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 2E E5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 E5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 4E 00 00 00 00 07 04 06 00 04 E5 02 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 90 12 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 83 3D 00 00 35 04 06 00 B9 32 DD 07 FF 43 72 B5 94 5D ED C3 C6 73 [16:51:18]CheckFolder [16:51:18]dirname=/storage/ofd_packets [16:51:18]CheckFolder done [16:51:18]ProducePacketName [16:51:18]name=ofd_packets/00015747 [16:51:18]NVStorageSaveData ofd_packets/00015747 [16:51:18]File name is /storage/ofd_packets/00015747 [16:51:18]Write 299 bytes [16:51:18]NVStorageSaveData done [16:51:18]OFDSenderStorePacket done [16:51:18]KKMCreateOFDPacket done [16:51:18]NVStorageSaveData kkm_last_timestamp [16:51:18]File name is /storage/kkm_last_timestamp [16:51:18]Write 4 bytes [16:51:18]NVStorageSaveData done [16:51:18]ExternCall_PrintAddStr [16:51:18]wPrintStart [16:51:18]Write to MH i2c: 01 00 00 32 51 83 [16:51:18]Write i2c OK [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 07 00 [16:51:18]MH_I2C_Read... [16:51:18]Read from MH i2c: 01 07 00 32 51 00 00 00 00 00 FF 0F 98 [16:51:18]RasterBufferAndPrint [16:51:18]line Счет N : (1)16297 [16:51:18]line ИНН: 02508201610067 [16:51:18]line Контрольно-Кассовый Чек [16:51:18]line ПРОДАЖА [16:51:18]line ТРК (МРК, ГНК) : 12 [16:51:18]line Товар: 50.50.0 [16:51:18]line SUPER 92-К-5 [16:51:18]line 27.740 * 68.40 [16:51:18]line = 1897.42 [16:51:18]line НДС 12% НСП 1% [16:51:18]line > о реализуемом товаре [16:51:18]line ОКРУГЛЕНИЕ: -0.42 [16:51:18]line ИТОГО: 1897.00 [16:51:18]line Внесено: 2000.00 [16:51:18]line СДАЧА: 103.00 [16:51:18]line НСП 1% : 16.79 [16:51:18]line НДС 12% : 201.50 [16:51:18]line Наличными: 1897.00 [16:51:18]line Безнал.: 0.00 [16:51:18]line Место: АЗС № 178 "Партнер Нефть" [16:51:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [16:51:18]line СНО: Общий режим [16:51:18]line Чек 93 29.10.2024 16:51 [16:51:18]line Смена: 172 ФФД: 1.0 [16:51:18]line ЗНМ: 0300000014 [16:51:18]line РНМ: 0000000000161798 [16:51:18]line Версия ККМ: v1.0 [16:51:18]line ФМ: 0000000000963325 [16:51:18]line ФД: 15747 [16:51:18]line ФПД: 203628107792195 [16:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T165128&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15747&fm=203628107792195&tin=02508201610067®Number=0000000000161798&sum=189700 [16:51:18]OFD Sender: Processing packet 15747 [packets to send 4, broken 3] [16:51:18]ProducePacketName [16:51:18]name=ofd_packets/00015747 [16:51:18]OFD Sender: To server: pG, [16:51:18]CommunicateWithHost lk.salyk.kg:30040 [16:51:18]ConnectInit lk.salyk.kg [16:51:18]written 0, free lines is 4095 [16:51:18]Connected sock=10 [16:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 CD CE 05 01 48 3F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 6C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 2E E5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 E5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 4E 00 00 00 00 07 04 06 00 04 E5 02 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 90 12 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 83 3D 00 00 35 04 06 00 B9 32 DD 07 FF 43 72 B5 94 5D ED C3 C6 73 [16:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5E FC 47 00 03 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 83 3D 00 00 F4 03 04 00 7D BD 20 67 B6 04 01 00 00 F2 3E 2F 26 AA 4B 34 9C [16:51:19]CommunicateWithHost err = 0 [16:51:19]CheckOFDResponse [16:51:19]1017 (14) - 77093643461234 [16:51:19]1041 (16) - 0000000000963325 [16:51:19]1040 (4) - 15747 [16:51:19]1012 (4) - 29.10.2024 10:48 [16:51:19]1206 (1) - 0 [16:51:19]OFD Sender: Remove packet 15747 [16:51:19]ProducePacketName [16:51:19]name=ofd_packets/00015747 [16:51:19]NVStorageDeleteData [16:51:19]Write to MH i2c: 01 00 00 5D 51 AE [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: 01 07 00 5D 51 00 00 00 00 00 06 0D C8 [16:51:19]RasterBufferAndPrint [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]line [16:51:19]written 0, free lines is 3344 [16:51:19]MH_Cut [16:51:19]Write to MH i2c: D1 01 00 64 51 01 87 [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 01 00 [16:51:19]MH_I2C_Read... [16:51:19]Read from MH i2c: D1 01 00 64 51 00 86 [16:51:19]Write to MH i2c: 01 00 00 65 51 B6 [16:51:19]Write i2c OK [16:51:19]MH_I2C_Read... [16:51:19]OFD Sender: No OFD packet to send [16:51:19]*** Cut start [16:51:19]*** Partial cut [16:51:19]*** CUTSNS_PIN = 1 [16:51:20]*** CUTSNS_PIN = 0 [16:51:20]*** Brake cut motor [16:51:20]Read from MH i2c: 01 [16:51:20]MH_I2C_Read... [16:51:20]*** Stop cut motor [16:51:20]*** Cut end [16:51:20]Read from MH i2c: 01 07 00 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: 01 07 00 65 51 00 00 00 00 00 FF 0F CB [16:51:20]process_action close_receipt done [16:51:20]requested_data is exist [16:51:20]produce_requested_data [16:51:20]requested_item fm.sn is exist - process it [16:51:20]wFMCommunicate request_size=4 [16:51:20]MH_SAM_APDU [16:51:20]CAPDU: 80 11 00 00 [16:51:20]Write to MH i2c: E2 08 00 66 51 80 11 00 00 00 00 00 00 31 [16:51:20]Write i2c OK [16:51:20]MH_I2C_Read... [16:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:20]Read from MH i2c: E2 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 17 00 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 17 00 66 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 80 [16:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:51:20]wFMCommunicate OK [16:51:20]requested_item fd.num is exist - process it [16:51:20]SAM_PROTO_GetFieldsCounters [16:51:20]wFMCommunicate request_size=4 [16:51:20]MH_SAM_APDU [16:51:20]CAPDU: 80 13 00 00 [16:51:20]Write to MH i2c: E2 08 00 67 51 80 13 00 00 00 00 00 00 34 [16:51:20]Write i2c OK [16:51:20]MH_I2C_Read... [16:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:20]Read from MH i2c: E2 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 62 00 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 62 00 67 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 83 3D 00 00 0E 04 04 00 AC 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 DB [16:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 83 3D 00 00 0E 04 04 00 AC 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 [16:51:20]wFMCommunicate OK [16:51:20]SAM_PROTO_GetFieldsCounters done [16:51:20]requested_item shift.num is exist - process it [16:51:20]requested_item shift.opened is exist - process it [16:51:20]req_shift_opened [16:51:20]FM_GetShiftState [16:51:20]SAM_PROTO_GetShiftState [16:51:20]wFMCommunicate request_size=4 [16:51:20]MH_SAM_APDU [16:51:20]CAPDU: 80 13 01 00 [16:51:20]Write to MH i2c: E2 08 00 68 51 80 13 01 00 00 00 00 00 36 [16:51:20]Write i2c OK [16:51:20]MH_I2C_Read... [16:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:20]Read from MH i2c: E2 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 0E 00 [16:51:20]MH_I2C_Read... [16:51:20]Read from MH i2c: E2 0E 00 68 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8B [16:51:20]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:51:20]wFMCommunicate OK [16:51:20]SAM_PROTO_GetShiftState done [16:51:20]FM_GetShiftState done [16:51:20]req_shift_opened done [16:51:20]requested_item shift.open_date is exist - process it [16:51:20]req_shift_open_date [16:51:20]req_shift_open_date done [16:51:20]produce_requested_data done [16:51:20]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15747,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [16:51:20]process_action_free close_receipt [16:51:20]json_value_free [16:51:20]json_value_free done [16:51:20]process_json_proto returns [16:51:20]Send response to host [16:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15747,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [16:51:20]free response buf [16:51:20]execute_script done [16:51:20]execute_script returns [16:51:20]free content buf [16:51:20]Sock 9.Close socket [16:51:20]Sock 9.Thread stoped [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:37]accept exits with 8 [16:57:37]New connection [16:57:37]New thread 3066731876 created [16:57:37]Thread 3066588516 joined [16:57:37]Waiting for new connection... [16:57:37] Sock 8.Parse request [16:57:37]Sock 8.Check first char [16:57:37]Sock 8.First char is OK [16:57:37]request: POST /json_proto HTTP/1.0 [16:57:37]Method: POST [16:57:37]URL: /json_proto [16:57:37]Method is POST - this is cgi request [16:57:37]url: /json_proto [16:57:37]query_string will be loaded in cgi processing [16:57:37]execute_cgi json_proto POST (null) [16:57:37]execute_cgi path=json_proto method=POST [16:57:37]POST find Content-Length [16:57:37]Host: 172.17.54.195:8080 [16:57:37]Content-Length: 676 [16:57:37]Content-Type: application/json [16:57:37] [16:57:37]POST finish read [16:57:37]Found Content-Length = 676 [16:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [16:57:37]execute_script... [16:57: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)16298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [16:57:37]POST & json_proto [16:57:37]process_json_proto [16:57:37]json parsed OK: [16:57:37]protocol is kg_v1.0 [16:57:37]action value=close_receipt [16:57:37]process_action close_receipt [16:57:37]cmd_close_receipt [16:57:37]MH_GetDate [16:57:37]Write to MH i2c: F0 00 00 69 51 A9 [16:57:37]Write i2c OK [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: F0 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: F0 09 00 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: F0 09 00 69 51 00 0D 14 21 67 8D 90 A3 66 81 [16:57:37]GetLastDocTimeStamp 1730220688 [16:57:37]current date 1730221069 [16:57:37]FM_GetShiftState [16:57:37]SAM_PROTO_GetShiftState [16:57:37]wFMCommunicate request_size=4 [16:57:37]MH_SAM_APDU [16:57:37]CAPDU: 80 13 01 00 [16:57:37]Write to MH i2c: E2 08 00 6A 51 80 13 01 00 00 00 00 00 38 [16:57:37]Write i2c OK [16:57:37]MH_I2C_Read... [16:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:37]Read from MH i2c: E2 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 0E 00 [16:57:37]MH_I2C_Read... [16:57:37]Read from MH i2c: E2 0E 00 6A 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 8D [16:57:37]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:57:37]wFMCommunicate OK [16:57:37]SAM_PROTO_GetShiftState done [16:57:37]FM_GetShiftState done [16:57:37]opened in 1730161559 [16:57:37]opened+sec_in_day 1730247959 [16:57:37]quantity*price = 20003 [16:57:37]sum+1 = 20004 [16:57: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 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 94 29.10.2024 16:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15748 ФПД: 255595359931851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T165749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15748&fm=255595359931851&tin=02508201610067®Number=0000000000161798&sum=20000 [16:57:38]StoreToDocumentArchive [16:57:38]shift 172 fd 15748 [16:57:38]save to /storage/0172/doc_00015748 [16:57:38]save last doc name /storage/0172/doc_00015748 to /storage/kkm_last_doc_name [16:57:38]save OK [16:57:38]Clear old archive folders... [16:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:38]tlvbuf is 00326200 [16:57:38]SAM_PROTO_ClearQueue [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 09 00 00 [16:57:38]Write to MH i2c: E2 08 00 77 51 80 09 00 00 00 00 00 00 3A [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 77 51 00 90 00 3C [16:57:38]RAPDU: 90 00 [16:57:38]wFMCommunicate OK [16:57:38]SAM_PROTO_ClearQueue done [16:57:38]KKMCreateOFDPacket [16:57:38]OFDProtocolAddRootSTLVToBuf [16:57:38]FM_MakeSignedData [16:57:38]FM_MakeSignedData [16:57:38]SAM_PROTO_SignData [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 0D 01 02 [16:57:38]Write to MH i2c: E2 08 00 78 51 80 0D 01 02 00 00 00 00 42 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 78 51 00 90 00 3D [16:57:38]RAPDU: 90 00 [16:57:38]wFMCommunicate OK [16:57:38]wFMCommunicate request_size=255 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 0D 14 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 84 3D 00 00 35 04 06 00 E8 [16:57:38]Write to MH i2c: E2 02 01 79 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 0D 14 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 84 3D 00 00 35 04 06 00 E8 00 00 F2 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 79 51 00 90 00 3E [16:57:38]RAPDU: 90 00 [16:57:38]wFMCommunicate OK [16:57:38]wFMCommunicate request_size=10 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 0D 02 02 05 76 6E A2 8D CB [16:57:38]Write to MH i2c: E2 0D 00 7A 51 80 0D 02 02 05 00 76 6E A2 8D CB 00 00 2D [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 03 00 7A 51 00 90 00 3F [16:57:38]RAPDU: 90 00 [16:57:38]wFMCommunicate OK [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 0D 03 02 [16:57:38]Write to MH i2c: E2 08 00 7B 51 80 0D 03 02 00 00 00 00 47 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 0B 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 0B 00 7B 51 00 AF 3C 8F 76 58 68 5D A2 90 00 F7 [16:57:38]RAPDU: AF 3C 8F 76 58 68 5D A2 90 00 [16:57:38]wFMCommunicate OK [16:57:38]SAM_PROTO_SignData done [16:57:38]FM_MakeSignedData done [16:57:38]CreateOFDProtocolMessage [16:57:38]wFMCommunicate request_size=4 [16:57:38]MH_SAM_APDU [16:57:38]CAPDU: 80 11 00 00 [16:57:38]Write to MH i2c: E2 08 00 7C 51 80 11 00 00 00 00 00 00 47 [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:38]Read from MH i2c: E2 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 17 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: E2 17 00 7C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 96 [16:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:57:38]wFMCommunicate OK [16:57:38]CreateOFDProtocolMessage done [16:57:38]OFDSenderStorePacket 15748 [16:57:38]StoreOFDPacket docnum=15748 [16:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5E E8 07 01 16 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 0D 14 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 84 3D 00 00 35 04 06 00 E8 76 6E A2 8D CB AF 3C 8F 76 58 68 5D A2 [16:57:38]CheckFolder [16:57:38]dirname=/storage/ofd_packets [16:57:38]CheckFolder done [16:57:38]ProducePacketName [16:57:38]name=ofd_packets/00015748 [16:57:38]NVStorageSaveData ofd_packets/00015748 [16:57:38]File name is /storage/ofd_packets/00015748 [16:57:38]Write 301 bytes [16:57:38]NVStorageSaveData done [16:57:38]OFDSenderStorePacket done [16:57:38]KKMCreateOFDPacket done [16:57:38]NVStorageSaveData kkm_last_timestamp [16:57:38]File name is /storage/kkm_last_timestamp [16:57:38]Write 4 bytes [16:57:38]NVStorageSaveData done [16:57:38]ExternCall_PrintAddStr [16:57:38]wPrintStart [16:57:38]Write to MH i2c: 01 00 00 7D 51 CE [16:57:38]Write i2c OK [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: 01 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: 01 07 00 [16:57:38]MH_I2C_Read... [16:57:38]Read from MH i2c: 01 07 00 7D 51 00 00 00 00 00 FF 0F E3 [16:57:38]RasterBufferAndPrint [16:57:38]line Счет N : (1)16298 [16:57:38]line ИНН: 02508201610067 [16:57:38]line Контрольно-Кассовый Чек [16:57:38]line ПРОДАЖА [16:57:38]line ТРК (МРК, ГНК) : 21 [16:57:38]line Товар: 2710124130 [16:57:38]line Аи-92-К-5 [16:57:38]line 2.990 * 66.90 [16:57:38]line = 200.03 [16:57:38]line НДС 12% НСП 1% [16:57:38]line > о реализуемом товаре [16:57:38]line ОКРУГЛЕНИЕ: -0.03 [16:57:38]line ИТОГО: 200.00 [16:57:38]line Внесено: 200.00 [16:57:38]line СДАЧА: 0.00 [16:57:38]line НСП 1% : 1.77 [16:57:38]line НДС 12% : 21.24 [16:57:38]line Наличными: 200.00 [16:57:38]line Безнал.: 0.00 [16:57:38]line Место: АЗС № 178 "Партнер Нефть" [16:57:38]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [16:57:38]line СНО: Общий режим [16:57:38]line Чек 94 29.10.2024 16:57 [16:57:38]line Смена: 172 ФФД: 1.0 [16:57:38]line ЗНМ: 0300000014 [16:57:38]line РНМ: 0000000000161798 [16:57:38]line Версия ККМ: v1.0 [16:57:38]line ФМ: 0000000000963325 [16:57:38]line ФД: 15748 [16:57:38]line ФПД: 255595359931851 [16:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T165749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15748&fm=255595359931851&tin=02508201610067®Number=0000000000161798&sum=20000 [16:57:38]written 0, free lines is 4095 [16:57:38]OFD Sender: Processing packet 15748 [packets to send 4, broken 3] [16:57:38]ProducePacketName [16:57:38]name=ofd_packets/00015748 [16:57:38]OFD Sender: To server: pG, [16:57:38]CommunicateWithHost lk.salyk.kg:30040 [16:57:38]ConnectInit lk.salyk.kg [16:57:38]Connected sock=10 [16:57:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 5E E8 07 01 16 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 0D 14 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 84 3D 00 00 35 04 06 00 E8 76 6E A2 8D CB AF 3C 8F 76 58 68 5D A2 [16:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 46 E7 47 00 6E 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 84 3D 00 00 F4 03 04 00 F9 BE 20 67 B6 04 01 00 00 18 1D 04 40 3C 2E 1D B2 [16:57:39]CommunicateWithHost err = 0 [16:57:39]CheckOFDResponse [16:57:39]1017 (14) - 77093643461234 [16:57:39]1041 (16) - 0000000000963325 [16:57:39]1040 (4) - 15748 [16:57:39]1012 (4) - 29.10.2024 10:54 [16:57:39]1206 (1) - 0 [16:57:39]OFD Sender: Remove packet 15748 [16:57:39]ProducePacketName [16:57:39]name=ofd_packets/00015748 [16:57:39]NVStorageDeleteData [16:57:39]Write to MH i2c: 01 00 00 A8 51 F9 [16:57:39]Write i2c OK [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: 01 [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: 01 07 00 [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: 01 07 00 A8 51 00 00 00 00 00 F4 0C 00 [16:57:39]RasterBufferAndPrint [16:57:39]line [16:57:39]line [16:57:39]line [16:57:39]line [16:57:39]line [16:57:39]written 0, free lines is 3322 [16:57:39]MH_Cut [16:57:39]Write to MH i2c: D1 01 00 AF 51 01 D2 [16:57:39]Write i2c OK [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: D1 [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: D1 01 00 [16:57:39]MH_I2C_Read... [16:57:39]Read from MH i2c: D1 01 00 AF 51 00 D1 [16:57:39]Write to MH i2c: 01 00 00 B0 51 01 [16:57:39]Write i2c OK [16:57:39]MH_I2C_Read... [16:57:39]OFD Sender: No OFD packet to send [16:57:39]*** Cut start [16:57:39]*** Partial cut [16:57:39]*** CUTSNS_PIN = 1 [16:57:39]*** CUTSNS_PIN = 0 [16:57:40]*** Brake cut motor [16:57:40]Read from MH i2c: 01 [16:57:40]MH_I2C_Read... [16:57:40]*** Stop cut motor [16:57:40]*** Cut end [16:57:40]Read from MH i2c: 01 07 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: 01 07 00 B0 51 00 00 00 00 00 FF 0F 16 [16:57:40]process_action close_receipt done [16:57:40]requested_data is exist [16:57:40]produce_requested_data [16:57:40]requested_item fm.sn is exist - process it [16:57:40]wFMCommunicate request_size=4 [16:57:40]MH_SAM_APDU [16:57:40]CAPDU: 80 11 00 00 [16:57:40]Write to MH i2c: E2 08 00 B1 51 80 11 00 00 00 00 00 00 7C [16:57:40]Write i2c OK [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 [16:57:40]MH_I2C_Read... [16:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:40]Read from MH i2c: E2 17 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 17 00 B1 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CB [16:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [16:57:40]wFMCommunicate OK [16:57:40]requested_item fd.num is exist - process it [16:57:40]SAM_PROTO_GetFieldsCounters [16:57:40]wFMCommunicate request_size=4 [16:57:40]MH_SAM_APDU [16:57:40]CAPDU: 80 13 00 00 [16:57:40]Write to MH i2c: E2 08 00 B2 51 80 13 00 00 00 00 00 00 7F [16:57:40]Write i2c OK [16:57:40]MH_I2C_Read... [16:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:40]Read from MH i2c: E2 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 62 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 62 00 B2 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 84 3D 00 00 0E 04 04 00 AC 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 2A [16:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 84 3D 00 00 0E 04 04 00 AC 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 [16:57:40]wFMCommunicate OK [16:57:40]SAM_PROTO_GetFieldsCounters done [16:57:40]requested_item shift.num is exist - process it [16:57:40]requested_item shift.opened is exist - process it [16:57:40]req_shift_opened [16:57:40]FM_GetShiftState [16:57:40]SAM_PROTO_GetShiftState [16:57:40]wFMCommunicate request_size=4 [16:57:40]MH_SAM_APDU [16:57:40]CAPDU: 80 13 01 00 [16:57:40]Write to MH i2c: E2 08 00 B3 51 80 13 01 00 00 00 00 00 81 [16:57:40]Write i2c OK [16:57:40]MH_I2C_Read... [16:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:40]Read from MH i2c: E2 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 0E 00 [16:57:40]MH_I2C_Read... [16:57:40]Read from MH i2c: E2 0E 00 B3 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D6 [16:57:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [16:57:40]wFMCommunicate OK [16:57:40]SAM_PROTO_GetShiftState done [16:57:40]FM_GetShiftState done [16:57:40]req_shift_opened done [16:57:40]requested_item shift.open_date is exist - process it [16:57:40]req_shift_open_date [16:57:40]req_shift_open_date done [16:57:40]produce_requested_data done [16:57:40]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15748,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [16:57:40]process_action_free close_receipt [16:57:40]json_value_free [16:57:40]json_value_free done [16:57:40]process_json_proto returns [16:57:40]Send response to host [16:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15748,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [16:57:40]free response buf [16:57:40]execute_script done [16:57:40]execute_script returns [16:57:40]free content buf [16:57:40]Sock 8.Close socket [16:57:40]Sock 8.Thread stoped [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:16]accept exits with 9 [17:02:16]New connection [17:02:16]New thread 3066588516 created [17:02:16]Thread 3066731876 joined [17:02:16]Waiting for new connection... [17:02:16] Sock 9.Parse request [17:02:16]Sock 9.Check first char [17:02:16]Sock 9.First char is OK [17:02:16]request: POST /json_proto HTTP/1.0 [17:02:16]Method: POST [17:02:16]URL: /json_proto [17:02:16]Method is POST - this is cgi request [17:02:16]url: /json_proto [17:02:16]query_string will be loaded in cgi processing [17:02:16]execute_cgi json_proto POST (null) [17:02:16]execute_cgi path=json_proto method=POST [17:02:16]POST find Content-Length [17:02:16]Host: 172.17.54.195:8080 [17:02:16]Content-Length: 684 [17:02:16]Content-Type: application/json [17:02:16] [17:02:16]POST finish read [17:02:16]Found Content-Length = 684 [17:02:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:16]execute_script... [17:02: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)16299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:16]POST & json_proto [17:02:16]process_json_proto [17:02:16]json parsed OK: [17:02:16]protocol is kg_v1.0 [17:02:16]action value=close_receipt [17:02:16]process_action close_receipt [17:02:16]cmd_close_receipt [17:02:16]MH_GetDate [17:02:16]Write to MH i2c: F0 00 00 B4 51 F4 [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: F0 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: F0 09 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: F0 09 00 B4 51 00 25 15 21 67 8D 90 A3 66 E5 [17:02:16]GetLastDocTimeStamp 1730221069 [17:02:16]current date 1730221349 [17:02:16]FM_GetShiftState [17:02:16]SAM_PROTO_GetShiftState [17:02:16]wFMCommunicate request_size=4 [17:02:16]MH_SAM_APDU [17:02:16]CAPDU: 80 13 01 00 [17:02:16]Write to MH i2c: E2 08 00 B5 51 80 13 01 00 00 00 00 00 83 [17:02:16]Write i2c OK [17:02:16]MH_I2C_Read... [17:02:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:16]Read from MH i2c: E2 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 0E 00 [17:02:16]MH_I2C_Read... [17:02:16]Read from MH i2c: E2 0E 00 B5 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D8 [17:02:16]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:02:16]wFMCommunicate OK [17:02:16]SAM_PROTO_GetShiftState done [17:02:16]FM_GetShiftState done [17:02:16]opened in 1730161559 [17:02:16]opened+sec_in_day 1730247959 [17:02:16]quantity*price = 150037 [17:02:16]sum+1 = 150038 [17:02:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 95 29.10.2024 17:02 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15749 ФПД: 81659878260276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170229&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15749&fm=81659878260276&tin=02508201610067®Number=0000000000161798&sum=150000 [17:02:18]StoreToDocumentArchive [17:02:18]shift 172 fd 15749 [17:02:18]save to /storage/0172/doc_00015749 [17:02:18]save last doc name /storage/0172/doc_00015749 to /storage/kkm_last_doc_name [17:02:18]save OK [17:02:18]Clear old archive folders... [17:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:02:18]tlvbuf is 003805D0 [17:02:18]SAM_PROTO_ClearQueue [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 09 00 00 [17:02:18]Write to MH i2c: E2 08 00 C2 51 80 09 00 00 00 00 00 00 85 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 C2 51 00 90 00 87 [17:02:18]RAPDU: 90 00 [17:02:18]wFMCommunicate OK [17:02:18]SAM_PROTO_ClearQueue done [17:02:18]KKMCreateOFDPacket [17:02:18]OFDProtocolAddRootSTLVToBuf [17:02:18]FM_MakeSignedData [17:02:18]FM_MakeSignedData [17:02:18]SAM_PROTO_SignData [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 0D 01 02 [17:02:18]Write to MH i2c: E2 08 00 C3 51 80 0D 01 02 00 00 00 00 8D [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 C3 51 00 90 00 88 [17:02:18]RAPDU: 90 00 [17:02:18]wFMCommunicate OK [17:02:18]wFMCommunicate request_size=255 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 5F 00 00 00 F4 03 04 00 25 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 85 3D 00 00 35 04 06 00 4A 44 [17:02:18]Write to MH i2c: E2 02 01 C4 51 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 5F 00 00 00 F4 03 04 00 25 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 85 3D 00 00 35 04 06 00 4A 44 00 00 66 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 C4 51 00 90 00 89 [17:02:18]RAPDU: 90 00 [17:02:18]wFMCommunicate OK [17:02:18]wFMCommunicate request_size=9 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 0D 02 02 04 EC 09 3E 34 [17:02:18]Write to MH i2c: E2 0C 00 C5 51 80 0D 02 02 04 00 EC 09 3E 34 00 00 FF [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 03 00 C5 51 00 90 00 8A [17:02:18]RAPDU: 90 00 [17:02:18]wFMCommunicate OK [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 0D 03 02 [17:02:18]Write to MH i2c: E2 08 00 C6 51 80 0D 03 02 00 00 00 00 92 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 0B 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 0B 00 C6 51 00 E1 B2 B8 15 E0 DB 21 DC 90 00 AB [17:02:18]RAPDU: E1 B2 B8 15 E0 DB 21 DC 90 00 [17:02:18]wFMCommunicate OK [17:02:18]SAM_PROTO_SignData done [17:02:18]FM_MakeSignedData done [17:02:18]CreateOFDProtocolMessage [17:02:18]wFMCommunicate request_size=4 [17:02:18]MH_SAM_APDU [17:02:18]CAPDU: 80 11 00 00 [17:02:18]Write to MH i2c: E2 08 00 C7 51 80 11 00 00 00 00 00 00 92 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:18]Read from MH i2c: E2 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 17 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: E2 17 00 C7 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E1 [17:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:02:18]wFMCommunicate OK [17:02:18]CreateOFDProtocolMessage done [17:02:18]OFDSenderStorePacket 15749 [17:02:18]StoreOFDPacket docnum=15749 [17:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 D7 EE 06 01 FD 20 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 5F 00 00 00 F4 03 04 00 25 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 85 3D 00 00 35 04 06 00 4A 44 EC 09 3E 34 E1 B2 B8 15 E0 DB 21 DC [17:02:18]CheckFolder [17:02:18]dirname=/storage/ofd_packets [17:02:18]CheckFolder done [17:02:18]ProducePacketName [17:02:18]name=ofd_packets/00015749 [17:02:18]NVStorageSaveData ofd_packets/00015749 [17:02:18]File name is /storage/ofd_packets/00015749 [17:02:18]Write 300 bytes [17:02:18]NVStorageSaveData done [17:02:18]OFDSenderStorePacket done [17:02:18]KKMCreateOFDPacket done [17:02:18]NVStorageSaveData kkm_last_timestamp [17:02:18]File name is /storage/kkm_last_timestamp [17:02:18]Write 4 bytes [17:02:18]NVStorageSaveData done [17:02:18]ExternCall_PrintAddStr [17:02:18]wPrintStart [17:02:18]Write to MH i2c: 01 00 00 C8 51 19 [17:02:18]Write i2c OK [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: 01 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: 01 07 00 [17:02:18]MH_I2C_Read... [17:02:18]Read from MH i2c: 01 07 00 C8 51 00 00 00 00 00 FF 0F 2E [17:02:18]RasterBufferAndPrint [17:02:18]line Счет N : (1)16299 [17:02:18]line ИНН: 02508201610067 [17:02:18]line Контрольно-Кассовый Чек [17:02:18]line ПРОДАЖА [17:02:18]line ТРК (МРК, ГНК) : 41 [17:02:18]line Товар: 2711190000 [17:02:18]line ГАЗ-К-5 [17:02:18]line 38.570 * 38.90 [17:02:18]line = 1500.37 [17:02:18]line НДС 12% НСП 1% [17:02:18]line > о реализуемом товаре [17:02:18]line ОКРУГЛЕНИЕ: -0.37 [17:02:18]line ИТОГО: 1500.00 [17:02:18]line Внесено: 1500.00 [17:02:18]line СДАЧА: 0.00 [17:02:18]line НСП 1% : 13.28 [17:02:18]line НДС 12% : 159.33 [17:02:18]line Наличными: 1500.00 [17:02:18]line Безнал.: 0.00 [17:02:18]line Место: АЗС № 178 "Партнер Нефть" [17:02:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:02:18]line СНО: Общий режим [17:02:18]line Чек 95 29.10.2024 17:02 [17:02:18]line Смена: 172 ФФД: 1.0 [17:02:18]line ЗНМ: 0300000014 [17:02:18]line РНМ: 0000000000161798 [17:02:18]line Версия ККМ: v1.0 [17:02:18]line ФМ: 0000000000963325 [17:02:18]line ФД: 15749 [17:02:18]line ФПД: 81659878260276 [17:02:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170229&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15749&fm=81659878260276&tin=02508201610067®Number=0000000000161798&sum=150000 [17:02:18]OFD Sender: Processing packet 15749 [packets to send 4, broken 3] [17:02:18]ProducePacketName [17:02:18]name=ofd_packets/00015749 [17:02:18]OFD Sender: To server: pG, [17:02:18]CommunicateWithHost lk.salyk.kg:30040 [17:02:18]ConnectInit lk.salyk.kg [17:02:18]written 0, free lines is 4095 [17:02:18]Connected sock=10 [17:02:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 D7 EE 06 01 FD 20 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 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 5F 00 00 00 F4 03 04 00 25 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 85 3D 00 00 35 04 06 00 4A 44 EC 09 3E 34 E1 B2 B8 15 E0 DB 21 DC [17:02:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 AE D2 47 00 F1 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 85 3D 00 00 F4 03 04 00 11 C0 20 67 B6 04 01 00 00 A4 E1 42 E1 FA 1B E0 0C [17:02:19]CommunicateWithHost err = 0 [17:02:19]CheckOFDResponse [17:02:19]1017 (14) - 77093643461234 [17:02:19]1041 (16) - 0000000000963325 [17:02:19]1040 (4) - 15749 [17:02:19]1012 (4) - 29.10.2024 10:59 [17:02:19]1206 (1) - 0 [17:02:19]OFD Sender: Remove packet 15749 [17:02:19]ProducePacketName [17:02:19]name=ofd_packets/00015749 [17:02:19]NVStorageDeleteData [17:02:19]Write to MH i2c: 01 00 00 F3 51 44 [17:02:19]Write i2c OK [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: 01 [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: 01 07 00 [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: 01 07 00 F3 51 00 00 00 00 00 F6 0C 4D [17:02:19]RasterBufferAndPrint [17:02:19]line [17:02:19]line [17:02:19]line [17:02:19]line [17:02:19]line [17:02:19]written 0, free lines is 3324 [17:02:19]MH_Cut [17:02:19]Write to MH i2c: D1 01 00 FA 51 01 1D [17:02:19]Write i2c OK [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: D1 [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: D1 01 00 [17:02:19]MH_I2C_Read... [17:02:19]Read from MH i2c: D1 01 00 FA 51 00 1C [17:02:19]Write to MH i2c: 01 00 00 FB 51 4C [17:02:19]Write i2c OK [17:02:19]MH_I2C_Read... [17:02:19]OFD Sender: No OFD packet to send [17:02:20]*** Cut start [17:02:20]*** Partial cut [17:02:20]*** CUTSNS_PIN = 1 [17:02:20]*** CUTSNS_PIN = 0 [17:02:20]*** Brake cut motor [17:02:20]Read from MH i2c: 01 [17:02:20]MH_I2C_Read... [17:02:20]*** Stop cut motor [17:02:20]*** Cut end [17:02:20]Read from MH i2c: 01 07 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: 01 07 00 FB 51 00 00 00 00 00 FF 0F 61 [17:02:20]process_action close_receipt done [17:02:20]requested_data is exist [17:02:20]produce_requested_data [17:02:20]requested_item fm.sn is exist - process it [17:02:20]wFMCommunicate request_size=4 [17:02:20]MH_SAM_APDU [17:02:20]CAPDU: 80 11 00 00 [17:02:20]Write to MH i2c: E2 08 00 FC 51 80 11 00 00 00 00 00 00 C7 [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:20]Read from MH i2c: E2 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 17 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 17 00 FC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 16 [17:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:02:20]wFMCommunicate OK [17:02:20]requested_item fd.num is exist - process it [17:02:20]SAM_PROTO_GetFieldsCounters [17:02:20]wFMCommunicate request_size=4 [17:02:20]MH_SAM_APDU [17:02:20]CAPDU: 80 13 00 00 [17:02:20]Write to MH i2c: E2 08 00 FD 51 80 13 00 00 00 00 00 00 CA [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:20]Read from MH i2c: E2 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 62 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 62 00 FD 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 85 3D 00 00 0E 04 04 00 AC 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 79 [17:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 85 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:20]wFMCommunicate OK [17:02:20]SAM_PROTO_GetFieldsCounters done [17:02:20]requested_item shift.num is exist - process it [17:02:20]requested_item shift.opened is exist - process it [17:02:20]req_shift_opened [17:02:20]FM_GetShiftState [17:02:20]SAM_PROTO_GetShiftState [17:02:20]wFMCommunicate request_size=4 [17:02:20]MH_SAM_APDU [17:02:20]CAPDU: 80 13 01 00 [17:02:20]Write to MH i2c: E2 08 00 FE 51 80 13 01 00 00 00 00 00 CC [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:20]Read from MH i2c: E2 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 FE 51 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 21 [17:02:20]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:02:20]wFMCommunicate OK [17:02:20]SAM_PROTO_GetShiftState done [17:02:20]FM_GetShiftState done [17:02:20]req_shift_opened done [17:02:20]requested_item shift.open_date is exist - process it [17:02:20]req_shift_open_date [17:02:20]req_shift_open_date done [17:02:20]produce_requested_data done [17:02:20]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15749,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:02:20]process_action_free close_receipt [17:02:20]json_value_free [17:02:20]json_value_free done [17:02:20]process_json_proto returns [17:02:20]Send response to host [17:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15749,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:02:20]free response buf [17:02:20]execute_script done [17:02:20]execute_script returns [17:02:20]free content buf [17:02:20]Sock 9.Close socket [17:02:20]Sock 9.Thread stoped [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:08]accept exits with 8 [17:03:08]New connection [17:03:08]New thread 3066731876 created [17:03:08]Thread 3066588516 joined [17:03:08]Waiting for new connection... [17:03:08] Sock 8.Parse request [17:03:08]Sock 8.Check first char [17:03:08]Sock 8.First char is OK [17:03:08]request: POST /json_proto HTTP/1.0 [17:03:08]Method: POST [17:03:08]URL: /json_proto [17:03:08]Method is POST - this is cgi request [17:03:08]url: /json_proto [17:03:08]query_string will be loaded in cgi processing [17:03:08]execute_cgi json_proto POST (null) [17:03:08]execute_cgi path=json_proto method=POST [17:03:08]POST find Content-Length [17:03:08]Host: 172.17.54.195:8080 [17:03:08]Content-Length: 676 [17:03:08]Content-Type: application/json [17:03:08] [17:03:08]POST finish read [17:03:08]Found Content-Length = 676 [17:03:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:03:08]execute_script... [17:03: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)16300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:03:08]POST & json_proto [17:03:08]process_json_proto [17:03:08]json parsed OK: [17:03:08]protocol is kg_v1.0 [17:03:08]action value=close_receipt [17:03:08]process_action close_receipt [17:03:08]cmd_close_receipt [17:03:08]MH_GetDate [17:03:08]Write to MH i2c: F0 00 00 FF 51 3F [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 09 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: F0 09 00 FF 51 00 58 15 21 67 8D 90 A3 66 63 [17:03:08]GetLastDocTimeStamp 1730221349 [17:03:08]current date 1730221400 [17:03:08]FM_GetShiftState [17:03:08]SAM_PROTO_GetShiftState [17:03:08]wFMCommunicate request_size=4 [17:03:08]MH_SAM_APDU [17:03:08]CAPDU: 80 13 01 00 [17:03:08]Write to MH i2c: E2 08 00 00 52 80 13 01 00 00 00 00 00 CF [17:03:08]Write i2c OK [17:03:08]MH_I2C_Read... [17:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:08]Read from MH i2c: E2 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 [17:03:08]MH_I2C_Read... [17:03:08]Read from MH i2c: E2 0E 00 00 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 24 [17:03:08]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:03:08]wFMCommunicate OK [17:03:08]SAM_PROTO_GetShiftState done [17:03:08]FM_GetShiftState done [17:03:08]opened in 1730161559 [17:03:08]opened+sec_in_day 1730247959 [17:03:08]quantity*price = 50041 [17:03:08]sum+1 = 50042 [17:03: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 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 96 29.10.2024 17:03 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15750 ФПД: 208750931716012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170320&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15750&fm=208750931716012&tin=02508201610067®Number=0000000000161798&sum=50000 [17:03:09]StoreToDocumentArchive [17:03:09]shift 172 fd 15750 [17:03:09]save to /storage/0172/doc_00015750 [17:03:09]save last doc name /storage/0172/doc_00015750 to /storage/kkm_last_doc_name [17:03:09]save OK [17:03:09]Clear old archive folders... [17:03:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:03:09]tlvbuf is 002EF0F0 [17:03:09]SAM_PROTO_ClearQueue [17:03:09]wFMCommunicate request_size=4 [17:03:09]MH_SAM_APDU [17:03:09]CAPDU: 80 09 00 00 [17:03:09]Write to MH i2c: E2 08 00 0D 52 80 09 00 00 00 00 00 00 D1 [17:03:09]Write i2c OK [17:03:09]MH_I2C_Read... [17:03:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 0D 52 00 90 00 D3 [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]SAM_PROTO_ClearQueue done [17:03:10]KKMCreateOFDPacket [17:03:10]OFDProtocolAddRootSTLVToBuf [17:03:10]FM_MakeSignedData [17:03:10]FM_MakeSignedData [17:03:10]SAM_PROTO_SignData [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 01 02 [17:03:10]Write to MH i2c: E2 08 00 0E 52 80 0D 01 02 00 00 00 00 D9 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 0E 52 00 90 00 D4 [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]wFMCommunicate request_size=255 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 58 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 86 3D 00 00 35 04 06 00 BD [17:03:10]Write to MH i2c: E2 02 01 0F 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 60 00 00 00 F4 03 04 00 58 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 86 3D 00 00 35 04 06 00 BD 00 00 EC [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 0F 52 00 90 00 D5 [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]wFMCommunicate request_size=10 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 02 02 05 DB 9D 21 A7 AC [17:03:10]Write to MH i2c: E2 0D 00 10 52 80 0D 02 02 05 00 DB 9D 21 A7 AC 00 00 D2 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 03 00 10 52 00 90 00 D6 [17:03:10]RAPDU: 90 00 [17:03:10]wFMCommunicate OK [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 0D 03 02 [17:03:10]Write to MH i2c: E2 08 00 11 52 80 0D 03 02 00 00 00 00 DE [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 0B 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 0B 00 11 52 00 3B 8C 60 7D 18 C3 5D 8E 90 00 49 [17:03:10]RAPDU: 3B 8C 60 7D 18 C3 5D 8E 90 00 [17:03:10]wFMCommunicate OK [17:03:10]SAM_PROTO_SignData done [17:03:10]FM_MakeSignedData done [17:03:10]CreateOFDProtocolMessage [17:03:10]wFMCommunicate request_size=4 [17:03:10]MH_SAM_APDU [17:03:10]CAPDU: 80 11 00 00 [17:03:10]Write to MH i2c: E2 08 00 12 52 80 11 00 00 00 00 00 00 DE [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:10]Read from MH i2c: E2 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: E2 17 00 12 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2D [17:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:03:10]wFMCommunicate OK [17:03:10]CreateOFDProtocolMessage done [17:03:10]OFDSenderStorePacket 15750 [17:03:10]StoreOFDPacket docnum=15750 [17:03:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 75 EB 07 01 40 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 60 00 00 00 F4 03 04 00 58 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 86 3D 00 00 35 04 06 00 BD DB 9D 21 A7 AC 3B 8C 60 7D 18 C3 5D 8E [17:03:10]CheckFolder [17:03:10]dirname=/storage/ofd_packets [17:03:10]CheckFolder done [17:03:10]ProducePacketName [17:03:10]name=ofd_packets/00015750 [17:03:10]NVStorageSaveData ofd_packets/00015750 [17:03:10]File name is /storage/ofd_packets/00015750 [17:03:10]Write 301 bytes [17:03:10]NVStorageSaveData done [17:03:10]OFDSenderStorePacket done [17:03:10]KKMCreateOFDPacket done [17:03:10]NVStorageSaveData kkm_last_timestamp [17:03:10]File name is /storage/kkm_last_timestamp [17:03:10]Write 4 bytes [17:03:10]NVStorageSaveData done [17:03:10]ExternCall_PrintAddStr [17:03:10]wPrintStart [17:03:10]Write to MH i2c: 01 00 00 13 52 65 [17:03:10]Write i2c OK [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 [17:03:10]MH_I2C_Read... [17:03:10]Read from MH i2c: 01 07 00 13 52 00 00 00 00 00 FF 0F 7A [17:03:10]RasterBufferAndPrint [17:03:10]line Счет N : (1)16300 [17:03:10]line ИНН: 02508201610067 [17:03:10]line Контрольно-Кассовый Чек [17:03:10]line ПРОДАЖА [17:03:10]line ТРК (МРК, ГНК) : 21 [17:03:10]line Товар: 2710124130 [17:03:10]line Аи-92-К-5 [17:03:10]line 7.480 * 66.90 [17:03:10]line = 500.41 [17:03:10]line НДС 12% НСП 1% [17:03:10]line > о реализуемом товаре [17:03:10]line ОКРУГЛЕНИЕ: -0.41 [17:03:10]line ИТОГО: 500.00 [17:03:10]line Внесено: 500.00 [17:03:10]line СДАЧА: 0.00 [17:03:10]line НСП 1% : 4.43 [17:03:10]line НДС 12% : 53.14 [17:03:10]line Наличными: 500.00 [17:03:10]line Безнал.: 0.00 [17:03:10]line Место: АЗС № 178 "Партнер Нефть" [17:03:10]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:03:10]line СНО: Общий режим [17:03:10]line Чек 96 29.10.2024 17:03 [17:03:10]line Смена: 172 ФФД: 1.0 [17:03:10]line ЗНМ: 0300000014 [17:03:10]line РНМ: 0000000000161798 [17:03:10]line Версия ККМ: v1.0 [17:03:10]line ФМ: 0000000000963325 [17:03:10]line ФД: 15750 [17:03:10]line ФПД: 208750931716012 [17:03:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170320&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15750&fm=208750931716012&tin=02508201610067®Number=0000000000161798&sum=50000 [17:03:10]OFD Sender: Processing packet 15750 [packets to send 4, broken 3] [17:03:10]ProducePacketName [17:03:10]name=ofd_packets/00015750 [17:03:10]OFD Sender: To server: pG, [17:03:10]CommunicateWithHost lk.salyk.kg:30040 [17:03:10]ConnectInit lk.salyk.kg [17:03:10]written 0, free lines is 4095 [17:03:10]Connected sock=10 [17:03:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 75 EB 07 01 40 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 60 00 00 00 F4 03 04 00 58 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 86 3D 00 00 35 04 06 00 BD DB 9D 21 A7 AC 3B 8C 60 7D 18 C3 5D 8E [17:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 4F E8 47 00 FC 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 86 3D 00 00 F4 03 04 00 45 C0 20 67 B6 04 01 00 00 A5 B9 97 47 F1 4D 12 5A [17:03:11]CommunicateWithHost err = 0 [17:03:11]CheckOFDResponse [17:03:11]1017 (14) - 77093643461234 [17:03:11]1041 (16) - 0000000000963325 [17:03:11]1040 (4) - 15750 [17:03:11]1012 (4) - 29.10.2024 11:00 [17:03:11]1206 (1) - 0 [17:03:11]OFD Sender: Remove packet 15750 [17:03:11]ProducePacketName [17:03:11]name=ofd_packets/00015750 [17:03:11]NVStorageDeleteData [17:03:11]Write to MH i2c: 01 00 00 3E 52 90 [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 07 00 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: 01 07 00 3E 52 00 00 00 00 00 F1 0C 94 [17:03:11]RasterBufferAndPrint [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]line [17:03:11]written 0, free lines is 3320 [17:03:11]MH_Cut [17:03:11]Write to MH i2c: D1 01 00 45 52 01 69 [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 01 00 [17:03:11]MH_I2C_Read... [17:03:11]Read from MH i2c: D1 01 00 45 52 00 68 [17:03:11]Write to MH i2c: 01 00 00 46 52 98 [17:03:11]Write i2c OK [17:03:11]MH_I2C_Read... [17:03:11]OFD Sender: No OFD packet to send [17:03:11]*** Cut start [17:03:11]*** Partial cut [17:03:11]*** CUTSNS_PIN = 1 [17:03:12]*** CUTSNS_PIN = 0 [17:03:12]*** Brake cut motor [17:03:12]Read from MH i2c: 01 [17:03:12]MH_I2C_Read... [17:03:12]*** Stop cut motor [17:03:12]*** Cut end [17:03:12]Read from MH i2c: 01 07 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: 01 07 00 46 52 00 00 00 00 00 FF 0F AD [17:03:12]process_action close_receipt done [17:03:12]requested_data is exist [17:03:12]produce_requested_data [17:03:12]requested_item fm.sn is exist - process it [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 11 00 00 [17:03:12]Write to MH i2c: E2 08 00 47 52 80 11 00 00 00 00 00 00 13 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 17 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 17 00 47 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 62 [17:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:03:12]wFMCommunicate OK [17:03:12]requested_item fd.num is exist - process it [17:03:12]SAM_PROTO_GetFieldsCounters [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 13 00 00 [17:03:12]Write to MH i2c: E2 08 00 48 52 80 13 00 00 00 00 00 00 16 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 62 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 62 00 48 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 86 3D 00 00 0E 04 04 00 AC 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 C9 [17:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 86 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:12]wFMCommunicate OK [17:03:12]SAM_PROTO_GetFieldsCounters done [17:03:12]requested_item shift.num is exist - process it [17:03:12]requested_item shift.opened is exist - process it [17:03:12]req_shift_opened [17:03:12]FM_GetShiftState [17:03:12]SAM_PROTO_GetShiftState [17:03:12]wFMCommunicate request_size=4 [17:03:12]MH_SAM_APDU [17:03:12]CAPDU: 80 13 01 00 [17:03:12]Write to MH i2c: E2 08 00 49 52 80 13 01 00 00 00 00 00 18 [17:03:12]Write i2c OK [17:03:12]MH_I2C_Read... [17:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:12]Read from MH i2c: E2 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 0E 00 [17:03:12]MH_I2C_Read... [17:03:12]Read from MH i2c: E2 0E 00 49 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6D [17:03:12]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:03:12]wFMCommunicate OK [17:03:12]SAM_PROTO_GetShiftState done [17:03:12]FM_GetShiftState done [17:03:12]req_shift_opened done [17:03:12]requested_item shift.open_date is exist - process it [17:03:12]req_shift_open_date [17:03:12]req_shift_open_date done [17:03:12]produce_requested_data done [17:03:12]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15750,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:03:12]process_action_free close_receipt [17:03:12]json_value_free [17:03:12]json_value_free done [17:03:12]process_json_proto returns [17:03:12]Send response to host [17:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15750,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:03:12]free response buf [17:03:12]execute_script done [17:03:12]execute_script returns [17:03:12]free content buf [17:03:12]Sock 8.Close socket [17:03:12]Sock 8.Thread stoped [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:50]accept exits with 9 [17:05:50]New connection [17:05:50]New thread 3066588516 created [17:05:50]Thread 3066731876 joined [17:05:50]Waiting for new connection... [17:05:50] Sock 9.Parse request [17:05:50]Sock 9.Check first char [17:05:50]Sock 9.First char is OK [17:05:50]request: POST /json_proto HTTP/1.0 [17:05:50]Method: POST [17:05:50]URL: /json_proto [17:05:50]Method is POST - this is cgi request [17:05:50]url: /json_proto [17:05:50]query_string will be loaded in cgi processing [17:05:50]execute_cgi json_proto POST (null) [17:05:50]execute_cgi path=json_proto method=POST [17:05:50]POST find Content-Length [17:05:50]Host: 172.17.54.195:8080 [17:05:50]Content-Length: 671 [17:05:50]Content-Type: application/json [17:05:50] [17:05:50]POST finish read [17:05:50]Found Content-Length = 671 [17:05:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:50]execute_script... [17:05: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)16301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 20.470, "sum" : 1400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:50]POST & json_proto [17:05:50]process_json_proto [17:05:50]json parsed OK: [17:05:50]protocol is kg_v1.0 [17:05:50]action value=close_receipt [17:05:50]process_action close_receipt [17:05:50]cmd_close_receipt [17:05:50]MH_GetDate [17:05:50]Write to MH i2c: F0 00 00 4A 52 8B [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: F0 09 00 4A 52 00 FA 15 21 67 8D 90 A3 66 51 [17:05:50]GetLastDocTimeStamp 1730221400 [17:05:50]current date 1730221562 [17:05:50]FM_GetShiftState [17:05:50]SAM_PROTO_GetShiftState [17:05:50]wFMCommunicate request_size=4 [17:05:50]MH_SAM_APDU [17:05:50]CAPDU: 80 13 01 00 [17:05:50]Write to MH i2c: E2 08 00 4B 52 80 13 01 00 00 00 00 00 1A [17:05:50]Write i2c OK [17:05:50]MH_I2C_Read... [17:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:50]Read from MH i2c: E2 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 [17:05:50]MH_I2C_Read... [17:05:50]Read from MH i2c: E2 0E 00 4B 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6F [17:05:50]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:05:50]wFMCommunicate OK [17:05:50]SAM_PROTO_GetShiftState done [17:05:50]FM_GetShiftState done [17:05:50]opened in 1730161559 [17:05:50]opened+sec_in_day 1730247959 [17:05:50]quantity*price = 140014 [17:05:50]sum+1 = 140016 [17:05:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 97 29.10.2024 17:06 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15751 ФПД: 26100360587037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170602&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15751&fm=26100360587037&tin=02508201610067®Number=0000000000161798&sum=140000 [17:05:51]StoreToDocumentArchive [17:05:51]shift 172 fd 15751 [17:05:51]save to /storage/0172/doc_00015751 [17:05:51]save last doc name /storage/0172/doc_00015751 to /storage/kkm_last_doc_name [17:05:51]save OK [17:05:51]Clear old archive folders... [17:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=249 [17:05:51]tlvbuf is 00400740 [17:05:51]SAM_PROTO_ClearQueue [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 09 00 00 [17:05:51]Write to MH i2c: E2 08 00 58 52 80 09 00 00 00 00 00 00 1C [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 58 52 00 90 00 1E [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]SAM_PROTO_ClearQueue done [17:05:51]KKMCreateOFDPacket [17:05:51]OFDProtocolAddRootSTLVToBuf [17:05:51]FM_MakeSignedData [17:05:51]FM_MakeSignedData [17:05:51]SAM_PROTO_SignData [17:05:51]wFMCommunicate request_size=4 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 0D 01 02 [17:05:51]Write to MH i2c: E2 08 00 59 52 80 0D 01 02 00 00 00 00 24 [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:51]Read from MH i2c: E2 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 [17:05:51]MH_I2C_Read... [17:05:51]Read from MH i2c: E2 03 00 59 52 00 90 00 1F [17:05:51]RAPDU: 90 00 [17:05:51]wFMCommunicate OK [17:05:51]wFMCommunicate request_size=255 [17:05:51]MH_SAM_APDU [17:05:51]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 FA 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 87 3D 00 00 35 04 06 00 17 BC F6 [17:05:51]Write to MH i2c: E2 02 01 5A 52 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 FA 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 87 3D 00 00 35 04 06 00 17 BC F6 00 00 B3 [17:05:51]OFD Sender: No OFD packet to send [17:05:51]Write i2c OK [17:05:51]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 5A 52 00 90 00 20 [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=8 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 02 02 03 B8 A7 1D [17:05:52]Write to MH i2c: E2 0B 00 5B 52 80 0D 02 02 03 00 B8 A7 1D 00 00 A9 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 03 00 5B 52 00 90 00 21 [17:05:52]RAPDU: 90 00 [17:05:52]wFMCommunicate OK [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 0D 03 02 [17:05:52]Write to MH i2c: E2 08 00 5C 52 80 0D 03 02 00 00 00 00 29 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 0B 00 5C 52 00 7C 23 D3 11 B8 A8 07 3C 90 00 50 [17:05:52]RAPDU: 7C 23 D3 11 B8 A8 07 3C 90 00 [17:05:52]wFMCommunicate OK [17:05:52]SAM_PROTO_SignData done [17:05:52]FM_MakeSignedData done [17:05:52]CreateOFDProtocolMessage [17:05:52]wFMCommunicate request_size=4 [17:05:52]MH_SAM_APDU [17:05:52]CAPDU: 80 11 00 00 [17:05:52]Write to MH i2c: E2 08 00 5D 52 80 11 00 00 00 00 00 00 29 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:52]Read from MH i2c: E2 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: E2 17 00 5D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 78 [17:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:05:52]wFMCommunicate OK [17:05:52]CreateOFDProtocolMessage done [17:05:52]OFDSenderStorePacket 15751 [17:05:52]StoreOFDPacket docnum=15751 [17:05:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E8 E4 05 01 1F 13 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 FA 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 87 3D 00 00 35 04 06 00 17 BC F6 B8 A7 1D 7C 23 D3 11 B8 A8 07 3C [17:05:52]CheckFolder [17:05:52]dirname=/storage/ofd_packets [17:05:52]CheckFolder done [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00015751 [17:05:52]NVStorageSaveData ofd_packets/00015751 [17:05:52]File name is /storage/ofd_packets/00015751 [17:05:52]Write 299 bytes [17:05:52]NVStorageSaveData done [17:05:52]OFDSenderStorePacket done [17:05:52]KKMCreateOFDPacket done [17:05:52]NVStorageSaveData kkm_last_timestamp [17:05:52]File name is /storage/kkm_last_timestamp [17:05:52]Write 4 bytes [17:05:52]NVStorageSaveData done [17:05:52]ExternCall_PrintAddStr [17:05:52]wPrintStart [17:05:52]Write to MH i2c: 01 00 00 5E 52 B0 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 5E 52 00 00 00 00 00 FF 0F C5 [17:05:52]RasterBufferAndPrint [17:05:52]line Счет N : (1)16301 [17:05:52]line ИНН: 02508201610067 [17:05:52]line Контрольно-Кассовый Чек [17:05:52]line ПРОДАЖА [17:05:52]line ТРК (МРК, ГНК) : 12 [17:05:52]line Товар: 50.50.0 [17:05:52]line SUPER 92-К-5 [17:05:52]line 20.470 * 68.40 [17:05:52]line = 1400.15 [17:05:52]line НДС 12% НСП 1% [17:05:52]line > о реализуемом товаре [17:05:52]line ОКРУГЛЕНИЕ: -0.15 [17:05:52]line ИТОГО: 1400.00 [17:05:52]line Внесено: 1400.00 [17:05:52]line СДАЧА: 0.00 [17:05:52]line НСП 1% : 12.39 [17:05:52]line НДС 12% : 148.69 [17:05:52]line Наличными: 1400.00 [17:05:52]line Безнал.: 0.00 [17:05:52]line Место: АЗС № 178 "Партнер Нефть" [17:05:52]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:05:52]line СНО: Общий режим [17:05:52]line Чек 97 29.10.2024 17:06 [17:05:52]line Смена: 172 ФФД: 1.0 [17:05:52]line ЗНМ: 0300000014 [17:05:52]line РНМ: 0000000000161798 [17:05:52]line Версия ККМ: v1.0 [17:05:52]line ФМ: 0000000000963325 [17:05:52]line ФД: 15751 [17:05:52]line ФПД: 26100360587037 [17:05:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170602&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15751&fm=26100360587037&tin=02508201610067®Number=0000000000161798&sum=140000 [17:05:52]OFD Sender: Processing packet 15751 [packets to send 4, broken 3] [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00015751 [17:05:52]OFD Sender: To server: pG, [17:05:52]CommunicateWithHost lk.salyk.kg:30040 [17:05:52]ConnectInit lk.salyk.kg [17:05:52]written 0, free lines is 4095 [17:05:52]Connected sock=10 [17:05:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E8 E4 05 01 1F 13 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 4F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EF 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 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 FA 15 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 87 3D 00 00 35 04 06 00 17 BC F6 B8 A7 1D 7C 23 D3 11 B8 A8 07 3C [17:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 03 CB 47 00 C5 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 87 3D 00 00 F4 03 04 00 E6 C0 20 67 B6 04 01 00 00 48 5A 08 18 CC 16 85 20 [17:05:52]CommunicateWithHost err = 0 [17:05:52]CheckOFDResponse [17:05:52]1017 (14) - 77093643461234 [17:05:52]1041 (16) - 0000000000963325 [17:05:52]1040 (4) - 15751 [17:05:52]1012 (4) - 29.10.2024 11:03 [17:05:52]1206 (1) - 0 [17:05:52]OFD Sender: Remove packet 15751 [17:05:52]ProducePacketName [17:05:52]name=ofd_packets/00015751 [17:05:52]NVStorageDeleteData [17:05:52]Write to MH i2c: 01 00 00 89 52 DB [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: 01 07 00 89 52 00 00 00 00 00 F6 0C E4 [17:05:52]RasterBufferAndPrint [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]line [17:05:52]written 0, free lines is 3324 [17:05:52]MH_Cut [17:05:52]Write to MH i2c: D1 01 00 90 52 01 B4 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: D1 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: D1 01 00 [17:05:52]MH_I2C_Read... [17:05:52]Read from MH i2c: D1 01 00 90 52 00 B3 [17:05:52]Write to MH i2c: 01 00 00 91 52 E3 [17:05:52]Write i2c OK [17:05:52]MH_I2C_Read... [17:05:53]OFD Sender: No OFD packet to send [17:05:53]*** Cut start [17:05:53]*** Partial cut [17:05:53]*** CUTSNS_PIN = 1 [17:05:53]*** CUTSNS_PIN = 0 [17:05:53]*** Brake cut motor [17:05:54]Read from MH i2c: 01 [17:05:54]MH_I2C_Read... [17:05:54]*** Stop cut motor [17:05:54]*** Cut end [17:05:54]Read from MH i2c: 01 07 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: 01 07 00 91 52 00 00 00 00 00 FF 0F F8 [17:05:54]process_action close_receipt done [17:05:54]requested_data is exist [17:05:54]produce_requested_data [17:05:54]requested_item fm.sn is exist - process it [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 11 00 00 [17:05:54]Write to MH i2c: E2 08 00 92 52 80 11 00 00 00 00 00 00 5E [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 17 00 92 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AD [17:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:05:54]wFMCommunicate OK [17:05:54]requested_item fd.num is exist - process it [17:05:54]SAM_PROTO_GetFieldsCounters [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 13 00 00 [17:05:54]Write to MH i2c: E2 08 00 93 52 80 13 00 00 00 00 00 00 61 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 62 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 62 00 93 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 87 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 87 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_GetFieldsCounters done [17:05:54]requested_item shift.num is exist - process it [17:05:54]requested_item shift.opened is exist - process it [17:05:54]req_shift_opened [17:05:54]FM_GetShiftState [17:05:54]SAM_PROTO_GetShiftState [17:05:54]wFMCommunicate request_size=4 [17:05:54]MH_SAM_APDU [17:05:54]CAPDU: 80 13 01 00 [17:05:54]Write to MH i2c: E2 08 00 94 52 80 13 01 00 00 00 00 00 63 [17:05:54]Write i2c OK [17:05:54]MH_I2C_Read... [17:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:54]Read from MH i2c: E2 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 [17:05:54]MH_I2C_Read... [17:05:54]Read from MH i2c: E2 0E 00 94 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B8 [17:05:54]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:05:54]wFMCommunicate OK [17:05:54]SAM_PROTO_GetShiftState done [17:05:54]FM_GetShiftState done [17:05:54]req_shift_opened done [17:05:54]requested_item shift.open_date is exist - process it [17:05:54]req_shift_open_date [17:05:54]req_shift_open_date done [17:05:54]produce_requested_data done [17:05:54]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15751,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:05:54]process_action_free close_receipt [17:05:54]json_value_free [17:05:54]json_value_free done [17:05:54]process_json_proto returns [17:05:54]Send response to host [17:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15751,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:05:54]free response buf [17:05:54]execute_script done [17:05:54]execute_script returns [17:05:54]free content buf [17:05:54]Sock 9.Close socket [17:05:54]Sock 9.Thread stoped [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:42]accept exits with 8 [17:06:42]New connection [17:06:42]New thread 3066731876 created [17:06:42]Thread 3066588516 joined [17:06:42]Waiting for new connection... [17:06:42] Sock 8.Parse request [17:06:42]Sock 8.Check first char [17:06:42]Sock 8.First char is OK [17:06:42]request: POST /json_proto HTTP/1.0 [17:06:42]Method: POST [17:06:42]URL: /json_proto [17:06:42]Method is POST - this is cgi request [17:06:42]url: /json_proto [17:06:42]query_string will be loaded in cgi processing [17:06:42]execute_cgi json_proto POST (null) [17:06:42]execute_cgi path=json_proto method=POST [17:06:42]POST find Content-Length [17:06:42]Host: 172.17.54.195:8080 [17:06:42]Content-Length: 777 [17:06:42]Content-Type: application/json [17:06:42] [17:06:42]POST finish read [17:06:42]Found Content-Length = 777 [17:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:42]execute_script... [17:06: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)16302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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: Mbank", "total" : 1000.00, "payments": [ { "type": 1, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:42]POST & json_proto [17:06:42]process_json_proto [17:06:42]json parsed OK: [17:06:42]protocol is kg_v1.0 [17:06:42]action value=close_receipt [17:06:42]process_action close_receipt [17:06:42]cmd_close_receipt [17:06:42]MH_GetDate [17:06:42]Write to MH i2c: F0 00 00 95 52 D6 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 09 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: F0 09 00 95 52 00 2E 16 21 67 8D 90 A3 66 D1 [17:06:42]GetLastDocTimeStamp 1730221562 [17:06:42]current date 1730221614 [17:06:42]FM_GetShiftState [17:06:42]SAM_PROTO_GetShiftState [17:06:42]wFMCommunicate request_size=4 [17:06:42]MH_SAM_APDU [17:06:42]CAPDU: 80 13 01 00 [17:06:42]Write to MH i2c: E2 08 00 96 52 80 13 01 00 00 00 00 00 65 [17:06:42]Write i2c OK [17:06:42]MH_I2C_Read... [17:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:42]Read from MH i2c: E2 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 0E 00 [17:06:42]MH_I2C_Read... [17:06:42]Read from MH i2c: E2 0E 00 96 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BA [17:06:42]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:06:42]wFMCommunicate OK [17:06:42]SAM_PROTO_GetShiftState done [17:06:42]FM_GetShiftState done [17:06:42]opened in 1730161559 [17:06:42]opened+sec_in_day 1730247959 [17:06:42]quantity*price = 100000 [17:06:42]sum+1 = 100002 [17:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 98 29.10.2024 17:06 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15752 ФПД: 206672861381866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170654&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15752&fm=206672861381866&tin=02508201610067®Number=0000000000161798&sum=100000 [17:06:43]StoreToDocumentArchive [17:06:43]shift 172 fd 15752 [17:06:43]save to /storage/0172/doc_00015752 [17:06:43]save last doc name /storage/0172/doc_00015752 to /storage/kkm_last_doc_name [17:06:43]save OK [17:06:43]Clear old archive folders... [17:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=249 [17:06:43]tlvbuf is 003AAE90 [17:06:43]SAM_PROTO_ClearQueue [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 09 00 00 [17:06:43]Write to MH i2c: E2 08 00 A3 52 80 09 00 00 00 00 00 00 67 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 A3 52 00 90 00 69 [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_ClearQueue done [17:06:43]KKMCreateOFDPacket [17:06:43]OFDProtocolAddRootSTLVToBuf [17:06:43]FM_MakeSignedData [17:06:43]FM_MakeSignedData [17:06:43]SAM_PROTO_SignData [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 01 02 [17:06:43]Write to MH i2c: E2 08 00 A4 52 80 0D 01 02 00 00 00 00 6F [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]OFD Sender: No OFD packet to send [17:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 A4 52 00 90 00 6A [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=255 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 88 3D 00 00 35 04 06 00 BB F7 C6 [17:06:43]Write to MH i2c: E2 02 01 A5 52 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 88 3D 00 00 35 04 06 00 BB F7 C6 00 00 42 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 A5 52 00 90 00 6B [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=8 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 02 02 03 7C C4 EA [17:06:43]Write to MH i2c: E2 0B 00 A6 52 80 0D 02 02 03 00 7C C4 EA 00 00 A2 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 03 00 A6 52 00 90 00 6C [17:06:43]RAPDU: 90 00 [17:06:43]wFMCommunicate OK [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 0D 03 02 [17:06:43]Write to MH i2c: E2 08 00 A7 52 80 0D 03 02 00 00 00 00 74 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0B 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 0B 00 A7 52 00 5F 9F D3 44 AF A5 AC 94 90 00 1E [17:06:43]RAPDU: 5F 9F D3 44 AF A5 AC 94 90 00 [17:06:43]wFMCommunicate OK [17:06:43]SAM_PROTO_SignData done [17:06:43]FM_MakeSignedData done [17:06:43]CreateOFDProtocolMessage [17:06:43]wFMCommunicate request_size=4 [17:06:43]MH_SAM_APDU [17:06:43]CAPDU: 80 11 00 00 [17:06:43]Write to MH i2c: E2 08 00 A8 52 80 11 00 00 00 00 00 00 74 [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:43]Read from MH i2c: E2 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: E2 17 00 A8 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C3 [17:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:06:43]wFMCommunicate OK [17:06:43]CreateOFDProtocolMessage done [17:06:43]OFDSenderStorePacket 15752 [17:06:43]StoreOFDPacket docnum=15752 [17:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 95 A6 05 01 BB B9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 88 3D 00 00 35 04 06 00 BB F7 C6 7C C4 EA 5F 9F D3 44 AF A5 AC 94 [17:06:43]CheckFolder [17:06:43]dirname=/storage/ofd_packets [17:06:43]CheckFolder done [17:06:43]ProducePacketName [17:06:43]name=ofd_packets/00015752 [17:06:43]NVStorageSaveData ofd_packets/00015752 [17:06:43]File name is /storage/ofd_packets/00015752 [17:06:43]Write 299 bytes [17:06:43]NVStorageSaveData done [17:06:43]OFDSenderStorePacket done [17:06:43]KKMCreateOFDPacket done [17:06:43]NVStorageSaveData kkm_last_timestamp [17:06:43]File name is /storage/kkm_last_timestamp [17:06:43]Write 4 bytes [17:06:43]NVStorageSaveData done [17:06:43]ExternCall_PrintAddStr [17:06:43]wPrintStart [17:06:43]Write to MH i2c: 01 00 00 A9 52 FB [17:06:43]Write i2c OK [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 [17:06:43]MH_I2C_Read... [17:06:43]Read from MH i2c: 01 07 00 A9 52 00 00 00 00 00 FF 0F 10 [17:06:43]RasterBufferAndPrint [17:06:43]line Счет N : (1)16302 [17:06:43]line ИНН: 02508201610067 [17:06:43]line Контрольно-Кассовый Чек [17:06:43]line ПРОДАЖА [17:06:43]line ТРК (МРК, ГНК) : 12 [17:06:43]line Товар: 50.50.0 [17:06:43]line SUPER 92-К-5 [17:06:43]line 14.620 * 68.40 [17:06:43]line = 1000.01 [17:06:43]line НДС 12% НСП 1% [17:06:43]line > о реализуемом товаре [17:06:43]line ОКРУГЛЕНИЕ: -0.01 [17:06:43]line ИТОГО: 1000.00 [17:06:43]line НСП 1% : 8.85 [17:06:43]line НДС 12% : 106.20 [17:06:43]line Наличными: 0.00 [17:06:43]line Безнал.: 1000.00 [17:06:43]line Место: АЗС № 178 "Партнер Нефть" [17:06:43]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:06:43]line СНО: Общий режим [17:06:44]line Чек 98 29.10.2024 17:06 [17:06:44]line Смена: 172 ФФД: 1.0 [17:06:44]line ЗНМ: 0300000014 [17:06:44]line РНМ: 0000000000161798 [17:06:44]line Версия ККМ: v1.0 [17:06:44]line Платежная система: Mbank [17:06:44]line ФМ: 0000000000963325 [17:06:44]line ФД: 15752 [17:06:44]line ФПД: 206672861381866 [17:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170654&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15752&fm=206672861381866&tin=02508201610067®Number=0000000000161798&sum=100000 [17:06:44]OFD Sender: Processing packet 15752 [packets to send 4, broken 3] [17:06:44]ProducePacketName [17:06:44]name=ofd_packets/00015752 [17:06:44]OFD Sender: To server: pG, [17:06:44]CommunicateWithHost lk.salyk.kg:30040 [17:06:44]ConnectInit lk.salyk.kg [17:06:44]written 0, free lines is 4095 [17:06:44]Connected sock=10 [17:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 95 A6 05 01 BB B9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 2E 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 88 3D 00 00 35 04 06 00 BB F7 C6 7C C4 EA 5F 9F D3 44 AF A5 AC 94 [17:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 6E 50 47 00 0D AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 88 3D 00 00 F4 03 04 00 1A C1 20 67 B6 04 01 00 00 6F F2 3C 7A 5E 92 34 CB [17:06:44]CommunicateWithHost err = 0 [17:06:44]CheckOFDResponse [17:06:44]1017 (14) - 77093643461234 [17:06:44]1041 (16) - 0000000000963325 [17:06:44]1040 (4) - 15752 [17:06:44]1012 (4) - 29.10.2024 11:03 [17:06:44]1206 (1) - 0 [17:06:44]OFD Sender: Remove packet 15752 [17:06:44]ProducePacketName [17:06:44]name=ofd_packets/00015752 [17:06:44]NVStorageDeleteData [17:06:44]Write to MH i2c: 01 00 00 D3 52 25 [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: 01 07 00 D3 52 00 00 00 00 00 0B 0D 44 [17:06:44]RasterBufferAndPrint [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]line [17:06:44]written 0, free lines is 3345 [17:06:44]MH_Cut [17:06:44]Write to MH i2c: D1 01 00 DA 52 01 FE [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 01 00 [17:06:44]MH_I2C_Read... [17:06:44]Read from MH i2c: D1 01 00 DA 52 00 FD [17:06:44]Write to MH i2c: 01 00 00 DB 52 2D [17:06:44]Write i2c OK [17:06:44]MH_I2C_Read... [17:06:44]OFD Sender: No OFD packet to send [17:06:45]*** Cut start [17:06:45]*** Partial cut [17:06:45]*** CUTSNS_PIN = 1 [17:06:45]*** CUTSNS_PIN = 0 [17:06:45]*** Brake cut motor [17:06:45]Read from MH i2c: 01 [17:06:45]MH_I2C_Read... [17:06:45]*** Stop cut motor [17:06:45]*** Cut end [17:06:45]Read from MH i2c: 01 07 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: 01 07 00 DB 52 00 00 00 00 00 FF 0F 42 [17:06:45]process_action close_receipt done [17:06:45]requested_data is exist [17:06:45]produce_requested_data [17:06:45]requested_item fm.sn is exist - process it [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 11 00 00 [17:06:45]Write to MH i2c: E2 08 00 DC 52 80 11 00 00 00 00 00 00 A8 [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:45]Read from MH i2c: E2 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 [17:06:45]MH_I2C_Read... [17:06:45]Read from MH i2c: E2 17 00 DC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F7 [17:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:06:45]wFMCommunicate OK [17:06:45]requested_item fd.num is exist - process it [17:06:45]SAM_PROTO_GetFieldsCounters [17:06:45]wFMCommunicate request_size=4 [17:06:45]MH_SAM_APDU [17:06:45]CAPDU: 80 13 00 00 [17:06:45]Write to MH i2c: E2 08 00 DD 52 80 13 00 00 00 00 00 00 AB [17:06:45]Write i2c OK [17:06:45]MH_I2C_Read... [17:06:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:46]Read from MH i2c: E2 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 62 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 62 00 DD 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 88 3D 00 00 0E 04 04 00 AC 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 66 [17:06:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 88 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:46]wFMCommunicate OK [17:06:46]SAM_PROTO_GetFieldsCounters done [17:06:46]requested_item shift.num is exist - process it [17:06:46]requested_item shift.opened is exist - process it [17:06:46]req_shift_opened [17:06:46]FM_GetShiftState [17:06:46]SAM_PROTO_GetShiftState [17:06:46]wFMCommunicate request_size=4 [17:06:46]MH_SAM_APDU [17:06:46]CAPDU: 80 13 01 00 [17:06:46]Write to MH i2c: E2 08 00 DE 52 80 13 01 00 00 00 00 00 AD [17:06:46]Write i2c OK [17:06:46]MH_I2C_Read... [17:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:46]Read from MH i2c: E2 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 0E 00 [17:06:46]MH_I2C_Read... [17:06:46]Read from MH i2c: E2 0E 00 DE 52 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 02 [17:06:46]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:06:46]wFMCommunicate OK [17:06:46]SAM_PROTO_GetShiftState done [17:06:46]FM_GetShiftState done [17:06:46]req_shift_opened done [17:06:46]requested_item shift.open_date is exist - process it [17:06:46]req_shift_open_date [17:06:46]req_shift_open_date done [17:06:46]produce_requested_data done [17:06:46]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15752,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:06:46]process_action_free close_receipt [17:06:46]json_value_free [17:06:46]json_value_free done [17:06:46]process_json_proto returns [17:06:46]Send response to host [17:06:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15752,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:06:46]free response buf [17:06:46]execute_script done [17:06:46]execute_script returns [17:06:46]free content buf [17:06:46]Sock 8.Close socket [17:06:46]Sock 8.Thread stoped [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:09:11]Write to MH i2c: E2 12 00 E7 52 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 10 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 E7 52 00 90 00 AD [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=11 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [17:09:11]Write to MH i2c: E2 0E 00 E8 52 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 EC [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 E8 52 00 90 00 AE [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=13 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 15 02 00 08 F4 03 04 00 C2 16 21 67 [17:09:11]Write to MH i2c: E2 10 00 E9 52 80 15 02 00 08 00 F4 03 04 00 C2 16 21 67 00 00 26 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 E9 52 00 90 00 AF [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=25 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 [17:09:11]Write to MH i2c: E2 1C 00 EA 52 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 00 00 25 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 EA 52 00 90 00 B0 [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=4 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 15 03 00 [17:09:11]Write to MH i2c: E2 08 00 EB 52 80 15 03 00 00 00 00 00 BE [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 40 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 40 00 EB 52 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 63 00 00 00 35 04 06 00 C3 27 D9 97 8C 64 90 00 CF [17:09:11]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 63 00 00 00 35 04 06 00 C3 27 D9 97 8C 64 90 00 [17:09:11]wFMCommunicate OK [17:09:11]SAM_PROTO_ProcessDocument answer len = 59 [17:09:11]SAM_PROTO_ProcessDocument done [17:09:11]SetTLVBufToDocument [17:09:11]Processing tag 1209 (04B9) [17:09:11]Malloc new data [17:09:11]Processing tag 1041 (0411) [17:09:11]Processing tag 1040 (0410) [17:09:11]Malloc new data [17:09:11]Processing tag 1038 (040E) [17:09:11]Malloc new data [17:09:11]Processing tag 1042 (0412) [17:09:11]Malloc new data [17:09:11]Processing tag 1077 (0435) [17:09:11]Malloc new data [17:09:11]SetTLVBufToDocument err=0 [17:09:11]KKMLoadAndSignReceiptData store KKM data [17:09:11]KKMLoadAndSignReceiptData err=0 [17:09:11]wFMCommunicate request_size=4 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 11 00 00 [17:09:11]Write to MH i2c: E2 08 00 EC 52 80 11 00 00 00 00 00 00 B8 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 17 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 17 00 EC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 07 [17:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:09:11]wFMCommunicate OK [17:09:11]Счет N : (1)16303 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 21 Товар: 2710124130 Аи-92-К-5 0.900 * 66.90 = 60.21 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 60.00 Внесено: 100.00 СДАЧА: 40.00 НСП 1% : 0.53 НДС 12% : 6.39 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 99 29.10.2024 17:09 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15753 ФПД: 214575921728612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170922&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15753&fm=214575921728612&tin=02508201610067®Number=0000000000161798&sum=6000 [17:09:11]StoreToDocumentArchive [17:09:11]shift 172 fd 15753 [17:09:11]save to /storage/0172/doc_00015753 [17:09:11]save last doc name /storage/0172/doc_00015753 to /storage/kkm_last_doc_name [17:09:11]save OK [17:09:11]Clear old archive folders... [17:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:09:11]tlvbuf is 004A23E0 [17:09:11]SAM_PROTO_ClearQueue [17:09:11]wFMCommunicate request_size=4 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 09 00 00 [17:09:11]Write to MH i2c: E2 08 00 ED 52 80 09 00 00 00 00 00 00 B1 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 ED 52 00 90 00 B3 [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]SAM_PROTO_ClearQueue done [17:09:11]KKMCreateOFDPacket [17:09:11]OFDProtocolAddRootSTLVToBuf [17:09:11]FM_MakeSignedData [17:09:11]FM_MakeSignedData [17:09:11]SAM_PROTO_SignData [17:09:11]wFMCommunicate request_size=4 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 0D 01 02 [17:09:11]Write to MH i2c: E2 08 00 EE 52 80 0D 01 02 00 00 00 00 B9 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 EE 52 00 90 00 B4 [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=255 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 35 04 06 00 C3 [17:09:11]Write to MH i2c: E2 02 01 EF 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 35 04 06 00 C3 00 00 E1 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 EF 52 00 90 00 B5 [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=10 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 0D 02 02 05 27 D9 97 8C 64 [17:09:11]Write to MH i2c: E2 0D 00 F0 52 80 0D 02 02 05 00 27 D9 97 8C 64 00 00 4D [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:11]Read from MH i2c: E2 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: E2 03 00 F0 52 00 90 00 B6 [17:09:11]RAPDU: 90 00 [17:09:11]wFMCommunicate OK [17:09:11]wFMCommunicate request_size=4 [17:09:11]MH_SAM_APDU [17:09:11]CAPDU: 80 0D 03 02 [17:09:11]Write to MH i2c: E2 08 00 F1 52 80 0D 03 02 00 00 00 00 BE [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:12]Read from MH i2c: E2 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 0B 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 0B 00 F1 52 00 06 B5 27 C5 F8 66 3D 76 90 00 77 [17:09:12]RAPDU: 06 B5 27 C5 F8 66 3D 76 90 00 [17:09:12]wFMCommunicate OK [17:09:12]SAM_PROTO_SignData done [17:09:12]FM_MakeSignedData done [17:09:12]CreateOFDProtocolMessage [17:09:12]wFMCommunicate request_size=4 [17:09:12]MH_SAM_APDU [17:09:12]CAPDU: 80 11 00 00 [17:09:12]Write to MH i2c: E2 08 00 F2 52 80 11 00 00 00 00 00 00 BE [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:12]Read from MH i2c: E2 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 17 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: E2 17 00 F2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 0D [17:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:09:12]wFMCommunicate OK [17:09:12]CreateOFDProtocolMessage done [17:09:12]OFDSenderStorePacket 15753 [17:09:12]StoreOFDPacket docnum=15753 [17:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 76 17 07 01 2F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 35 04 06 00 C3 27 D9 97 8C 64 06 B5 27 C5 F8 66 3D 76 [17:09:12]CheckFolder [17:09:12]dirname=/storage/ofd_packets [17:09:12]CheckFolder done [17:09:12]ProducePacketName [17:09:12]name=ofd_packets/00015753 [17:09:12]NVStorageSaveData ofd_packets/00015753 [17:09:12]File name is /storage/ofd_packets/00015753 [17:09:12]Write 301 bytes [17:09:12]NVStorageSaveData done [17:09:12]OFDSenderStorePacket done [17:09:12]KKMCreateOFDPacket done [17:09:12]NVStorageSaveData kkm_last_timestamp [17:09:12]File name is /storage/kkm_last_timestamp [17:09:12]Write 4 bytes [17:09:12]NVStorageSaveData done [17:09:12]ExternCall_PrintAddStr [17:09:12]wPrintStart [17:09:12]Write to MH i2c: 01 00 00 F3 52 45 [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 F3 52 00 00 00 00 00 FF 0F 5A [17:09:12]RasterBufferAndPrint [17:09:12]line Счет N : (1)16303 [17:09:12]line ИНН: 02508201610067 [17:09:12]line Контрольно-Кассовый Чек [17:09:12]line ПРОДАЖА [17:09:12]line ТРК (МРК, ГНК) : 21 [17:09:12]line Товар: 2710124130 [17:09:12]line Аи-92-К-5 [17:09:12]line 0.900 * 66.90 [17:09:12]line = 60.21 [17:09:12]line НДС 12% НСП 1% [17:09:12]line > о реализуемом товаре [17:09:12]line ОКРУГЛЕНИЕ: -0.21 [17:09:12]line ИТОГО: 60.00 [17:09:12]line Внесено: 100.00 [17:09:12]line СДАЧА: 40.00 [17:09:12]line НСП 1% : 0.53 [17:09:12]line НДС 12% : 6.39 [17:09:12]line Наличными: 60.00 [17:09:12]line Безнал.: 0.00 [17:09:12]line Место: АЗС № 178 "Партнер Нефть" [17:09:12]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:09:12]line СНО: Общий режим [17:09:12]line Чек 99 29.10.2024 17:09 [17:09:12]line Смена: 172 ФФД: 1.0 [17:09:12]line ЗНМ: 0300000014 [17:09:12]line РНМ: 0000000000161798 [17:09:12]line Версия ККМ: v1.0 [17:09:12]line ФМ: 0000000000963325 [17:09:12]line ФД: 15753 [17:09:12]line ФПД: 214575921728612 [17:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T170922&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15753&fm=214575921728612&tin=02508201610067®Number=0000000000161798&sum=6000 [17:09:12]OFD Sender: Processing packet 15753 [packets to send 4, broken 3] [17:09:12]ProducePacketName [17:09:12]name=ofd_packets/00015753 [17:09:12]OFD Sender: To server: pG, [17:09:12]CommunicateWithHost lk.salyk.kg:30040 [17:09:12]ConnectInit lk.salyk.kg [17:09:12]written 0, free lines is 4095 [17:09:12]Connected sock=11 [17:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 76 17 07 01 2F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 85 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 C2 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 35 04 06 00 C3 27 D9 97 8C 64 06 B5 27 C5 F8 66 3D 76 [17:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DA 30 47 00 48 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 89 3D 00 00 F4 03 04 00 AE C1 20 67 B6 04 01 00 00 AD 44 43 26 AC EF 55 57 [17:09:12]CommunicateWithHost err = 0 [17:09:12]CheckOFDResponse [17:09:12]1017 (14) - 77093643461234 [17:09:12]1041 (16) - 0000000000963325 [17:09:12]1040 (4) - 15753 [17:09:12]1012 (4) - 29.10.2024 11:06 [17:09:12]1206 (1) - 0 [17:09:12]OFD Sender: Remove packet 15753 [17:09:12]ProducePacketName [17:09:12]name=ofd_packets/00015753 [17:09:12]NVStorageDeleteData [17:09:12]Write to MH i2c: 01 00 00 1E 53 71 [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 1E 53 00 00 00 00 00 EF 0C 73 [17:09:12]RasterBufferAndPrint [17:09:12]line [17:09:12]line [17:09:12]line [17:09:12]line [17:09:12]line [17:09:12]written 0, free lines is 3317 [17:09:12]MH_Cut [17:09:12]Write to MH i2c: D1 01 00 25 53 01 4A [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: D1 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: D1 01 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: D1 01 00 25 53 00 49 [17:09:12]Write to MH i2c: 01 00 00 26 53 79 [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:13]OFD Sender: No OFD packet to send [17:09:13]*** Cut start [17:09:13]*** Partial cut [17:09:13]*** CUTSNS_PIN = 1 [17:09:13]*** CUTSNS_PIN = 0 [17:09:13]*** Brake cut motor [17:09:14]Read from MH i2c: 01 [17:09:14]MH_I2C_Read... [17:09:14]*** Stop cut motor [17:09:14]*** Cut end [17:09:14]Read from MH i2c: 01 07 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: 01 07 00 26 53 00 00 00 00 00 FF 0F 8E [17:09:14]process_action close_receipt done [17:09:14]requested_data is exist [17:09:14]produce_requested_data [17:09:14]requested_item fm.sn is exist - process it [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 11 00 00 [17:09:14]Write to MH i2c: E2 08 00 27 53 80 11 00 00 00 00 00 00 F4 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 17 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 17 00 27 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 43 [17:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:09:14]wFMCommunicate OK [17:09:14]requested_item fd.num is exist - process it [17:09:14]SAM_PROTO_GetFieldsCounters [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 13 00 00 [17:09:14]Write to MH i2c: E2 08 00 28 53 80 13 00 00 00 00 00 00 F7 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 62 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 62 00 28 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 89 3D 00 00 0E 04 04 00 AC 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 B6 [17:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 89 3D 00 00 0E 04 04 00 AC 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 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_GetFieldsCounters done [17:09:14]requested_item shift.num is exist - process it [17:09:14]requested_item shift.opened is exist - process it [17:09:14]req_shift_opened [17:09:14]FM_GetShiftState [17:09:14]SAM_PROTO_GetShiftState [17:09:14]wFMCommunicate request_size=4 [17:09:14]MH_SAM_APDU [17:09:14]CAPDU: 80 13 01 00 [17:09:14]Write to MH i2c: E2 08 00 29 53 80 13 01 00 00 00 00 00 F9 [17:09:14]Write i2c OK [17:09:14]MH_I2C_Read... [17:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:14]Read from MH i2c: E2 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0E 00 [17:09:14]MH_I2C_Read... [17:09:14]Read from MH i2c: E2 0E 00 29 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4E [17:09:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:09:14]wFMCommunicate OK [17:09:14]SAM_PROTO_GetShiftState done [17:09:14]FM_GetShiftState done [17:09:14]req_shift_opened done [17:09:14]requested_item shift.open_date is exist - process it [17:09:14]req_shift_open_date [17:09:14]req_shift_open_date done [17:09:14]produce_requested_data done [17:09:14]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15753,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:09:14]process_action_free close_receipt [17:09:14]json_value_free [17:09:14]json_value_free done [17:09:14]process_json_proto returns [17:09:14]Send response to host [17:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15753,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:09:14]free response buf [17:09:14]execute_script done [17:09:14]execute_script returns [17:09:14]free content buf [17:09:14]Sock 9.Close socket [17:09:14]Sock 9.Thread stoped [17:09:18]OFD Sender: No OFD packet to send [17:09:18]ConnectInit Can't connect to host [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:54]accept exits with 10 [17:09:54]New connection [17:09:54]New thread 3066731876 created [17:09:54]Thread 3066588516 joined [17:09:54]Waiting for new connection... [17:09:54] Sock 10.Parse request [17:09:54]Sock 10.Check first char [17:09:54]Sock 10.First char is OK [17:09:54]request: POST /json_proto HTTP/1.0 [17:09:54]Method: POST [17:09:54]URL: /json_proto [17:09:54]Method is POST - this is cgi request [17:09:54]url: /json_proto [17:09:54]query_string will be loaded in cgi processing [17:09:54]execute_cgi json_proto POST (null) [17:09:54]execute_cgi path=json_proto method=POST [17:09:54]POST find Content-Length [17:09:54]Host: 172.17.54.195:8080 [17:09:54]Content-Length: 666 [17:09:54]Content-Type: application/json [17:09:54] [17:09:54]POST finish read [17:09:54]Found Content-Length = 666 [17:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 1.950, "sum" : 133.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:54]execute_script... [17:09: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)16305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 1.950, "sum" : 133.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 133.00, "total" : 133.00, "payments": [ { "type": 0, "sum" : 133.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:54]POST & json_proto [17:09:54]process_json_proto [17:09:54]json parsed OK: [17:09:54]protocol is kg_v1.0 [17:09:54]action value=close_receipt [17:09:54]process_action close_receipt [17:09:54]cmd_close_receipt [17:09:54]MH_GetDate [17:09:54]Write to MH i2c: F0 00 00 2A 53 6C [17:09:54]Write i2c OK [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 09 00 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: F0 09 00 2A 53 00 EE 16 21 67 8D 90 A3 66 27 [17:09:54]GetLastDocTimeStamp 1730221762 [17:09:54]current date 1730221806 [17:09:54]FM_GetShiftState [17:09:54]SAM_PROTO_GetShiftState [17:09:54]wFMCommunicate request_size=4 [17:09:54]MH_SAM_APDU [17:09:54]CAPDU: 80 13 01 00 [17:09:54]Write to MH i2c: E2 08 00 2B 53 80 13 01 00 00 00 00 00 FB [17:09:54]Write i2c OK [17:09:54]MH_I2C_Read... [17:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:54]Read from MH i2c: E2 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 [17:09:54]MH_I2C_Read... [17:09:54]Read from MH i2c: E2 0E 00 2B 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 50 [17:09:54]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:09:54]wFMCommunicate OK [17:09:54]SAM_PROTO_GetShiftState done [17:09:54]FM_GetShiftState done [17:09:54]opened in 1730161559 [17:09:54]opened+sec_in_day 1730247959 [17:09:54]quantity*price = 13338 [17:09:54]sum+1 = 13339 [17:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 133.00 Внесено: 133.00 СДАЧА: 0.00 НСП 1% : 1.18 НДС 12% : 14.16 Наличными: 133.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 100 29.10.2024 17:10 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15754 ФПД: 249061304372805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171006&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15754&fm=249061304372805&tin=02508201610067®Number=0000000000161798&sum=13300 [17:09:55]StoreToDocumentArchive [17:09:55]shift 172 fd 15754 [17:09:55]save to /storage/0172/doc_00015754 [17:09:55]save last doc name /storage/0172/doc_00015754 to /storage/kkm_last_doc_name [17:09:55]save OK [17:09:55]Clear old archive folders... [17:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=249 [17:09:55]tlvbuf is 003E27A0 [17:09:55]SAM_PROTO_ClearQueue [17:09:55]wFMCommunicate request_size=4 [17:09:55]MH_SAM_APDU [17:09:55]CAPDU: 80 09 00 00 [17:09:55]Write to MH i2c: E2 08 00 38 53 80 09 00 00 00 00 00 00 FD [17:09:55]Write i2c OK [17:09:55]MH_I2C_Read... [17:09:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:55]Read from MH i2c: E2 [17:09:55]MH_I2C_Read... [17:09:55]Read from MH i2c: E2 03 00 [17:09:55]MH_I2C_Read... [17:09:55]Read from MH i2c: E2 03 00 38 53 00 90 00 FF [17:09:55]RAPDU: 90 00 [17:09:55]wFMCommunicate OK [17:09:55]SAM_PROTO_ClearQueue done [17:09:55]KKMCreateOFDPacket [17:09:55]OFDProtocolAddRootSTLVToBuf [17:09:55]FM_MakeSignedData [17:09:55]FM_MakeSignedData [17:09:55]SAM_PROTO_SignData [17:09:55]wFMCommunicate request_size=4 [17:09:55]MH_SAM_APDU [17:09:55]CAPDU: 80 0D 01 02 [17:09:55]Write to MH i2c: E2 08 00 39 53 80 0D 01 02 00 00 00 00 05 [17:09:55]Write i2c OK [17:09:55]MH_I2C_Read... [17:09:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:55]Read from MH i2c: E2 [17:09:55]MH_I2C_Read... [17:09:55]Read from MH i2c: E2 03 00 [17:09:55]MH_I2C_Read... [17:09:55]Read from MH i2c: E2 03 00 39 53 00 90 00 00 [17:09:55]RAPDU: 90 00 [17:09:55]wFMCommunicate OK [17:09:55]wFMCommunicate request_size=255 [17:09:55]MH_SAM_APDU [17:09:55]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1A 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EE 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8A 3D 00 00 35 04 06 00 E2 85 1A [17:09:55]Write to MH i2c: E2 02 01 3A 53 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1A 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EE 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8A 3D 00 00 35 04 06 00 E2 85 1A 00 00 01 [17:09:55]Write i2c OK [17:09:55]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 3A 53 00 90 00 01 [17:09:56]RAPDU: 90 00 [17:09:56]wFMCommunicate OK [17:09:56]wFMCommunicate request_size=8 [17:09:56]MH_SAM_APDU [17:09:56]CAPDU: 80 0D 02 02 03 93 0E 45 [17:09:56]Write to MH i2c: E2 0B 00 3B 53 80 0D 02 02 03 00 93 0E 45 00 00 F4 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 03 00 3B 53 00 90 00 02 [17:09:56]RAPDU: 90 00 [17:09:56]wFMCommunicate OK [17:09:56]wFMCommunicate request_size=4 [17:09:56]MH_SAM_APDU [17:09:56]CAPDU: 80 0D 03 02 [17:09:56]Write to MH i2c: E2 08 00 3C 53 80 0D 03 02 00 00 00 00 0A [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 0B 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 0B 00 3C 53 00 8C 83 9C 7F 68 DC 14 56 90 00 E3 [17:09:56]RAPDU: 8C 83 9C 7F 68 DC 14 56 90 00 [17:09:56]wFMCommunicate OK [17:09:56]SAM_PROTO_SignData done [17:09:56]FM_MakeSignedData done [17:09:56]CreateOFDProtocolMessage [17:09:56]wFMCommunicate request_size=4 [17:09:56]MH_SAM_APDU [17:09:56]CAPDU: 80 11 00 00 [17:09:56]Write to MH i2c: E2 08 00 3D 53 80 11 00 00 00 00 00 00 0A [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:56]Read from MH i2c: E2 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 17 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: E2 17 00 3D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 59 [17:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:09:56]wFMCommunicate OK [17:09:56]CreateOFDProtocolMessage done [17:09:56]OFDSenderStorePacket 15754 [17:09:56]StoreOFDPacket docnum=15754 [17:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 10 76 05 01 23 27 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1A 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EE 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8A 3D 00 00 35 04 06 00 E2 85 1A 93 0E 45 8C 83 9C 7F 68 DC 14 56 [17:09:56]CheckFolder [17:09:56]dirname=/storage/ofd_packets [17:09:56]CheckFolder done [17:09:56]ProducePacketName [17:09:56]name=ofd_packets/00015754 [17:09:56]NVStorageSaveData ofd_packets/00015754 [17:09:56]File name is /storage/ofd_packets/00015754 [17:09:56]Write 299 bytes [17:09:56]NVStorageSaveData done [17:09:56]OFDSenderStorePacket done [17:09:56]KKMCreateOFDPacket done [17:09:56]NVStorageSaveData kkm_last_timestamp [17:09:56]File name is /storage/kkm_last_timestamp [17:09:56]Write 4 bytes [17:09:56]NVStorageSaveData done [17:09:56]ExternCall_PrintAddStr [17:09:56]wPrintStart [17:09:56]Write to MH i2c: 01 00 00 3E 53 91 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 07 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 07 00 3E 53 00 00 00 00 00 FF 0F A6 [17:09:56]RasterBufferAndPrint [17:09:56]line Счет N : (1)16305 [17:09:56]line ИНН: 02508201610067 [17:09:56]line Контрольно-Кассовый Чек [17:09:56]line ПРОДАЖА [17:09:56]line ТРК (МРК, ГНК) : 12 [17:09:56]line Товар: 50.50.0 [17:09:56]line SUPER 92-К-5 [17:09:56]line 1.950 * 68.40 [17:09:56]line = 133.38 [17:09:56]line НДС 12% НСП 1% [17:09:56]line > о реализуемом товаре [17:09:56]line ОКРУГЛЕНИЕ: -0.38 [17:09:56]line ИТОГО: 133.00 [17:09:56]line Внесено: 133.00 [17:09:56]line СДАЧА: 0.00 [17:09:56]line НСП 1% : 1.18 [17:09:56]line НДС 12% : 14.16 [17:09:56]line Наличными: 133.00 [17:09:56]line Безнал.: 0.00 [17:09:56]line Место: АЗС № 178 "Партнер Нефть" [17:09:56]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:09:56]line СНО: Общий режим [17:09:56]line Чек 100 29.10.2024 17:10 [17:09:56]line Смена: 172 ФФД: 1.0 [17:09:56]line ЗНМ: 0300000014 [17:09:56]line РНМ: 0000000000161798 [17:09:56]line Версия ККМ: v1.0 [17:09:56]line ФМ: 0000000000963325 [17:09:56]line ФД: 15754 [17:09:56]line ФПД: 249061304372805 [17:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171006&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15754&fm=249061304372805&tin=02508201610067®Number=0000000000161798&sum=13300 [17:09:56]written 0, free lines is 4095 [17:09:56]OFD Sender: Processing packet 15754 [packets to send 4, broken 3] [17:09:56]ProducePacketName [17:09:56]name=ofd_packets/00015754 [17:09:56]OFD Sender: To server: pG, [17:09:56]CommunicateWithHost lk.salyk.kg:30040 [17:09:56]ConnectInit lk.salyk.kg [17:09:56]Connected sock=11 [17:09:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 10 76 05 01 23 27 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 07 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1A 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 05 00 00 00 00 07 04 06 00 F4 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 EE 16 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8A 3D 00 00 35 04 06 00 E2 85 1A 93 0E 45 8C 83 9C 7F 68 DC 14 56 [17:09:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 CE F3 47 00 57 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8A 3D 00 00 F4 03 04 00 DA C1 20 67 B6 04 01 00 00 34 23 08 1C 25 F5 BF 1B [17:09:56]CommunicateWithHost err = 0 [17:09:56]CheckOFDResponse [17:09:56]1017 (14) - 77093643461234 [17:09:56]1041 (16) - 0000000000963325 [17:09:56]1040 (4) - 15754 [17:09:56]1012 (4) - 29.10.2024 11:07 [17:09:56]1206 (1) - 0 [17:09:56]OFD Sender: Remove packet 15754 [17:09:56]ProducePacketName [17:09:56]name=ofd_packets/00015754 [17:09:56]NVStorageDeleteData [17:09:56]Write to MH i2c: 01 00 00 69 53 BC [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 07 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: 01 07 00 69 53 00 00 00 00 00 E7 0C B6 [17:09:56]RasterBufferAndPrint [17:09:56]line [17:09:56]line [17:09:56]line [17:09:56]line [17:09:56]line [17:09:56]written 0, free lines is 3318 [17:09:56]MH_Cut [17:09:56]Write to MH i2c: D1 01 00 70 53 01 95 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: D1 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: D1 01 00 [17:09:56]MH_I2C_Read... [17:09:56]Read from MH i2c: D1 01 00 70 53 00 94 [17:09:56]Write to MH i2c: 01 00 00 71 53 C4 [17:09:56]Write i2c OK [17:09:56]MH_I2C_Read... [17:09:57]OFD Sender: No OFD packet to send [17:09:57]*** Cut start [17:09:57]*** Partial cut [17:09:57]*** CUTSNS_PIN = 1 [17:09:57]*** CUTSNS_PIN = 0 [17:09:57]*** Brake cut motor [17:09:58]Read from MH i2c: 01 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: 01 07 00 [17:09:58]MH_I2C_Read... [17:09:58]*** Stop cut motor [17:09:58]Read from MH i2c: 01 07 00 71 53 00 00 00 00 00 FF 0F D9 [17:09:58]process_action close_receipt done [17:09:58]requested_data is exist [17:09:58]produce_requested_data [17:09:58]requested_item fm.sn is exist - process it [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 11 00 00 [17:09:58]Write to MH i2c: E2 08 00 72 53 80 11 00 00 00 00 00 00 3F [17:09:58]*** Cut end [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 17 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 17 00 72 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 8E [17:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:09:58]wFMCommunicate OK [17:09:58]requested_item fd.num is exist - process it [17:09:58]SAM_PROTO_GetFieldsCounters [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 13 00 00 [17:09:58]Write to MH i2c: E2 08 00 73 53 80 13 00 00 00 00 00 00 42 [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 62 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 62 00 73 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8A 3D 00 00 0E 04 04 00 AC 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 05 [17:09:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8A 3D 00 00 0E 04 04 00 AC 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 [17:09:58]wFMCommunicate OK [17:09:58]SAM_PROTO_GetFieldsCounters done [17:09:58]requested_item shift.num is exist - process it [17:09:58]requested_item shift.opened is exist - process it [17:09:58]req_shift_opened [17:09:58]FM_GetShiftState [17:09:58]SAM_PROTO_GetShiftState [17:09:58]wFMCommunicate request_size=4 [17:09:58]MH_SAM_APDU [17:09:58]CAPDU: 80 13 01 00 [17:09:58]Write to MH i2c: E2 08 00 74 53 80 13 01 00 00 00 00 00 44 [17:09:58]Write i2c OK [17:09:58]MH_I2C_Read... [17:09:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:58]Read from MH i2c: E2 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0E 00 [17:09:58]MH_I2C_Read... [17:09:58]Read from MH i2c: E2 0E 00 74 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 99 [17:09:58]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:09:58]wFMCommunicate OK [17:09:58]SAM_PROTO_GetShiftState done [17:09:58]FM_GetShiftState done [17:09:58]req_shift_opened done [17:09:58]requested_item shift.open_date is exist - process it [17:09:58]req_shift_open_date [17:09:58]req_shift_open_date done [17:09:58]produce_requested_data done [17:09:58]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15754,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:09:58]process_action_free close_receipt [17:09:58]json_value_free [17:09:58]json_value_free done [17:09:58]process_json_proto returns [17:09:58]Send response to host [17:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15754,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:09:58]free response buf [17:09:58]execute_script done [17:09:58]execute_script returns [17:09:58]free content buf [17:09:58]Sock 10.Close socket [17:09:58]Sock 10.Thread stoped [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:24]accept exits with 9 [17:10:24]New connection [17:10:24]New thread 3066588516 created [17:10:24]Thread 3066731876 joined [17:10:24]Waiting for new connection... [17:10:24] Sock 9.Parse request [17:10:24]Sock 9.Check first char [17:10:24]Sock 9.First char is OK [17:10:24]request: POST /json_proto HTTP/1.0 [17:10:24]Method: POST [17:10:24]URL: /json_proto [17:10:24]Method is POST - this is cgi request [17:10:24]url: /json_proto [17:10:24]query_string will be loaded in cgi processing [17:10:24]execute_cgi json_proto POST (null) [17:10:24]execute_cgi path=json_proto method=POST [17:10:24]POST find Content-Length [17:10:24]Host: 172.17.54.195:8080 [17:10:24]Content-Length: 666 [17:10:24]Content-Type: application/json [17:10:24] [17:10:24]POST finish read [17:10:24]Found Content-Length = 666 [17:10:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 3.890, "sum" : 266.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 266.00, "total" : 266.00, "payments": [ { "type": 0, "sum" : 266.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:24]execute_script... [17:10: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)16306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 3.890, "sum" : 266.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 266.00, "total" : 266.00, "payments": [ { "type": 0, "sum" : 266.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:24]POST & json_proto [17:10:24]process_json_proto [17:10:24]json parsed OK: [17:10:24]protocol is kg_v1.0 [17:10:24]action value=close_receipt [17:10:24]process_action close_receipt [17:10:24]cmd_close_receipt [17:10:24]MH_GetDate [17:10:24]Write to MH i2c: F0 00 00 75 53 B7 [17:10:24]Write i2c OK [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: F0 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: F0 09 00 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: F0 09 00 75 53 00 0C 17 21 67 8D 90 A3 66 91 [17:10:24]GetLastDocTimeStamp 1730221806 [17:10:24]current date 1730221836 [17:10:24]FM_GetShiftState [17:10:24]SAM_PROTO_GetShiftState [17:10:24]wFMCommunicate request_size=4 [17:10:24]MH_SAM_APDU [17:10:24]CAPDU: 80 13 01 00 [17:10:24]Write to MH i2c: E2 08 00 76 53 80 13 01 00 00 00 00 00 46 [17:10:24]Write i2c OK [17:10:24]MH_I2C_Read... [17:10:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:24]Read from MH i2c: E2 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: E2 0E 00 [17:10:24]MH_I2C_Read... [17:10:24]Read from MH i2c: E2 0E 00 76 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9B [17:10:24]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:10:24]wFMCommunicate OK [17:10:24]SAM_PROTO_GetShiftState done [17:10:24]FM_GetShiftState done [17:10:24]opened in 1730161559 [17:10:24]opened+sec_in_day 1730247959 [17:10:24]quantity*price = 26607 [17:10:24]sum+1 = 26609 [17:10:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 266.00 Внесено: 266.00 СДАЧА: 0.00 НСП 1% : 2.35 НДС 12% : 28.26 Наличными: 266.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 101 29.10.2024 17:10 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15755 ФПД: 245065782741933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171036&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15755&fm=245065782741933&tin=02508201610067®Number=0000000000161798&sum=26600 [17:10:25]StoreToDocumentArchive [17:10:25]shift 172 fd 15755 [17:10:25]save to /storage/0172/doc_00015755 [17:10:25]save last doc name /storage/0172/doc_00015755 to /storage/kkm_last_doc_name [17:10:25]save OK [17:10:25]Clear old archive folders... [17:10:25]ProcessDocumentItem done err = 0, tmpTLVsize=249 [17:10:25]tlvbuf is 004EB440 [17:10:25]SAM_PROTO_ClearQueue [17:10:25]wFMCommunicate request_size=4 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 09 00 00 [17:10:25]Write to MH i2c: E2 08 00 83 53 80 09 00 00 00 00 00 00 48 [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 83 53 00 90 00 4A [17:10:25]RAPDU: 90 00 [17:10:25]wFMCommunicate OK [17:10:25]SAM_PROTO_ClearQueue done [17:10:25]KKMCreateOFDPacket [17:10:25]OFDProtocolAddRootSTLVToBuf [17:10:25]FM_MakeSignedData [17:10:25]FM_MakeSignedData [17:10:25]SAM_PROTO_SignData [17:10:25]wFMCommunicate request_size=4 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 0D 01 02 [17:10:25]Write to MH i2c: E2 08 00 84 53 80 0D 01 02 00 00 00 00 50 [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 84 53 00 90 00 4B [17:10:25]RAPDU: 90 00 [17:10:25]wFMCommunicate OK [17:10:25]wFMCommunicate request_size=255 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0B 00 00 00 00 07 04 06 00 E8 67 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 0C 17 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8B 3D 00 00 35 04 06 00 DE E2 D2 [17:10:25]Write to MH i2c: E2 02 01 85 53 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0B 00 00 00 00 07 04 06 00 E8 67 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 0C 17 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8B 3D 00 00 35 04 06 00 DE E2 D2 00 00 70 [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 85 53 00 90 00 4C [17:10:25]RAPDU: 90 00 [17:10:25]wFMCommunicate OK [17:10:25]wFMCommunicate request_size=8 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 0D 02 02 03 ED 4B AD [17:10:25]Write to MH i2c: E2 0B 00 86 53 80 0D 02 02 03 00 ED 4B AD 00 00 3E [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 03 00 86 53 00 90 00 4D [17:10:25]RAPDU: 90 00 [17:10:25]wFMCommunicate OK [17:10:25]wFMCommunicate request_size=4 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 0D 03 02 [17:10:25]Write to MH i2c: E2 08 00 87 53 80 0D 03 02 00 00 00 00 55 [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 0B 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 0B 00 87 53 00 0C 5B EC 26 90 C9 FF 86 90 00 AD [17:10:25]RAPDU: 0C 5B EC 26 90 C9 FF 86 90 00 [17:10:25]wFMCommunicate OK [17:10:25]SAM_PROTO_SignData done [17:10:25]FM_MakeSignedData done [17:10:25]CreateOFDProtocolMessage [17:10:25]wFMCommunicate request_size=4 [17:10:25]MH_SAM_APDU [17:10:25]CAPDU: 80 11 00 00 [17:10:25]Write to MH i2c: E2 08 00 88 53 80 11 00 00 00 00 00 00 55 [17:10:25]Write i2c OK [17:10:25]MH_I2C_Read... [17:10:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:25]Read from MH i2c: E2 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 17 00 [17:10:25]MH_I2C_Read... [17:10:25]Read from MH i2c: E2 17 00 88 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A4 [17:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:10:26]wFMCommunicate OK [17:10:26]CreateOFDProtocolMessage done [17:10:26]OFDSenderStorePacket 15755 [17:10:26]StoreOFDPacket docnum=15755 [17:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 4B 2E 05 01 80 02 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0B 00 00 00 00 07 04 06 00 E8 67 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 0C 17 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8B 3D 00 00 35 04 06 00 DE E2 D2 ED 4B AD 0C 5B EC 26 90 C9 FF 86 [17:10:26]CheckFolder [17:10:26]dirname=/storage/ofd_packets [17:10:26]CheckFolder done [17:10:26]ProducePacketName [17:10:26]name=ofd_packets/00015755 [17:10:26]NVStorageSaveData ofd_packets/00015755 [17:10:26]File name is /storage/ofd_packets/00015755 [17:10:26]Write 299 bytes [17:10:26]NVStorageSaveData done [17:10:26]OFDSenderStorePacket done [17:10:26]KKMCreateOFDPacket done [17:10:26]NVStorageSaveData kkm_last_timestamp [17:10:26]File name is /storage/kkm_last_timestamp [17:10:26]Write 4 bytes [17:10:26]NVStorageSaveData done [17:10:26]ExternCall_PrintAddStr [17:10:26]wPrintStart [17:10:26]Write to MH i2c: 01 00 00 89 53 DC [17:10:26]OFD Sender: Processing packet 15755 [packets to send 4, broken 3] [17:10:26]ProducePacketName [17:10:26]name=ofd_packets/00015755 [17:10:26]OFD Sender: To server: pG, [17:10:26]CommunicateWithHost lk.salyk.kg:30040 [17:10:26]ConnectInit lk.salyk.kg [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 07 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 07 00 89 53 00 00 00 00 00 FF 0F F1 [17:10:26]RasterBufferAndPrint [17:10:26]line Счет N : (1)16306 [17:10:26]line ИНН: 02508201610067 [17:10:26]line Контрольно-Кассовый Чек [17:10:26]line ПРОДАЖА [17:10:26]line ТРК (МРК, ГНК) : 12 [17:10:26]line Товар: 50.50.0 [17:10:26]line SUPER 92-К-5 [17:10:26]line 3.890 * 68.40 [17:10:26]line = 266.08 [17:10:26]line НДС 12% НСП 1% [17:10:26]line > о реализуемом товаре [17:10:26]line ОКРУГЛЕНИЕ: -0.08 [17:10:26]line ИТОГО: 266.00 [17:10:26]line Внесено: 266.00 [17:10:26]line СДАЧА: 0.00 [17:10:26]line НСП 1% : 2.35 [17:10:26]line НДС 12% : 28.26 [17:10:26]line Наличными: 266.00 [17:10:26]line Безнал.: 0.00 [17:10:26]line Место: АЗС № 178 "Партнер Нефть" [17:10:26]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:10:26]line СНО: Общий режим [17:10:26]line Чек 101 29.10.2024 17:10 [17:10:26]line Смена: 172 ФФД: 1.0 [17:10:26]line ЗНМ: 0300000014 [17:10:26]line РНМ: 0000000000161798 [17:10:26]line Версия ККМ: v1.0 [17:10:26]line ФМ: 0000000000963325 [17:10:26]line ФД: 15755 [17:10:26]line ФПД: 245065782741933 [17:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T171036&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15755&fm=245065782741933&tin=02508201610067®Number=0000000000161798&sum=26600 [17:10:26]written 0, free lines is 4095 [17:10:26]Connected sock=11 [17:10:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 4B 2E 05 01 80 02 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F0 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 0B 00 00 00 00 07 04 06 00 E8 67 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 0C 17 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8B 3D 00 00 35 04 06 00 DE E2 D2 ED 4B AD 0C 5B EC 26 90 C9 FF 86 [17:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 D6 87 47 00 2E B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8B 3D 00 00 F4 03 04 00 F8 C1 20 67 B6 04 01 00 00 F9 23 0B 85 1C E4 EF 00 [17:10:26]CommunicateWithHost err = 0 [17:10:26]CheckOFDResponse [17:10:26]1017 (14) - 77093643461234 [17:10:26]1041 (16) - 0000000000963325 [17:10:26]1040 (4) - 15755 [17:10:26]1012 (4) - 29.10.2024 11:07 [17:10:26]1206 (1) - 0 [17:10:26]OFD Sender: Remove packet 15755 [17:10:26]ProducePacketName [17:10:26]name=ofd_packets/00015755 [17:10:26]NVStorageDeleteData [17:10:26]Write to MH i2c: 01 00 00 B4 53 07 [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 07 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: 01 07 00 B4 53 00 00 00 00 00 F6 0C 10 [17:10:26]RasterBufferAndPrint [17:10:26]line [17:10:26]line [17:10:26]line [17:10:26]line [17:10:26]line [17:10:26]written 0, free lines is 3342 [17:10:26]MH_Cut [17:10:26]Write to MH i2c: D1 01 00 BB 53 01 E0 [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: D1 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: D1 01 00 [17:10:26]MH_I2C_Read... [17:10:26]Read from MH i2c: D1 01 00 BB 53 00 DF [17:10:26]Write to MH i2c: 01 00 00 BC 53 0F [17:10:26]Write i2c OK [17:10:26]MH_I2C_Read... [17:10:26]OFD Sender: No OFD packet to send [17:10:27]*** Cut start [17:10:27]*** Partial cut [17:10:27]*** CUTSNS_PIN = 1 [17:10:27]*** CUTSNS_PIN = 0 [17:10:27]*** Brake cut motor [17:10:27]Read from MH i2c: 01 [17:10:27]MH_I2C_Read... [17:10:27]*** Stop cut motor [17:10:27]*** Cut end [17:10:27]Read from MH i2c: 01 07 00 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: 01 07 00 BC 53 00 00 00 00 00 FF 0F 24 [17:10:27]process_action close_receipt done [17:10:27]requested_data is exist [17:10:27]produce_requested_data [17:10:27]requested_item fm.sn is exist - process it [17:10:27]wFMCommunicate request_size=4 [17:10:27]MH_SAM_APDU [17:10:27]CAPDU: 80 11 00 00 [17:10:27]Write to MH i2c: E2 08 00 BD 53 80 11 00 00 00 00 00 00 8A [17:10:27]Write i2c OK [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 [17:10:27]MH_I2C_Read... [17:10:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:27]Read from MH i2c: E2 17 00 [17:10:27]MH_I2C_Read... [17:10:27]Read from MH i2c: E2 17 00 BD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D9 [17:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:10:28]wFMCommunicate OK [17:10:28]requested_item fd.num is exist - process it [17:10:28]SAM_PROTO_GetFieldsCounters [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 13 00 00 [17:10:28]Write to MH i2c: E2 08 00 BE 53 80 13 00 00 00 00 00 00 8D [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 62 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 62 00 BE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8B 3D 00 00 0E 04 04 00 AC 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 54 [17:10:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8B 3D 00 00 0E 04 04 00 AC 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 [17:10:28]wFMCommunicate OK [17:10:28]SAM_PROTO_GetFieldsCounters done [17:10:28]requested_item shift.num is exist - process it [17:10:28]requested_item shift.opened is exist - process it [17:10:28]req_shift_opened [17:10:28]FM_GetShiftState [17:10:28]SAM_PROTO_GetShiftState [17:10:28]wFMCommunicate request_size=4 [17:10:28]MH_SAM_APDU [17:10:28]CAPDU: 80 13 01 00 [17:10:28]Write to MH i2c: E2 08 00 BF 53 80 13 01 00 00 00 00 00 8F [17:10:28]Write i2c OK [17:10:28]MH_I2C_Read... [17:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:28]Read from MH i2c: E2 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0E 00 [17:10:28]MH_I2C_Read... [17:10:28]Read from MH i2c: E2 0E 00 BF 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E4 [17:10:28]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:10:28]wFMCommunicate OK [17:10:28]SAM_PROTO_GetShiftState done [17:10:28]FM_GetShiftState done [17:10:28]req_shift_opened done [17:10:28]requested_item shift.open_date is exist - process it [17:10:28]req_shift_open_date [17:10:28]req_shift_open_date done [17:10:28]produce_requested_data done [17:10:28]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15755,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:10:28]process_action_free close_receipt [17:10:28]json_value_free [17:10:28]json_value_free done [17:10:28]process_json_proto returns [17:10:28]Send response to host [17:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15755,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:10:28]free response buf [17:10:28]execute_script done [17:10:28]execute_script returns [17:10:28]free content buf [17:10:28]Sock 9.Close socket [17:10:28]Sock 9.Thread stoped [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:22]OFD Sender: No OFD packet to send [17:11:27]OFD Sender: No OFD packet to send [17:11:32]OFD Sender: No OFD packet to send [17:11:37]OFD Sender: No OFD packet to send [17:11:37]ConnectInit Can't connect to host [17:11:42]OFD Sender: No OFD packet to send [17:11:47]OFD Sender: No OFD packet to send [17:11:52]OFD Sender: No OFD packet to send [17:11:57]OFD Sender: No OFD packet to send [17:12:02]OFD Sender: No OFD packet to send [17:12:07]OFD Sender: No OFD packet to send [17:12:12]OFD Sender: No OFD packet to send [17:12:17]OFD Sender: No OFD packet to send [17:12:22]OFD Sender: No OFD packet to send [17:12:27]OFD Sender: No OFD packet to send [17:12:32]OFD Sender: No OFD packet to send [17:12:37]OFD Sender: No OFD packet to send [17:12:42]OFD Sender: No OFD packet to send [17:12:47]OFD Sender: No OFD packet to send [17:12:52]OFD Sender: No OFD packet to send [17:12:57]OFD Sender: No OFD packet to send [17:13:02]OFD Sender: No OFD packet to send [17:13:07]OFD Sender: No OFD packet to send [17:13:12]OFD Sender: No OFD packet to send [17:13:17]OFD Sender: No OFD packet to send [17:13:22]OFD Sender: No OFD packet to send [17:13:27]OFD Sender: No OFD packet to send [17:13:32]OFD Sender: No OFD packet to send [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17:47]OFD Sender: No OFD packet to send [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:52]OFD Sender: No OFD packet to send [17:28:57]OFD Sender: No OFD packet to send [17:29:02]OFD Sender: No OFD packet to send [17:29:07]OFD Sender: No OFD packet to send [17:29:12]OFD Sender: No OFD packet to send [17:29:17]OFD Sender: No OFD packet to send [17:29:22]OFD Sender: No OFD packet to send [17:29:27]OFD Sender: No OFD packet to send [17:29:32]OFD Sender: No OFD packet to send [17:29:37]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:08]OFD Sender: No OFD packet to send [17:33:13]OFD Sender: No OFD packet to send [17:33:18]OFD Sender: No OFD packet to send [17:33:23]OFD Sender: No OFD packet to send [17:33:28]OFD Sender: No OFD packet to send [17:33:33]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:21]accept exits with 10 [17:38:21]New connection [17:38:21]New thread 3066731876 created [17:38:21]Thread 3066588516 joined [17:38:21]Waiting for new connection... [17:38:21] Sock 10.Parse request [17:38:21]Sock 10.Check first char [17:38:21]Sock 10.First char is OK [17:38:21]request: POST /json_proto HTTP/1.0 [17:38:21]Method: POST [17:38:21]URL: /json_proto [17:38:21]Method is POST - this is cgi request [17:38:21]url: /json_proto [17:38:21]query_string will be loaded in cgi processing [17:38:21]execute_cgi json_proto POST (null) [17:38:21]execute_cgi path=json_proto method=POST [17:38:21]POST find Content-Length [17:38:21]Host: 172.17.54.195:8080 [17:38:21]Content-Length: 783 [17:38:21]Content-Type: application/json [17:38:21] [17:38:21]POST finish read [17:38:21]Found Content-Length = 783 [17:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: Mbank", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:21]execute_script... [17:38: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)16307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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: Mbank", "total" : 500.00, "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:21]POST & json_proto [17:38:21]process_json_proto [17:38:21]json parsed OK: [17:38:21]protocol is kg_v1.0 [17:38:21]action value=close_receipt [17:38:21]process_action close_receipt [17:38:21]cmd_close_receipt [17:38:21]MH_GetDate [17:38:21]Write to MH i2c: F0 00 00 C0 53 02 [17:38:21]Write i2c OK [17:38:21]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 09 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: F0 09 00 C0 53 00 9A 1D 21 67 8D 90 A3 66 70 [17:38:22]GetLastDocTimeStamp 1730221836 [17:38:22]current date 1730223514 [17:38:22]FM_GetShiftState [17:38:22]SAM_PROTO_GetShiftState [17:38:22]wFMCommunicate request_size=4 [17:38:22]MH_SAM_APDU [17:38:22]CAPDU: 80 13 01 00 [17:38:22]Write to MH i2c: E2 08 00 C1 53 80 13 01 00 00 00 00 00 91 [17:38:22]Write i2c OK [17:38:22]MH_I2C_Read... [17:38:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:22]Read from MH i2c: E2 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0E 00 [17:38:22]MH_I2C_Read... [17:38:22]Read from MH i2c: E2 0E 00 C1 53 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E6 [17:38:22]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:38:22]wFMCommunicate OK [17:38:22]SAM_PROTO_GetShiftState done [17:38:22]FM_GetShiftState done [17:38:22]opened in 1730161559 [17:38:22]opened+sec_in_day 1730247959 [17:38:22]quantity*price = 50041 [17:38:22]sum+1 = 50042 [17:38:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 102 29.10.2024 17:38 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15756 ФПД: 170035666413648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173834&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15756&fm=170035666413648&tin=02508201610067®Number=0000000000161798&sum=50000 [17:38:23]StoreToDocumentArchive [17:38:23]shift 172 fd 15756 [17:38:23]save to /storage/0172/doc_00015756 [17:38:23]save last doc name /storage/0172/doc_00015756 to /storage/kkm_last_doc_name [17:38:23]save OK [17:38:23]Clear old archive folders... [17:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:23]tlvbuf is 002EF410 [17:38:23]SAM_PROTO_ClearQueue [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 09 00 00 [17:38:23]Write to MH i2c: E2 08 00 CE 53 80 09 00 00 00 00 00 00 93 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 CE 53 00 90 00 95 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]SAM_PROTO_ClearQueue done [17:38:23]KKMCreateOFDPacket [17:38:23]OFDProtocolAddRootSTLVToBuf [17:38:23]FM_MakeSignedData [17:38:23]FM_MakeSignedData [17:38:23]SAM_PROTO_SignData [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 01 02 [17:38:23]Write to MH i2c: E2 08 00 CF 53 80 0D 01 02 00 00 00 00 9B [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]OFD Sender: No OFD packet to send [17:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 CF 53 00 90 00 96 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]wFMCommunicate request_size=255 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9A 1D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8C 3D 00 00 35 04 06 00 9A [17:38:23]Write to MH i2c: E2 02 01 D0 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9A 1D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8C 3D 00 00 35 04 06 00 9A 00 00 E1 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 D0 53 00 90 00 97 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]wFMCommunicate request_size=10 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 02 02 05 A5 83 7E E8 50 [17:38:23]Write to MH i2c: E2 0D 00 D1 53 80 0D 02 02 05 00 A5 83 7E E8 50 00 00 86 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 03 00 D1 53 00 90 00 98 [17:38:23]RAPDU: 90 00 [17:38:23]wFMCommunicate OK [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 0D 03 02 [17:38:23]Write to MH i2c: E2 08 00 D2 53 80 0D 03 02 00 00 00 00 A0 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0B 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 0B 00 D2 53 00 7B 3D 0B E1 44 36 0E 55 90 00 22 [17:38:23]RAPDU: 7B 3D 0B E1 44 36 0E 55 90 00 [17:38:23]wFMCommunicate OK [17:38:23]SAM_PROTO_SignData done [17:38:23]FM_MakeSignedData done [17:38:23]CreateOFDProtocolMessage [17:38:23]wFMCommunicate request_size=4 [17:38:23]MH_SAM_APDU [17:38:23]CAPDU: 80 11 00 00 [17:38:23]Write to MH i2c: E2 08 00 D3 53 80 11 00 00 00 00 00 00 A0 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:23]Read from MH i2c: E2 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 17 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: E2 17 00 D3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 EF [17:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:38:23]wFMCommunicate OK [17:38:23]CreateOFDProtocolMessage done [17:38:23]OFDSenderStorePacket 15756 [17:38:23]StoreOFDPacket docnum=15756 [17:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 08 50 07 01 54 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 35 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9A 1D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8C 3D 00 00 35 04 06 00 9A A5 83 7E E8 50 7B 3D 0B E1 44 36 0E 55 [17:38:23]CheckFolder [17:38:23]dirname=/storage/ofd_packets [17:38:23]CheckFolder done [17:38:23]ProducePacketName [17:38:23]name=ofd_packets/00015756 [17:38:23]NVStorageSaveData ofd_packets/00015756 [17:38:23]File name is /storage/ofd_packets/00015756 [17:38:23]Write 301 bytes [17:38:23]NVStorageSaveData done [17:38:23]OFDSenderStorePacket done [17:38:23]KKMCreateOFDPacket done [17:38:23]NVStorageSaveData kkm_last_timestamp [17:38:23]File name is /storage/kkm_last_timestamp [17:38:23]Write 4 bytes [17:38:23]NVStorageSaveData done [17:38:23]ExternCall_PrintAddStr [17:38:23]wPrintStart [17:38:23]Write to MH i2c: 01 00 00 D4 53 27 [17:38:23]Write i2c OK [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 07 00 [17:38:23]MH_I2C_Read... [17:38:23]Read from MH i2c: 01 07 00 D4 53 00 00 00 00 00 FF 0F 3C [17:38:23]RasterBufferAndPrint [17:38:23]line Счет N : (1)16307 [17:38:23]line ИНН: 02508201610067 [17:38:23]line Контрольно-Кассовый Чек [17:38:23]line ПРОДАЖА [17:38:23]line ТРК (МРК, ГНК) : 21 [17:38:23]line Товар: 2710124130 [17:38:23]line Аи-92-К-5 [17:38:23]line 7.480 * 66.90 [17:38:23]line = 500.41 [17:38:23]line НДС 12% НСП 1% [17:38:23]line > о реализуемом товаре [17:38:23]line ОКРУГЛЕНИЕ: -0.41 [17:38:23]line ИТОГО: 500.00 [17:38:23]line НСП 1% : 4.43 [17:38:23]line НДС 12% : 53.14 [17:38:23]line Наличными: 0.00 [17:38:23]line Безнал.: 500.00 [17:38:23]line Место: АЗС № 178 "Партнер Нефть" [17:38:23]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [17:38:23]line СНО: Общий режим [17:38:23]line Чек 102 29.10.2024 17:38 [17:38:23]line Смена: 172 ФФД: 1.0 [17:38:23]line ЗНМ: 0300000014 [17:38:23]line РНМ: 0000000000161798 [17:38:23]line Версия ККМ: v1.0 [17:38:23]line Платежная система: Mbank [17:38:23]line ФМ: 0000000000963325 [17:38:23]line ФД: 15756 [17:38:23]line ФПД: 170035666413648 [17:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T173834&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15756&fm=170035666413648&tin=02508201610067®Number=0000000000161798&sum=50000 [17:38:24]OFD Sender: Processing packet 15756 [packets to send 4, broken 3] [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00015756 [17:38:24]OFD Sender: To server: pG, [17:38:24]CommunicateWithHost lk.salyk.kg:30040 [17:38:24]ConnectInit lk.salyk.kg [17:38:24]written 0, free lines is 4095 [17:38:24]Connected sock=9 [17:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 08 50 07 01 54 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 35 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 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 9A 1D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8C 3D 00 00 35 04 06 00 9A A5 83 7E E8 50 7B 3D 0B E1 44 36 0E 55 [17:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 91 53 47 00 8C 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8C 3D 00 00 F4 03 04 00 86 C8 20 67 B6 04 01 00 00 96 D9 6F 0A C2 40 95 1F [17:38:24]CommunicateWithHost err = 0 [17:38:24]CheckOFDResponse [17:38:24]1017 (14) - 77093643461234 [17:38:24]1041 (16) - 0000000000963325 [17:38:24]1040 (4) - 15756 [17:38:24]1012 (4) - 29.10.2024 11:35 [17:38:24]1206 (1) - 0 [17:38:24]OFD Sender: Remove packet 15756 [17:38:24]ProducePacketName [17:38:24]name=ofd_packets/00015756 [17:38:24]NVStorageDeleteData [17:38:24]Write to MH i2c: 01 00 00 FE 53 51 [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 03 0D 68 [17:38:24]RasterBufferAndPrint [17:38:24]line [17:38:24]line [17:38:24]line [17:38:24]line [17:38:24]line [17:38:24]written 0, free lines is 3337 [17:38:24]MH_Cut [17:38:24]Write to MH i2c: D1 01 00 05 54 01 2B [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: D1 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: D1 01 00 [17:38:24]MH_I2C_Read... [17:38:24]Read from MH i2c: D1 01 00 05 54 00 2A [17:38:24]Write to MH i2c: 01 00 00 06 54 5A [17:38:24]Write i2c OK [17:38:24]MH_I2C_Read... [17:38:24]OFD Sender: No OFD packet to send [17:38:25]*** Cut start [17:38:25]*** Partial cut [17:38:25]*** CUTSNS_PIN = 1 [17:38:25]*** CUTSNS_PIN = 0 [17:38:25]*** Brake cut motor [17:38:25]Read from MH i2c: 01 [17:38:25]MH_I2C_Read... [17:38:25]*** Stop cut motor [17:38:25]*** Cut end [17:38:25]Read from MH i2c: 01 07 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: 01 07 00 06 54 00 00 00 00 00 FF 0F 6F [17:38:25]process_action close_receipt done [17:38:25]requested_data is exist [17:38:25]produce_requested_data [17:38:25]requested_item fm.sn is exist - process it [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 11 00 00 [17:38:25]Write to MH i2c: E2 08 00 07 54 80 11 00 00 00 00 00 00 D5 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:25]Read from MH i2c: E2 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 [17:38:25]MH_I2C_Read... [17:38:25]Read from MH i2c: E2 17 00 07 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 24 [17:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [17:38:25]wFMCommunicate OK [17:38:25]requested_item fd.num is exist - process it [17:38:25]SAM_PROTO_GetFieldsCounters [17:38:25]wFMCommunicate request_size=4 [17:38:25]MH_SAM_APDU [17:38:25]CAPDU: 80 13 00 00 [17:38:25]Write to MH i2c: E2 08 00 08 54 80 13 00 00 00 00 00 00 D8 [17:38:25]Write i2c OK [17:38:25]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 62 00 08 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8C 3D 00 00 0E 04 04 00 AC 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 A3 [17:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8C 3D 00 00 0E 04 04 00 AC 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 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetFieldsCounters done [17:38:26]requested_item shift.num is exist - process it [17:38:26]requested_item shift.opened is exist - process it [17:38:26]req_shift_opened [17:38:26]FM_GetShiftState [17:38:26]SAM_PROTO_GetShiftState [17:38:26]wFMCommunicate request_size=4 [17:38:26]MH_SAM_APDU [17:38:26]CAPDU: 80 13 01 00 [17:38:26]Write to MH i2c: E2 08 00 09 54 80 13 01 00 00 00 00 00 DA [17:38:26]Write i2c OK [17:38:26]MH_I2C_Read... [17:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:26]Read from MH i2c: E2 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 [17:38:26]MH_I2C_Read... [17:38:26]Read from MH i2c: E2 0E 00 09 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2F [17:38:26]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [17:38:26]wFMCommunicate OK [17:38:26]SAM_PROTO_GetShiftState done [17:38:26]FM_GetShiftState done [17:38:26]req_shift_opened done [17:38:26]requested_item shift.open_date is exist - process it [17:38:26]req_shift_open_date [17:38:26]req_shift_open_date done [17:38:26]produce_requested_data done [17:38:26]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15756,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [17:38:26]process_action_free close_receipt [17:38:26]json_value_free [17:38:26]json_value_free done [17:38:26]process_json_proto returns [17:38:26]Send response to host [17:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15756,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [17:38:26]free response buf [17:38:26]execute_script done [17:38:26]execute_script returns [17:38:26]free content buf [17:38:26]Sock 10.Close socket [17:38:26]Sock 10.Thread stoped [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:29]accept exits with 8 [18:05:29]New connection [18:05:29]New thread 3066588516 created [18:05:29]Thread 3066731876 joined [18:05:29]Waiting for new connection... [18:05:29] Sock 8.Parse request [18:05:29]Sock 8.Check first char [18:05:29]Sock 8.First char is OK [18:05:29]request: POST /json_proto HTTP/1.0 [18:05:29]Method: POST [18:05:29]URL: /json_proto [18:05:29]Method is POST - this is cgi request [18:05:29]url: /json_proto [18:05:29]query_string will be loaded in cgi processing [18:05:29]execute_cgi json_proto POST (null) [18:05:29]execute_cgi path=json_proto method=POST [18:05:29]POST find Content-Length [18:05:29]Host: 172.17.54.195:8080 [18:05:29]Content-Length: 215 [18:05:29]Content-Type: application/json [18:05:29] [18:05:29]POST finish read [18:05:29]Found Content-Length = 215 [18:05:29]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" ] } } [18:05:29]execute_script... [18:05:29]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" ] } } [18:05:29]POST & json_proto [18:05:29]process_json_proto [18:05:29]json parsed OK: [18:05:29]protocol is kg_v1.0 [18:05:29]action value=get_value [18:05:29]process_action get_value [18:05:29]cmd_get_value [18:05:29]process_action get_value done [18:05:29]requested_data is exist [18:05:29]produce_requested_data [18:05:29]requested_item kkm.sn is exist - process it [18:05:29]requested_item kkm.ver is exist - process it [18:05:29]requested_item fm.sn is exist - process it [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 11 00 00 [18:05:29]Write to MH i2c: E2 08 00 0A 54 80 11 00 00 00 00 00 00 D8 [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 17 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 17 00 0A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 27 [18:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:05:29]wFMCommunicate OK [18:05:29]requested_item fd.num is exist - process it [18:05:29]SAM_PROTO_GetFieldsCounters [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 13 00 00 [18:05:29]Write to MH i2c: E2 08 00 0B 54 80 13 00 00 00 00 00 00 DB [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 62 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 62 00 0B 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8C 3D 00 00 0E 04 04 00 AC 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 A6 [18:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8C 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:29]wFMCommunicate OK [18:05:29]SAM_PROTO_GetFieldsCounters done [18:05:29]requested_item shift.num is exist - process it [18:05:29]requested_item shift.opened is exist - process it [18:05:29]req_shift_opened [18:05:29]FM_GetShiftState [18:05:29]SAM_PROTO_GetShiftState [18:05:29]wFMCommunicate request_size=4 [18:05:29]MH_SAM_APDU [18:05:29]CAPDU: 80 13 01 00 [18:05:29]Write to MH i2c: E2 08 00 0C 54 80 13 01 00 00 00 00 00 DD [18:05:29]Write i2c OK [18:05:29]MH_I2C_Read... [18:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:29]Read from MH i2c: E2 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 0E 00 [18:05:29]MH_I2C_Read... [18:05:29]Read from MH i2c: E2 0E 00 0C 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 32 [18:05:29]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:05:29]wFMCommunicate OK [18:05:29]SAM_PROTO_GetShiftState done [18:05:29]FM_GetShiftState done [18:05:29]req_shift_opened done [18:05:29]requested_item shift.open_date is exist - process it [18:05:29]req_shift_open_date [18:05:29]req_shift_open_date done [18:05:29]produce_requested_data done [18:05:29]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15756,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:05:29]process_action_free get_value [18:05:29]json_value_free [18:05:29]json_value_free done [18:05:29]process_json_proto returns [18:05:29]Send response to host [18:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15756,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:05:29]free response buf [18:05:29]execute_script done [18:05:29]execute_script returns [18:05:29]free content buf [18:05:29]Sock 8.Close socket [18:05:29]Sock 8.Thread stoped [18:05:29]accept exits with 9 [18:05:29]New connection [18:05:29]New thread 3066731876 created [18:05:29]Thread 3066588516 joined [18:05:29]Waiting for new connection... [18:05:29] Sock 9.Parse request [18:05:29]Sock 9.Check first char [18:05:29]Sock 9.First char is OK [18:05:29]request: POST /json_proto HTTP/1.0 [18:05:29]Method: POST [18:05:29]URL: /json_proto [18:05:29]Method is POST - this is cgi request [18:05:29]url: /json_proto [18:05:29]query_string will be loaded in cgi processing [18:05:29]execute_cgi json_proto POST (null) [18:05:29]execute_cgi path=json_proto method=POST [18:05:29]POST find Content-Length [18:05:29]Host: 172.17.54.195:8080 [18:05:29]Content-Length: 331 [18:05:29]Content-Type: application/json [18:05:29] [18:05:29]POST finish read [18:05:29]Found Content-Length = 331 [18:05:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:05:29]execute_script... [18:05:30]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" ] } } [18:05:30]POST & json_proto [18:05:30]process_json_proto [18:05:30]json parsed OK: [18:05:30]protocol is kg_v1.0 [18:05:30]action value=get_value [18:05:30]process_action get_value [18:05:30]cmd_get_value [18:05:30]process_action get_value done [18:05:30]requested_data is exist [18:05:30]produce_requested_data [18:05:30]requested_item fm.sale.total is exist - process it [18:05:30]SAM_PROTO_GetFMData [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 13 03 00 [18:05:30]Write to MH i2c: E2 08 00 0D 54 80 13 03 00 00 00 00 00 E0 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 FD 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 FD 00 0D 54 00 BF 04 85 04 BB 04 6E 04 04 00 34 3C 00 00 69 04 A0 00 6F 04 04 00 E9 3B 00 00 B1 04 04 00 B8 40 5C 5F 70 04 04 00 B4 A5 9A 47 72 04 04 00 04 9B C1 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 01 35 21 0A 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 9F 15 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 06 [18:05:30]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 34 3C 00 00 69 04 A0 00 6F 04 04 00 E9 3B 00 00 B1 04 04 00 B8 40 5C 5F 70 04 04 00 B4 A5 9A 47 72 04 04 00 04 9B C1 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 01 35 21 0A 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 9F 15 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [18:05:30]wFMCommunicate OK [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 17 00 00 [18:05:30]Write to MH i2c: E2 08 00 0E 54 80 17 00 00 00 00 00 00 E2 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 FD 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 FD 00 0E 54 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 4B [18:05:30]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [18:05:30]wFMCommunicate OK [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 17 00 00 [18:05:30]Write to MH i2c: E2 08 00 0F 54 80 17 00 00 00 00 00 00 E3 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 FD 00 [18:05:31]MH_I2C_Read... [18:05:31]OFD Sender: No OFD packet to send [18:05:31]Read from MH i2c: E2 FD 00 0F 54 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 87 [18:05:31]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 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 17 00 00 [18:05:31]Write to MH i2c: E2 08 00 10 54 80 17 00 00 00 00 00 00 E4 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 FD 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 FD 00 10 54 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 5E [18:05:31]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 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 17 00 00 [18:05:31]Write to MH i2c: E2 08 00 11 54 80 17 00 00 00 00 00 00 E5 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 DC 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 DC 00 11 54 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 C9 [18:05:31]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 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_GetFMData done [18:05:31]requested_item fm.sale_refund.total is exist - process it [18:05:31]requested_item fm.buy.total is exist - process it [18:05:31]requested_item shift.sale.total is exist - process it [18:05:31]SAM_PROTO_GetShiftData [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 13 02 00 [18:05:31]Write to MH i2c: E2 08 00 12 54 80 13 02 00 00 00 00 00 E4 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 12 54 00 AF 04 AA 04 AB 04 6E 04 04 00 66 00 00 00 69 04 9C 00 6F 04 04 00 66 00 00 00 B1 04 03 00 68 D9 9A 70 04 03 00 B8 86 75 72 04 03 00 B0 52 25 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 C7 72 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 E1 5E 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 BE [18:05:32]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 66 00 00 00 69 04 9C 00 6F 04 04 00 66 00 00 00 B1 04 03 00 68 D9 9A 70 04 03 00 B8 86 75 72 04 03 00 B0 52 25 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 C7 72 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 E1 5E 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 [18:05:32]wFMCommunicate OK [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 17 00 00 [18:05:32]Write to MH i2c: E2 08 00 13 54 80 17 00 00 00 00 00 00 E7 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 13 54 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 00 [18:05:32]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 [18:05:32]wFMCommunicate OK [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 17 00 00 [18:05:32]Write to MH i2c: E2 08 00 14 54 80 17 00 00 00 00 00 00 E8 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 14 54 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [18:05:32]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 [18:05:32]wFMCommunicate OK [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 17 00 00 [18:05:32]Write to MH i2c: E2 08 00 15 54 80 17 00 00 00 00 00 00 E9 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:05:32]Read from MH i2c: E2 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: E2 FD 00 15 54 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 67 [18:05:32]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 [18:05:32]wFMCommunicate OK [18:05:32]wFMCommunicate request_size=4 [18:05:32]MH_SAM_APDU [18:05:32]CAPDU: 80 17 00 00 [18:05:32]Write to MH i2c: E2 08 00 16 54 80 17 00 00 00 00 00 00 EA [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [18:05:33]Read from MH i2c: E2 [18:05:33]MH_I2C_Read... [18:05:33]Read from MH i2c: E2 CC 00 [18:05:33]MH_I2C_Read... [18:05:33]Read from MH i2c: E2 CC 00 16 54 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 CB [18:05:33]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 [18:05:33]wFMCommunicate OK [18:05:33]SAM_PROTO_GetShiftData done [18:05:33]requested_item shift.sale.total_cash is exist - process it [18:05:33]requested_item shift.sale_refund.total is exist - process it [18:05:33]requested_item shift.sale_refund.total_cash is exist - process it [18:05:33]requested_item shift.buy.total is exist - process it [18:05:33]requested_item shift.buy.total_cash is exist - process it [18:05:33]produce_requested_data done [18:05:33]produce_requested_data return {"fm.sale.total":15998814.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":101482.00,"shift.sale.total_cash":77022.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} [18:05:33]process_action_free get_value [18:05:33]json_value_free [18:05:33]json_value_free done [18:05:33]process_json_proto returns [18:05:33]Send response to host [18:05:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":15998814.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":101482.00,"shift.sale.total_cash":77022.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}}} [18:05:33]free response buf [18:05:33]execute_script done [18:05:33]execute_script returns [18:05:33]free content buf [18:05:33]Sock 9.Close socket [18:05:33]Sock 9.Thread stoped [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:12:56]accept exits with 8 [18:12:56]New connection [18:12:56]New thread 3066588516 created [18:12:56]Thread 3066731876 joined [18:12:56]Waiting for new connection... [18:12:56] Sock 8.Parse request [18:12:56]Sock 8.Check first char [18:12:56]Sock 8.First char is OK [18:12:56]request: POST /json_proto HTTP/1.0 [18:12:56]Method: POST [18:12:56]URL: /json_proto [18:12:56]Method is POST - this is cgi request [18:12:56]url: /json_proto [18:12:56]query_string will be loaded in cgi processing [18:12:56]execute_cgi json_proto POST (null) [18:12:56]execute_cgi path=json_proto method=POST [18:12:56]POST find Content-Length [18:12:56]Host: 172.17.54.195:8080 [18:12:56]Content-Length: 673 [18:12:56]Content-Type: application/json [18:12:56] [18:12:56]POST finish read [18:12:56]Found Content-Length = 673 [18:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [18:12:56]execute_script... [18:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [18:12:56]POST & json_proto [18:12:56]process_json_proto [18:12:56]json parsed OK: [18:12:56]protocol is kg_v1.0 [18:12:56]action value=close_receipt [18:12:56]process_action close_receipt [18:12:56]cmd_close_receipt [18:12:56]MH_GetDate [18:12:56]Write to MH i2c: F0 00 00 17 54 5A [18:12:56]Write i2c OK [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: F0 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: F0 09 00 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: F0 09 00 17 54 00 B5 25 21 67 8D 90 A3 66 EB [18:12:56]GetLastDocTimeStamp 1730223514 [18:12:56]current date 1730225589 [18:12:56]FM_GetShiftState [18:12:56]SAM_PROTO_GetShiftState [18:12:56]wFMCommunicate request_size=4 [18:12:56]MH_SAM_APDU [18:12:56]CAPDU: 80 13 01 00 [18:12:56]Write to MH i2c: E2 08 00 18 54 80 13 01 00 00 00 00 00 E9 [18:12:56]Write i2c OK [18:12:56]MH_I2C_Read... [18:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:56]Read from MH i2c: E2 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 0E 00 [18:12:56]MH_I2C_Read... [18:12:56]Read from MH i2c: E2 0E 00 18 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 3E [18:12:56]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:12:56]wFMCommunicate OK [18:12:56]SAM_PROTO_GetShiftState done [18:12:56]FM_GetShiftState done [18:12:56]opened in 1730161559 [18:12:56]opened+sec_in_day 1730247959 [18:12:56]quantity*price = 70027 [18:12:56]sum+1 = 70029 [18:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 103 29.10.2024 18:13 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15757 ФПД: 25451485660772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T181309&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15757&fm=25451485660772&tin=02508201610067®Number=0000000000161798&sum=70000 [18:12:58]StoreToDocumentArchive [18:12:58]shift 172 fd 15757 [18:12:58]save to /storage/0172/doc_00015757 [18:12:58]save last doc name /storage/0172/doc_00015757 to /storage/kkm_last_doc_name [18:12:58]save OK [18:12:58]Clear old archive folders... [18:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:58]tlvbuf is 00325BC0 [18:12:58]SAM_PROTO_ClearQueue [18:12:58]wFMCommunicate request_size=4 [18:12:58]MH_SAM_APDU [18:12:58]CAPDU: 80 09 00 00 [18:12:58]Write to MH i2c: E2 08 00 25 54 80 09 00 00 00 00 00 00 EB [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 25 54 00 90 00 ED [18:12:58]RAPDU: 90 00 [18:12:58]wFMCommunicate OK [18:12:58]SAM_PROTO_ClearQueue done [18:12:58]KKMCreateOFDPacket [18:12:58]OFDProtocolAddRootSTLVToBuf [18:12:58]FM_MakeSignedData [18:12:58]FM_MakeSignedData [18:12:58]SAM_PROTO_SignData [18:12:58]wFMCommunicate request_size=4 [18:12:58]MH_SAM_APDU [18:12:58]CAPDU: 80 0D 01 02 [18:12:58]Write to MH i2c: E2 08 00 26 54 80 0D 01 02 00 00 00 00 F3 [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 26 54 00 90 00 EE [18:12:58]RAPDU: 90 00 [18:12:58]wFMCommunicate OK [18:12:58]wFMCommunicate request_size=255 [18:12:58]MH_SAM_APDU [18:12: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 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 25 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8D 3D 00 00 35 04 06 00 17 25 E2 C3 [18:12:58]Write to MH i2c: E2 02 01 27 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 25 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8D 3D 00 00 35 04 06 00 17 25 E2 C3 00 00 97 [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 27 54 00 90 00 EF [18:12:58]RAPDU: 90 00 [18:12:58]wFMCommunicate OK [18:12:58]wFMCommunicate request_size=7 [18:12:58]MH_SAM_APDU [18:12:58]CAPDU: 80 0D 02 02 02 06 64 [18:12:58]Write to MH i2c: E2 0A 00 28 54 80 0D 02 02 02 00 06 64 00 00 64 [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 03 00 28 54 00 90 00 F0 [18:12:58]RAPDU: 90 00 [18:12:58]wFMCommunicate OK [18:12:58]wFMCommunicate request_size=4 [18:12:58]MH_SAM_APDU [18:12:58]CAPDU: 80 0D 03 02 [18:12:58]Write to MH i2c: E2 08 00 29 54 80 0D 03 02 00 00 00 00 F8 [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 0B 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 0B 00 29 54 00 C7 65 68 75 BD E9 64 BA 90 00 C6 [18:12:58]RAPDU: C7 65 68 75 BD E9 64 BA 90 00 [18:12:58]wFMCommunicate OK [18:12:58]SAM_PROTO_SignData done [18:12:58]FM_MakeSignedData done [18:12:58]CreateOFDProtocolMessage [18:12:58]wFMCommunicate request_size=4 [18:12:58]MH_SAM_APDU [18:12:58]CAPDU: 80 11 00 00 [18:12:58]Write to MH i2c: E2 08 00 2A 54 80 11 00 00 00 00 00 00 F8 [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:58]Read from MH i2c: E2 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 17 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: E2 17 00 2A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 47 [18:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:12:58]wFMCommunicate OK [18:12:58]CreateOFDProtocolMessage done [18:12:58]OFDSenderStorePacket 15757 [18:12:58]StoreOFDPacket docnum=15757 [18:12:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 9F 51 04 01 7E B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 25 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8D 3D 00 00 35 04 06 00 17 25 E2 C3 06 64 C7 65 68 75 BD E9 64 BA [18:12:58]CheckFolder [18:12:58]dirname=/storage/ofd_packets [18:12:58]CheckFolder done [18:12:58]ProducePacketName [18:12:58]name=ofd_packets/00015757 [18:12:58]NVStorageSaveData ofd_packets/00015757 [18:12:58]File name is /storage/ofd_packets/00015757 [18:12:58]Write 298 bytes [18:12:58]NVStorageSaveData done [18:12:58]OFDSenderStorePacket done [18:12:58]KKMCreateOFDPacket done [18:12:58]NVStorageSaveData kkm_last_timestamp [18:12:58]File name is /storage/kkm_last_timestamp [18:12:58]Write 4 bytes [18:12:58]NVStorageSaveData done [18:12:58]ExternCall_PrintAddStr [18:12:58]wPrintStart [18:12:58]Write to MH i2c: 01 00 00 2B 54 7F [18:12:58]Write i2c OK [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: 01 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: 01 07 00 [18:12:58]MH_I2C_Read... [18:12:58]Read from MH i2c: 01 07 00 2B 54 00 00 00 00 00 FF 0F 94 [18:12:58]RasterBufferAndPrint [18:12:58]line Счет N : (1)16308 [18:12:58]line ИНН: 02508201610067 [18:12:58]line Контрольно-Кассовый Чек [18:12:58]line ПРОДАЖА [18:12:58]line ТРК (МРК, ГНК) : 31 [18:12:58]line Товар: 2710194210 [18:12:58]line ДТ-К-5 [18:12:58]line 9.190 * 76.20 [18:12:58]line = 700.28 [18:12:58]line НДС 12% НСП 1% [18:12:58]line > о реализуемом товаре [18:12:58]line ОКРУГЛЕНИЕ: -0.28 [18:12:58]line ИТОГО: 700.00 [18:12:58]line Внесено: 700.00 [18:12:58]line СДАЧА: 0.00 [18:12:58]line НСП 1% : 6.20 [18:12:58]line НДС 12% : 74.37 [18:12:58]line Наличными: 700.00 [18:12:58]line Безнал.: 0.00 [18:12:58]line Место: АЗС № 178 "Партнер Нефть" [18:12:58]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:12:58]line СНО: Общий режим [18:12:58]line Чек 103 29.10.2024 18:13 [18:12:58]line Смена: 172 ФФД: 1.0 [18:12:58]line ЗНМ: 0300000014 [18:12:58]line РНМ: 0000000000161798 [18:12:58]line Версия ККМ: v1.0 [18:12:58]line ФМ: 0000000000963325 [18:12:58]line ФД: 15757 [18:12:58]line ФПД: 25451485660772 [18:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T181309&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15757&fm=25451485660772&tin=02508201610067®Number=0000000000161798&sum=70000 [18:12:58]OFD Sender: Processing packet 15757 [packets to send 4, broken 3] [18:12:58]ProducePacketName [18:12:58]name=ofd_packets/00015757 [18:12:58]OFD Sender: To server: pG, [18:12:58]CommunicateWithHost lk.salyk.kg:30040 [18:12:58]ConnectInit lk.salyk.kg [18:12:58]written 0, free lines is 4095 [18:12:58]Connected sock=11 [18:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 9F 51 04 01 7E B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 B5 25 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8D 3D 00 00 35 04 06 00 17 25 E2 C3 06 64 C7 65 68 75 BD E9 64 BA [18:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 10 48 47 00 61 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8D 3D 00 00 F4 03 04 00 A1 D0 20 67 B6 04 01 00 00 5F 89 2E 97 4D 78 24 63 [18:12:59]CommunicateWithHost err = 0 [18:12:59]CheckOFDResponse [18:12:59]1017 (14) - 77093643461234 [18:12:59]1041 (16) - 0000000000963325 [18:12:59]1040 (4) - 15757 [18:12:59]1012 (4) - 29.10.2024 12:10 [18:12:59]1206 (1) - 0 [18:12:59]OFD Sender: Remove packet 15757 [18:12:59]ProducePacketName [18:12:59]name=ofd_packets/00015757 [18:12:59]NVStorageDeleteData [18:12:59]Write to MH i2c: 01 00 00 56 54 AA [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: 01 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: 01 07 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: 01 07 00 56 54 00 00 00 00 00 F3 0C B0 [18:12:59]RasterBufferAndPrint [18:12:59]line [18:12:59]line [18:12:59]line [18:12:59]line [18:12:59]line [18:12:59]written 0, free lines is 3321 [18:12:59]MH_Cut [18:12:59]Write to MH i2c: D1 01 00 5D 54 01 83 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: D1 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: D1 01 00 [18:12:59]MH_I2C_Read... [18:12:59]Read from MH i2c: D1 01 00 5D 54 00 82 [18:12:59]Write to MH i2c: 01 00 00 5E 54 B2 [18:12:59]Write i2c OK [18:12:59]MH_I2C_Read... [18:12:59]OFD Sender: No OFD packet to send [18:12:59]*** Cut start [18:12:59]*** Partial cut [18:13:00]*** CUTSNS_PIN = 1 [18:13:00]*** CUTSNS_PIN = 0 [18:13:00]*** Brake cut motor [18:13:00]Read from MH i2c: 01 [18:13:00]MH_I2C_Read... [18:13:00]*** Stop cut motor [18:13:00]*** Cut end [18:13:00]Read from MH i2c: 01 07 00 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: 01 07 00 5E 54 00 00 00 00 00 FF 0F C7 [18:13:00]process_action close_receipt done [18:13:00]requested_data is exist [18:13:00]produce_requested_data [18:13:00]requested_item fm.sn is exist - process it [18:13:00]wFMCommunicate request_size=4 [18:13:00]MH_SAM_APDU [18:13:00]CAPDU: 80 11 00 00 [18:13:00]Write to MH i2c: E2 08 00 5F 54 80 11 00 00 00 00 00 00 2D [18:13:00]Write i2c OK [18:13:00]MH_I2C_Read... [18:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:00]Read from MH i2c: E2 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 17 00 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 17 00 5F 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7C [18:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:13:00]wFMCommunicate OK [18:13:00]requested_item fd.num is exist - process it [18:13:00]SAM_PROTO_GetFieldsCounters [18:13:00]wFMCommunicate request_size=4 [18:13:00]MH_SAM_APDU [18:13:00]CAPDU: 80 13 00 00 [18:13:00]Write to MH i2c: E2 08 00 60 54 80 13 00 00 00 00 00 00 30 [18:13:00]Write i2c OK [18:13:00]MH_I2C_Read... [18:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:00]Read from MH i2c: E2 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 62 00 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 62 00 60 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8D 3D 00 00 0E 04 04 00 AC 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 FF [18:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8D 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:00]wFMCommunicate OK [18:13:00]SAM_PROTO_GetFieldsCounters done [18:13:00]requested_item shift.num is exist - process it [18:13:00]requested_item shift.opened is exist - process it [18:13:00]req_shift_opened [18:13:00]FM_GetShiftState [18:13:00]SAM_PROTO_GetShiftState [18:13:00]wFMCommunicate request_size=4 [18:13:00]MH_SAM_APDU [18:13:00]CAPDU: 80 13 01 00 [18:13:00]Write to MH i2c: E2 08 00 61 54 80 13 01 00 00 00 00 00 32 [18:13:00]Write i2c OK [18:13:00]MH_I2C_Read... [18:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:00]Read from MH i2c: E2 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 0E 00 [18:13:00]MH_I2C_Read... [18:13:00]Read from MH i2c: E2 0E 00 61 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 87 [18:13:00]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:13:00]wFMCommunicate OK [18:13:00]SAM_PROTO_GetShiftState done [18:13:00]FM_GetShiftState done [18:13:00]req_shift_opened done [18:13:00]requested_item shift.open_date is exist - process it [18:13:00]req_shift_open_date [18:13:00]req_shift_open_date done [18:13:00]produce_requested_data done [18:13:00]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15757,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:13:00]process_action_free close_receipt [18:13:00]json_value_free [18:13:00]json_value_free done [18:13:00]process_json_proto returns [18:13:00]Send response to host [18:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15757,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:13:00]free response buf [18:13:00]execute_script done [18:13:00]execute_script returns [18:13:00]free content buf [18:13:00]Sock 8.Close socket [18:13:00]Sock 8.Thread stoped [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:47]accept exits with 9 [18:15:47]New connection [18:15:47]New thread 3066731876 created [18:15:47]Thread 3066588516 joined [18:15:47]Waiting for new connection... [18:15:47] Sock 9.Parse request [18:15:47]Sock 9.Check first char [18:15:47]Sock 9.First char is OK [18:15:47]request: POST /json_proto HTTP/1.0 [18:15:47]Method: POST [18:15:47]URL: /json_proto [18:15:47]Method is POST - this is cgi request [18:15:47]url: /json_proto [18:15:47]query_string will be loaded in cgi processing [18:15:47]execute_cgi json_proto POST (null) [18:15:47]execute_cgi path=json_proto method=POST [18:15:47]POST find Content-Length [18:15:47]Host: 172.17.54.195:8080 [18:15:47]Content-Length: 666 [18:15:47]Content-Type: application/json [18:15:47] [18:15:47]POST finish read [18:15:47]Found Content-Length = 666 [18:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [18:15:47]execute_script... [18:15: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)16309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "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" ] } } [18:15:47]POST & json_proto [18:15:47]process_json_proto [18:15:47]json parsed OK: [18:15:47]protocol is kg_v1.0 [18:15:47]action value=close_receipt [18:15:47]process_action close_receipt [18:15:47]cmd_close_receipt [18:15:47]MH_GetDate [18:15:47]Write to MH i2c: F0 00 00 62 54 A5 [18:15:47]Write i2c OK [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: F0 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: F0 09 00 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: F0 09 00 62 54 00 5F 26 21 67 8D 90 A3 66 E1 [18:15:47]GetLastDocTimeStamp 1730225589 [18:15:47]current date 1730225759 [18:15:47]FM_GetShiftState [18:15:47]SAM_PROTO_GetShiftState [18:15:47]wFMCommunicate request_size=4 [18:15:47]MH_SAM_APDU [18:15:47]CAPDU: 80 13 01 00 [18:15:47]Write to MH i2c: E2 08 00 63 54 80 13 01 00 00 00 00 00 34 [18:15:47]Write i2c OK [18:15:47]MH_I2C_Read... [18:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:47]Read from MH i2c: E2 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: E2 0E 00 [18:15:47]MH_I2C_Read... [18:15:47]Read from MH i2c: E2 0E 00 63 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 89 [18:15:47]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:15:47]wFMCommunicate OK [18:15:47]SAM_PROTO_GetShiftState done [18:15:47]FM_GetShiftState done [18:15:47]opened in 1730161559 [18:15:47]opened+sec_in_day 1730247959 [18:15:47]quantity*price = 20041 [18:15:47]sum+1 = 20042 [18:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 104 29.10.2024 18:15 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15758 ФПД: 173571862824617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T181559&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15758&fm=173571862824617&tin=02508201610067®Number=0000000000161798&sum=20000 [18:15:48]StoreToDocumentArchive [18:15:48]shift 172 fd 15758 [18:15:48]save to /storage/0172/doc_00015758 [18:15:48]save last doc name /storage/0172/doc_00015758 to /storage/kkm_last_doc_name [18:15:48]save OK [18:15:48]Clear old archive folders... [18:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=249 [18:15:48]tlvbuf is 00400BE0 [18:15:48]SAM_PROTO_ClearQueue [18:15:48]wFMCommunicate request_size=4 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 09 00 00 [18:15:48]Write to MH i2c: E2 08 00 70 54 80 09 00 00 00 00 00 00 36 [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:48]Read from MH i2c: E2 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 70 54 00 90 00 38 [18:15:48]RAPDU: 90 00 [18:15:48]wFMCommunicate OK [18:15:48]SAM_PROTO_ClearQueue done [18:15:48]KKMCreateOFDPacket [18:15:48]OFDProtocolAddRootSTLVToBuf [18:15:48]FM_MakeSignedData [18:15:48]FM_MakeSignedData [18:15:48]SAM_PROTO_SignData [18:15:48]wFMCommunicate request_size=4 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 0D 01 02 [18:15:48]Write to MH i2c: E2 08 00 71 54 80 0D 01 02 00 00 00 00 3E [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:48]Read from MH i2c: E2 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 71 54 00 90 00 39 [18:15:48]RAPDU: 90 00 [18:15:48]wFMCommunicate OK [18:15:48]wFMCommunicate request_size=255 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 68 00 00 00 F4 03 04 00 5F 26 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8E 3D 00 00 35 04 06 00 9D DC D9 [18:15:48]Write to MH i2c: E2 02 01 72 54 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 68 00 00 00 F4 03 04 00 5F 26 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8E 3D 00 00 35 04 06 00 9D DC D9 00 00 49 [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:48]Read from MH i2c: E2 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 72 54 00 90 00 3A [18:15:48]RAPDU: 90 00 [18:15:48]wFMCommunicate OK [18:15:48]wFMCommunicate request_size=8 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 0D 02 02 03 3A 06 A9 [18:15:48]Write to MH i2c: E2 0B 00 73 54 80 0D 02 02 03 00 3A 06 A9 00 00 30 [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 [18:15:48]MH_I2C_Read... [18:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:48]Read from MH i2c: E2 03 00 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 03 00 73 54 00 90 00 3B [18:15:48]RAPDU: 90 00 [18:15:48]wFMCommunicate OK [18:15:48]wFMCommunicate request_size=4 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 0D 03 02 [18:15:48]Write to MH i2c: E2 08 00 74 54 80 0D 03 02 00 00 00 00 43 [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:48]Read from MH i2c: E2 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 0B 00 [18:15:48]MH_I2C_Read... [18:15:48]Read from MH i2c: E2 0B 00 74 54 00 87 10 91 CD 2E 36 D4 26 90 00 97 [18:15:48]RAPDU: 87 10 91 CD 2E 36 D4 26 90 00 [18:15:48]wFMCommunicate OK [18:15:48]SAM_PROTO_SignData done [18:15:48]FM_MakeSignedData done [18:15:48]CreateOFDProtocolMessage [18:15:48]wFMCommunicate request_size=4 [18:15:48]MH_SAM_APDU [18:15:48]CAPDU: 80 11 00 00 [18:15:48]Write to MH i2c: E2 08 00 75 54 80 11 00 00 00 00 00 00 43 [18:15:48]Write i2c OK [18:15:48]MH_I2C_Read... [18:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:49]Read from MH i2c: E2 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: E2 17 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: E2 17 00 75 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 92 [18:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:15:49]wFMCommunicate OK [18:15:49]CreateOFDProtocolMessage done [18:15:49]OFDSenderStorePacket 15758 [18:15:49]StoreOFDPacket docnum=15758 [18:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C8 73 05 01 4A DC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 68 00 00 00 F4 03 04 00 5F 26 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8E 3D 00 00 35 04 06 00 9D DC D9 3A 06 A9 87 10 91 CD 2E 36 D4 26 [18:15:49]CheckFolder [18:15:49]dirname=/storage/ofd_packets [18:15:49]CheckFolder done [18:15:49]ProducePacketName [18:15:49]name=ofd_packets/00015758 [18:15:49]NVStorageSaveData ofd_packets/00015758 [18:15:49]File name is /storage/ofd_packets/00015758 [18:15:49]Write 299 bytes [18:15:49]NVStorageSaveData done [18:15:49]OFDSenderStorePacket done [18:15:49]KKMCreateOFDPacket done [18:15:49]NVStorageSaveData kkm_last_timestamp [18:15:49]File name is /storage/kkm_last_timestamp [18:15:49]Write 4 bytes [18:15:49]NVStorageSaveData done [18:15:49]ExternCall_PrintAddStr [18:15:49]wPrintStart [18:15:49]Write to MH i2c: 01 00 00 76 54 CA [18:15:49]OFD Sender: Processing packet 15758 [packets to send 4, broken 3] [18:15:49]ProducePacketName [18:15:49]name=ofd_packets/00015758 [18:15:49]OFD Sender: To server: pG, [18:15:49]CommunicateWithHost lk.salyk.kg:30040 [18:15:49]ConnectInit lk.salyk.kg [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 07 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 07 00 76 54 00 00 00 00 00 FF 0F DF [18:15:49]RasterBufferAndPrint [18:15:49]line Счет N : (1)16309 [18:15:49]line ИНН: 02508201610067 [18:15:49]line Контрольно-Кассовый Чек [18:15:49]line ПРОДАЖА [18:15:49]line ТРК (МРК, ГНК) : 12 [18:15:49]line Товар: 50.50.0 [18:15:49]line SUPER 92-К-5 [18:15:49]line 2.930 * 68.40 [18:15:49]line = 200.41 [18:15:49]line НДС 12% НСП 1% [18:15:49]line > о реализуемом товаре [18:15:49]line ОКРУГЛЕНИЕ: -0.41 [18:15:49]line ИТОГО: 200.00 [18:15:49]line Внесено: 200.00 [18:15:49]line СДАЧА: 0.00 [18:15:49]line НСП 1% : 1.77 [18:15:49]line НДС 12% : 21.28 [18:15:49]line Наличными: 200.00 [18:15:49]line Безнал.: 0.00 [18:15:49]line Место: АЗС № 178 "Партнер Нефть" [18:15:49]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:15:49]line СНО: Общий режим [18:15:49]line Чек 104 29.10.2024 18:15 [18:15:49]line Смена: 172 ФФД: 1.0 [18:15:49]line ЗНМ: 0300000014 [18:15:49]line РНМ: 0000000000161798 [18:15:49]line Версия ККМ: v1.0 [18:15:49]line ФМ: 0000000000963325 [18:15:49]line ФД: 15758 [18:15:49]line ФПД: 173571862824617 [18:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T181559&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15758&fm=173571862824617&tin=02508201610067®Number=0000000000161798&sum=20000 [18:15:49]Connected sock=8 [18:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C8 73 05 01 4A DC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 68 00 00 00 F4 03 04 00 5F 26 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8E 3D 00 00 35 04 06 00 9D DC D9 3A 06 A9 87 10 91 CD 2E 36 D4 26 [18:15:49]written 0, free lines is 4095 [18:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 3F 6D 47 00 A9 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8E 3D 00 00 F4 03 04 00 4B D1 20 67 B6 04 01 00 00 DD F4 BE F1 75 2A 8F 5B [18:15:49]CommunicateWithHost err = 0 [18:15:49]CheckOFDResponse [18:15:49]1017 (14) - 77093643461234 [18:15:49]1041 (16) - 0000000000963325 [18:15:49]1040 (4) - 15758 [18:15:49]1012 (4) - 29.10.2024 12:12 [18:15:49]1206 (1) - 0 [18:15:49]OFD Sender: Remove packet 15758 [18:15:49]ProducePacketName [18:15:49]name=ofd_packets/00015758 [18:15:49]NVStorageDeleteData [18:15:49]Write to MH i2c: 01 00 00 A1 54 F5 [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 07 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: 01 07 00 A1 54 00 00 00 00 00 F4 0C FC [18:15:49]RasterBufferAndPrint [18:15:49]line [18:15:49]line [18:15:49]line [18:15:49]line [18:15:49]line [18:15:49]written 0, free lines is 3322 [18:15:49]MH_Cut [18:15:49]Write to MH i2c: D1 01 00 A8 54 01 CE [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: D1 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: D1 01 00 [18:15:49]MH_I2C_Read... [18:15:49]Read from MH i2c: D1 01 00 A8 54 00 CD [18:15:49]Write to MH i2c: 01 00 00 A9 54 FD [18:15:49]Write i2c OK [18:15:49]MH_I2C_Read... [18:15:50]OFD Sender: No OFD packet to send [18:15:50]*** Cut start [18:15:50]*** Partial cut [18:15:50]*** CUTSNS_PIN = 1 [18:15:50]*** CUTSNS_PIN = 0 [18:15:50]*** Brake cut motor [18:15:51]Read from MH i2c: 01 [18:15:51]MH_I2C_Read... [18:15:51]*** Stop cut motor [18:15:51]*** Cut end [18:15:51]Read from MH i2c: 01 07 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: 01 07 00 A9 54 00 00 00 00 00 FF 0F 12 [18:15:51]process_action close_receipt done [18:15:51]requested_data is exist [18:15:51]produce_requested_data [18:15:51]requested_item fm.sn is exist - process it [18:15:51]wFMCommunicate request_size=4 [18:15:51]MH_SAM_APDU [18:15:51]CAPDU: 80 11 00 00 [18:15:51]Write to MH i2c: E2 08 00 AA 54 80 11 00 00 00 00 00 00 78 [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 17 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 17 00 AA 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C7 [18:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:15:51]wFMCommunicate OK [18:15:51]requested_item fd.num is exist - process it [18:15:51]SAM_PROTO_GetFieldsCounters [18:15:51]wFMCommunicate request_size=4 [18:15:51]MH_SAM_APDU [18:15:51]CAPDU: 80 13 00 00 [18:15:51]Write to MH i2c: E2 08 00 AB 54 80 13 00 00 00 00 00 00 7B [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 62 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 62 00 AB 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8E 3D 00 00 0E 04 04 00 AC 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 4E [18:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8E 3D 00 00 0E 04 04 00 AC 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 [18:15:51]wFMCommunicate OK [18:15:51]SAM_PROTO_GetFieldsCounters done [18:15:51]requested_item shift.num is exist - process it [18:15:51]requested_item shift.opened is exist - process it [18:15:51]req_shift_opened [18:15:51]FM_GetShiftState [18:15:51]SAM_PROTO_GetShiftState [18:15:51]wFMCommunicate request_size=4 [18:15:51]MH_SAM_APDU [18:15:51]CAPDU: 80 13 01 00 [18:15:51]Write to MH i2c: E2 08 00 AC 54 80 13 01 00 00 00 00 00 7D [18:15:51]Write i2c OK [18:15:51]MH_I2C_Read... [18:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:51]Read from MH i2c: E2 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0E 00 [18:15:51]MH_I2C_Read... [18:15:51]Read from MH i2c: E2 0E 00 AC 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D2 [18:15:51]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:15:51]wFMCommunicate OK [18:15:51]SAM_PROTO_GetShiftState done [18:15:51]FM_GetShiftState done [18:15:51]req_shift_opened done [18:15:51]requested_item shift.open_date is exist - process it [18:15:51]req_shift_open_date [18:15:51]req_shift_open_date done [18:15:51]produce_requested_data done [18:15:51]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15758,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:15:51]process_action_free close_receipt [18:15:51]json_value_free [18:15:51]json_value_free done [18:15:51]process_json_proto returns [18:15:51]Send response to host [18:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15758,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:15:51]free response buf [18:15:51]execute_script done [18:15:51]execute_script returns [18:15:51]free content buf [18:15:51]Sock 9.Close socket [18:15:51]Sock 9.Thread stoped [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:44]accept exits with 10 [18:24:44]New connection [18:24:44]New thread 3066588516 created [18:24:44]Thread 3066731876 joined [18:24:44]Waiting for new connection... [18:24:44] Sock 10.Parse request [18:24:44]Sock 10.Check first char [18:24:44]Sock 10.First char is OK [18:24:44]request: POST /json_proto HTTP/1.0 [18:24:44]Method: POST [18:24:44]URL: /json_proto [18:24:44]Method is POST - this is cgi request [18:24:44]url: /json_proto [18:24:44]query_string will be loaded in cgi processing [18:24:44]execute_cgi json_proto POST (null) [18:24:44]execute_cgi path=json_proto method=POST [18:24:44]POST find Content-Length [18:24:44]Host: 172.17.54.195:8080 [18:24:44]Content-Length: 681 [18:24:44]Content-Type: application/json [18:24:44] [18:24:44]POST finish read [18:24:44]Found Content-Length = 681 [18:24:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [18:24:44]execute_script... [18:24: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)16310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" ] } } [18:24:44]POST & json_proto [18:24:44]process_json_proto [18:24:44]json parsed OK: [18:24:44]protocol is kg_v1.0 [18:24:44]action value=close_receipt [18:24:44]process_action close_receipt [18:24:44]cmd_close_receipt [18:24:44]MH_GetDate [18:24:44]Write to MH i2c: F0 00 00 AD 54 F0 [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: F0 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: F0 09 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: F0 09 00 AD 54 00 78 28 21 67 8D 90 A3 66 47 [18:24:44]GetLastDocTimeStamp 1730225759 [18:24:44]current date 1730226296 [18:24:44]FM_GetShiftState [18:24:44]SAM_PROTO_GetShiftState [18:24:44]wFMCommunicate request_size=4 [18:24:44]MH_SAM_APDU [18:24:44]CAPDU: 80 13 01 00 [18:24:44]Write to MH i2c: E2 08 00 AE 54 80 13 01 00 00 00 00 00 7F [18:24:44]Write i2c OK [18:24:44]MH_I2C_Read... [18:24:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:44]Read from MH i2c: E2 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0E 00 [18:24:44]MH_I2C_Read... [18:24:44]Read from MH i2c: E2 0E 00 AE 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D4 [18:24:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:24:44]wFMCommunicate OK [18:24:44]SAM_PROTO_GetShiftState done [18:24:44]FM_GetShiftState done [18:24:44]opened in 1730161559 [18:24:44]opened+sec_in_day 1730247959 [18:24:44]quantity*price = 300046 [18:24:44]sum+1 = 300048 [18:24:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 105 29.10.2024 18:24 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15759 ФПД: 124631513844828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182456&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15759&fm=124631513844828&tin=02508201610067®Number=0000000000161798&sum=300000 [18:24:45]StoreToDocumentArchive [18:24:45]shift 172 fd 15759 [18:24:45]save to /storage/0172/doc_00015759 [18:24:45]save last doc name /storage/0172/doc_00015759 to /storage/kkm_last_doc_name [18:24:45]save OK [18:24:45]Clear old archive folders... [18:24:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:45]tlvbuf is B6EA4A30 [18:24:45]SAM_PROTO_ClearQueue [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 09 00 00 [18:24:45]Write to MH i2c: E2 08 00 BB 54 80 09 00 00 00 00 00 00 81 [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 BB 54 00 90 00 83 [18:24:45]RAPDU: 90 00 [18:24:45]wFMCommunicate OK [18:24:45]SAM_PROTO_ClearQueue done [18:24:45]KKMCreateOFDPacket [18:24:45]OFDProtocolAddRootSTLVToBuf [18:24:45]FM_MakeSignedData [18:24:45]FM_MakeSignedData [18:24:45]SAM_PROTO_SignData [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 0D 01 02 [18:24:45]Write to MH i2c: E2 08 00 BC 54 80 0D 01 02 00 00 00 00 89 [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]OFD Sender: No OFD packet to send [18:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 BC 54 00 90 00 84 [18:24:45]RAPDU: 90 00 [18:24:45]wFMCommunicate OK [18:24:45]wFMCommunicate request_size=255 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 69 00 00 00 F4 03 04 00 78 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8F 3D 00 00 35 04 06 00 71 [18:24:45]Write to MH i2c: E2 02 01 BD 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 69 00 00 00 F4 03 04 00 78 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8F 3D 00 00 35 04 06 00 71 00 00 1E [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 BD 54 00 90 00 85 [18:24:45]RAPDU: 90 00 [18:24:45]wFMCommunicate OK [18:24:45]wFMCommunicate request_size=10 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 0D 02 02 05 5A 09 1C 4C 5C [18:24:45]Write to MH i2c: E2 0D 00 BE 54 80 0D 02 02 05 00 5A 09 1C 4C 5C 00 00 BD [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 03 00 BE 54 00 90 00 86 [18:24:45]RAPDU: 90 00 [18:24:45]wFMCommunicate OK [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 0D 03 02 [18:24:45]Write to MH i2c: E2 08 00 BF 54 80 0D 03 02 00 00 00 00 8E [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 0B 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 0B 00 BF 54 00 55 B4 12 49 C1 27 78 06 90 00 59 [18:24:45]RAPDU: 55 B4 12 49 C1 27 78 06 90 00 [18:24:45]wFMCommunicate OK [18:24:45]SAM_PROTO_SignData done [18:24:45]FM_MakeSignedData done [18:24:45]CreateOFDProtocolMessage [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 11 00 00 [18:24:45]Write to MH i2c: E2 08 00 C0 54 80 11 00 00 00 00 00 00 8E [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 17 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 17 00 C0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 DD [18:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:24:45]wFMCommunicate OK [18:24:45]CreateOFDProtocolMessage done [18:24:45]OFDSenderStorePacket 15759 [18:24:45]StoreOFDPacket docnum=15759 [18:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 62 6A 07 01 E6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 69 00 00 00 F4 03 04 00 78 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8F 3D 00 00 35 04 06 00 71 5A 09 1C 4C 5C 55 B4 12 49 C1 27 78 06 [18:24:45]CheckFolder [18:24:45]dirname=/storage/ofd_packets [18:24:45]CheckFolder done [18:24:45]ProducePacketName [18:24:45]name=ofd_packets/00015759 [18:24:45]NVStorageSaveData ofd_packets/00015759 [18:24:45]File name is /storage/ofd_packets/00015759 [18:24:45]Write 301 bytes [18:24:45]NVStorageSaveData done [18:24:45]OFDSenderStorePacket done [18:24:45]KKMCreateOFDPacket done [18:24:45]NVStorageSaveData kkm_last_timestamp [18:24:45]File name is /storage/kkm_last_timestamp [18:24:45]Write 4 bytes [18:24:45]NVStorageSaveData done [18:24:45]ExternCall_PrintAddStr [18:24:45]wPrintStart [18:24:45]Write to MH i2c: 01 00 00 C1 54 15 [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 07 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 07 00 C1 54 00 00 00 00 00 FF 0F 2A [18:24:45]RasterBufferAndPrint [18:24:45]line Счет N : (1)16310 [18:24:45]line ИНН: 02508201610067 [18:24:45]line Контрольно-Кассовый Чек [18:24:45]line ПРОДАЖА [18:24:45]line ТРК (МРК, ГНК) : 21 [18:24:45]line Товар: 2710124130 [18:24:45]line Аи-92-К-5 [18:24:45]line 44.850 * 66.90 [18:24:45]line = 3000.47 [18:24:45]line НДС 12% НСП 1% [18:24:45]line > о реализуемом товаре [18:24:45]line ОКРУГЛЕНИЕ: -0.47 [18:24:45]line ИТОГО: 3000.00 [18:24:45]line Внесено: 3000.00 [18:24:45]line СДАЧА: 0.00 [18:24:45]line НСП 1% : 26.55 [18:24:45]line НДС 12% : 318.63 [18:24:45]line Наличными: 3000.00 [18:24:45]line Безнал.: 0.00 [18:24:45]line Место: АЗС № 178 "Партнер Нефть" [18:24:45]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:24:45]line СНО: Общий режим [18:24:45]line Чек 105 29.10.2024 18:24 [18:24:45]line Смена: 172 ФФД: 1.0 [18:24:45]line ЗНМ: 0300000014 [18:24:45]line РНМ: 0000000000161798 [18:24:45]line Версия ККМ: v1.0 [18:24:45]line ФМ: 0000000000963325 [18:24:45]line ФД: 15759 [18:24:45]line ФПД: 124631513844828 [18:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182456&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15759&fm=124631513844828&tin=02508201610067®Number=0000000000161798&sum=300000 [18:24:46]OFD Sender: Processing packet 15759 [packets to send 4, broken 3] [18:24:46]ProducePacketName [18:24:46]name=ofd_packets/00015759 [18:24:46]OFD Sender: To server: pG, [18:24:46]CommunicateWithHost lk.salyk.kg:30040 [18:24:46]ConnectInit lk.salyk.kg [18:24:46]written 0, free lines is 4095 [18:24:46]Connected sock=8 [18:24:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 62 6A 07 01 E6 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 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 77 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 69 00 00 00 F4 03 04 00 78 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8F 3D 00 00 35 04 06 00 71 5A 09 1C 4C 5C 55 B4 12 49 C1 27 78 06 [18:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 54 41 47 00 DE E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 8F 3D 00 00 F4 03 04 00 64 D3 20 67 B6 04 01 00 00 2D 95 6A 53 E1 A9 36 D0 [18:24:46]CommunicateWithHost err = 0 [18:24:46]CheckOFDResponse [18:24:46]1017 (14) - 77093643461234 [18:24:46]1041 (16) - 0000000000963325 [18:24:46]1040 (4) - 15759 [18:24:46]1012 (4) - 29.10.2024 12:21 [18:24:46]1206 (1) - 0 [18:24:46]OFD Sender: Remove packet 15759 [18:24:46]ProducePacketName [18:24:46]name=ofd_packets/00015759 [18:24:46]NVStorageDeleteData [18:24:46]Write to MH i2c: 01 00 00 EC 54 40 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: 01 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: 01 07 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: 01 07 00 EC 54 00 00 00 00 00 13 0D 67 [18:24:46]RasterBufferAndPrint [18:24:46]line [18:24:46]line [18:24:46]line [18:24:46]line [18:24:46]line [18:24:46]written 0, free lines is 3354 [18:24:46]MH_Cut [18:24:46]Write to MH i2c: D1 01 00 F3 54 01 19 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: D1 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: D1 01 00 [18:24:46]MH_I2C_Read... [18:24:46]Read from MH i2c: D1 01 00 F3 54 00 18 [18:24:46]Write to MH i2c: 01 00 00 F4 54 48 [18:24:46]Write i2c OK [18:24:46]MH_I2C_Read... [18:24:47]OFD Sender: No OFD packet to send [18:24:47]*** Cut start [18:24:47]*** Partial cut [18:24:47]*** CUTSNS_PIN = 1 [18:24:47]*** CUTSNS_PIN = 0 [18:24:47]*** Brake cut motor [18:24:48]Read from MH i2c: 01 [18:24:48]MH_I2C_Read... [18:24:48]*** Stop cut motor [18:24:48]*** Cut end [18:24:48]Read from MH i2c: 01 07 00 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: 01 07 00 F4 54 00 00 00 00 00 FF 0F 5D [18:24:48]process_action close_receipt done [18:24:48]requested_data is exist [18:24:48]produce_requested_data [18:24:48]requested_item fm.sn is exist - process it [18:24:48]wFMCommunicate request_size=4 [18:24:48]MH_SAM_APDU [18:24:48]CAPDU: 80 11 00 00 [18:24:48]Write to MH i2c: E2 08 00 F5 54 80 11 00 00 00 00 00 00 C3 [18:24:48]Write i2c OK [18:24:48]MH_I2C_Read... [18:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:48]Read from MH i2c: E2 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 17 00 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 17 00 F5 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 12 [18:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:24:48]wFMCommunicate OK [18:24:48]requested_item fd.num is exist - process it [18:24:48]SAM_PROTO_GetFieldsCounters [18:24:48]wFMCommunicate request_size=4 [18:24:48]MH_SAM_APDU [18:24:48]CAPDU: 80 13 00 00 [18:24:48]Write to MH i2c: E2 08 00 F6 54 80 13 00 00 00 00 00 00 C6 [18:24:48]Write i2c OK [18:24:48]MH_I2C_Read... [18:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:48]Read from MH i2c: E2 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 62 00 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 62 00 F6 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8F 3D 00 00 0E 04 04 00 AC 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 9D [18:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 8F 3D 00 00 0E 04 04 00 AC 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 [18:24:48]wFMCommunicate OK [18:24:48]SAM_PROTO_GetFieldsCounters done [18:24:48]requested_item shift.num is exist - process it [18:24:48]requested_item shift.opened is exist - process it [18:24:48]req_shift_opened [18:24:48]FM_GetShiftState [18:24:48]SAM_PROTO_GetShiftState [18:24:48]wFMCommunicate request_size=4 [18:24:48]MH_SAM_APDU [18:24:48]CAPDU: 80 13 01 00 [18:24:48]Write to MH i2c: E2 08 00 F7 54 80 13 01 00 00 00 00 00 C8 [18:24:48]Write i2c OK [18:24:48]MH_I2C_Read... [18:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:48]Read from MH i2c: E2 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 0E 00 [18:24:48]MH_I2C_Read... [18:24:48]Read from MH i2c: E2 0E 00 F7 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 1D [18:24:48]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:24:48]wFMCommunicate OK [18:24:48]SAM_PROTO_GetShiftState done [18:24:48]FM_GetShiftState done [18:24:48]req_shift_opened done [18:24:48]requested_item shift.open_date is exist - process it [18:24:48]req_shift_open_date [18:24:48]req_shift_open_date done [18:24:48]produce_requested_data done [18:24:48]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15759,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:24:48]process_action_free close_receipt [18:24:48]json_value_free [18:24:48]json_value_free done [18:24:48]process_json_proto returns [18:24:48]Send response to host [18:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15759,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:24:48]free response buf [18:24:48]execute_script done [18:24:48]execute_script returns [18:24:48]free content buf [18:24:48]Sock 10.Close socket [18:24:48]Sock 10.Thread stoped [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:27]OFD Sender: No OFD packet to send [18:26:27]accept exits with 9 [18:26:27]New connection [18:26:27]New thread 3066731876 created [18:26:27]Thread 3066588516 joined [18:26:27]Waiting for new connection... [18:26:27] Sock 9.Parse request [18:26:27]Sock 9.Check first char [18:26:27]Sock 9.First char is OK [18:26:27]request: POST /json_proto HTTP/1.0 [18:26:27]Method: POST [18:26:27]URL: /json_proto [18:26:27]Method is POST - this is cgi request [18:26:27]url: /json_proto [18:26:27]query_string will be loaded in cgi processing [18:26:27]execute_cgi json_proto POST (null) [18:26:27]execute_cgi path=json_proto method=POST [18:26:27]POST find Content-Length [18:26:27]Host: 172.17.54.195:8080 [18:26:27]Content-Length: 681 [18:26:27]Content-Type: application/json [18:26:27] [18:26:27]POST finish read [18:26:27]Found Content-Length = 681 [18:26:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:26:27]execute_script... [18:26: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)16311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:26:27]POST & json_proto [18:26:27]process_json_proto [18:26:27]json parsed OK: [18:26:27]protocol is kg_v1.0 [18:26:27]action value=close_receipt [18:26:27]process_action close_receipt [18:26:27]cmd_close_receipt [18:26:27]MH_GetDate [18:26:27]Write to MH i2c: F0 00 00 F8 54 3B [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 09 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: F0 09 00 F8 54 00 DF 28 21 67 8D 90 A3 66 F9 [18:26:27]GetLastDocTimeStamp 1730226296 [18:26:27]current date 1730226399 [18:26:27]FM_GetShiftState [18:26:27]SAM_PROTO_GetShiftState [18:26:27]wFMCommunicate request_size=4 [18:26:27]MH_SAM_APDU [18:26:27]CAPDU: 80 13 01 00 [18:26:27]Write to MH i2c: E2 08 00 F9 54 80 13 01 00 00 00 00 00 CA [18:26:27]Write i2c OK [18:26:27]MH_I2C_Read... [18:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:27]Read from MH i2c: E2 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0E 00 [18:26:27]MH_I2C_Read... [18:26:27]Read from MH i2c: E2 0E 00 F9 54 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 1F [18:26:27]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:26:27]wFMCommunicate OK [18:26:27]SAM_PROTO_GetShiftState done [18:26:27]FM_GetShiftState done [18:26:27]opened in 1730161559 [18:26:27]opened+sec_in_day 1730247959 [18:26:27]quantity*price = 100015 [18:26:27]sum+1 = 100017 [18:26:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 106 29.10.2024 18:26 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15760 ФПД: 277406871748132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182639&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15760&fm=277406871748132&tin=02508201610067®Number=0000000000161798&sum=100000 [18:26:28]StoreToDocumentArchive [18:26:28]shift 172 fd 15760 [18:26:28]save to /storage/0172/doc_00015760 [18:26:28]save last doc name /storage/0172/doc_00015760 to /storage/kkm_last_doc_name [18:26:28]save OK [18:26:28]Clear old archive folders... [18:26:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:28]tlvbuf is 00319D70 [18:26:28]SAM_PROTO_ClearQueue [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 09 00 00 [18:26:28]Write to MH i2c: E2 08 00 06 55 80 09 00 00 00 00 00 00 CD [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 06 55 00 90 00 CF [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]SAM_PROTO_ClearQueue done [18:26:28]KKMCreateOFDPacket [18:26:28]OFDProtocolAddRootSTLVToBuf [18:26:28]FM_MakeSignedData [18:26:28]FM_MakeSignedData [18:26:28]SAM_PROTO_SignData [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 01 02 [18:26:28]Write to MH i2c: E2 08 00 07 55 80 0D 01 02 00 00 00 00 D5 [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 07 55 00 90 00 D0 [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=255 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 DF 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 90 3D 00 00 35 04 06 00 FC [18:26:28]Write to MH i2c: E2 02 01 08 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 DF 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 90 3D 00 00 35 04 06 00 FC 00 00 CF [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 08 55 00 90 00 D1 [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=10 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 02 02 05 4C D2 0C 7E 24 [18:26:28]Write to MH i2c: E2 0D 00 09 55 80 0D 02 02 05 00 4C D2 0C 7E 24 00 00 AE [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:28]Read from MH i2c: E2 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 [18:26:28]MH_I2C_Read... [18:26:28]Read from MH i2c: E2 03 00 09 55 00 90 00 D2 [18:26:28]RAPDU: 90 00 [18:26:28]wFMCommunicate OK [18:26:28]wFMCommunicate request_size=4 [18:26:28]MH_SAM_APDU [18:26:28]CAPDU: 80 0D 03 02 [18:26:28]Write to MH i2c: E2 08 00 0A 55 80 0D 03 02 00 00 00 00 DA [18:26:28]Write i2c OK [18:26:28]MH_I2C_Read... [18:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:29]Read from MH i2c: E2 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 0B 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 0B 00 0A 55 00 65 9A DC 9B 7C 6F CC F7 90 00 FF [18:26:29]RAPDU: 65 9A DC 9B 7C 6F CC F7 90 00 [18:26:29]wFMCommunicate OK [18:26:29]SAM_PROTO_SignData done [18:26:29]FM_MakeSignedData done [18:26:29]CreateOFDProtocolMessage [18:26:29]wFMCommunicate request_size=4 [18:26:29]MH_SAM_APDU [18:26:29]CAPDU: 80 11 00 00 [18:26:29]Write to MH i2c: E2 08 00 0B 55 80 11 00 00 00 00 00 00 DA [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:29]Read from MH i2c: E2 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 17 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: E2 17 00 0B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 29 [18:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:26:29]wFMCommunicate OK [18:26:29]CreateOFDProtocolMessage done [18:26:29]OFDSenderStorePacket 15760 [18:26:29]StoreOFDPacket docnum=15760 [18:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 3A 45 07 01 AF 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 DF 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 90 3D 00 00 35 04 06 00 FC 4C D2 0C 7E 24 65 9A DC 9B 7C 6F CC F7 [18:26:29]CheckFolder [18:26:29]dirname=/storage/ofd_packets [18:26:29]CheckFolder done [18:26:29]ProducePacketName [18:26:29]name=ofd_packets/00015760 [18:26:29]NVStorageSaveData ofd_packets/00015760 [18:26:29]File name is /storage/ofd_packets/00015760 [18:26:29]Write 301 bytes [18:26:29]NVStorageSaveData done [18:26:29]OFDSenderStorePacket done [18:26:29]KKMCreateOFDPacket done [18:26:29]NVStorageSaveData kkm_last_timestamp [18:26:29]File name is /storage/kkm_last_timestamp [18:26:29]Write 4 bytes [18:26:29]NVStorageSaveData done [18:26:29]ExternCall_PrintAddStr [18:26:29]wPrintStart [18:26:29]Write to MH i2c: 01 00 00 0C 55 61 [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 0C 55 00 00 00 00 00 FF 0F 76 [18:26:29]RasterBufferAndPrint [18:26:29]line Счет N : (1)16311 [18:26:29]line ИНН: 02508201610067 [18:26:29]line Контрольно-Кассовый Чек [18:26:29]line ПРОДАЖА [18:26:29]line ТРК (МРК, ГНК) : 21 [18:26:29]line Товар: 2710124130 [18:26:29]line Аи-92-К-5 [18:26:29]line 14.950 * 66.90 [18:26:29]line = 1000.16 [18:26:29]line НДС 12% НСП 1% [18:26:29]line > о реализуемом товаре [18:26:29]line ОКРУГЛЕНИЕ: -0.16 [18:26:29]line ИТОГО: 1000.00 [18:26:29]line Внесено: 1000.00 [18:26:29]line СДАЧА: 0.00 [18:26:29]line НСП 1% : 8.85 [18:26:29]line НДС 12% : 106.21 [18:26:29]line Наличными: 1000.00 [18:26:29]line Безнал.: 0.00 [18:26:29]line Место: АЗС № 178 "Партнер Нефть" [18:26:29]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:26:29]line СНО: Общий режим [18:26:29]line Чек 106 29.10.2024 18:26 [18:26:29]line Смена: 172 ФФД: 1.0 [18:26:29]line ЗНМ: 0300000014 [18:26:29]line РНМ: 0000000000161798 [18:26:29]line Версия ККМ: v1.0 [18:26:29]line ФМ: 0000000000963325 [18:26:29]line ФД: 15760 [18:26:29]line ФПД: 277406871748132 [18:26:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182639&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15760&fm=277406871748132&tin=02508201610067®Number=0000000000161798&sum=100000 [18:26:29]OFD Sender: Processing packet 15760 [packets to send 4, broken 3] [18:26:29]ProducePacketName [18:26:29]name=ofd_packets/00015760 [18:26:29]OFD Sender: To server: pG, [18:26:29]CommunicateWithHost lk.salyk.kg:30040 [18:26:29]ConnectInit lk.salyk.kg [18:26:29]written 0, free lines is 4095 [18:26:29]Connected sock=11 [18:26:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 3A 45 07 01 AF 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 DF 28 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 90 3D 00 00 35 04 06 00 FC 4C D2 0C 7E 24 65 9A DC 9B 7C 6F CC F7 [18:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 E5 28 47 00 70 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 90 3D 00 00 F4 03 04 00 CB D3 20 67 B6 04 01 00 00 41 D3 04 BA 30 83 F9 D6 [18:26:29]CommunicateWithHost err = 0 [18:26:29]CheckOFDResponse [18:26:29]1017 (14) - 77093643461234 [18:26:29]1041 (16) - 0000000000963325 [18:26:29]1040 (4) - 15760 [18:26:29]1012 (4) - 29.10.2024 12:23 [18:26:29]1206 (1) - 0 [18:26:29]OFD Sender: Remove packet 15760 [18:26:29]ProducePacketName [18:26:29]name=ofd_packets/00015760 [18:26:29]NVStorageDeleteData [18:26:29]Write to MH i2c: 01 00 00 37 55 8C [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: 01 07 00 37 55 00 00 00 00 00 FC 0C 9B [18:26:29]RasterBufferAndPrint [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]line [18:26:29]written 0, free lines is 3330 [18:26:29]MH_Cut [18:26:29]Write to MH i2c: D1 01 00 3E 55 01 65 [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 01 00 [18:26:29]MH_I2C_Read... [18:26:29]Read from MH i2c: D1 01 00 3E 55 00 64 [18:26:29]Write to MH i2c: 01 00 00 3F 55 94 [18:26:29]Write i2c OK [18:26:29]MH_I2C_Read... [18:26:30]OFD Sender: No OFD packet to send [18:26:30]*** Cut start [18:26:30]*** Partial cut [18:26:30]*** CUTSNS_PIN = 1 [18:26:30]*** CUTSNS_PIN = 0 [18:26:30]*** Brake cut motor [18:26:31]Read from MH i2c: 01 [18:26:31]MH_I2C_Read... [18:26:31]*** Stop cut motor [18:26:31]*** Cut end [18:26:31]Read from MH i2c: 01 07 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: 01 07 00 3F 55 00 00 00 00 00 FF 0F A9 [18:26:31]process_action close_receipt done [18:26:31]requested_data is exist [18:26:31]produce_requested_data [18:26:31]requested_item fm.sn is exist - process it [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 11 00 00 [18:26:31]Write to MH i2c: E2 08 00 40 55 80 11 00 00 00 00 00 00 0F [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 17 00 40 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 5E [18:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:26:31]wFMCommunicate OK [18:26:31]requested_item fd.num is exist - process it [18:26:31]SAM_PROTO_GetFieldsCounters [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 13 00 00 [18:26:31]Write to MH i2c: E2 08 00 41 55 80 13 00 00 00 00 00 00 12 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 62 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 62 00 41 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 90 3D 00 00 0E 04 04 00 AC 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 ED [18:26:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 90 3D 00 00 0E 04 04 00 AC 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 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_GetFieldsCounters done [18:26:31]requested_item shift.num is exist - process it [18:26:31]requested_item shift.opened is exist - process it [18:26:31]req_shift_opened [18:26:31]FM_GetShiftState [18:26:31]SAM_PROTO_GetShiftState [18:26:31]wFMCommunicate request_size=4 [18:26:31]MH_SAM_APDU [18:26:31]CAPDU: 80 13 01 00 [18:26:31]Write to MH i2c: E2 08 00 42 55 80 13 01 00 00 00 00 00 14 [18:26:31]Write i2c OK [18:26:31]MH_I2C_Read... [18:26:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:31]Read from MH i2c: E2 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 [18:26:31]MH_I2C_Read... [18:26:31]Read from MH i2c: E2 0E 00 42 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 69 [18:26:31]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:26:31]wFMCommunicate OK [18:26:31]SAM_PROTO_GetShiftState done [18:26:31]FM_GetShiftState done [18:26:31]req_shift_opened done [18:26:31]requested_item shift.open_date is exist - process it [18:26:31]req_shift_open_date [18:26:31]req_shift_open_date done [18:26:31]produce_requested_data done [18:26:31]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15760,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:26:31]process_action_free close_receipt [18:26:31]json_value_free [18:26:31]json_value_free done [18:26:31]process_json_proto returns [18:26:31]Send response to host [18:26:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15760,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:26:31]free response buf [18:26:31]execute_script done [18:26:31]execute_script returns [18:26:31]free content buf [18:26:31]Sock 9.Close socket [18:26:31]Sock 9.Thread stoped [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:00]OFD Sender: No OFD packet to send [18:27:05]accept exits with 8 [18:27:05]New connection [18:27:05]New thread 3066588516 created [18:27:05]Thread 3066731876 joined [18:27:05]Waiting for new connection... [18:27:05] Sock 8.Parse request [18:27:05]Sock 8.Check first char [18:27:05]Sock 8.First char is OK [18:27:05]request: POST /json_proto HTTP/1.0 [18:27:05]Method: POST [18:27:05]URL: /json_proto [18:27:05]Method is POST - this is cgi request [18:27:05]url: /json_proto [18:27:05]query_string will be loaded in cgi processing [18:27:05]execute_cgi json_proto POST (null) [18:27:05]execute_cgi path=json_proto method=POST [18:27:05]POST find Content-Length [18:27:05]Host: 172.17.54.195:8080 [18:27:05]Content-Length: 667 [18:27:05]Content-Type: application/json [18:27:05] [18:27:05]POST finish read [18:27:05]Found Content-Length = 667 [18:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:05]execute_script... [18:27:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:05]POST & json_proto [18:27:05]process_json_proto [18:27:05]json parsed OK: [18:27:05]protocol is kg_v1.0 [18:27:05]action value=close_receipt [18:27:05]process_action close_receipt [18:27:05]cmd_close_receipt [18:27:05]MH_GetDate [18:27:05]Write to MH i2c: F0 00 00 43 55 87 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: F0 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: F0 09 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: F0 09 00 43 55 00 05 29 21 67 8D 90 A3 66 6C [18:27:05]GetLastDocTimeStamp 1730226399 [18:27:05]current date 1730226437 [18:27:05]FM_GetShiftState [18:27:05]SAM_PROTO_GetShiftState [18:27:05]wFMCommunicate request_size=4 [18:27:05]MH_SAM_APDU [18:27:05]CAPDU: 80 13 01 00 [18:27:05]Write to MH i2c: E2 08 00 44 55 80 13 01 00 00 00 00 00 16 [18:27:05]Write i2c OK [18:27:05]MH_I2C_Read... [18:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:05]Read from MH i2c: E2 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0E 00 [18:27:05]MH_I2C_Read... [18:27:05]Read from MH i2c: E2 0E 00 44 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6B [18:27:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:27:05]wFMCommunicate OK [18:27:05]SAM_PROTO_GetShiftState done [18:27:05]FM_GetShiftState done [18:27:05]opened in 1730161559 [18:27:05]opened+sec_in_day 1730247959 [18:27:05]quantity*price = 80028 [18:27:05]sum+1 = 80029 [18:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 107 29.10.2024 18:27 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15761 ФПД: 178706076702373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182717&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15761&fm=178706076702373&tin=02508201610067®Number=0000000000161798&sum=80000 [18:27:06]StoreToDocumentArchive [18:27:06]shift 172 fd 15761 [18:27:06]save to /storage/0172/doc_00015761 [18:27:06]save last doc name /storage/0172/doc_00015761 to /storage/kkm_last_doc_name [18:27:06]save OK [18:27:06]Clear old archive folders... [18:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=249 [18:27:06]tlvbuf is 0032B0F0 [18:27:06]SAM_PROTO_ClearQueue [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 09 00 00 [18:27:06]Write to MH i2c: E2 08 00 51 55 80 09 00 00 00 00 00 00 18 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 51 55 00 90 00 1A [18:27:06]RAPDU: 90 00 [18:27:06]wFMCommunicate OK [18:27:06]SAM_PROTO_ClearQueue done [18:27:06]KKMCreateOFDPacket [18:27:06]OFDProtocolAddRootSTLVToBuf [18:27:06]FM_MakeSignedData [18:27:06]FM_MakeSignedData [18:27:06]SAM_PROTO_SignData [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 0D 01 02 [18:27:06]Write to MH i2c: E2 08 00 52 55 80 0D 01 02 00 00 00 00 20 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 52 55 00 90 00 1B [18:27:06]RAPDU: 90 00 [18:27:06]wFMCommunicate OK [18:27:06]wFMCommunicate request_size=255 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 6B 00 00 00 F4 03 04 00 05 29 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 91 3D 00 00 35 04 06 00 A2 88 40 [18:27:06]Write to MH i2c: E2 02 01 53 55 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 6B 00 00 00 F4 03 04 00 05 29 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 91 3D 00 00 35 04 06 00 A2 88 40 00 00 3A [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 53 55 00 90 00 1C [18:27:06]RAPDU: 90 00 [18:27:06]wFMCommunicate OK [18:27:06]wFMCommunicate request_size=8 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 0D 02 02 03 38 96 A5 [18:27:06]Write to MH i2c: E2 0B 00 54 55 80 0D 02 02 03 00 38 96 A5 00 00 9C [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 03 00 54 55 00 90 00 1D [18:27:06]RAPDU: 90 00 [18:27:06]wFMCommunicate OK [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 0D 03 02 [18:27:06]Write to MH i2c: E2 08 00 55 55 80 0D 03 02 00 00 00 00 25 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 0B 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 0B 00 55 55 00 A4 AD 97 C1 23 37 24 59 90 00 A6 [18:27:06]RAPDU: A4 AD 97 C1 23 37 24 59 90 00 [18:27:06]wFMCommunicate OK [18:27:06]SAM_PROTO_SignData done [18:27:06]FM_MakeSignedData done [18:27:06]CreateOFDProtocolMessage [18:27:06]wFMCommunicate request_size=4 [18:27:06]MH_SAM_APDU [18:27:06]CAPDU: 80 11 00 00 [18:27:06]Write to MH i2c: E2 08 00 56 55 80 11 00 00 00 00 00 00 25 [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:06]Read from MH i2c: E2 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 17 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: E2 17 00 56 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 74 [18:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:27:06]wFMCommunicate OK [18:27:06]CreateOFDProtocolMessage done [18:27:06]OFDSenderStorePacket 15761 [18:27:06]StoreOFDPacket docnum=15761 [18:27:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E6 20 05 01 D2 20 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 6B 00 00 00 F4 03 04 00 05 29 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 91 3D 00 00 35 04 06 00 A2 88 40 38 96 A5 A4 AD 97 C1 23 37 24 59 [18:27:06]CheckFolder [18:27:06]dirname=/storage/ofd_packets [18:27:06]CheckFolder done [18:27:06]ProducePacketName [18:27:06]name=ofd_packets/00015761 [18:27:06]NVStorageSaveData ofd_packets/00015761 [18:27:06]File name is /storage/ofd_packets/00015761 [18:27:06]Write 299 bytes [18:27:06]NVStorageSaveData done [18:27:06]OFDSenderStorePacket done [18:27:06]KKMCreateOFDPacket done [18:27:06]NVStorageSaveData kkm_last_timestamp [18:27:06]File name is /storage/kkm_last_timestamp [18:27:06]Write 4 bytes [18:27:06]NVStorageSaveData done [18:27:06]ExternCall_PrintAddStr [18:27:06]wPrintStart [18:27:06]Write to MH i2c: 01 00 00 57 55 AC [18:27:06]Write i2c OK [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 [18:27:06]MH_I2C_Read... [18:27:06]Read from MH i2c: 01 07 00 57 55 00 00 00 00 00 FF 0F C1 [18:27:06]RasterBufferAndPrint [18:27:06]line Счет N : (1)16312 [18:27:06]line ИНН: 02508201610067 [18:27:06]line Контрольно-Кассовый Чек [18:27:06]line ПРОДАЖА [18:27:06]line ТРК (МРК, ГНК) : 12 [18:27:06]line Товар: 50.50.0 [18:27:06]line SUPER 92-К-5 [18:27:06]line 11.700 * 68.40 [18:27:06]line = 800.28 [18:27:06]line НДС 12% НСП 1% [18:27:06]line > о реализуемом товаре [18:27:06]line ОКРУГЛЕНИЕ: -0.28 [18:27:06]line ИТОГО: 800.00 [18:27:06]line Внесено: 800.00 [18:27:06]line СДАЧА: 0.00 [18:27:06]line НСП 1% : 7.08 [18:27:06]line НДС 12% : 84.98 [18:27:06]line Наличными: 800.00 [18:27:06]line Безнал.: 0.00 [18:27:06]line Место: АЗС № 178 "Партнер Нефть" [18:27:06]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:27:06]line СНО: Общий режим [18:27:06]line Чек 107 29.10.2024 18:27 [18:27:06]line Смена: 172 ФФД: 1.0 [18:27:06]line ЗНМ: 0300000014 [18:27:06]line РНМ: 0000000000161798 [18:27:06]line Версия ККМ: v1.0 [18:27:06]line ФМ: 0000000000963325 [18:27:06]line ФД: 15761 [18:27:06]line ФПД: 178706076702373 [18:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T182717&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15761&fm=178706076702373&tin=02508201610067®Number=0000000000161798&sum=80000 [18:27:07]OFD Sender: Processing packet 15761 [packets to send 4, broken 3] [18:27:07]ProducePacketName [18:27:07]name=ofd_packets/00015761 [18:27:07]OFD Sender: To server: pG, [18:27:07]CommunicateWithHost lk.salyk.kg:30040 [18:27:07]ConnectInit lk.salyk.kg [18:27:07]written 0, free lines is 4095 [18:27:07]Connected sock=10 [18:27:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 E6 20 05 01 D2 20 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 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 32 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 6B 00 00 00 F4 03 04 00 05 29 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 91 3D 00 00 35 04 06 00 A2 88 40 38 96 A5 A4 AD 97 C1 23 37 24 59 [18:27:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 1D 0B 47 00 D4 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 91 3D 00 00 F4 03 04 00 F1 D3 20 67 B6 04 01 00 00 D4 1B 62 EC 28 8D 85 55 [18:27:07]CommunicateWithHost err = 0 [18:27:07]CheckOFDResponse [18:27:07]1017 (14) - 77093643461234 [18:27:07]1041 (16) - 0000000000963325 [18:27:07]1040 (4) - 15761 [18:27:07]1012 (4) - 29.10.2024 12:24 [18:27:07]1206 (1) - 0 [18:27:07]OFD Sender: Remove packet 15761 [18:27:07]ProducePacketName [18:27:07]name=ofd_packets/00015761 [18:27:07]NVStorageDeleteData [18:27:07]Write to MH i2c: 01 00 00 82 55 D7 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: 01 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: 01 07 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: 01 07 00 82 55 00 00 00 00 00 03 0D EE [18:27:07]RasterBufferAndPrint [18:27:07]line [18:27:07]line [18:27:07]line [18:27:07]line [18:27:07]line [18:27:07]written 0, free lines is 3337 [18:27:07]MH_Cut [18:27:07]Write to MH i2c: D1 01 00 89 55 01 B0 [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: D1 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: D1 01 00 [18:27:07]MH_I2C_Read... [18:27:07]Read from MH i2c: D1 01 00 89 55 00 AF [18:27:07]Write to MH i2c: 01 00 00 8A 55 DF [18:27:07]Write i2c OK [18:27:07]MH_I2C_Read... [18:27:07]OFD Sender: No OFD packet to send [18:27:08]*** Cut start [18:27:08]*** Partial cut [18:27:08]*** CUTSNS_PIN = 1 [18:27:08]*** CUTSNS_PIN = 0 [18:27:08]*** Brake cut motor [18:27:08]Read from MH i2c: 01 [18:27:08]MH_I2C_Read... [18:27:08]*** Stop cut motor [18:27:09]*** Cut end [18:27:09]Read from MH i2c: 01 07 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: 01 07 00 8A 55 00 00 00 00 00 FF 0F F4 [18:27:09]process_action close_receipt done [18:27:09]requested_data is exist [18:27:09]produce_requested_data [18:27:09]requested_item fm.sn is exist - process it [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 11 00 00 [18:27:09]Write to MH i2c: E2 08 00 8B 55 80 11 00 00 00 00 00 00 5A [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 17 00 8B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A9 [18:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:27:09]wFMCommunicate OK [18:27:09]requested_item fd.num is exist - process it [18:27:09]SAM_PROTO_GetFieldsCounters [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 13 00 00 [18:27:09]Write to MH i2c: E2 08 00 8C 55 80 13 00 00 00 00 00 00 5D [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 62 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 62 00 8C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 91 3D 00 00 0E 04 04 00 AC 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 3C [18:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 91 3D 00 00 0E 04 04 00 AC 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 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_GetFieldsCounters done [18:27:09]requested_item shift.num is exist - process it [18:27:09]requested_item shift.opened is exist - process it [18:27:09]req_shift_opened [18:27:09]FM_GetShiftState [18:27:09]SAM_PROTO_GetShiftState [18:27:09]wFMCommunicate request_size=4 [18:27:09]MH_SAM_APDU [18:27:09]CAPDU: 80 13 01 00 [18:27:09]Write to MH i2c: E2 08 00 8D 55 80 13 01 00 00 00 00 00 5F [18:27:09]Write i2c OK [18:27:09]MH_I2C_Read... [18:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:09]Read from MH i2c: E2 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 [18:27:09]MH_I2C_Read... [18:27:09]Read from MH i2c: E2 0E 00 8D 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B4 [18:27:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:27:09]wFMCommunicate OK [18:27:09]SAM_PROTO_GetShiftState done [18:27:09]FM_GetShiftState done [18:27:09]req_shift_opened done [18:27:09]requested_item shift.open_date is exist - process it [18:27:09]req_shift_open_date [18:27:09]req_shift_open_date done [18:27:09]produce_requested_data done [18:27:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15761,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:27:09]process_action_free close_receipt [18:27:09]json_value_free [18:27:09]json_value_free done [18:27:09]process_json_proto returns [18:27:09]Send response to host [18:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15761,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:27:09]free response buf [18:27:09]execute_script done [18:27:09]execute_script returns [18:27:09]free content buf [18:27:09]Sock 8.Close socket [18:27:09]Sock 8.Thread stoped [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:07]accept exits with 9 [18:35:07]New connection [18:35:07]New thread 3066731876 created [18:35:07]Thread 3066588516 joined [18:35:07]Waiting for new connection... [18:35:07] Sock 9.Parse request [18:35:07]Sock 9.Check first char [18:35:07]Sock 9.First char is OK [18:35:07]request: POST /json_proto HTTP/1.0 [18:35:07]Method: POST [18:35:07]URL: /json_proto [18:35:07]Method is POST - this is cgi request [18:35:07]url: /json_proto [18:35:07]query_string will be loaded in cgi processing [18:35:07]execute_cgi json_proto POST (null) [18:35:07]execute_cgi path=json_proto method=POST [18:35:07]POST find Content-Length [18:35:07]Host: 172.17.54.195:8080 [18:35:07]Content-Length: 628 [18:35:07]Content-Type: application/json [18:35:07] [18:35:07]POST finish read [18:35:07]Found Content-Length = 628 [18:35:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:07]execute_script... [18:35: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)16313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:07]POST & json_proto [18:35:07]process_json_proto [18:35:07]json parsed OK: [18:35:07]protocol is kg_v1.0 [18:35:07]action value=close_receipt [18:35:07]process_action close_receipt [18:35:07]cmd_close_receipt [18:35:07]MH_GetDate [18:35:07]Write to MH i2c: F0 00 00 8E 55 D2 [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: F0 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: F0 09 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: F0 09 00 8E 55 00 E7 2A 21 67 8D 90 A3 66 9A [18:35:07]GetLastDocTimeStamp 1730226437 [18:35:07]current date 1730226919 [18:35:07]FM_GetShiftState [18:35:07]SAM_PROTO_GetShiftState [18:35:07]wFMCommunicate request_size=4 [18:35:07]MH_SAM_APDU [18:35:07]CAPDU: 80 13 01 00 [18:35:07]Write to MH i2c: E2 08 00 8F 55 80 13 01 00 00 00 00 00 61 [18:35:07]Write i2c OK [18:35:07]MH_I2C_Read... [18:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:07]Read from MH i2c: E2 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 0E 00 [18:35:07]MH_I2C_Read... [18:35:07]Read from MH i2c: E2 0E 00 8F 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B6 [18:35:07]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:35:07]wFMCommunicate OK [18:35:07]SAM_PROTO_GetShiftState done [18:35:07]FM_GetShiftState done [18:35:07]opened in 1730161559 [18:35:07]opened+sec_in_day 1730247959 [18:35:07]quantity*price = 50000 [18:35:07]sum+1 = 50001 [18:35:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 108 29.10.2024 18:35 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15762 ФПД: 111959201669848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T183519&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15762&fm=111959201669848&tin=02508201610067®Number=0000000000161798&sum=50000 [18:35:08]StoreToDocumentArchive [18:35:08]shift 172 fd 15762 [18:35:08]save to /storage/0172/doc_00015762 [18:35:08]save last doc name /storage/0172/doc_00015762 to /storage/kkm_last_doc_name [18:35:08]save OK [18:35:08]Clear old archive folders... [18:35:08]ProcessDocumentItem done err = 0, tmpTLVsize=249 [18:35:08]tlvbuf is 0044C360 [18:35:08]SAM_PROTO_ClearQueue [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 09 00 00 [18:35:08]Write to MH i2c: E2 08 00 9C 55 80 09 00 00 00 00 00 00 63 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 9C 55 00 90 00 65 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_ClearQueue done [18:35:08]KKMCreateOFDPacket [18:35:08]OFDProtocolAddRootSTLVToBuf [18:35:08]FM_MakeSignedData [18:35:08]FM_MakeSignedData [18:35:08]SAM_PROTO_SignData [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 01 02 [18:35:08]Write to MH i2c: E2 08 00 9D 55 80 0D 01 02 00 00 00 00 6B [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 9D 55 00 90 00 66 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=255 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E7 2A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 92 3D 00 00 35 04 06 00 65 D3 88 [18:35:08]Write to MH i2c: E2 02 01 9E 55 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E7 2A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 92 3D 00 00 35 04 06 00 65 D3 88 00 00 EF [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]OFD Sender: No OFD packet to send [18:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 9E 55 00 90 00 67 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=8 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 02 02 03 71 E2 D8 [18:35:08]Write to MH i2c: E2 0B 00 9F 55 80 0D 02 02 03 00 71 E2 D8 00 00 9F [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 03 00 9F 55 00 90 00 68 [18:35:08]RAPDU: 90 00 [18:35:08]wFMCommunicate OK [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 0D 03 02 [18:35:08]Write to MH i2c: E2 08 00 A0 55 80 0D 03 02 00 00 00 00 70 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0B 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0B 00 A0 55 00 AF 16 CB E4 99 C3 F2 1F 90 00 52 [18:35:08]RAPDU: AF 16 CB E4 99 C3 F2 1F 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_SignData done [18:35:08]FM_MakeSignedData done [18:35:08]CreateOFDProtocolMessage [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 11 00 00 [18:35:08]Write to MH i2c: E2 08 00 A1 55 80 11 00 00 00 00 00 00 70 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 17 00 A1 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 BF [18:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:35:08]wFMCommunicate OK [18:35:08]CreateOFDProtocolMessage done [18:35:08]OFDSenderStorePacket 15762 [18:35:08]StoreOFDPacket docnum=15762 [18:35:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 90 6F 05 01 06 EB 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E7 2A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 92 3D 00 00 35 04 06 00 65 D3 88 71 E2 D8 AF 16 CB E4 99 C3 F2 1F [18:35:08]CheckFolder [18:35:08]dirname=/storage/ofd_packets [18:35:08]CheckFolder done [18:35:08]ProducePacketName [18:35:08]name=ofd_packets/00015762 [18:35:08]NVStorageSaveData ofd_packets/00015762 [18:35:08]File name is /storage/ofd_packets/00015762 [18:35:08]Write 299 bytes [18:35:08]NVStorageSaveData done [18:35:08]OFDSenderStorePacket done [18:35:08]KKMCreateOFDPacket done [18:35:08]NVStorageSaveData kkm_last_timestamp [18:35:08]File name is /storage/kkm_last_timestamp [18:35:08]Write 4 bytes [18:35:08]NVStorageSaveData done [18:35:08]ExternCall_PrintAddStr [18:35:08]wPrintStart [18:35:08]Write to MH i2c: 01 00 00 A2 55 F7 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 07 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: 01 07 00 A2 55 00 00 00 00 00 FF 0F 0C [18:35:08]RasterBufferAndPrint [18:35:08]line Счет N : (1)16313 [18:35:08]line ИНН: 02508201610067 [18:35:08]line Контрольно-Кассовый Чек [18:35:08]line ПРОДАЖА [18:35:08]line ТРК (МРК, ГНК) : 12 [18:35:08]line Товар: 50.50.0 [18:35:08]line SUPER 92-К-5 [18:35:08]line 7.310 * 68.40 [18:35:08]line = 500.00 [18:35:08]line НДС 12% НСП 1% [18:35:08]line > о реализуемом товаре [18:35:08]line ИТОГО: 500.00 [18:35:08]line НСП 1% : 4.42 [18:35:08]line НДС 12% : 53.10 [18:35:08]line Наличными: 500.00 [18:35:08]line Безнал.: 0.00 [18:35:08]line Место: АЗС № 178 "Партнер Нефть" [18:35:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:35:08]line СНО: Общий режим [18:35:08]line Чек 108 29.10.2024 18:35 [18:35:08]line Смена: 172 ФФД: 1.0 [18:35:08]line ЗНМ: 0300000014 [18:35:08]line РНМ: 0000000000161798 [18:35:08]line Версия ККМ: v1.0 [18:35:08]line ФМ: 0000000000963325 [18:35:08]line ФД: 15762 [18:35:08]line ФПД: 111959201669848 [18:35:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T183519&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15762&fm=111959201669848&tin=02508201610067®Number=0000000000161798&sum=50000 [18:35:09]OFD Sender: Processing packet 15762 [packets to send 4, broken 3] [18:35:09]ProducePacketName [18:35:09]name=ofd_packets/00015762 [18:35:09]OFD Sender: To server: pG, [18:35:09]CommunicateWithHost lk.salyk.kg:30040 [18:35:09]ConnectInit lk.salyk.kg [18:35:09]written 0, free lines is 4095 [18:35:09]Connected sock=10 [18:35:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 90 6F 05 01 06 EB 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 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 E7 2A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 92 3D 00 00 35 04 06 00 65 D3 88 71 E2 D8 AF 16 CB E4 99 C3 F2 1F [18:35:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 F0 AD 47 00 57 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 92 3D 00 00 F4 03 04 00 D3 D5 20 67 B6 04 01 00 00 C4 E3 BE 34 BA 46 CF 3E [18:35:09]CommunicateWithHost err = 0 [18:35:09]CheckOFDResponse [18:35:09]1017 (14) - 77093643461234 [18:35:09]1041 (16) - 0000000000963325 [18:35:09]1040 (4) - 15762 [18:35:09]1012 (4) - 29.10.2024 12:32 [18:35:09]1206 (1) - 0 [18:35:09]OFD Sender: Remove packet 15762 [18:35:09]ProducePacketName [18:35:09]name=ofd_packets/00015762 [18:35:09]NVStorageDeleteData [18:35:09]Write to MH i2c: 01 00 00 CA 55 1F [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 07 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: 01 07 00 CA 55 00 00 00 00 00 14 0D 47 [18:35:09]RasterBufferAndPrint [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]line [18:35:09]written 0, free lines is 3356 [18:35:09]MH_Cut [18:35:09]Write to MH i2c: D1 01 00 D1 55 01 F8 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 01 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: D1 01 00 D1 55 00 F7 [18:35:09]Write to MH i2c: 01 00 00 D2 55 27 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]OFD Sender: No OFD packet to send [18:35:10]*** Cut start [18:35:10]*** Partial cut [18:35:10]*** CUTSNS_PIN = 1 [18:35:10]*** CUTSNS_PIN = 0 [18:35:10]*** Brake cut motor [18:35:10]Read from MH i2c: 01 [18:35:10]MH_I2C_Read... [18:35:10]*** Stop cut motor [18:35:10]*** Cut end [18:35:10]Read from MH i2c: 01 07 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: 01 07 00 D2 55 00 00 00 00 00 FF 0F 3C [18:35:10]process_action close_receipt done [18:35:10]requested_data is exist [18:35:10]produce_requested_data [18:35:10]requested_item fm.sn is exist - process it [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 11 00 00 [18:35:10]Write to MH i2c: E2 08 00 D3 55 80 11 00 00 00 00 00 00 A2 [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 D3 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F1 [18:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:35:10]wFMCommunicate OK [18:35:10]requested_item fd.num is exist - process it [18:35:10]SAM_PROTO_GetFieldsCounters [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 13 00 00 [18:35:10]Write to MH i2c: E2 08 00 D4 55 80 13 00 00 00 00 00 00 A5 [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 62 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 62 00 D4 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 92 3D 00 00 0E 04 04 00 AC 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 88 [18:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 92 3D 00 00 0E 04 04 00 AC 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 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_GetFieldsCounters done [18:35:11]requested_item shift.num is exist - process it [18:35:11]requested_item shift.opened is exist - process it [18:35:11]req_shift_opened [18:35:11]FM_GetShiftState [18:35:11]SAM_PROTO_GetShiftState [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 13 01 00 [18:35:11]Write to MH i2c: E2 08 00 D5 55 80 13 01 00 00 00 00 00 A7 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 D5 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FC [18:35:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_GetShiftState done [18:35:11]FM_GetShiftState done [18:35:11]req_shift_opened done [18:35:11]requested_item shift.open_date is exist - process it [18:35:11]req_shift_open_date [18:35:11]req_shift_open_date done [18:35:11]produce_requested_data done [18:35:11]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15762,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:35:11]process_action_free close_receipt [18:35:11]json_value_free [18:35:11]json_value_free done [18:35:11]process_json_proto returns [18:35:11]Send response to host [18:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15762,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:35:11]free response buf [18:35:11]execute_script done [18:35:11]execute_script returns [18:35:11]free content buf [18:35:11]Sock 9.Close socket [18:35:11]Sock 9.Thread stoped [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [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:17]accept exits with 8 [18:42:17]New connection [18:42:17]New thread 3066588516 created [18:42:17]Thread 3066731876 joined [18:42:17]Waiting for new connection... [18:42:17] Sock 8.Parse request [18:42:17]Sock 8.Check first char [18:42:17]Sock 8.First char is OK [18:42:17]request: POST /json_proto HTTP/1.0 [18:42:17]Method: POST [18:42:17]URL: /json_proto [18:42:17]Method is POST - this is cgi request [18:42:17]url: /json_proto [18:42:17]query_string will be loaded in cgi processing [18:42:17]execute_cgi json_proto POST (null) [18:42:17]execute_cgi path=json_proto method=POST [18:42:17]POST find Content-Length [18:42:17]Host: 172.17.54.195:8080 [18:42:17]Content-Length: 676 [18:42:17]Content-Type: application/json [18:42:17] [18:42:17]POST finish read [18:42:17]Found Content-Length = 676 [18:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [18:42:17]execute_script... [18:42: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)16314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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" ] } } [18:42:17]POST & json_proto [18:42:17]process_json_proto [18:42:17]json parsed OK: [18:42:17]protocol is kg_v1.0 [18:42:17]action value=close_receipt [18:42:17]process_action close_receipt [18:42:17]cmd_close_receipt [18:42:17]MH_GetDate [18:42:17]Write to MH i2c: F0 00 00 D6 55 1A [18:42:17]Write i2c OK [18:42:17]MH_I2C_Read... [18:42:17]Read from MH i2c: F0 [18:42:17]MH_I2C_Read... [18:42:17]Read from MH i2c: F0 09 00 [18:42:17]MH_I2C_Read... [18:42:17]Read from MH i2c: F0 09 00 D6 55 00 96 2C 21 67 8D 90 A3 66 93 [18:42:17]GetLastDocTimeStamp 1730226919 [18:42:17]current date 1730227350 [18:42:17]FM_GetShiftState [18:42:17]SAM_PROTO_GetShiftState [18:42:17]wFMCommunicate request_size=4 [18:42:17]MH_SAM_APDU [18:42:17]CAPDU: 80 13 01 00 [18:42:17]Write to MH i2c: E2 08 00 D7 55 80 13 01 00 00 00 00 00 A9 [18:42:17]Write i2c OK [18:42:17]MH_I2C_Read... [18:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:17]Read from MH i2c: E2 [18:42:17]MH_I2C_Read... [18:42:17]Read from MH i2c: E2 0E 00 [18:42:17]MH_I2C_Read... [18:42:17]Read from MH i2c: E2 0E 00 D7 55 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FE [18:42:17]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:42:17]wFMCommunicate OK [18:42:17]SAM_PROTO_GetShiftState done [18:42:17]FM_GetShiftState done [18:42:17]opened in 1730161559 [18:42:17]opened+sec_in_day 1730247959 [18:42:17]quantity*price = 30038 [18:42:17]sum+1 = 30039 [18:42:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 109 29.10.2024 18:42 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15763 ФПД: 85270763911367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T184230&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15763&fm=85270763911367&tin=02508201610067®Number=0000000000161798&sum=30000 [18:42:18]StoreToDocumentArchive [18:42:18]shift 172 fd 15763 [18:42:18]save to /storage/0172/doc_00015763 [18:42:18]save last doc name /storage/0172/doc_00015763 to /storage/kkm_last_doc_name [18:42:18]save OK [18:42:18]Clear old archive folders... [18:42:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:18]tlvbuf is 00319C10 [18:42:18]SAM_PROTO_ClearQueue [18:42:18]wFMCommunicate request_size=4 [18:42:18]MH_SAM_APDU [18:42:18]CAPDU: 80 09 00 00 [18:42:18]Write to MH i2c: E2 08 00 E4 55 80 09 00 00 00 00 00 00 AB [18:42:18]Write i2c OK [18:42:18]MH_I2C_Read... [18:42:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:18]Read from MH i2c: E2 [18:42:18]MH_I2C_Read... [18:42:18]Read from MH i2c: E2 03 00 [18:42:18]MH_I2C_Read... [18:42:18]Read from MH i2c: E2 03 00 E4 55 00 90 00 AD [18:42:18]RAPDU: 90 00 [18:42:18]wFMCommunicate OK [18:42:18]SAM_PROTO_ClearQueue done [18:42:18]KKMCreateOFDPacket [18:42:18]OFDProtocolAddRootSTLVToBuf [18:42:18]FM_MakeSignedData [18:42:18]FM_MakeSignedData [18:42:18]SAM_PROTO_SignData [18:42:18]wFMCommunicate request_size=4 [18:42:18]MH_SAM_APDU [18:42:18]CAPDU: 80 0D 01 02 [18:42:18]Write to MH i2c: E2 08 00 E5 55 80 0D 01 02 00 00 00 00 B3 [18:42:18]Write i2c OK [18:42:18]MH_I2C_Read... [18:42:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:18]Read from MH i2c: E2 [18:42:18]MH_I2C_Read... [18:42:18]Read from MH i2c: E2 03 00 [18:42:18]MH_I2C_Read... [18:42:18]Read from MH i2c: E2 03 00 E5 55 00 90 00 AE [18:42:18]RAPDU: 90 00 [18:42:18]wFMCommunicate OK [18:42:18]wFMCommunicate request_size=255 [18:42:18]MH_SAM_APDU [18:42:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 96 2C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 93 3D 00 00 35 04 06 00 4D [18:42:18]Write to MH i2c: E2 02 01 E6 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 6D 00 00 00 F4 03 04 00 96 2C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 93 3D 00 00 35 04 06 00 4D 00 00 B9 [18:42:18]Write i2c OK [18:42:18]MH_I2C_Read... [18:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:19]Read from MH i2c: E2 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 03 00 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 03 00 E6 55 00 90 00 AF [18:42:19]RAPDU: 90 00 [18:42:19]wFMCommunicate OK [18:42:19]wFMCommunicate request_size=10 [18:42:19]MH_SAM_APDU [18:42:19]CAPDU: 80 0D 02 02 05 8D A5 97 B8 C7 [18:42:19]Write to MH i2c: E2 0D 00 E7 55 80 0D 02 02 05 00 8D A5 97 B8 C7 00 00 08 [18:42:19]Write i2c OK [18:42:19]MH_I2C_Read... [18:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:19]Read from MH i2c: E2 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 03 00 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 03 00 E7 55 00 90 00 B0 [18:42:19]RAPDU: 90 00 [18:42:19]wFMCommunicate OK [18:42:19]wFMCommunicate request_size=4 [18:42:19]MH_SAM_APDU [18:42:19]CAPDU: 80 0D 03 02 [18:42:19]Write to MH i2c: E2 08 00 E8 55 80 0D 03 02 00 00 00 00 B8 [18:42:19]Write i2c OK [18:42:19]MH_I2C_Read... [18:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:19]Read from MH i2c: E2 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 0B 00 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 0B 00 E8 55 00 D9 C3 68 E9 9B B5 80 66 90 00 DC [18:42:19]RAPDU: D9 C3 68 E9 9B B5 80 66 90 00 [18:42:19]wFMCommunicate OK [18:42:19]SAM_PROTO_SignData done [18:42:19]FM_MakeSignedData done [18:42:19]CreateOFDProtocolMessage [18:42:19]wFMCommunicate request_size=4 [18:42:19]MH_SAM_APDU [18:42:19]CAPDU: 80 11 00 00 [18:42:19]Write to MH i2c: E2 08 00 E9 55 80 11 00 00 00 00 00 00 B8 [18:42:19]Write i2c OK [18:42:19]MH_I2C_Read... [18:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:19]Read from MH i2c: E2 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 17 00 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: E2 17 00 E9 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 07 [18:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:42:19]wFMCommunicate OK [18:42:19]CreateOFDProtocolMessage done [18:42:19]OFDSenderStorePacket 15763 [18:42:19]StoreOFDPacket docnum=15763 [18:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B9 47 07 01 C2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 6D 00 00 00 F4 03 04 00 96 2C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 93 3D 00 00 35 04 06 00 4D 8D A5 97 B8 C7 D9 C3 68 E9 9B B5 80 66 [18:42:19]CheckFolder [18:42:19]dirname=/storage/ofd_packets [18:42:19]CheckFolder done [18:42:19]ProducePacketName [18:42:19]name=ofd_packets/00015763 [18:42:19]NVStorageSaveData ofd_packets/00015763 [18:42:19]File name is /storage/ofd_packets/00015763 [18:42:19]Write 301 bytes [18:42:19]NVStorageSaveData done [18:42:19]OFDSenderStorePacket done [18:42:19]KKMCreateOFDPacket done [18:42:19]NVStorageSaveData kkm_last_timestamp [18:42:19]File name is /storage/kkm_last_timestamp [18:42:19]Write 4 bytes [18:42:19]NVStorageSaveData done [18:42:19]ExternCall_PrintAddStr [18:42:19]wPrintStart [18:42:19]Write to MH i2c: 01 00 00 EA 55 3F [18:42:19]Write i2c OK [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: 01 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: 01 07 00 [18:42:19]MH_I2C_Read... [18:42:19]Read from MH i2c: 01 07 00 EA 55 00 00 00 00 00 FF 0F 54 [18:42:19]RasterBufferAndPrint [18:42:19]line Счет N : (1)16314 [18:42:19]line ИНН: 02508201610067 [18:42:19]line Контрольно-Кассовый Чек [18:42:19]line ПРОДАЖА [18:42:19]line ТРК (МРК, ГНК) : 21 [18:42:19]line Товар: 2710124130 [18:42:19]line Аи-92-К-5 [18:42:19]line 4.490 * 66.90 [18:42:19]line = 300.38 [18:42:19]line НДС 12% НСП 1% [18:42:19]line > о реализуемом товаре [18:42:19]line ОКРУГЛЕНИЕ: -0.38 [18:42:19]line ИТОГО: 300.00 [18:42:19]line Внесено: 300.00 [18:42:19]line СДАЧА: 0.00 [18:42:19]line НСП 1% : 2.66 [18:42:19]line НДС 12% : 31.90 [18:42:19]line Наличными: 300.00 [18:42:19]line Безнал.: 0.00 [18:42:19]line Место: АЗС № 178 "Партнер Нефть" [18:42:19]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:42:19]line СНО: Общий режим [18:42:19]line Чек 109 29.10.2024 18:42 [18:42:19]line Смена: 172 ФФД: 1.0 [18:42:19]line ЗНМ: 0300000014 [18:42:19]line РНМ: 0000000000161798 [18:42:19]line Версия ККМ: v1.0 [18:42:19]line ФМ: 0000000000963325 [18:42:19]line ФД: 15763 [18:42:19]line ФПД: 85270763911367 [18:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T184230&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15763&fm=85270763911367&tin=02508201610067®Number=0000000000161798&sum=30000 [18:42:19]OFD Sender: Processing packet 15763 [packets to send 4, broken 3] [18:42:19]ProducePacketName [18:42:19]name=ofd_packets/00015763 [18:42:19]OFD Sender: To server: pG, [18:42:19]CommunicateWithHost lk.salyk.kg:30040 [18:42:19]ConnectInit lk.salyk.kg [18:42:19]written 0, free lines is 4095 [18:42:19]Connected sock=10 [18:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 B9 47 07 01 C2 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 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 6D 00 00 00 F4 03 04 00 96 2C 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 93 3D 00 00 35 04 06 00 4D 8D A5 97 B8 C7 D9 C3 68 E9 9B B5 80 66 [18:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 47 58 47 00 8D 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 93 3D 00 00 F4 03 04 00 82 D7 20 67 B6 04 01 00 00 D4 A1 6D 3B C5 CE 5D CE [18:42:20]CommunicateWithHost err = 0 [18:42:20]CheckOFDResponse [18:42:20]1017 (14) - 77093643461234 [18:42:20]1041 (16) - 0000000000963325 [18:42:20]1040 (4) - 15763 [18:42:20]1012 (4) - 29.10.2024 12:39 [18:42:20]1206 (1) - 0 [18:42:20]OFD Sender: Remove packet 15763 [18:42:20]ProducePacketName [18:42:20]name=ofd_packets/00015763 [18:42:20]NVStorageDeleteData [18:42:20]Write to MH i2c: 01 00 00 15 56 6B [18:42:20]Write i2c OK [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: 01 [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: 01 07 00 [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: 01 07 00 15 56 00 00 00 00 00 01 0D 80 [18:42:20]RasterBufferAndPrint [18:42:20]line [18:42:20]line [18:42:20]line [18:42:20]line [18:42:20]line [18:42:20]written 0, free lines is 3335 [18:42:20]MH_Cut [18:42:20]Write to MH i2c: D1 01 00 1C 56 01 44 [18:42:20]Write i2c OK [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: D1 [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: D1 01 00 [18:42:20]MH_I2C_Read... [18:42:20]Read from MH i2c: D1 01 00 1C 56 00 43 [18:42:20]Write to MH i2c: 01 00 00 1D 56 73 [18:42:20]Write i2c OK [18:42:20]MH_I2C_Read... [18:42:20]OFD Sender: No OFD packet to send [18:42:20]*** Cut start [18:42:20]*** Partial cut [18:42:20]*** CUTSNS_PIN = 1 [18:42:20]*** CUTSNS_PIN = 0 [18:42:21]*** Brake cut motor [18:42:21]Read from MH i2c: 01 [18:42:21]MH_I2C_Read... [18:42:21]*** Stop cut motor [18:42:21]*** Cut end [18:42:21]Read from MH i2c: 01 07 00 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: 01 07 00 1D 56 00 00 00 00 00 FF 0F 88 [18:42:21]process_action close_receipt done [18:42:21]requested_data is exist [18:42:21]produce_requested_data [18:42:21]requested_item fm.sn is exist - process it [18:42:21]wFMCommunicate request_size=4 [18:42:21]MH_SAM_APDU [18:42:21]CAPDU: 80 11 00 00 [18:42:21]Write to MH i2c: E2 08 00 1E 56 80 11 00 00 00 00 00 00 EE [18:42:21]Write i2c OK [18:42:21]MH_I2C_Read... [18:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:21]Read from MH i2c: E2 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 17 00 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 17 00 1E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3D [18:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:42:21]wFMCommunicate OK [18:42:21]requested_item fd.num is exist - process it [18:42:21]SAM_PROTO_GetFieldsCounters [18:42:21]wFMCommunicate request_size=4 [18:42:21]MH_SAM_APDU [18:42:21]CAPDU: 80 13 00 00 [18:42:21]Write to MH i2c: E2 08 00 1F 56 80 13 00 00 00 00 00 00 F1 [18:42:21]Write i2c OK [18:42:21]MH_I2C_Read... [18:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:21]Read from MH i2c: E2 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 62 00 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 62 00 1F 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 93 3D 00 00 0E 04 04 00 AC 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 D8 [18:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 93 3D 00 00 0E 04 04 00 AC 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 [18:42:21]wFMCommunicate OK [18:42:21]SAM_PROTO_GetFieldsCounters done [18:42:21]requested_item shift.num is exist - process it [18:42:21]requested_item shift.opened is exist - process it [18:42:21]req_shift_opened [18:42:21]FM_GetShiftState [18:42:21]SAM_PROTO_GetShiftState [18:42:21]wFMCommunicate request_size=4 [18:42:21]MH_SAM_APDU [18:42:21]CAPDU: 80 13 01 00 [18:42:21]Write to MH i2c: E2 08 00 20 56 80 13 01 00 00 00 00 00 F3 [18:42:21]Write i2c OK [18:42:21]MH_I2C_Read... [18:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:21]Read from MH i2c: E2 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 0E 00 [18:42:21]MH_I2C_Read... [18:42:21]Read from MH i2c: E2 0E 00 20 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 48 [18:42:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:42:21]wFMCommunicate OK [18:42:21]SAM_PROTO_GetShiftState done [18:42:21]FM_GetShiftState done [18:42:21]req_shift_opened done [18:42:21]requested_item shift.open_date is exist - process it [18:42:21]req_shift_open_date [18:42:21]req_shift_open_date done [18:42:21]produce_requested_data done [18:42:21]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15763,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:42:21]process_action_free close_receipt [18:42:21]json_value_free [18:42:21]json_value_free done [18:42:21]process_json_proto returns [18:42:21]Send response to host [18:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15763,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:42:21]free response buf [18:42:21]execute_script done [18:42:21]execute_script returns [18:42:21]free content buf [18:42:21]Sock 8.Close socket [18:42:21]Sock 8.Thread stoped [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:16]accept exits with 9 [18:47:16]New connection [18:47:16]New thread 3066731876 created [18:47:16]Thread 3066588516 joined [18:47:16]Waiting for new connection... [18:47:16] Sock 9.Parse request [18:47:16]Sock 9.Check first char [18:47:16]Sock 9.First char is OK [18:47:16]request: POST /json_proto HTTP/1.0 [18:47:16]Method: POST [18:47:16]URL: /json_proto [18:47:16]Method is POST - this is cgi request [18:47:16]url: /json_proto [18:47:16]query_string will be loaded in cgi processing [18:47:16]execute_cgi json_proto POST (null) [18:47:16]execute_cgi path=json_proto method=POST [18:47:16]POST find Content-Length [18:47:16]Host: 172.17.54.195:8080 [18:47:16]Content-Length: 666 [18:47:16]Content-Type: application/json [18:47:16] [18:47:16]POST finish read [18:47:16]Found Content-Length = 666 [18:47:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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:47:16]execute_script... [18: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)16315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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:47:16]POST & json_proto [18:47:16]process_json_proto [18:47:16]json parsed OK: [18:47:16]protocol is kg_v1.0 [18:47:16]action value=close_receipt [18:47:16]process_action close_receipt [18:47:16]cmd_close_receipt [18:47:16]MH_GetDate [18:47:16]Write to MH i2c: F0 00 00 21 56 66 [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 09 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: F0 09 00 21 56 00 C1 2D 21 67 8D 90 A3 66 0B [18:47:16]GetLastDocTimeStamp 1730227350 [18:47:16]current date 1730227649 [18:47:16]FM_GetShiftState [18:47:16]SAM_PROTO_GetShiftState [18:47:16]wFMCommunicate request_size=4 [18:47:16]MH_SAM_APDU [18:47:16]CAPDU: 80 13 01 00 [18:47:16]Write to MH i2c: E2 08 00 22 56 80 13 01 00 00 00 00 00 F5 [18:47:16]Write i2c OK [18:47:16]MH_I2C_Read... [18:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:16]Read from MH i2c: E2 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: E2 0E 00 [18:47:16]MH_I2C_Read... [18:47:16]Read from MH i2c: E2 0E 00 22 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4A [18:47:16]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:47:16]wFMCommunicate OK [18:47:16]SAM_PROTO_GetShiftState done [18:47:16]FM_GetShiftState done [18:47:16]opened in 1730161559 [18:47:16]opened+sec_in_day 1730247959 [18:47:16]quantity*price = 40014 [18:47:16]sum+1 = 40015 [18:47:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 110 29.10.2024 18:47 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15764 ФПД: 270956865776354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T184729&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15764&fm=270956865776354&tin=02508201610067®Number=0000000000161798&sum=40000 [18:47:18]StoreToDocumentArchive [18:47:18]shift 172 fd 15764 [18:47:18]save to /storage/0172/doc_00015764 [18:47:18]save last doc name /storage/0172/doc_00015764 to /storage/kkm_last_doc_name [18:47:18]save OK [18:47:18]Clear old archive folders... [18:47:18]ProcessDocumentItem done err = 0, tmpTLVsize=249 [18:47:18]tlvbuf is 0031F840 [18:47:18]SAM_PROTO_ClearQueue [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 09 00 00 [18:47:18]Write to MH i2c: E2 08 00 2F 56 80 09 00 00 00 00 00 00 F7 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 2F 56 00 90 00 F9 [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_ClearQueue done [18:47:18]KKMCreateOFDPacket [18:47:18]OFDProtocolAddRootSTLVToBuf [18:47:18]FM_MakeSignedData [18:47:18]FM_MakeSignedData [18:47:18]SAM_PROTO_SignData [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 01 02 [18:47:18]Write to MH i2c: E2 08 00 30 56 80 0D 01 02 00 00 00 00 FF [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 30 56 00 90 00 FA [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=255 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 C1 2D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 94 3D 00 00 35 04 06 00 F6 6F 0F [18:47:18]Write to MH i2c: E2 02 01 31 56 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 C1 2D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 94 3D 00 00 35 04 06 00 F6 6F 0F 00 00 46 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 31 56 00 90 00 FB [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=8 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 02 02 03 BB EA E2 [18:47:18]Write to MH i2c: E2 0B 00 32 56 80 0D 02 02 03 00 BB EA E2 00 00 8F [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:18]Read from MH i2c: E2 03 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 03 00 32 56 00 90 00 FC [18:47:18]RAPDU: 90 00 [18:47:18]wFMCommunicate OK [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 0D 03 02 [18:47:18]Write to MH i2c: E2 08 00 33 56 80 0D 03 02 00 00 00 00 04 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0B 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 0B 00 33 56 00 E2 CF 83 E0 FE A7 10 2D 90 00 FB [18:47:18]RAPDU: E2 CF 83 E0 FE A7 10 2D 90 00 [18:47:18]wFMCommunicate OK [18:47:18]SAM_PROTO_SignData done [18:47:18]FM_MakeSignedData done [18:47:18]CreateOFDProtocolMessage [18:47:18]wFMCommunicate request_size=4 [18:47:18]MH_SAM_APDU [18:47:18]CAPDU: 80 11 00 00 [18:47:18]Write to MH i2c: E2 08 00 34 56 80 11 00 00 00 00 00 00 04 [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:18]Read from MH i2c: E2 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: E2 17 00 34 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 53 [18:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:47:18]wFMCommunicate OK [18:47:18]CreateOFDProtocolMessage done [18:47:18]OFDSenderStorePacket 15764 [18:47:18]StoreOFDPacket docnum=15764 [18:47:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FF 81 05 01 93 FF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 C1 2D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 94 3D 00 00 35 04 06 00 F6 6F 0F BB EA E2 E2 CF 83 E0 FE A7 10 2D [18:47:18]CheckFolder [18:47:18]dirname=/storage/ofd_packets [18:47:18]CheckFolder done [18:47:18]ProducePacketName [18:47:18]name=ofd_packets/00015764 [18:47:18]NVStorageSaveData ofd_packets/00015764 [18:47:18]File name is /storage/ofd_packets/00015764 [18:47:18]Write 299 bytes [18:47:18]NVStorageSaveData done [18:47:18]OFDSenderStorePacket done [18:47:18]KKMCreateOFDPacket done [18:47:18]NVStorageSaveData kkm_last_timestamp [18:47:18]File name is /storage/kkm_last_timestamp [18:47:18]Write 4 bytes [18:47:18]NVStorageSaveData done [18:47:18]ExternCall_PrintAddStr [18:47:18]wPrintStart [18:47:18]Write to MH i2c: 01 00 00 35 56 8B [18:47:18]Write i2c OK [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 07 00 [18:47:18]MH_I2C_Read... [18:47:18]Read from MH i2c: 01 07 00 35 56 00 00 00 00 00 FF 0F A0 [18:47:18]RasterBufferAndPrint [18:47:18]line Счет N : (1)16315 [18:47:18]line ИНН: 02508201610067 [18:47:18]line Контрольно-Кассовый Чек [18:47:18]line ПРОДАЖА [18:47:18]line ТРК (МРК, ГНК) : 12 [18:47:18]line Товар: 50.50.0 [18:47:18]line SUPER 92-К-5 [18:47:18]line 5.850 * 68.40 [18:47:18]line = 400.14 [18:47:18]line НДС 12% НСП 1% [18:47:18]line > о реализуемом товаре [18:47:18]line ОКРУГЛЕНИЕ: -0.14 [18:47:18]line ИТОГО: 400.00 [18:47:18]line Внесено: 400.00 [18:47:18]line СДАЧА: 0.00 [18:47:18]line НСП 1% : 3.54 [18:47:18]line НДС 12% : 42.49 [18:47:18]line Наличными: 400.00 [18:47:18]line Безнал.: 0.00 [18:47:18]line Место: АЗС № 178 "Партнер Нефть" [18:47:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:47:18]line СНО: Общий режим [18:47:18]line Чек 110 29.10.2024 18:47 [18:47:18]line Смена: 172 ФФД: 1.0 [18:47:18]line ЗНМ: 0300000014 [18:47:18]line РНМ: 0000000000161798 [18:47:18]line Версия ККМ: v1.0 [18:47:18]line ФМ: 0000000000963325 [18:47:18]line ФД: 15764 [18:47:18]line ФПД: 270956865776354 [18:47:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T184729&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15764&fm=270956865776354&tin=02508201610067®Number=0000000000161798&sum=40000 [18:47:18]OFD Sender: Processing packet 15764 [packets to send 4, broken 3] [18:47:18]ProducePacketName [18:47:18]name=ofd_packets/00015764 [18:47:18]OFD Sender: To server: pG, [18:47:18]CommunicateWithHost lk.salyk.kg:30040 [18:47:18]ConnectInit lk.salyk.kg [18:47:18]written 0, free lines is 4095 [18:47:19]Connected sock=8 [18:47:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FF 81 05 01 93 FF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 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 6E 00 00 00 F4 03 04 00 C1 2D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 94 3D 00 00 35 04 06 00 F6 6F 0F BB EA E2 E2 CF 83 E0 FE A7 10 2D [18:47:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 DD 68 47 00 C5 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 94 3D 00 00 F4 03 04 00 AD D8 20 67 B6 04 01 00 00 55 40 BE D6 8D CC 3E 50 [18:47:19]CommunicateWithHost err = 0 [18:47:19]CheckOFDResponse [18:47:19]1017 (14) - 77093643461234 [18:47:19]1041 (16) - 0000000000963325 [18:47:19]1040 (4) - 15764 [18:47:19]1012 (4) - 29.10.2024 12:44 [18:47:19]1206 (1) - 0 [18:47:19]OFD Sender: Remove packet 15764 [18:47:19]ProducePacketName [18:47:19]name=ofd_packets/00015764 [18:47:19]NVStorageDeleteData [18:47:19]Write to MH i2c: 01 00 00 60 56 B6 [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: 01 07 00 60 56 00 00 00 00 00 EB 0C B4 [18:47:19]RasterBufferAndPrint [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]line [18:47:19]written 0, free lines is 3314 [18:47:19]MH_Cut [18:47:19]Write to MH i2c: D1 01 00 67 56 01 8F [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 [18:47:19]MH_I2C_Read... [18:47:19]Read from MH i2c: D1 01 00 67 56 00 8E [18:47:19]Write to MH i2c: 01 00 00 68 56 BE [18:47:19]Write i2c OK [18:47:19]MH_I2C_Read... [18:47:19]OFD Sender: No OFD packet to send [18:47:20]*** Cut start [18:47:20]*** Partial cut [18:47:20]*** CUTSNS_PIN = 1 [18:47:20]*** CUTSNS_PIN = 0 [18:47:20]*** Brake cut motor [18:47:20]Read from MH i2c: 01 [18:47:20]MH_I2C_Read... [18:47:20]*** Stop cut motor [18:47:20]*** Cut end [18:47:20]Read from MH i2c: 01 07 00 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: 01 07 00 68 56 00 00 00 00 00 FF 0F D3 [18:47:20]process_action close_receipt done [18:47:20]requested_data is exist [18:47:20]produce_requested_data [18:47:20]requested_item fm.sn is exist - process it [18:47:20]wFMCommunicate request_size=4 [18:47:20]MH_SAM_APDU [18:47:20]CAPDU: 80 11 00 00 [18:47:20]Write to MH i2c: E2 08 00 69 56 80 11 00 00 00 00 00 00 39 [18:47:20]Write i2c OK [18:47:20]MH_I2C_Read... [18:47:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:20]Read from MH i2c: E2 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: E2 17 00 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: E2 17 00 69 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 88 [18:47:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:47:20]wFMCommunicate OK [18:47:20]requested_item fd.num is exist - process it [18:47:20]SAM_PROTO_GetFieldsCounters [18:47:20]wFMCommunicate request_size=4 [18:47:20]MH_SAM_APDU [18:47:20]CAPDU: 80 13 00 00 [18:47:20]Write to MH i2c: E2 08 00 6A 56 80 13 00 00 00 00 00 00 3C [18:47:20]Write i2c OK [18:47:20]MH_I2C_Read... [18:47:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:20]Read from MH i2c: E2 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: E2 62 00 [18:47:20]MH_I2C_Read... [18:47:20]Read from MH i2c: E2 62 00 6A 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 94 3D 00 00 0E 04 04 00 AC 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 27 [18:47:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 94 3D 00 00 0E 04 04 00 AC 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 [18:47:20]wFMCommunicate OK [18:47:20]SAM_PROTO_GetFieldsCounters done [18:47:20]requested_item shift.num is exist - process it [18:47:20]requested_item shift.opened is exist - process it [18:47:20]req_shift_opened [18:47:21]FM_GetShiftState [18:47:21]SAM_PROTO_GetShiftState [18:47:21]wFMCommunicate request_size=4 [18:47:21]MH_SAM_APDU [18:47:21]CAPDU: 80 13 01 00 [18:47:21]Write to MH i2c: E2 08 00 6B 56 80 13 01 00 00 00 00 00 3E [18:47:21]Write i2c OK [18:47:21]MH_I2C_Read... [18:47:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:21]Read from MH i2c: E2 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 [18:47:21]MH_I2C_Read... [18:47:21]Read from MH i2c: E2 0E 00 6B 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 93 [18:47:21]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:47:21]wFMCommunicate OK [18:47:21]SAM_PROTO_GetShiftState done [18:47:21]FM_GetShiftState done [18:47:21]req_shift_opened done [18:47:21]requested_item shift.open_date is exist - process it [18:47:21]req_shift_open_date [18:47:21]req_shift_open_date done [18:47:21]produce_requested_data done [18:47:21]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15764,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:47:21]process_action_free close_receipt [18:47:21]json_value_free [18:47:21]json_value_free done [18:47:21]process_json_proto returns [18:47:21]Send response to host [18:47:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15764,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:47:21]free response buf [18:47:21]execute_script done [18:47:21]execute_script returns [18:47:21]free content buf [18:47:21]Sock 9.Close socket [18:47:21]Sock 9.Thread stoped [18:47:24]OFD Sender: No OFD packet to send [18:47:29]OFD Sender: No OFD packet to send [18:47:34]OFD Sender: No OFD packet to send [18:47:39]OFD Sender: No OFD packet to send [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:33]accept exits with 10 [18:51:33]New connection [18:51:33]New thread 3066588516 created [18:51:33]Thread 3066731876 joined [18:51:33]Waiting for new connection... [18:51:33] Sock 10.Parse request [18:51:33]Sock 10.Check first char [18:51:33]Sock 10.First char is OK [18:51:33]request: POST /json_proto HTTP/1.0 [18:51:33]Method: POST [18:51:33]URL: /json_proto [18:51:33]Method is POST - this is cgi request [18:51:33]url: /json_proto [18:51:33]query_string will be loaded in cgi processing [18:51:33]execute_cgi json_proto POST (null) [18:51:33]execute_cgi path=json_proto method=POST [18:51:33]POST find Content-Length [18:51:33]Host: 172.17.54.195:8080 [18:51:33]Content-Length: 684 [18:51:33]Content-Type: application/json [18:51:33] [18:51:33]POST finish read [18:51:33]Found Content-Length = 684 [18:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:51:33]execute_script... [18:51: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)16316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "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:51:33]POST & json_proto [18:51:33]process_json_proto [18:51:33]json parsed OK: [18:51:33]protocol is kg_v1.0 [18:51:33]action value=close_receipt [18:51:33]process_action close_receipt [18:51:33]cmd_close_receipt [18:51:33]MH_GetDate [18:51:33]Write to MH i2c: F0 00 00 6C 56 B1 [18:51:33]Write i2c OK [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: F0 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: F0 09 00 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: F0 09 00 6C 56 00 C2 2E 21 67 8D 90 A3 66 58 [18:51:33]GetLastDocTimeStamp 1730227649 [18:51:33]current date 1730227906 [18:51:33]FM_GetShiftState [18:51:33]SAM_PROTO_GetShiftState [18:51:33]wFMCommunicate request_size=4 [18:51:33]MH_SAM_APDU [18:51:33]CAPDU: 80 13 01 00 [18:51:33]Write to MH i2c: E2 08 00 6D 56 80 13 01 00 00 00 00 00 40 [18:51:33]Write i2c OK [18:51:33]MH_I2C_Read... [18:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:33]Read from MH i2c: E2 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: E2 0E 00 [18:51:33]MH_I2C_Read... [18:51:33]Read from MH i2c: E2 0E 00 6D 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 95 [18:51:33]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:51:33]wFMCommunicate OK [18:51:33]SAM_PROTO_GetShiftState done [18:51:33]FM_GetShiftState done [18:51:33]opened in 1730161559 [18:51:33]opened+sec_in_day 1730247959 [18:51:33]quantity*price = 100011 [18:51:33]sum+1 = 100013 [18:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 111 29.10.2024 18:51 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15765 ФПД: 35956082703504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T185146&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15765&fm=35956082703504&tin=02508201610067®Number=0000000000161798&sum=100000 [18:51:34]StoreToDocumentArchive [18:51:34]shift 172 fd 15765 [18:51:34]save to /storage/0172/doc_00015765 [18:51:34]save last doc name /storage/0172/doc_00015765 to /storage/kkm_last_doc_name [18:51:34]save OK [18:51:34]Clear old archive folders... [18:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:51:34]tlvbuf is 00310010 [18:51:34]SAM_PROTO_ClearQueue [18:51:34]wFMCommunicate request_size=4 [18:51:34]MH_SAM_APDU [18:51:34]CAPDU: 80 09 00 00 [18:51:34]Write to MH i2c: E2 08 00 7A 56 80 09 00 00 00 00 00 00 42 [18:51:34]Write i2c OK [18:51:34]MH_I2C_Read... [18:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:34]Read from MH i2c: E2 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 03 00 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 03 00 7A 56 00 90 00 44 [18:51:34]RAPDU: 90 00 [18:51:34]wFMCommunicate OK [18:51:34]SAM_PROTO_ClearQueue done [18:51:34]KKMCreateOFDPacket [18:51:34]OFDProtocolAddRootSTLVToBuf [18:51:34]FM_MakeSignedData [18:51:34]FM_MakeSignedData [18:51:34]SAM_PROTO_SignData [18:51:34]wFMCommunicate request_size=4 [18:51:34]MH_SAM_APDU [18:51:34]CAPDU: 80 0D 01 02 [18:51:34]Write to MH i2c: E2 08 00 7B 56 80 0D 01 02 00 00 00 00 4A [18:51:34]Write i2c OK [18:51:34]MH_I2C_Read... [18:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:34]Read from MH i2c: E2 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 03 00 [18:51:34]MH_I2C_Read... [18:51:34]Read from MH i2c: E2 03 00 7B 56 00 90 00 45 [18:51:34]RAPDU: 90 00 [18:51:34]wFMCommunicate OK [18:51:34]wFMCommunicate request_size=255 [18:51:34]MH_SAM_APDU [18:51:34]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 C2 2E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 95 3D 00 00 35 04 06 00 20 B3 [18:51:34]Write to MH i2c: E2 02 01 7C 56 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 C2 2E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 95 3D 00 00 35 04 06 00 20 B3 00 00 E8 [18:51:34]Write i2c OK [18:51:34]MH_I2C_Read... [18:51:34]OFD Sender: No OFD packet to send [18:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:35]Read from MH i2c: E2 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 03 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 03 00 7C 56 00 90 00 46 [18:51:35]RAPDU: 90 00 [18:51:35]wFMCommunicate OK [18:51:35]wFMCommunicate request_size=9 [18:51:35]MH_SAM_APDU [18:51:35]CAPDU: 80 0D 02 02 04 AD 89 7C 90 [18:51:35]Write to MH i2c: E2 0C 00 7D 56 80 0D 02 02 04 00 AD 89 7C 90 00 00 97 [18:51:35]Write i2c OK [18:51:35]MH_I2C_Read... [18:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:35]Read from MH i2c: E2 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 03 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 03 00 7D 56 00 90 00 47 [18:51:35]RAPDU: 90 00 [18:51:35]wFMCommunicate OK [18:51:35]wFMCommunicate request_size=4 [18:51:35]MH_SAM_APDU [18:51:35]CAPDU: 80 0D 03 02 [18:51:35]Write to MH i2c: E2 08 00 7E 56 80 0D 03 02 00 00 00 00 4F [18:51:35]Write i2c OK [18:51:35]MH_I2C_Read... [18:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:35]Read from MH i2c: E2 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 0B 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 0B 00 7E 56 00 37 5C E0 6D 93 D7 B4 9D 90 00 EB [18:51:35]RAPDU: 37 5C E0 6D 93 D7 B4 9D 90 00 [18:51:35]wFMCommunicate OK [18:51:35]SAM_PROTO_SignData done [18:51:35]FM_MakeSignedData done [18:51:35]CreateOFDProtocolMessage [18:51:35]wFMCommunicate request_size=4 [18:51:35]MH_SAM_APDU [18:51:35]CAPDU: 80 11 00 00 [18:51:35]Write to MH i2c: E2 08 00 7F 56 80 11 00 00 00 00 00 00 4F [18:51:35]Write i2c OK [18:51:35]MH_I2C_Read... [18:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:35]Read from MH i2c: E2 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 17 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: E2 17 00 7F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9E [18:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:51:35]wFMCommunicate OK [18:51:35]CreateOFDProtocolMessage done [18:51:35]OFDSenderStorePacket 15765 [18:51:35]StoreOFDPacket docnum=15765 [18:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 AC AA 06 01 21 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 C2 2E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 95 3D 00 00 35 04 06 00 20 B3 AD 89 7C 90 37 5C E0 6D 93 D7 B4 9D [18:51:35]CheckFolder [18:51:35]dirname=/storage/ofd_packets [18:51:35]CheckFolder done [18:51:35]ProducePacketName [18:51:35]name=ofd_packets/00015765 [18:51:35]NVStorageSaveData ofd_packets/00015765 [18:51:35]File name is /storage/ofd_packets/00015765 [18:51:35]Write 300 bytes [18:51:35]NVStorageSaveData done [18:51:35]OFDSenderStorePacket done [18:51:35]KKMCreateOFDPacket done [18:51:35]NVStorageSaveData kkm_last_timestamp [18:51:35]File name is /storage/kkm_last_timestamp [18:51:35]Write 4 bytes [18:51:35]NVStorageSaveData done [18:51:35]ExternCall_PrintAddStr [18:51:35]wPrintStart [18:51:35]Write to MH i2c: 01 00 00 80 56 D6 [18:51:35]Write i2c OK [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 07 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 07 00 80 56 00 00 00 00 00 FF 0F EB [18:51:35]RasterBufferAndPrint [18:51:35]line Счет N : (1)16316 [18:51:35]line ИНН: 02508201610067 [18:51:35]line Контрольно-Кассовый Чек [18:51:35]line ПРОДАЖА [18:51:35]line ТРК (МРК, ГНК) : 41 [18:51:35]line Товар: 2711190000 [18:51:35]line ГАЗ-К-5 [18:51:35]line 25.710 * 38.90 [18:51:35]line = 1000.12 [18:51:35]line НДС 12% НСП 1% [18:51:35]line > о реализуемом товаре [18:51:35]line ОКРУГЛЕНИЕ: -0.12 [18:51:35]line ИТОГО: 1000.00 [18:51:35]line Внесено: 1000.00 [18:51:35]line СДАЧА: 0.00 [18:51:35]line НСП 1% : 8.85 [18:51:35]line НДС 12% : 106.21 [18:51:35]line Наличными: 1000.00 [18:51:35]line Безнал.: 0.00 [18:51:35]line Место: АЗС № 178 "Партнер Нефть" [18:51:35]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:51:35]line СНО: Общий режим [18:51:35]line Чек 111 29.10.2024 18:51 [18:51:35]line Смена: 172 ФФД: 1.0 [18:51:35]line ЗНМ: 0300000014 [18:51:35]line РНМ: 0000000000161798 [18:51:35]line Версия ККМ: v1.0 [18:51:35]line ФМ: 0000000000963325 [18:51:35]line ФД: 15765 [18:51:35]line ФПД: 35956082703504 [18:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T185146&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15765&fm=35956082703504&tin=02508201610067®Number=0000000000161798&sum=100000 [18:51:35]OFD Sender: Processing packet 15765 [packets to send 4, broken 3] [18:51:35]ProducePacketName [18:51:35]name=ofd_packets/00015765 [18:51:35]OFD Sender: To server: pG, [18:51:35]CommunicateWithHost lk.salyk.kg:30040 [18:51:35]ConnectInit lk.salyk.kg [18:51:35]written 0, free lines is 4095 [18:51:35]Connected sock=9 [18:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 AC AA 06 01 21 10 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 C2 2E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 95 3D 00 00 35 04 06 00 20 B3 AD 89 7C 90 37 5C E0 6D 93 D7 B4 9D [18:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 EE 9B 47 00 72 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 95 3D 00 00 F4 03 04 00 AE D9 20 67 B6 04 01 00 00 CE 63 9C D7 55 33 B2 FA [18:51:35]CommunicateWithHost err = 0 [18:51:35]CheckOFDResponse [18:51:35]1017 (14) - 77093643461234 [18:51:35]1041 (16) - 0000000000963325 [18:51:35]1040 (4) - 15765 [18:51:35]1012 (4) - 29.10.2024 12:48 [18:51:35]1206 (1) - 0 [18:51:35]OFD Sender: Remove packet 15765 [18:51:35]ProducePacketName [18:51:35]name=ofd_packets/00015765 [18:51:35]NVStorageDeleteData [18:51:35]Write to MH i2c: 01 00 00 AB 56 01 [18:51:35]Write i2c OK [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 07 00 [18:51:35]MH_I2C_Read... [18:51:35]Read from MH i2c: 01 07 00 AB 56 00 00 00 00 00 EF 0C 03 [18:51:35]RasterBufferAndPrint [18:51:35]line [18:51:35]line [18:51:35]line [18:51:35]line [18:51:35]line [18:51:35]written 0, free lines is 3317 [18:51:36]MH_Cut [18:51:36]Write to MH i2c: D1 01 00 B2 56 01 DA [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D1 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D1 01 00 [18:51:36]MH_I2C_Read... [18:51:36]Read from MH i2c: D1 01 00 B2 56 00 D9 [18:51:36]Write to MH i2c: 01 00 00 B3 56 09 [18:51:36]Write i2c OK [18:51:36]MH_I2C_Read... [18:51:36]OFD Sender: No OFD packet to send [18:51:36]*** Cut start [18:51:36]*** Partial cut [18:51:36]*** CUTSNS_PIN = 1 [18:51:36]*** CUTSNS_PIN = 0 [18:51:37]*** Brake cut motor [18:51:37]Read from MH i2c: 01 [18:51:37]MH_I2C_Read... [18:51:37]*** Stop cut motor [18:51:37]*** Cut end [18:51:37]Read from MH i2c: 01 07 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: 01 07 00 B3 56 00 00 00 00 00 FF 0F 1E [18:51:37]process_action close_receipt done [18:51:37]requested_data is exist [18:51:37]produce_requested_data [18:51:37]requested_item fm.sn is exist - process it [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 11 00 00 [18:51:37]Write to MH i2c: E2 08 00 B4 56 80 11 00 00 00 00 00 00 84 [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 17 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 17 00 B4 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D3 [18:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:51:37]wFMCommunicate OK [18:51:37]requested_item fd.num is exist - process it [18:51:37]SAM_PROTO_GetFieldsCounters [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 13 00 00 [18:51:37]Write to MH i2c: E2 08 00 B5 56 80 13 00 00 00 00 00 00 87 [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 62 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 62 00 B5 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 95 3D 00 00 0E 04 04 00 AC 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 76 [18:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 95 3D 00 00 0E 04 04 00 AC 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 [18:51:37]wFMCommunicate OK [18:51:37]SAM_PROTO_GetFieldsCounters done [18:51:37]requested_item shift.num is exist - process it [18:51:37]requested_item shift.opened is exist - process it [18:51:37]req_shift_opened [18:51:37]FM_GetShiftState [18:51:37]SAM_PROTO_GetShiftState [18:51:37]wFMCommunicate request_size=4 [18:51:37]MH_SAM_APDU [18:51:37]CAPDU: 80 13 01 00 [18:51:37]Write to MH i2c: E2 08 00 B6 56 80 13 01 00 00 00 00 00 89 [18:51:37]Write i2c OK [18:51:37]MH_I2C_Read... [18:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:37]Read from MH i2c: E2 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 0E 00 [18:51:37]MH_I2C_Read... [18:51:37]Read from MH i2c: E2 0E 00 B6 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 DE [18:51:37]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:51:37]wFMCommunicate OK [18:51:37]SAM_PROTO_GetShiftState done [18:51:37]FM_GetShiftState done [18:51:37]req_shift_opened done [18:51:37]requested_item shift.open_date is exist - process it [18:51:37]req_shift_open_date [18:51:37]req_shift_open_date done [18:51:37]produce_requested_data done [18:51:37]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15765,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:51:37]process_action_free close_receipt [18:51:37]json_value_free [18:51:37]json_value_free done [18:51:37]process_json_proto returns [18:51:37]Send response to host [18:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15765,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:51:37]free response buf [18:51:37]execute_script done [18:51:37]execute_script returns [18:51:37]free content buf [18:51:37]Sock 10.Close socket [18:51:37]Sock 10.Thread stoped [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:32]accept exits with 8 [18:59:32]New connection [18:59:32]New thread 3066731876 created [18:59:32]Thread 3066588516 joined [18:59:32]Waiting for new connection... [18:59:32] Sock 8.Parse request [18:59:32]Sock 8.Check first char [18:59:32]Sock 8.First char is OK [18:59:32]request: POST /json_proto HTTP/1.0 [18:59:32]Method: POST [18:59:32]URL: /json_proto [18:59:32]Method is POST - this is cgi request [18:59:32]url: /json_proto [18:59:32]query_string will be loaded in cgi processing [18:59:32]execute_cgi json_proto POST (null) [18:59:32]execute_cgi path=json_proto method=POST [18:59:32]POST find Content-Length [18:59:32]Host: 172.17.54.195:8080 [18:59:32]Content-Length: 676 [18:59:32]Content-Type: application/json [18:59:32] [18:59:32]POST finish read [18:59:32]Found Content-Length = 676 [18:59:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:59:32]execute_script... [18:59: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)16317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:59:32]POST & json_proto [18:59:32]process_json_proto [18:59:32]json parsed OK: [18:59:32]protocol is kg_v1.0 [18:59:32]action value=close_receipt [18:59:32]process_action close_receipt [18:59:32]cmd_close_receipt [18:59:32]MH_GetDate [18:59:32]Write to MH i2c: F0 00 00 B7 56 FC [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: F0 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: F0 09 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: F0 09 00 B7 56 00 A0 30 21 67 8D 90 A3 66 83 [18:59:32]GetLastDocTimeStamp 1730227906 [18:59:32]current date 1730228384 [18:59:32]FM_GetShiftState [18:59:32]SAM_PROTO_GetShiftState [18:59:32]wFMCommunicate request_size=4 [18:59:32]MH_SAM_APDU [18:59:32]CAPDU: 80 13 01 00 [18:59:32]Write to MH i2c: E2 08 00 B8 56 80 13 01 00 00 00 00 00 8B [18:59:32]Write i2c OK [18:59:32]MH_I2C_Read... [18:59:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:32]Read from MH i2c: E2 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0E 00 [18:59:32]MH_I2C_Read... [18:59:32]Read from MH i2c: E2 0E 00 B8 56 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E0 [18:59:32]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:59:32]wFMCommunicate OK [18:59:32]SAM_PROTO_GetShiftState done [18:59:32]FM_GetShiftState done [18:59:32]opened in 1730161559 [18:59:32]opened+sec_in_day 1730247959 [18:59:32]quantity*price = 20003 [18:59:32]sum+1 = 20004 [18:59:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 112 29.10.2024 18:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15766 ФПД: 187667258559387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T185944&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15766&fm=187667258559387&tin=02508201610067®Number=0000000000161798&sum=20000 [18:59:33]StoreToDocumentArchive [18:59:33]shift 172 fd 15766 [18:59:33]save to /storage/0172/doc_00015766 [18:59:33]save last doc name /storage/0172/doc_00015766 to /storage/kkm_last_doc_name [18:59:33]save OK [18:59:33]Clear old archive folders... [18:59:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:59:33]tlvbuf is 00378130 [18:59:33]SAM_PROTO_ClearQueue [18:59:33]wFMCommunicate request_size=4 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 09 00 00 [18:59:33]Write to MH i2c: E2 08 00 C5 56 80 09 00 00 00 00 00 00 8D [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 C5 56 00 90 00 8F [18:59:33]RAPDU: 90 00 [18:59:33]wFMCommunicate OK [18:59:33]SAM_PROTO_ClearQueue done [18:59:33]KKMCreateOFDPacket [18:59:33]OFDProtocolAddRootSTLVToBuf [18:59:33]FM_MakeSignedData [18:59:33]FM_MakeSignedData [18:59:33]SAM_PROTO_SignData [18:59:33]wFMCommunicate request_size=4 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 0D 01 02 [18:59:33]Write to MH i2c: E2 08 00 C6 56 80 0D 01 02 00 00 00 00 95 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 C6 56 00 90 00 90 [18:59:33]RAPDU: 90 00 [18:59:33]wFMCommunicate OK [18:59:33]wFMCommunicate request_size=255 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 A0 30 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 96 3D 00 00 35 04 06 00 AA [18:59:33]Write to MH i2c: E2 02 01 C7 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 A0 30 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 96 3D 00 00 35 04 06 00 AA 00 00 DA [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 C7 56 00 90 00 91 [18:59:33]RAPDU: 90 00 [18:59:33]wFMCommunicate OK [18:59:33]wFMCommunicate request_size=10 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 0D 02 02 05 AE B0 48 4B 9B [18:59:33]Write to MH i2c: E2 0D 00 C8 56 80 0D 02 02 05 00 AE B0 48 4B 9B 00 00 2E [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 03 00 C8 56 00 90 00 92 [18:59:33]RAPDU: 90 00 [18:59:33]wFMCommunicate OK [18:59:33]wFMCommunicate request_size=4 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 0D 03 02 [18:59:33]Write to MH i2c: E2 08 00 C9 56 80 0D 03 02 00 00 00 00 9A [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 0B 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 0B 00 C9 56 00 0F A6 C3 BD 30 DF 1A DE 90 00 D7 [18:59:33]RAPDU: 0F A6 C3 BD 30 DF 1A DE 90 00 [18:59:33]wFMCommunicate OK [18:59:33]SAM_PROTO_SignData done [18:59:33]FM_MakeSignedData done [18:59:33]CreateOFDProtocolMessage [18:59:33]wFMCommunicate request_size=4 [18:59:33]MH_SAM_APDU [18:59:33]CAPDU: 80 11 00 00 [18:59:33]Write to MH i2c: E2 08 00 CA 56 80 11 00 00 00 00 00 00 9A [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:33]Read from MH i2c: E2 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 17 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: E2 17 00 CA 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E9 [18:59:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:59:33]wFMCommunicate OK [18:59:33]CreateOFDProtocolMessage done [18:59:33]OFDSenderStorePacket 15766 [18:59:33]StoreOFDPacket docnum=15766 [18:59:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EC 33 07 01 1A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 A0 30 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 96 3D 00 00 35 04 06 00 AA AE B0 48 4B 9B 0F A6 C3 BD 30 DF 1A DE [18:59:33]CheckFolder [18:59:33]dirname=/storage/ofd_packets [18:59:33]CheckFolder done [18:59:33]ProducePacketName [18:59:33]name=ofd_packets/00015766 [18:59:33]NVStorageSaveData ofd_packets/00015766 [18:59:33]File name is /storage/ofd_packets/00015766 [18:59:33]Write 301 bytes [18:59:33]NVStorageSaveData done [18:59:33]OFDSenderStorePacket done [18:59:33]KKMCreateOFDPacket done [18:59:33]NVStorageSaveData kkm_last_timestamp [18:59:33]File name is /storage/kkm_last_timestamp [18:59:33]Write 4 bytes [18:59:33]NVStorageSaveData done [18:59:33]ExternCall_PrintAddStr [18:59:33]wPrintStart [18:59:33]Write to MH i2c: 01 00 00 CB 56 21 [18:59:33]Write i2c OK [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 [18:59:33]MH_I2C_Read... [18:59:33]Read from MH i2c: 01 07 00 CB 56 00 00 00 00 00 FF 0F 36 [18:59:33]RasterBufferAndPrint [18:59:33]line Счет N : (1)16317 [18:59:33]line ИНН: 02508201610067 [18:59:33]line Контрольно-Кассовый Чек [18:59:33]line ПРОДАЖА [18:59:33]line ТРК (МРК, ГНК) : 21 [18:59:33]line Товар: 2710124130 [18:59:33]line Аи-92-К-5 [18:59:33]line 2.990 * 66.90 [18:59:33]line = 200.03 [18:59:33]line НДС 12% НСП 1% [18:59:33]line > о реализуемом товаре [18:59:33]line ОКРУГЛЕНИЕ: -0.03 [18:59:33]line ИТОГО: 200.00 [18:59:33]line Внесено: 200.00 [18:59:33]line СДАЧА: 0.00 [18:59:33]line НСП 1% : 1.77 [18:59:33]line НДС 12% : 21.24 [18:59:33]line Наличными: 200.00 [18:59:33]line Безнал.: 0.00 [18:59:33]line Место: АЗС № 178 "Партнер Нефть" [18:59:33]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [18:59:33]line СНО: Общий режим [18:59:33]line Чек 112 29.10.2024 18:59 [18:59:33]line Смена: 172 ФФД: 1.0 [18:59:33]line ЗНМ: 0300000014 [18:59:33]line РНМ: 0000000000161798 [18:59:33]line Версия ККМ: v1.0 [18:59:33]line ФМ: 0000000000963325 [18:59:33]line ФД: 15766 [18:59:33]line ФПД: 187667258559387 [18:59:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T185944&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15766&fm=187667258559387&tin=02508201610067®Number=0000000000161798&sum=20000 [18:59:34]OFD Sender: Processing packet 15766 [packets to send 4, broken 3] [18:59:34]ProducePacketName [18:59:34]name=ofd_packets/00015766 [18:59:34]OFD Sender: To server: pG, [18:59:34]CommunicateWithHost lk.salyk.kg:30040 [18:59:34]ConnectInit lk.salyk.kg [18:59:34]written 0, free lines is 4095 [18:59:34]Connected sock=10 [18:59:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EC 33 07 01 1A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 70 00 00 00 F4 03 04 00 A0 30 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 96 3D 00 00 35 04 06 00 AA AE B0 48 4B 9B 0F A6 C3 BD 30 DF 1A DE [18:59:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 6F DF 47 00 82 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 96 3D 00 00 F4 03 04 00 8C DB 20 67 B6 04 01 00 00 6B E4 2C 9E 90 C0 1A BB [18:59:34]CommunicateWithHost err = 0 [18:59:34]CheckOFDResponse [18:59:34]1017 (14) - 77093643461234 [18:59:34]1041 (16) - 0000000000963325 [18:59:34]1040 (4) - 15766 [18:59:34]1012 (4) - 29.10.2024 12:56 [18:59:34]1206 (1) - 0 [18:59:34]OFD Sender: Remove packet 15766 [18:59:34]ProducePacketName [18:59:34]name=ofd_packets/00015766 [18:59:34]NVStorageDeleteData [18:59:34]Write to MH i2c: 01 00 00 F6 56 4C [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: 01 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: 01 07 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: 01 07 00 F6 56 00 00 00 00 00 EC 0C 4B [18:59:34]RasterBufferAndPrint [18:59:34]line [18:59:34]line [18:59:34]line [18:59:34]line [18:59:34]line [18:59:34]written 0, free lines is 3314 [18:59:34]MH_Cut [18:59:34]Write to MH i2c: D1 01 00 FD 56 01 25 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: D1 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: D1 01 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: D1 01 00 FD 56 00 24 [18:59:34]Write to MH i2c: 01 00 00 FE 56 54 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]OFD Sender: No OFD packet to send [18:59:35]*** Cut start [18:59:35]*** Partial cut [18:59:35]*** CUTSNS_PIN = 1 [18:59:35]*** CUTSNS_PIN = 0 [18:59:35]*** Brake cut motor [18:59:35]Read from MH i2c: 01 [18:59:35]MH_I2C_Read... [18:59:35]*** Stop cut motor [18:59:35]*** Cut end [18:59:35]Read from MH i2c: 01 07 00 [18:59:35]MH_I2C_Read... [18:59:35]Read from MH i2c: 01 07 00 FE 56 00 00 00 00 00 FF 0F 69 [18:59:35]process_action close_receipt done [18:59:35]requested_data is exist [18:59:35]produce_requested_data [18:59:35]requested_item fm.sn is exist - process it [18:59:35]wFMCommunicate request_size=4 [18:59:35]MH_SAM_APDU [18:59:35]CAPDU: 80 11 00 00 [18:59:35]Write to MH i2c: E2 08 00 FF 56 80 11 00 00 00 00 00 00 CF [18:59:35]Write i2c OK [18:59:35]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 FF 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1E [18:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [18:59:36]wFMCommunicate OK [18:59:36]requested_item fd.num is exist - process it [18:59:36]SAM_PROTO_GetFieldsCounters [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 13 00 00 [18:59:36]Write to MH i2c: E2 08 00 00 57 80 13 00 00 00 00 00 00 D3 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 62 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 62 00 00 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 96 3D 00 00 0E 04 04 00 AC 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 C6 [18:59:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 96 3D 00 00 0E 04 04 00 AC 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 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_GetFieldsCounters done [18:59:36]requested_item shift.num is exist - process it [18:59:36]requested_item shift.opened is exist - process it [18:59:36]req_shift_opened [18:59:36]FM_GetShiftState [18:59:36]SAM_PROTO_GetShiftState [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 13 01 00 [18:59:36]Write to MH i2c: E2 08 00 01 57 80 13 01 00 00 00 00 00 D5 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 0E 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 0E 00 01 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2A [18:59:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_GetShiftState done [18:59:36]FM_GetShiftState done [18:59:36]req_shift_opened done [18:59:36]requested_item shift.open_date is exist - process it [18:59:36]req_shift_open_date [18:59:36]req_shift_open_date done [18:59:36]produce_requested_data done [18:59:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15766,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [18:59:36]process_action_free close_receipt [18:59:36]json_value_free [18:59:36]json_value_free done [18:59:36]process_json_proto returns [18:59:36]Send response to host [18:59:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15766,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [18:59:36]free response buf [18:59:36]execute_script done [18:59:36]execute_script returns [18:59:36]free content buf [18:59:36]Sock 8.Close socket [18:59:36]Sock 8.Thread stoped [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01: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:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:35]accept exits with 9 [19:09:35]New connection [19:09:35]New thread 3066588516 created [19:09:35]Thread 3066731876 joined [19:09:35]Waiting for new connection... [19:09:35] Sock 9.Parse request [19:09:35]Sock 9.Check first char [19:09:35]Sock 9.First char is OK [19:09:35]request: POST /json_proto HTTP/1.0 [19:09:35]Method: POST [19:09:35]URL: /json_proto [19:09:35]Method is POST - this is cgi request [19:09:35]url: /json_proto [19:09:35]query_string will be loaded in cgi processing [19:09:35]execute_cgi json_proto POST (null) [19:09:35]execute_cgi path=json_proto method=POST [19:09:35]POST find Content-Length [19:09:35]Host: 172.17.54.195:8080 [19:09:35]Content-Length: 789 [19:09:35]Content-Type: application/json [19:09:35] [19:09:35]POST finish read [19:09:35]Found Content-Length = 789 [19:09:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 200.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\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:35]execute_script... [19:09: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)16318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 200.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\u000A00933", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:35]POST & json_proto [19:09:35]process_json_proto [19:09:35]json parsed OK: [19:09:35]protocol is kg_v1.0 [19:09:35]action value=close_receipt [19:09:35]process_action close_receipt [19:09:35]cmd_close_receipt [19:09:35]MH_GetDate [19:09:35]Write to MH i2c: F0 00 00 02 57 48 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 09 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: F0 09 00 02 57 00 FC 32 21 67 8D 90 A3 66 2D [19:09:35]GetLastDocTimeStamp 1730228384 [19:09:35]current date 1730228988 [19:09:35]FM_GetShiftState [19:09:35]SAM_PROTO_GetShiftState [19:09:35]wFMCommunicate request_size=4 [19:09:35]MH_SAM_APDU [19:09:35]CAPDU: 80 13 01 00 [19:09:35]Write to MH i2c: E2 08 00 03 57 80 13 01 00 00 00 00 00 D7 [19:09:35]Write i2c OK [19:09:35]MH_I2C_Read... [19:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:35]Read from MH i2c: E2 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: E2 0E 00 [19:09:35]MH_I2C_Read... [19:09:35]Read from MH i2c: E2 0E 00 03 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 2C [19:09:35]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:09:35]wFMCommunicate OK [19:09:35]SAM_PROTO_GetShiftState done [19:09:35]FM_GetShiftState done [19:09:35]opened in 1730161559 [19:09:35]opened+sec_in_day 1730247959 [19:09:35]quantity*price = 0 [19:09:35]sum+1 = 1 [19:09:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 113 29.10.2024 19:09 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Талоны: Топливная Карта 00933 ФМ: 0000000000963325 ФД: 15767 ФПД: 66074243503075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T190948&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15767&fm=66074243503075&tin=02508201610067®Number=0000000000161798&sum=0 [19:09:36]StoreToDocumentArchive [19:09:36]shift 172 fd 15767 [19:09:36]save to /storage/0172/doc_00015767 [19:09:36]save last doc name /storage/0172/doc_00015767 to /storage/kkm_last_doc_name [19:09:36]save OK [19:09:36]Clear old archive folders... [19:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:09:36]tlvbuf is 0031F8C0 [19:09:36]SAM_PROTO_ClearQueue [19:09:36]wFMCommunicate request_size=4 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 09 00 00 [19:09:36]Write to MH i2c: E2 08 00 10 57 80 09 00 00 00 00 00 00 D9 [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:36]Read from MH i2c: E2 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 10 57 00 90 00 DB [19:09:36]RAPDU: 90 00 [19:09:36]wFMCommunicate OK [19:09:36]SAM_PROTO_ClearQueue done [19:09:36]KKMCreateOFDPacket [19:09:36]OFDProtocolAddRootSTLVToBuf [19:09:36]FM_MakeSignedData [19:09:36]FM_MakeSignedData [19:09:36]SAM_PROTO_SignData [19:09:36]wFMCommunicate request_size=4 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 0D 01 02 [19:09:36]Write to MH i2c: E2 08 00 11 57 80 0D 01 02 00 00 00 00 E1 [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:36]Read from MH i2c: E2 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 [19:09:36]MH_I2C_Read... [19:09:36]Read from MH i2c: E2 03 00 11 57 00 90 00 DC [19:09:36]RAPDU: 90 00 [19:09:36]wFMCommunicate OK [19:09:36]wFMCommunicate request_size=255 [19:09:36]MH_SAM_APDU [19:09:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 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 71 00 00 00 F4 03 04 00 FC 32 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 97 3D 00 00 35 04 06 00 3C 18 1B D0 [19:09:36]Write to MH i2c: E2 02 01 12 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 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 71 00 00 00 F4 03 04 00 FC 32 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 97 3D 00 00 35 04 06 00 3C 18 1B D0 00 00 77 [19:09:36]Write i2c OK [19:09:36]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 12 57 00 90 00 DD [19:09:37]RAPDU: 90 00 [19:09:37]wFMCommunicate OK [19:09:37]wFMCommunicate request_size=7 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 0D 02 02 02 13 E3 [19:09:37]Write to MH i2c: E2 0A 00 13 57 80 0D 02 02 02 00 13 E3 00 00 DE [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 03 00 13 57 00 90 00 DE [19:09:37]RAPDU: 90 00 [19:09:37]wFMCommunicate OK [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 0D 03 02 [19:09:37]Write to MH i2c: E2 08 00 14 57 80 0D 03 02 00 00 00 00 E6 [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0B 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 0B 00 14 57 00 55 A0 C1 26 51 B2 7C 2B 90 00 6D [19:09:37]RAPDU: 55 A0 C1 26 51 B2 7C 2B 90 00 [19:09:37]wFMCommunicate OK [19:09:37]SAM_PROTO_SignData done [19:09:37]FM_MakeSignedData done [19:09:37]CreateOFDProtocolMessage [19:09:37]wFMCommunicate request_size=4 [19:09:37]MH_SAM_APDU [19:09:37]CAPDU: 80 11 00 00 [19:09:37]Write to MH i2c: E2 08 00 15 57 80 11 00 00 00 00 00 00 E6 [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:37]Read from MH i2c: E2 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: E2 17 00 15 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 35 [19:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:09:37]wFMCommunicate OK [19:09:37]CreateOFDProtocolMessage done [19:09:37]OFDSenderStorePacket 15767 [19:09:37]StoreOFDPacket docnum=15767 [19:09:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 12 D3 04 01 95 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 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 71 00 00 00 F4 03 04 00 FC 32 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 97 3D 00 00 35 04 06 00 3C 18 1B D0 13 E3 55 A0 C1 26 51 B2 7C 2B [19:09:37]CheckFolder [19:09:37]dirname=/storage/ofd_packets [19:09:37]CheckFolder done [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00015767 [19:09:37]NVStorageSaveData ofd_packets/00015767 [19:09:37]File name is /storage/ofd_packets/00015767 [19:09:37]Write 298 bytes [19:09:37]NVStorageSaveData done [19:09:37]OFDSenderStorePacket done [19:09:37]KKMCreateOFDPacket done [19:09:37]NVStorageSaveData kkm_last_timestamp [19:09:37]File name is /storage/kkm_last_timestamp [19:09:37]Write 4 bytes [19:09:37]NVStorageSaveData done [19:09:37]ExternCall_PrintAddStr [19:09:37]wPrintStart [19:09:37]Write to MH i2c: 01 00 00 16 57 6D [19:09:37]Write i2c OK [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 07 00 [19:09:37]MH_I2C_Read... [19:09:37]Read from MH i2c: 01 07 00 16 57 00 00 00 00 00 FF 0F 82 [19:09:37]RasterBufferAndPrint [19:09:37]line Счет N : (1)16318 [19:09:37]line ИНН: 02508201610067 [19:09:37]line Контрольно-Кассовый Чек [19:09:37]line ПРОДАЖА [19:09:37]line ТРК (МРК, ГНК) : 31 [19:09:37]line Товар: 2710194210 [19:09:37]line ДТ-К-5 [19:09:37]line 200.000 * 0.00 [19:09:37]line = 0.00 [19:09:37]line НДС 12% НСП 1% [19:09:37]line > о реализуемом товаре [19:09:37]line ИТОГО: 0.00 [19:09:37]line НСП 1% : 0.00 [19:09:37]line НДС 12% : 0.00 [19:09:37]line Наличными: 0.00 [19:09:37]line Безнал.: 0.00 [19:09:37]line Место: АЗС № 178 "Партнер Нефть" [19:09:37]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [19:09:37]line СНО: Общий режим [19:09:37]line Чек 113 29.10.2024 19:09 [19:09:37]line Смена: 172 ФФД: 1.0 [19:09:37]line ЗНМ: 0300000014 [19:09:37]line РНМ: 0000000000161798 [19:09:37]line Версия ККМ: v1.0 [19:09:37]line Талоны: Топливная Карта [19:09:37]line 00933 [19:09:37]line ФМ: 0000000000963325 [19:09:37]line ФД: 15767 [19:09:37]line ФПД: 66074243503075 [19:09:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T190948&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15767&fm=66074243503075&tin=02508201610067®Number=0000000000161798&sum=0 [19:09:37]OFD Sender: Processing packet 15767 [packets to send 4, broken 3] [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00015767 [19:09:37]OFD Sender: To server: pG, [19:09:37]CommunicateWithHost lk.salyk.kg:30040 [19:09:37]ConnectInit lk.salyk.kg [19:09:37]written 0, free lines is 4095 [19:09:37]Connected sock=10 [19:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 12 D3 04 01 95 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 0D 03 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 71 00 00 00 F4 03 04 00 FC 32 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 97 3D 00 00 35 04 06 00 3C 18 1B D0 13 E3 55 A0 C1 26 51 B2 7C 2B [19:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 F4 99 47 00 FB 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 97 3D 00 00 F4 03 04 00 E8 DD 20 67 B6 04 01 00 00 AA 10 E4 F8 32 D0 6A F4 [19:09:37]CommunicateWithHost err = 0 [19:09:37]CheckOFDResponse [19:09:37]1017 (14) - 77093643461234 [19:09:37]1041 (16) - 0000000000963325 [19:09:37]1040 (4) - 15767 [19:09:37]1012 (4) - 29.10.2024 13:06 [19:09:37]1206 (1) - 0 [19:09:37]OFD Sender: Remove packet 15767 [19:09:37]ProducePacketName [19:09:37]name=ofd_packets/00015767 [19:09:37]NVStorageDeleteData [19:09:38]Write to MH i2c: 01 00 00 40 57 97 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 07 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: 01 07 00 40 57 00 00 00 00 00 F9 0C A3 [19:09:38]RasterBufferAndPrint [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]line [19:09:38]written 0, free lines is 3327 [19:09:38]MH_Cut [19:09:38]Write to MH i2c: D1 01 00 47 57 01 70 [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: D1 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: D1 01 00 [19:09:38]MH_I2C_Read... [19:09:38]Read from MH i2c: D1 01 00 47 57 00 6F [19:09:38]Write to MH i2c: 01 00 00 48 57 9F [19:09:38]Write i2c OK [19:09:38]MH_I2C_Read... [19:09:38]OFD Sender: No OFD packet to send [19:09:38]*** Cut start [19:09:38]*** Partial cut [19:09:38]*** CUTSNS_PIN = 1 [19:09:38]*** CUTSNS_PIN = 0 [19:09:39]*** Brake cut motor [19:09:39]Read from MH i2c: 01 [19:09:39]MH_I2C_Read... [19:09:39]*** Stop cut motor [19:09:39]*** Cut end [19:09:39]Read from MH i2c: 01 07 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: 01 07 00 48 57 00 00 00 00 00 FF 0F B4 [19:09:39]process_action close_receipt done [19:09:39]requested_data is exist [19:09:39]produce_requested_data [19:09:39]requested_item fm.sn is exist - process it [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 11 00 00 [19:09:39]Write to MH i2c: E2 08 00 49 57 80 11 00 00 00 00 00 00 1A [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 17 00 49 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 69 [19:09:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:09:39]wFMCommunicate OK [19:09:39]requested_item fd.num is exist - process it [19:09:39]SAM_PROTO_GetFieldsCounters [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 13 00 00 [19:09:39]Write to MH i2c: E2 08 00 4A 57 80 13 00 00 00 00 00 00 1D [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 62 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 62 00 4A 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 97 3D 00 00 0E 04 04 00 AC 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 14 [19:09:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 97 3D 00 00 0E 04 04 00 AC 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 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_GetFieldsCounters done [19:09:39]requested_item shift.num is exist - process it [19:09:39]requested_item shift.opened is exist - process it [19:09:39]req_shift_opened [19:09:39]FM_GetShiftState [19:09:39]SAM_PROTO_GetShiftState [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 13 01 00 [19:09:39]Write to MH i2c: E2 08 00 4B 57 80 13 01 00 00 00 00 00 1F [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 4B 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 74 [19:09:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_GetShiftState done [19:09:39]FM_GetShiftState done [19:09:39]req_shift_opened done [19:09:39]requested_item shift.open_date is exist - process it [19:09:39]req_shift_open_date [19:09:39]req_shift_open_date done [19:09:39]produce_requested_data done [19:09:39]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15767,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [19:09:39]process_action_free close_receipt [19:09:39]json_value_free [19:09:39]json_value_free done [19:09:39]process_json_proto returns [19:09:39]Send response to host [19:09:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15767,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [19:09:39]free response buf [19:09:39]execute_script done [19:09:39]execute_script returns [19:09:39]free content buf [19:09:39]Sock 9.Close socket [19:09:39]Sock 9.Thread stoped [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:23]OFD Sender: No OFD packet to send [19:12:28]OFD Sender: No OFD packet to send [19:12:33]OFD Sender: No OFD packet to send [19:12:38]OFD Sender: No OFD packet to send [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:23]OFD Sender: No OFD packet to send [19:17:28]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [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:14]accept exits with 8 [19:21:14]New connection [19:21:14]New thread 3066731876 created [19:21:14]Thread 3066588516 joined [19:21:14]Waiting for new connection... [19:21:14] Sock 8.Parse request [19:21:14]Sock 8.Check first char [19:21:14]Sock 8.First char is OK [19:21:14]request: POST /json_proto HTTP/1.0 [19:21:14]Method: POST [19:21:14]URL: /json_proto [19:21:14]Method is POST - this is cgi request [19:21:14]url: /json_proto [19:21:14]query_string will be loaded in cgi processing [19:21:14]execute_cgi json_proto POST (null) [19:21:14]execute_cgi path=json_proto method=POST [19:21:14]POST find Content-Length [19:21:14]Host: 172.17.54.195:8080 [19:21:14]Content-Length: 671 [19:21:14]Content-Type: application/json [19:21:14] [19:21:14]POST finish read [19:21:14]Found Content-Length = 671 [19:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 40.930, "sum" : 2799.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2799.00, "payments": [ { "type": 0, "sum" : 2799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:14]execute_script... [19:21: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)16319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 40.930, "sum" : 2799.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2799.00, "payments": [ { "type": 0, "sum" : 2799.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:14]POST & json_proto [19:21:14]process_json_proto [19:21:14]json parsed OK: [19:21:14]protocol is kg_v1.0 [19:21:14]action value=close_receipt [19:21:14]process_action close_receipt [19:21:14]cmd_close_receipt [19:21:14]MH_GetDate [19:21:14]Write to MH i2c: F0 00 00 4C 57 92 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 09 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: F0 09 00 4C 57 00 B7 35 21 67 8D 90 A3 66 35 [19:21:14]GetLastDocTimeStamp 1730228988 [19:21:14]current date 1730229687 [19:21:14]FM_GetShiftState [19:21:14]SAM_PROTO_GetShiftState [19:21:14]wFMCommunicate request_size=4 [19:21:14]MH_SAM_APDU [19:21:14]CAPDU: 80 13 01 00 [19:21:14]Write to MH i2c: E2 08 00 4D 57 80 13 01 00 00 00 00 00 21 [19:21:14]Write i2c OK [19:21:14]MH_I2C_Read... [19:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:14]Read from MH i2c: E2 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 [19:21:14]MH_I2C_Read... [19:21:14]Read from MH i2c: E2 0E 00 4D 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 76 [19:21:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:21:14]wFMCommunicate OK [19:21:14]SAM_PROTO_GetShiftState done [19:21:14]FM_GetShiftState done [19:21:14]opened in 1730161559 [19:21:14]opened+sec_in_day 1730247959 [19:21:14]quantity*price = 279961 [19:21:14]sum+1 = 279962 [19:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2799.00 Внесено: 5000.00 СДАЧА: 2201.00 НСП 1% : 24.77 НДС 12% : 297.30 Наличными: 2799.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 114 29.10.2024 19:21 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15768 ФПД: 67196383667500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T192127&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15768&fm=67196383667500&tin=02508201610067®Number=0000000000161798&sum=279900 [19:21:15]StoreToDocumentArchive [19:21:15]shift 172 fd 15768 [19:21:15]save to /storage/0172/doc_00015768 [19:21:15]save last doc name /storage/0172/doc_00015768 to /storage/kkm_last_doc_name [19:21:15]save OK [19:21:15]Clear old archive folders... [19:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=249 [19:21:15]tlvbuf is 00319F90 [19:21:15]SAM_PROTO_ClearQueue [19:21:15]wFMCommunicate request_size=4 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 09 00 00 [19:21:15]Write to MH i2c: E2 08 00 5A 57 80 09 00 00 00 00 00 00 23 [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 5A 57 00 90 00 25 [19:21:15]RAPDU: 90 00 [19:21:15]wFMCommunicate OK [19:21:15]SAM_PROTO_ClearQueue done [19:21:15]KKMCreateOFDPacket [19:21:15]OFDProtocolAddRootSTLVToBuf [19:21:15]FM_MakeSignedData [19:21:15]FM_MakeSignedData [19:21:15]SAM_PROTO_SignData [19:21:15]wFMCommunicate request_size=4 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 0D 01 02 [19:21:15]Write to MH i2c: E2 08 00 5B 57 80 0D 01 02 00 00 00 00 2B [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 5B 57 00 90 00 26 [19:21:15]RAPDU: 90 00 [19:21:15]wFMCommunicate OK [19:21:15]wFMCommunicate request_size=255 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 9F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 99 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 74 00 00 00 00 07 04 06 00 5C 45 04 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 B7 35 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 98 3D 00 00 35 04 06 00 3D 1D 60 [19:21:15]Write to MH i2c: E2 02 01 5C 57 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 9F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 99 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 74 00 00 00 00 07 04 06 00 5C 45 04 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 B7 35 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 98 3D 00 00 35 04 06 00 3D 1D 60 00 00 19 [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:15]Read from MH i2c: E2 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 [19:21:15]MH_I2C_Read... [19:21:15]Read from MH i2c: E2 03 00 5C 57 00 90 00 27 [19:21:15]RAPDU: 90 00 [19:21:15]wFMCommunicate OK [19:21:15]wFMCommunicate request_size=8 [19:21:15]MH_SAM_APDU [19:21:15]CAPDU: 80 0D 02 02 03 94 25 2C [19:21:15]Write to MH i2c: E2 0B 00 5D 57 80 0D 02 02 03 00 94 25 2C 00 00 19 [19:21:15]Write i2c OK [19:21:15]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:16]Read from MH i2c: E2 03 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 03 00 5D 57 00 90 00 28 [19:21:16]RAPDU: 90 00 [19:21:16]wFMCommunicate OK [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 0D 03 02 [19:21:16]Write to MH i2c: E2 08 00 5E 57 80 0D 03 02 00 00 00 00 30 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0B 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0B 00 5E 57 00 F2 C9 FB A3 0E 52 97 AE 90 00 2F [19:21:16]RAPDU: F2 C9 FB A3 0E 52 97 AE 90 00 [19:21:16]wFMCommunicate OK [19:21:16]SAM_PROTO_SignData done [19:21:16]FM_MakeSignedData done [19:21:16]CreateOFDProtocolMessage [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 11 00 00 [19:21:16]Write to MH i2c: E2 08 00 5F 57 80 11 00 00 00 00 00 00 30 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 17 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 17 00 5F 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7F [19:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:21:16]wFMCommunicate OK [19:21:16]CreateOFDProtocolMessage done [19:21:16]OFDSenderStorePacket 15768 [19:21:16]StoreOFDPacket docnum=15768 [19:21:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 46 FD 05 01 CC 9C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 9F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 99 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 74 00 00 00 00 07 04 06 00 5C 45 04 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 B7 35 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 98 3D 00 00 35 04 06 00 3D 1D 60 94 25 2C F2 C9 FB A3 0E 52 97 AE [19:21:16]CheckFolder [19:21:16]dirname=/storage/ofd_packets [19:21:16]CheckFolder done [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00015768 [19:21:16]NVStorageSaveData ofd_packets/00015768 [19:21:16]File name is /storage/ofd_packets/00015768 [19:21:16]Write 299 bytes [19:21:16]NVStorageSaveData done [19:21:16]OFDSenderStorePacket done [19:21:16]KKMCreateOFDPacket done [19:21:16]NVStorageSaveData kkm_last_timestamp [19:21:16]File name is /storage/kkm_last_timestamp [19:21:16]Write 4 bytes [19:21:16]NVStorageSaveData done [19:21:16]ExternCall_PrintAddStr [19:21:16]wPrintStart [19:21:16]Write to MH i2c: 01 00 00 60 57 B7 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 60 57 00 00 00 00 00 FF 0F CC [19:21:16]RasterBufferAndPrint [19:21:16]line Счет N : (1)16319 [19:21:16]line ИНН: 02508201610067 [19:21:16]line Контрольно-Кассовый Чек [19:21:16]line ПРОДАЖА [19:21:16]line ТРК (МРК, ГНК) : 12 [19:21:16]line Товар: 50.50.0 [19:21:16]line SUPER 92-К-5 [19:21:16]line 40.930 * 68.40 [19:21:16]line = 2799.61 [19:21:16]line НДС 12% НСП 1% [19:21:16]line > о реализуемом товаре [19:21:16]line ОКРУГЛЕНИЕ: -0.61 [19:21:16]line ИТОГО: 2799.00 [19:21:16]line Внесено: 5000.00 [19:21:16]line СДАЧА: 2201.00 [19:21:16]line НСП 1% : 24.77 [19:21:16]line НДС 12% : 297.30 [19:21:16]line Наличными: 2799.00 [19:21:16]line Безнал.: 0.00 [19:21:16]line Место: АЗС № 178 "Партнер Нефть" [19:21:16]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [19:21:16]line СНО: Общий режим [19:21:16]line Чек 114 29.10.2024 19:21 [19:21:16]line Смена: 172 ФФД: 1.0 [19:21:16]line ЗНМ: 0300000014 [19:21:16]line РНМ: 0000000000161798 [19:21:16]line Версия ККМ: v1.0 [19:21:16]line ФМ: 0000000000963325 [19:21:16]line ФД: 15768 [19:21:16]line ФПД: 67196383667500 [19:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T192127&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15768&fm=67196383667500&tin=02508201610067®Number=0000000000161798&sum=279900 [19:21:16]written 0, free lines is 4095 [19:21:16]OFD Sender: Processing packet 15768 [packets to send 4, broken 3] [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00015768 [19:21:16]OFD Sender: To server: pG, [19:21:16]CommunicateWithHost lk.salyk.kg:30040 [19:21:16]ConnectInit lk.salyk.kg [19:21:16]Connected sock=10 [19:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 46 FD 05 01 CC 9C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 9F 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 99 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 74 00 00 00 00 07 04 06 00 5C 45 04 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 B7 35 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 98 3D 00 00 35 04 06 00 3D 1D 60 94 25 2C F2 C9 FB A3 0E 52 97 AE [19:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 17 F1 47 00 47 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 98 3D 00 00 F4 03 04 00 A3 E0 20 67 B6 04 01 00 00 EE D9 6E F1 B6 E1 1D F0 [19:21:16]CommunicateWithHost err = 0 [19:21:16]CheckOFDResponse [19:21:16]1017 (14) - 77093643461234 [19:21:16]1041 (16) - 0000000000963325 [19:21:16]1040 (4) - 15768 [19:21:16]1012 (4) - 29.10.2024 13:18 [19:21:16]1206 (1) - 0 [19:21:16]OFD Sender: Remove packet 15768 [19:21:16]ProducePacketName [19:21:16]name=ofd_packets/00015768 [19:21:16]NVStorageDeleteData [19:21:16]Write to MH i2c: 01 00 00 8B 57 E2 [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: 01 07 00 8B 57 00 00 00 00 00 F3 0C E8 [19:21:16]RasterBufferAndPrint [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]line [19:21:16]written 0, free lines is 3321 [19:21:16]MH_Cut [19:21:16]Write to MH i2c: D1 01 00 92 57 01 BB [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 01 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: D1 01 00 92 57 00 BA [19:21:16]Write to MH i2c: 01 00 00 93 57 EA [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:17]OFD Sender: No OFD packet to send [19:21:17]*** Cut start [19:21:17]*** Partial cut [19:21:17]*** CUTSNS_PIN = 1 [19:21:17]*** CUTSNS_PIN = 0 [19:21:17]*** Brake cut motor [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]*** Stop cut motor [19:21:18]*** Cut end [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 93 57 00 00 00 00 00 FF 0F FF [19:21:18]process_action close_receipt done [19:21:18]requested_data is exist [19:21:18]produce_requested_data [19:21:18]requested_item fm.sn is exist - process it [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 11 00 00 [19:21:18]Write to MH i2c: E2 08 00 94 57 80 11 00 00 00 00 00 00 65 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 94 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B4 [19:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:21:18]wFMCommunicate OK [19:21:18]requested_item fd.num is exist - process it [19:21:18]SAM_PROTO_GetFieldsCounters [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 13 00 00 [19:21:18]Write to MH i2c: E2 08 00 95 57 80 13 00 00 00 00 00 00 68 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 62 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 62 00 95 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 98 3D 00 00 0E 04 04 00 AC 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 63 [19:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 98 3D 00 00 0E 04 04 00 AC 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 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_GetFieldsCounters done [19:21:18]requested_item shift.num is exist - process it [19:21:18]requested_item shift.opened is exist - process it [19:21:18]req_shift_opened [19:21:18]FM_GetShiftState [19:21:18]SAM_PROTO_GetShiftState [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 13 01 00 [19:21:18]Write to MH i2c: E2 08 00 96 57 80 13 01 00 00 00 00 00 6A [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0E 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0E 00 96 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BF [19:21:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_GetShiftState done [19:21:18]FM_GetShiftState done [19:21:18]req_shift_opened done [19:21:18]requested_item shift.open_date is exist - process it [19:21:18]req_shift_open_date [19:21:18]req_shift_open_date done [19:21:18]produce_requested_data done [19:21:18]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15768,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [19:21:18]process_action_free close_receipt [19:21:18]json_value_free [19:21:18]json_value_free done [19:21:18]process_json_proto returns [19:21:18]Send response to host [19:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15768,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [19:21:18]free response buf [19:21:18]execute_script done [19:21:18]execute_script returns [19:21:18]free content buf [19:21:18]Sock 8.Close socket [19:21:18]Sock 8.Thread stoped [19:21:22]OFD Sender: No OFD packet to send [19:21:27]OFD Sender: No OFD packet to send [19:21:32]OFD Sender: No OFD packet to send [19:21:37]OFD Sender: No OFD packet to send [19:21:42]OFD Sender: No OFD packet to send [19:21:47]OFD Sender: No OFD packet to send [19:21:52]OFD Sender: No OFD packet to send [19:21:57]OFD Sender: No OFD packet to send [19:22:02]OFD Sender: No OFD packet to send [19:22:07]OFD Sender: No OFD packet to send [19:22:12]OFD Sender: No OFD packet to send [19:22:17]OFD Sender: No OFD packet to send [19:22:22]OFD Sender: No OFD packet to send [19:22:27]OFD Sender: No OFD packet to send [19:22:32]OFD Sender: No OFD packet to send [19:22:37]OFD Sender: No OFD packet to send [19:22:42]OFD Sender: No OFD packet to send [19:22:47]OFD Sender: No OFD packet to send [19:22:52]OFD Sender: No OFD packet to send [19:22:57]OFD Sender: No OFD packet to send [19:23:02]OFD Sender: No OFD packet to send [19:23:07]OFD Sender: No OFD packet to send [19:23:12]OFD Sender: No OFD packet to send [19:23:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23:32]OFD Sender: No OFD packet to send [19:23:37]OFD Sender: No OFD packet to send [19:23:42]OFD Sender: No OFD packet to send [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:57]OFD Sender: No OFD packet to send [19:24:02]OFD Sender: No OFD packet to send [19:24:07]OFD Sender: No OFD packet to send [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:42]OFD Sender: No OFD packet to send [19:25:47]OFD Sender: No OFD packet to send [19:25:52]OFD Sender: No OFD packet to send [19:25:57]OFD Sender: No OFD packet to send [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:50]accept exits with 9 [19:34:50]New connection [19:34:50]New thread 3066588516 created [19:34:50]Thread 3066731876 joined [19:34:50]Waiting for new connection... [19:34:50] Sock 9.Parse request [19:34:50]Sock 9.Check first char [19:34:50]Sock 9.First char is OK [19:34:50]request: POST /json_proto HTTP/1.0 [19:34:50]Method: POST [19:34:50]URL: /json_proto [19:34:50]Method is POST - this is cgi request [19:34:50]url: /json_proto [19:34:50]query_string will be loaded in cgi processing [19:34:50]execute_cgi json_proto POST (null) [19:34:50]execute_cgi path=json_proto method=POST [19:34:50]POST find Content-Length [19:34:50]Host: 172.17.54.195:8080 [19:34:50]Content-Length: 789 [19:34:50]Content-Type: application/json [19:34:50] [19:34:50]POST finish read [19:34:50]Found Content-Length = 789 [19:34:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92856", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:50]execute_script... [19:34: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)16320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A92856", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:50]POST & json_proto [19:34:50]process_json_proto [19:34:50]json parsed OK: [19:34:50]protocol is kg_v1.0 [19:34:50]action value=close_receipt [19:34:50]process_action close_receipt [19:34:50]cmd_close_receipt [19:34:50]MH_GetDate [19:34:50]Write to MH i2c: F0 00 00 97 57 DD [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: F0 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: F0 09 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: F0 09 00 97 57 00 E7 38 21 67 8D 90 A3 66 B3 [19:34:50]GetLastDocTimeStamp 1730229687 [19:34:50]current date 1730230503 [19:34:50]FM_GetShiftState [19:34:50]SAM_PROTO_GetShiftState [19:34:50]wFMCommunicate request_size=4 [19:34:50]MH_SAM_APDU [19:34:50]CAPDU: 80 13 01 00 [19:34:50]Write to MH i2c: E2 08 00 98 57 80 13 01 00 00 00 00 00 6C [19:34:50]Write i2c OK [19:34:50]MH_I2C_Read... [19:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:50]Read from MH i2c: E2 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 0E 00 [19:34:50]MH_I2C_Read... [19:34:50]Read from MH i2c: E2 0E 00 98 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 C1 [19:34:50]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:34:50]wFMCommunicate OK [19:34:50]SAM_PROTO_GetShiftState done [19:34:50]FM_GetShiftState done [19:34:50]opened in 1730161559 [19:34:50]opened+sec_in_day 1730247959 [19:34:50]quantity*price = 0 [19:34:50]sum+1 = 1 [19:34:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 115 29.10.2024 19:35 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Талоны: Топливная Карта 92856 ФМ: 0000000000963325 ФД: 15769 ФПД: 21543727598780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T193503&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15769&fm=21543727598780&tin=02508201610067®Number=0000000000161798&sum=0 [19:34:51]StoreToDocumentArchive [19:34:51]shift 172 fd 15769 [19:34:51]save to /storage/0172/doc_00015769 [19:34:51]save last doc name /storage/0172/doc_00015769 to /storage/kkm_last_doc_name [19:34:52]save OK [19:34:52]Clear old archive folders... [19:34:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:34:52]tlvbuf is 00348C20 [19:34:52]SAM_PROTO_ClearQueue [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 09 00 00 [19:34:52]Write to MH i2c: E2 08 00 A5 57 80 09 00 00 00 00 00 00 6E [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 A5 57 00 90 00 70 [19:34:52]RAPDU: 90 00 [19:34:52]wFMCommunicate OK [19:34:52]SAM_PROTO_ClearQueue done [19:34:52]KKMCreateOFDPacket [19:34:52]OFDProtocolAddRootSTLVToBuf [19:34:52]FM_MakeSignedData [19:34:52]FM_MakeSignedData [19:34:52]SAM_PROTO_SignData [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 0D 01 02 [19:34:52]Write to MH i2c: E2 08 00 A6 57 80 0D 01 02 00 00 00 00 76 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 A6 57 00 90 00 71 [19:34:52]RAPDU: 90 00 [19:34:52]wFMCommunicate OK [19:34:52]wFMCommunicate request_size=255 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 38 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 99 3D 00 00 35 04 06 00 13 98 0A 3B [19:34:52]Write to MH i2c: E2 02 01 A7 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 38 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 99 3D 00 00 35 04 06 00 13 98 0A 3B 00 00 89 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 A7 57 00 90 00 72 [19:34:52]RAPDU: 90 00 [19:34:52]wFMCommunicate OK [19:34:52]wFMCommunicate request_size=7 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 0D 02 02 02 0C BC [19:34:52]Write to MH i2c: E2 0A 00 A8 57 80 0D 02 02 02 00 0C BC 00 00 45 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 03 00 A8 57 00 90 00 73 [19:34:52]RAPDU: 90 00 [19:34:52]wFMCommunicate OK [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 0D 03 02 [19:34:52]Write to MH i2c: E2 08 00 A9 57 80 0D 03 02 00 00 00 00 7B [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0B 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 0B 00 A9 57 00 C1 E4 8B 70 D0 39 D8 95 90 00 92 [19:34:52]RAPDU: C1 E4 8B 70 D0 39 D8 95 90 00 [19:34:52]wFMCommunicate OK [19:34:52]SAM_PROTO_SignData done [19:34:52]FM_MakeSignedData done [19:34:52]CreateOFDProtocolMessage [19:34:52]wFMCommunicate request_size=4 [19:34:52]MH_SAM_APDU [19:34:52]CAPDU: 80 11 00 00 [19:34:52]Write to MH i2c: E2 08 00 AA 57 80 11 00 00 00 00 00 00 7B [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:52]Read from MH i2c: E2 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 17 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: E2 17 00 AA 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 CA [19:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:34:52]wFMCommunicate OK [19:34:52]CreateOFDProtocolMessage done [19:34:52]OFDSenderStorePacket 15769 [19:34:52]StoreOFDPacket docnum=15769 [19:34:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 47 98 04 01 C7 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 38 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 99 3D 00 00 35 04 06 00 13 98 0A 3B 0C BC C1 E4 8B 70 D0 39 D8 95 [19:34:52]CheckFolder [19:34:52]dirname=/storage/ofd_packets [19:34:52]CheckFolder done [19:34:52]ProducePacketName [19:34:52]name=ofd_packets/00015769 [19:34:52]NVStorageSaveData ofd_packets/00015769 [19:34:52]File name is /storage/ofd_packets/00015769 [19:34:52]Write 298 bytes [19:34:52]NVStorageSaveData done [19:34:52]OFDSenderStorePacket done [19:34:52]KKMCreateOFDPacket done [19:34:52]NVStorageSaveData kkm_last_timestamp [19:34:52]File name is /storage/kkm_last_timestamp [19:34:52]Write 4 bytes [19:34:52]NVStorageSaveData done [19:34:52]ExternCall_PrintAddStr [19:34:52]wPrintStart [19:34:52]Write to MH i2c: 01 00 00 AB 57 02 [19:34:52]Write i2c OK [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: 01 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: 01 07 00 [19:34:52]MH_I2C_Read... [19:34:52]Read from MH i2c: 01 07 00 AB 57 00 00 00 00 00 FF 0F 17 [19:34:52]RasterBufferAndPrint [19:34:52]line Счет N : (1)16320 [19:34:52]line ИНН: 02508201610067 [19:34:52]line Контрольно-Кассовый Чек [19:34:52]line ПРОДАЖА [19:34:52]line ТРК (МРК, ГНК) : 22 [19:34:52]line Товар: 2710194210 [19:34:52]line ДТ-К-5 [19:34:52]line 100.000 * 0.00 [19:34:52]line = 0.00 [19:34:52]line НДС 12% НСП 1% [19:34:52]line > о реализуемом товаре [19:34:52]line ИТОГО: 0.00 [19:34:52]line НСП 1% : 0.00 [19:34:52]line НДС 12% : 0.00 [19:34:52]line Наличными: 0.00 [19:34:52]line Безнал.: 0.00 [19:34:52]line Место: АЗС № 178 "Партнер Нефть" [19:34:52]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [19:34:52]line СНО: Общий режим [19:34:52]line Чек 115 29.10.2024 19:35 [19:34:52]line Смена: 172 ФФД: 1.0 [19:34:52]line ЗНМ: 0300000014 [19:34:52]line РНМ: 0000000000161798 [19:34:52]line Версия ККМ: v1.0 [19:34:52]line Талоны: Топливная Карта [19:34:52]line 92856 [19:34:52]line ФМ: 0000000000963325 [19:34:52]line ФД: 15769 [19:34:52]line ФПД: 21543727598780 [19:34:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T193503&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15769&fm=21543727598780&tin=02508201610067®Number=0000000000161798&sum=0 [19:34:52]OFD Sender: Processing packet 15769 [packets to send 4, broken 3] [19:34:52]ProducePacketName [19:34:52]name=ofd_packets/00015769 [19:34:52]OFD Sender: To server: pG, [19:34:52]CommunicateWithHost lk.salyk.kg:30040 [19:34:52]ConnectInit lk.salyk.kg [19:34:52]written 0, free lines is 4095 [19:34:52]Connected sock=10 [19:34:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 47 98 04 01 C7 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 E7 38 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 99 3D 00 00 35 04 06 00 13 98 0A 3B 0C BC C1 E4 8B 70 D0 39 D8 95 [19:34:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8C A0 47 00 A1 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 99 3D 00 00 F4 03 04 00 D3 E3 20 67 B6 04 01 00 00 D6 43 89 49 C8 DB 4F 10 [19:34:53]CommunicateWithHost err = 0 [19:34:53]CheckOFDResponse [19:34:53]1017 (14) - 77093643461234 [19:34:53]1041 (16) - 0000000000963325 [19:34:53]1040 (4) - 15769 [19:34:53]1012 (4) - 29.10.2024 13:32 [19:34:53]1206 (1) - 0 [19:34:53]OFD Sender: Remove packet 15769 [19:34:53]ProducePacketName [19:34:53]name=ofd_packets/00015769 [19:34:53]NVStorageDeleteData [19:34:53]Write to MH i2c: 01 00 00 D5 57 2C [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: 01 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: 01 07 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: 01 07 00 D5 57 00 00 00 00 00 06 0D 46 [19:34:53]RasterBufferAndPrint [19:34:53]line [19:34:53]line [19:34:53]line [19:34:53]line [19:34:53]line [19:34:53]written 0, free lines is 3340 [19:34:53]MH_Cut [19:34:53]Write to MH i2c: D1 01 00 DC 57 01 05 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: D1 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: D1 01 00 [19:34:53]MH_I2C_Read... [19:34:53]Read from MH i2c: D1 01 00 DC 57 00 04 [19:34:53]Write to MH i2c: 01 00 00 DD 57 34 [19:34:53]Write i2c OK [19:34:53]MH_I2C_Read... [19:34:53]OFD Sender: No OFD packet to send [19:34:53]*** Cut start [19:34:53]*** Partial cut [19:34:53]*** CUTSNS_PIN = 1 [19:34:54]*** CUTSNS_PIN = 0 [19:34:54]*** Brake cut motor [19:34:54]Read from MH i2c: 01 [19:34:54]MH_I2C_Read... [19:34:54]*** Stop cut motor [19:34:54]*** Cut end [19:34:54]Read from MH i2c: 01 07 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: 01 07 00 DD 57 00 00 00 00 00 FF 0F 49 [19:34:54]process_action close_receipt done [19:34:54]requested_data is exist [19:34:54]produce_requested_data [19:34:54]requested_item fm.sn is exist - process it [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 11 00 00 [19:34:54]Write to MH i2c: E2 08 00 DE 57 80 11 00 00 00 00 00 00 AF [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 17 00 DE 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 FE [19:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:34:54]wFMCommunicate OK [19:34:54]requested_item fd.num is exist - process it [19:34:54]SAM_PROTO_GetFieldsCounters [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 13 00 00 [19:34:54]Write to MH i2c: E2 08 00 DF 57 80 13 00 00 00 00 00 00 B2 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 62 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 62 00 DF 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 99 3D 00 00 0E 04 04 00 AC 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 B1 [19:34:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 99 3D 00 00 0E 04 04 00 AC 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 [19:34:54]wFMCommunicate OK [19:34:54]SAM_PROTO_GetFieldsCounters done [19:34:54]requested_item shift.num is exist - process it [19:34:54]requested_item shift.opened is exist - process it [19:34:54]req_shift_opened [19:34:54]FM_GetShiftState [19:34:54]SAM_PROTO_GetShiftState [19:34:54]wFMCommunicate request_size=4 [19:34:54]MH_SAM_APDU [19:34:54]CAPDU: 80 13 01 00 [19:34:54]Write to MH i2c: E2 08 00 E0 57 80 13 01 00 00 00 00 00 B4 [19:34:54]Write i2c OK [19:34:54]MH_I2C_Read... [19:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:54]Read from MH i2c: E2 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0E 00 [19:34:54]MH_I2C_Read... [19:34:54]Read from MH i2c: E2 0E 00 E0 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 09 [19:34:54]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:34:54]wFMCommunicate OK [19:34:54]SAM_PROTO_GetShiftState done [19:34:54]FM_GetShiftState done [19:34:54]req_shift_opened done [19:34:54]requested_item shift.open_date is exist - process it [19:34:54]req_shift_open_date [19:34:54]req_shift_open_date done [19:34:54]produce_requested_data done [19:34:54]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15769,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [19:34:54]process_action_free close_receipt [19:34:54]json_value_free [19:34:54]json_value_free done [19:34:54]process_json_proto returns [19:34:54]Send response to host [19:34:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15769,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [19:34:54]free response buf [19:34:54]execute_script done [19:34:54]execute_script returns [19:34:54]free content buf [19:34:54]Sock 9.Close socket [19:34:54]Sock 9.Thread stoped [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:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [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:55]accept exits with 8 [19:40:55]New connection [19:40:55]New thread 3066731876 created [19:40:55]Thread 3066588516 joined [19:40:55]Waiting for new connection... [19:40:55] Sock 8.Parse request [19:40:55]Sock 8.Check first char [19:40:55]Sock 8.First char is OK [19:40:55]request: POST /json_proto HTTP/1.0 [19:40:55]Method: POST [19:40:55]URL: /json_proto [19:40:55]Method is POST - this is cgi request [19:40:55]url: /json_proto [19:40:55]query_string will be loaded in cgi processing [19:40:55]execute_cgi json_proto POST (null) [19:40:55]execute_cgi path=json_proto method=POST [19:40:55]POST find Content-Length [19:40:55]Host: 172.17.54.195:8080 [19:40:55]Content-Length: 671 [19:40:55]Content-Type: application/json [19:40:55] [19:40:55]POST finish read [19:40:55]Found Content-Length = 671 [19:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:40:55]execute_script... [19:40: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)16321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [19:40:55]POST & json_proto [19:40:55]process_json_proto [19:40:55]json parsed OK: [19:40:55]protocol is kg_v1.0 [19:40:55]action value=close_receipt [19:40:55]process_action close_receipt [19:40:55]cmd_close_receipt [19:40:55]MH_GetDate [19:40:55]Write to MH i2c: F0 00 00 E1 57 27 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: F0 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: F0 09 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: F0 09 00 E1 57 00 54 3A 21 67 8D 90 A3 66 6C [19:40:55]GetLastDocTimeStamp 1730230503 [19:40:55]current date 1730230868 [19:40:55]FM_GetShiftState [19:40:55]SAM_PROTO_GetShiftState [19:40:55]wFMCommunicate request_size=4 [19:40:55]MH_SAM_APDU [19:40:55]CAPDU: 80 13 01 00 [19:40:55]Write to MH i2c: E2 08 00 E2 57 80 13 01 00 00 00 00 00 B6 [19:40:55]Write i2c OK [19:40:55]MH_I2C_Read... [19:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:55]Read from MH i2c: E2 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 0E 00 [19:40:55]MH_I2C_Read... [19:40:55]Read from MH i2c: E2 0E 00 E2 57 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 0B [19:40:55]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:40:55]wFMCommunicate OK [19:40:55]SAM_PROTO_GetShiftState done [19:40:55]FM_GetShiftState done [19:40:55]opened in 1730161559 [19:40:55]opened+sec_in_day 1730247959 [19:40:55]quantity*price = 100000 [19:40:55]sum+1 = 100002 [19:40:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 116 29.10.2024 19:41 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15770 ФПД: 44310616534650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T194108&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15770&fm=44310616534650&tin=02508201610067®Number=0000000000161798&sum=100000 [19:40:56]StoreToDocumentArchive [19:40:56]shift 172 fd 15770 [19:40:56]save to /storage/0172/doc_00015770 [19:40:56]save last doc name /storage/0172/doc_00015770 to /storage/kkm_last_doc_name [19:40:56]save OK [19:40:56]Clear old archive folders... [19:40:56]ProcessDocumentItem done err = 0, tmpTLVsize=249 [19:40:56]tlvbuf is B6F22A10 [19:40:56]SAM_PROTO_ClearQueue [19:40:56]wFMCommunicate request_size=4 [19:40:56]MH_SAM_APDU [19:40:56]CAPDU: 80 09 00 00 [19:40:56]Write to MH i2c: E2 08 00 EF 57 80 09 00 00 00 00 00 00 B8 [19:40:56]Write i2c OK [19:40:56]MH_I2C_Read... [19:40:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 EF 57 00 90 00 BA [19:40:57]RAPDU: 90 00 [19:40:57]wFMCommunicate OK [19:40:57]SAM_PROTO_ClearQueue done [19:40:57]KKMCreateOFDPacket [19:40:57]OFDProtocolAddRootSTLVToBuf [19:40:57]FM_MakeSignedData [19:40:57]FM_MakeSignedData [19:40:57]SAM_PROTO_SignData [19:40:57]wFMCommunicate request_size=4 [19:40:57]MH_SAM_APDU [19:40:57]CAPDU: 80 0D 01 02 [19:40:57]Write to MH i2c: E2 08 00 F0 57 80 0D 01 02 00 00 00 00 C0 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 F0 57 00 90 00 BB [19:40:57]RAPDU: 90 00 [19:40:57]wFMCommunicate OK [19:40:57]wFMCommunicate request_size=255 [19:40:57]MH_SAM_APDU [19:40:57]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 54 3A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9A 3D 00 00 35 04 06 00 28 4C DE [19:40:57]Write to MH i2c: E2 02 01 F1 57 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 54 3A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9A 3D 00 00 35 04 06 00 28 4C DE 00 00 DB [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 F1 57 00 90 00 BC [19:40:57]RAPDU: 90 00 [19:40:57]wFMCommunicate OK [19:40:57]wFMCommunicate request_size=8 [19:40:57]MH_SAM_APDU [19:40:57]CAPDU: 80 0D 02 02 03 8E EE 7A [19:40:57]Write to MH i2c: E2 0B 00 F2 57 80 0D 02 02 03 00 8E EE 7A 00 00 BF [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:57]Read from MH i2c: E2 03 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 03 00 F2 57 00 90 00 BD [19:40:57]RAPDU: 90 00 [19:40:57]wFMCommunicate OK [19:40:57]wFMCommunicate request_size=4 [19:40:57]MH_SAM_APDU [19:40:57]CAPDU: 80 0D 03 02 [19:40:57]Write to MH i2c: E2 08 00 F3 57 80 0D 03 02 00 00 00 00 C5 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 0B 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 0B 00 F3 57 00 46 72 EB 2B 11 53 CF 7C 90 00 43 [19:40:57]RAPDU: 46 72 EB 2B 11 53 CF 7C 90 00 [19:40:57]wFMCommunicate OK [19:40:57]SAM_PROTO_SignData done [19:40:57]FM_MakeSignedData done [19:40:57]CreateOFDProtocolMessage [19:40:57]wFMCommunicate request_size=4 [19:40:57]MH_SAM_APDU [19:40:57]CAPDU: 80 11 00 00 [19:40:57]Write to MH i2c: E2 08 00 F4 57 80 11 00 00 00 00 00 00 C5 [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:57]Read from MH i2c: E2 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 17 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: E2 17 00 F4 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 14 [19:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:40:57]wFMCommunicate OK [19:40:57]CreateOFDProtocolMessage done [19:40:57]OFDSenderStorePacket 15770 [19:40:57]StoreOFDPacket docnum=15770 [19:40:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 A9 11 05 01 4D E4 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 54 3A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9A 3D 00 00 35 04 06 00 28 4C DE 8E EE 7A 46 72 EB 2B 11 53 CF 7C [19:40:57]CheckFolder [19:40:57]dirname=/storage/ofd_packets [19:40:57]CheckFolder done [19:40:57]ProducePacketName [19:40:57]name=ofd_packets/00015770 [19:40:57]NVStorageSaveData ofd_packets/00015770 [19:40:57]File name is /storage/ofd_packets/00015770 [19:40:57]Write 299 bytes [19:40:57]NVStorageSaveData done [19:40:57]OFDSenderStorePacket done [19:40:57]KKMCreateOFDPacket done [19:40:57]NVStorageSaveData kkm_last_timestamp [19:40:57]File name is /storage/kkm_last_timestamp [19:40:57]Write 4 bytes [19:40:57]NVStorageSaveData done [19:40:57]ExternCall_PrintAddStr [19:40:57]wPrintStart [19:40:57]Write to MH i2c: 01 00 00 F5 57 4C [19:40:57]Write i2c OK [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 07 00 [19:40:57]MH_I2C_Read... [19:40:57]Read from MH i2c: 01 07 00 F5 57 00 00 00 00 00 FF 0F 61 [19:40:57]RasterBufferAndPrint [19:40:57]line Счет N : (1)16321 [19:40:57]line ИНН: 02508201610067 [19:40:57]line Контрольно-Кассовый Чек [19:40:57]line ПРОДАЖА [19:40:57]line ТРК (МРК, ГНК) : 12 [19:40:57]line Товар: 50.50.0 [19:40:57]line SUPER 92-К-5 [19:40:57]line 14.620 * 68.40 [19:40:57]line = 1000.01 [19:40:57]line НДС 12% НСП 1% [19:40:57]line > о реализуемом товаре [19:40:57]line ОКРУГЛЕНИЕ: -0.01 [19:40:57]line ИТОГО: 1000.00 [19:40:57]line Внесено: 1000.00 [19:40:57]line СДАЧА: 0.00 [19:40:57]line НСП 1% : 8.85 [19:40:57]line НДС 12% : 106.20 [19:40:57]line Наличными: 1000.00 [19:40:57]line Безнал.: 0.00 [19:40:57]line Место: АЗС № 178 "Партнер Нефть" [19:40:57]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [19:40:57]line СНО: Общий режим [19:40:57]line Чек 116 29.10.2024 19:41 [19:40:57]line Смена: 172 ФФД: 1.0 [19:40:57]line ЗНМ: 0300000014 [19:40:57]line РНМ: 0000000000161798 [19:40:57]line Версия ККМ: v1.0 [19:40:57]line ФМ: 0000000000963325 [19:40:57]line ФД: 15770 [19:40:57]line ФПД: 44310616534650 [19:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T194108&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15770&fm=44310616534650&tin=02508201610067®Number=0000000000161798&sum=100000 [19:40:57]written 0, free lines is 4095 [19:40:57]OFD Sender: Processing packet 15770 [packets to send 4, broken 3] [19:40:57]ProducePacketName [19:40:57]name=ofd_packets/00015770 [19:40:57]OFD Sender: To server: pG, [19:40:57]CommunicateWithHost lk.salyk.kg:30040 [19:40:57]ConnectInit lk.salyk.kg [19:40:57]Connected sock=10 [19:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 A9 11 05 01 4D E4 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 54 3A 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9A 3D 00 00 35 04 06 00 28 4C DE 8E EE 7A 46 72 EB 2B 11 53 CF 7C [19:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 32 0A 47 00 38 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9A 3D 00 00 F4 03 04 00 40 E5 20 67 B6 04 01 00 00 1A 5D 4C 31 AC 3F 08 24 [19:40:58]CommunicateWithHost err = 0 [19:40:58]CheckOFDResponse [19:40:58]1017 (14) - 77093643461234 [19:40:58]1041 (16) - 0000000000963325 [19:40:58]1040 (4) - 15770 [19:40:58]1012 (4) - 29.10.2024 13:38 [19:40:58]1206 (1) - 0 [19:40:58]OFD Sender: Remove packet 15770 [19:40:58]ProducePacketName [19:40:58]name=ofd_packets/00015770 [19:40:58]NVStorageDeleteData [19:40:58]Write to MH i2c: 01 00 00 20 58 78 [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: 01 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: 01 07 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: 01 07 00 20 58 00 00 00 00 00 EC 0C 77 [19:40:58]RasterBufferAndPrint [19:40:58]line [19:40:58]line [19:40:58]line [19:40:58]line [19:40:58]line [19:40:58]written 0, free lines is 3314 [19:40:58]MH_Cut [19:40:58]Write to MH i2c: D1 01 00 27 58 01 51 [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: D1 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: D1 01 00 [19:40:58]MH_I2C_Read... [19:40:58]Read from MH i2c: D1 01 00 27 58 00 50 [19:40:58]Write to MH i2c: 01 00 00 28 58 80 [19:40:58]Write i2c OK [19:40:58]MH_I2C_Read... [19:40:58]OFD Sender: No OFD packet to send [19:40:58]*** Cut start [19:40:58]*** Partial cut [19:40:58]*** CUTSNS_PIN = 1 [19:40:59]*** CUTSNS_PIN = 0 [19:40:59]*** Brake cut motor [19:40:59]Read from MH i2c: 01 [19:40:59]MH_I2C_Read... [19:40:59]*** Stop cut motor [19:40:59]*** Cut end [19:40:59]Read from MH i2c: 01 07 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: 01 07 00 28 58 00 00 00 00 00 FF 0F 95 [19:40:59]process_action close_receipt done [19:40:59]requested_data is exist [19:40:59]produce_requested_data [19:40:59]requested_item fm.sn is exist - process it [19:40:59]wFMCommunicate request_size=4 [19:40:59]MH_SAM_APDU [19:40:59]CAPDU: 80 11 00 00 [19:40:59]Write to MH i2c: E2 08 00 29 58 80 11 00 00 00 00 00 00 FB [19:40:59]Write i2c OK [19:40:59]MH_I2C_Read... [19:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:59]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 17 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 17 00 29 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 4A [19:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:40:59]wFMCommunicate OK [19:40:59]requested_item fd.num is exist - process it [19:40:59]SAM_PROTO_GetFieldsCounters [19:40:59]wFMCommunicate request_size=4 [19:40:59]MH_SAM_APDU [19:40:59]CAPDU: 80 13 00 00 [19:40:59]Write to MH i2c: E2 08 00 2A 58 80 13 00 00 00 00 00 00 FE [19:40:59]Write i2c OK [19:40:59]MH_I2C_Read... [19:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:59]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 62 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 62 00 2A 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9A 3D 00 00 0E 04 04 00 AC 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 01 [19:40:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9A 3D 00 00 0E 04 04 00 AC 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 [19:40:59]wFMCommunicate OK [19:40:59]SAM_PROTO_GetFieldsCounters done [19:40:59]requested_item shift.num is exist - process it [19:40:59]requested_item shift.opened is exist - process it [19:40:59]req_shift_opened [19:40:59]FM_GetShiftState [19:40:59]SAM_PROTO_GetShiftState [19:40:59]wFMCommunicate request_size=4 [19:40:59]MH_SAM_APDU [19:40:59]CAPDU: 80 13 01 00 [19:40:59]Write to MH i2c: E2 08 00 2B 58 80 13 01 00 00 00 00 00 00 [19:40:59]Write i2c OK [19:40:59]MH_I2C_Read... [19:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:59]Read from MH i2c: E2 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 0E 00 [19:40:59]MH_I2C_Read... [19:40:59]Read from MH i2c: E2 0E 00 2B 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 55 [19:40:59]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:40:59]wFMCommunicate OK [19:40:59]SAM_PROTO_GetShiftState done [19:40:59]FM_GetShiftState done [19:40:59]req_shift_opened done [19:40:59]requested_item shift.open_date is exist - process it [19:40:59]req_shift_open_date [19:40:59]req_shift_open_date done [19:40:59]produce_requested_data done [19:40:59]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15770,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [19:40:59]process_action_free close_receipt [19:40:59]json_value_free [19:40:59]json_value_free done [19:40:59]process_json_proto returns [19:40:59]Send response to host [19:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15770,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [19:40:59]free response buf [19:40:59]execute_script done [19:40:59]execute_script returns [19:40:59]free content buf [19:40:59]Sock 8.Close socket [19:40:59]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:03]OFD Sender: No OFD packet to send [19:47:08]OFD Sender: No OFD packet to send [19:47:13]OFD Sender: No OFD packet to send [19:47:18]OFD Sender: No OFD packet to send [19:47:23]OFD Sender: No OFD packet to send [19:47:28]OFD Sender: No OFD packet to send [19:47:33]OFD Sender: No OFD packet to send [19:47:38]OFD Sender: No OFD packet to send [19:47:43]OFD Sender: No OFD packet to send [19:47:48]OFD Sender: No OFD packet to send [19:47:53]OFD Sender: No OFD packet to send [19:47:58]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:36]accept exits with 9 [19:57:36]New connection [19:57:36]New thread 3066588516 created [19:57:36]Thread 3066731876 joined [19:57:36]Waiting for new connection... [19:57:36] Sock 9.Parse request [19:57:36]Sock 9.Check first char [19:57:36]Sock 9.First char is OK [19:57:36]request: POST /json_proto HTTP/1.0 [19:57:36]Method: POST [19:57:36]URL: /json_proto [19:57:36]Method is POST - this is cgi request [19:57:36]url: /json_proto [19:57:36]query_string will be loaded in cgi processing [19:57:36]execute_cgi json_proto POST (null) [19:57:36]execute_cgi path=json_proto method=POST [19:57:36]POST find Content-Length [19:57:36]Host: 172.17.54.195:8080 [19:57:36]Content-Length: 673 [19:57:36]Content-Type: application/json [19:57:36] [19:57:36]POST finish read [19:57:36]Found Content-Length = 673 [19:57:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [19:57:36]execute_script... [19:57: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)16322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [19:57:36]POST & json_proto [19:57:36]process_json_proto [19:57:36]json parsed OK: [19:57:36]protocol is kg_v1.0 [19:57:36]action value=close_receipt [19:57:36]process_action close_receipt [19:57:36]cmd_close_receipt [19:57:36]MH_GetDate [19:57:36]Write to MH i2c: F0 00 00 2C 58 73 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 09 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: F0 09 00 2C 58 00 3D 3E 21 67 8D 90 A3 66 A5 [19:57:36]GetLastDocTimeStamp 1730230868 [19:57:36]current date 1730231869 [19:57:36]FM_GetShiftState [19:57:36]SAM_PROTO_GetShiftState [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 01 00 [19:57:36]Write to MH i2c: E2 08 00 2D 58 80 13 01 00 00 00 00 00 02 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 2D 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 57 [19:57:37]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_GetShiftState done [19:57:37]FM_GetShiftState done [19:57:37]opened in 1730161559 [19:57:37]opened+sec_in_day 1730247959 [19:57:37]quantity*price = 50063 [19:57:37]sum+1 = 50064 [19:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 117 29.10.2024 19:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15771 ФПД: 252354935899907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T195749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15771&fm=252354935899907&tin=02508201610067®Number=0000000000161798&sum=50000 [19:57:38]StoreToDocumentArchive [19:57:38]shift 172 fd 15771 [19:57:38]save to /storage/0172/doc_00015771 [19:57:38]save last doc name /storage/0172/doc_00015771 to /storage/kkm_last_doc_name [19:57:38]save OK [19:57:38]Clear old archive folders... [19:57:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:57:38]tlvbuf is 003F8210 [19:57:38]SAM_PROTO_ClearQueue [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 09 00 00 [19:57:38]Write to MH i2c: E2 08 00 3A 58 80 09 00 00 00 00 00 00 04 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 3A 58 00 90 00 06 [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]SAM_PROTO_ClearQueue done [19:57:38]KKMCreateOFDPacket [19:57:38]OFDProtocolAddRootSTLVToBuf [19:57:38]FM_MakeSignedData [19:57:38]FM_MakeSignedData [19:57:38]SAM_PROTO_SignData [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 01 02 [19:57:38]Write to MH i2c: E2 08 00 3B 58 80 0D 01 02 00 00 00 00 0C [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 3B 58 00 90 00 07 [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=255 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 3D 3E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9B 3D 00 00 35 04 06 00 E5 83 F6 4F [19:57:38]Write to MH i2c: E2 02 01 3C 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 3D 3E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9B 3D 00 00 35 04 06 00 E5 83 F6 4F 00 00 C5 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 3C 58 00 90 00 08 [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=7 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 02 02 02 C7 03 [19:57:38]Write to MH i2c: E2 0A 00 3D 58 80 0D 02 02 02 00 C7 03 00 00 DD [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 03 00 3D 58 00 90 00 09 [19:57:38]RAPDU: 90 00 [19:57:38]wFMCommunicate OK [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 0D 03 02 [19:57:38]Write to MH i2c: E2 08 00 3E 58 80 0D 03 02 00 00 00 00 11 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 0B 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 0B 00 3E 58 00 1C AF 4D 13 E3 6E 68 0D 90 00 03 [19:57:38]RAPDU: 1C AF 4D 13 E3 6E 68 0D 90 00 [19:57:38]wFMCommunicate OK [19:57:38]SAM_PROTO_SignData done [19:57:38]FM_MakeSignedData done [19:57:38]CreateOFDProtocolMessage [19:57:38]wFMCommunicate request_size=4 [19:57:38]MH_SAM_APDU [19:57:38]CAPDU: 80 11 00 00 [19:57:38]Write to MH i2c: E2 08 00 3F 58 80 11 00 00 00 00 00 00 11 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:38]Read from MH i2c: E2 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 17 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: E2 17 00 3F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 60 [19:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:57:38]wFMCommunicate OK [19:57:38]CreateOFDProtocolMessage done [19:57:38]OFDSenderStorePacket 15771 [19:57:38]StoreOFDPacket docnum=15771 [19:57:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 3F 98 04 01 5B 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 3D 3E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9B 3D 00 00 35 04 06 00 E5 83 F6 4F C7 03 1C AF 4D 13 E3 6E 68 0D [19:57:38]CheckFolder [19:57:38]dirname=/storage/ofd_packets [19:57:38]CheckFolder done [19:57:38]ProducePacketName [19:57:38]name=ofd_packets/00015771 [19:57:38]NVStorageSaveData ofd_packets/00015771 [19:57:38]File name is /storage/ofd_packets/00015771 [19:57:38]Write 298 bytes [19:57:38]NVStorageSaveData done [19:57:38]OFDSenderStorePacket done [19:57:38]KKMCreateOFDPacket done [19:57:38]NVStorageSaveData kkm_last_timestamp [19:57:38]File name is /storage/kkm_last_timestamp [19:57:38]Write 4 bytes [19:57:38]NVStorageSaveData done [19:57:38]ExternCall_PrintAddStr [19:57:38]wPrintStart [19:57:38]Write to MH i2c: 01 00 00 40 58 98 [19:57:38]Write i2c OK [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 [19:57:38]MH_I2C_Read... [19:57:38]Read from MH i2c: 01 07 00 40 58 00 00 00 00 00 FF 0F AD [19:57:38]RasterBufferAndPrint [19:57:38]line Счет N : (1)16322 [19:57:38]line ИНН: 02508201610067 [19:57:38]line Контрольно-Кассовый Чек [19:57:38]line ПРОДАЖА [19:57:38]line ТРК (МРК, ГНК) : 22 [19:57:38]line Товар: 2710194210 [19:57:38]line ДТ-К-5 [19:57:38]line 6.570 * 76.20 [19:57:38]line = 500.63 [19:57:38]line НДС 12% НСП 1% [19:57:38]line > о реализуемом товаре [19:57:38]line ОКРУГЛЕНИЕ: -0.63 [19:57:38]line ИТОГО: 500.00 [19:57:38]line Внесено: 500.00 [19:57:38]line СДАЧА: 0.00 [19:57:38]line НСП 1% : 4.43 [19:57:38]line НДС 12% : 53.16 [19:57:38]line Наличными: 500.00 [19:57:38]line Безнал.: 0.00 [19:57:38]line Место: АЗС № 178 "Партнер Нефть" [19:57:38]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [19:57:38]line СНО: Общий режим [19:57:38]line Чек 117 29.10.2024 19:57 [19:57:38]line Смена: 172 ФФД: 1.0 [19:57:38]line ЗНМ: 0300000014 [19:57:38]line РНМ: 0000000000161798 [19:57:38]line Версия ККМ: v1.0 [19:57:38]line ФМ: 0000000000963325 [19:57:38]line ФД: 15771 [19:57:38]line ФПД: 252354935899907 [19:57:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T195749&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15771&fm=252354935899907&tin=02508201610067®Number=0000000000161798&sum=50000 [19:57:38]OFD Sender: Processing packet 15771 [packets to send 4, broken 3] [19:57:38]ProducePacketName [19:57:38]name=ofd_packets/00015771 [19:57:38]OFD Sender: To server: pG, [19:57:38]CommunicateWithHost lk.salyk.kg:30040 [19:57:38]ConnectInit lk.salyk.kg [19:57:38]written 0, free lines is 4095 [19:57:39]Connected sock=11 [19:57:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 3F 98 04 01 5B 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 75 00 00 00 F4 03 04 00 3D 3E 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9B 3D 00 00 35 04 06 00 E5 83 F6 4F C7 03 1C AF 4D 13 E3 6E 68 0D [19:57:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 BA 2D 47 00 BA C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9B 3D 00 00 F4 03 04 00 29 E9 20 67 B6 04 01 00 00 AF 8A 64 D6 EF 04 27 62 [19:57:39]CommunicateWithHost err = 0 [19:57:39]CheckOFDResponse [19:57:39]1017 (14) - 77093643461234 [19:57:39]1041 (16) - 0000000000963325 [19:57:39]1040 (4) - 15771 [19:57:39]1012 (4) - 29.10.2024 13:54 [19:57:39]1206 (1) - 0 [19:57:39]OFD Sender: Remove packet 15771 [19:57:39]ProducePacketName [19:57:39]name=ofd_packets/00015771 [19:57:39]NVStorageDeleteData [19:57:39]Write to MH i2c: 01 00 00 6B 58 C3 [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 6B 58 00 00 00 00 00 F6 0C CC [19:57:39]RasterBufferAndPrint [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]line [19:57:39]written 0, free lines is 3324 [19:57:39]MH_Cut [19:57:39]Write to MH i2c: D1 01 00 72 58 01 9C [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 01 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: D1 01 00 72 58 00 9B [19:57:39]Write to MH i2c: 01 00 00 73 58 CB [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]OFD Sender: No OFD packet to send [19:57:40]*** Cut start [19:57:40]*** Partial cut [19:57:40]*** CUTSNS_PIN = 1 [19:57:40]*** CUTSNS_PIN = 0 [19:57:40]*** Brake cut motor [19:57:40]Read from MH i2c: 01 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: 01 07 00 [19:57:40]MH_I2C_Read... [19:57:40]*** Stop cut motor [19:57:40]*** Cut end [19:57:40]Read from MH i2c: 01 07 00 73 58 00 00 00 00 00 FF 0F E0 [19:57:40]process_action close_receipt done [19:57:40]requested_data is exist [19:57:40]produce_requested_data [19:57:40]requested_item fm.sn is exist - process it [19:57:40]wFMCommunicate request_size=4 [19:57:40]MH_SAM_APDU [19:57:40]CAPDU: 80 11 00 00 [19:57:40]Write to MH i2c: E2 08 00 74 58 80 11 00 00 00 00 00 00 46 [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:40]Read from MH i2c: E2 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 17 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 17 00 74 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 95 [19:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [19:57:40]wFMCommunicate OK [19:57:40]requested_item fd.num is exist - process it [19:57:40]SAM_PROTO_GetFieldsCounters [19:57:40]wFMCommunicate request_size=4 [19:57:40]MH_SAM_APDU [19:57:40]CAPDU: 80 13 00 00 [19:57:40]Write to MH i2c: E2 08 00 75 58 80 13 00 00 00 00 00 00 49 [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:40]Read from MH i2c: E2 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 62 00 [19:57:40]MH_I2C_Read... [19:57:40]Read from MH i2c: E2 62 00 75 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9B 3D 00 00 0E 04 04 00 AC 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 50 [19:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9B 3D 00 00 0E 04 04 00 AC 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 [19:57:40]wFMCommunicate OK [19:57:40]SAM_PROTO_GetFieldsCounters done [19:57:40]requested_item shift.num is exist - process it [19:57:40]requested_item shift.opened is exist - process it [19:57:40]req_shift_opened [19:57:40]FM_GetShiftState [19:57:40]SAM_PROTO_GetShiftState [19:57:40]wFMCommunicate request_size=4 [19:57:40]MH_SAM_APDU [19:57:40]CAPDU: 80 13 01 00 [19:57:40]Write to MH i2c: E2 08 00 76 58 80 13 01 00 00 00 00 00 4B [19:57:40]Write i2c OK [19:57:40]MH_I2C_Read... [19:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:41]Read from MH i2c: E2 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 [19:57:41]MH_I2C_Read... [19:57:41]Read from MH i2c: E2 0E 00 76 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A0 [19:57:41]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [19:57:41]wFMCommunicate OK [19:57:41]SAM_PROTO_GetShiftState done [19:57:41]FM_GetShiftState done [19:57:41]req_shift_opened done [19:57:41]requested_item shift.open_date is exist - process it [19:57:41]req_shift_open_date [19:57:41]req_shift_open_date done [19:57:41]produce_requested_data done [19:57:41]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15771,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [19:57:41]process_action_free close_receipt [19:57:41]json_value_free [19:57:41]json_value_free done [19:57:41]process_json_proto returns [19:57:41]Send response to host [19:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15771,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [19:57:41]free response buf [19:57:41]execute_script done [19:57:41]execute_script returns [19:57:41]free content buf [19:57:41]Sock 9.Close socket [19:57:41]Sock 9.Thread stoped [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:04]OFD Sender: No OFD packet to send [19:58:09]OFD Sender: No OFD packet to send [19:58:14]OFD Sender: No OFD packet to send [19:58:19]OFD Sender: No OFD packet to send [19:58:24]OFD Sender: No OFD packet to send [19:58:29]OFD Sender: No OFD packet to send [19:58:34]OFD Sender: No OFD packet to send [19:58:39]OFD Sender: No OFD packet to send [19:58:44]OFD Sender: No OFD packet to send [19:58:49]OFD Sender: No OFD packet to send [19:58:54]OFD Sender: No OFD packet to send [19:58:59]OFD Sender: No OFD packet to send [19:59:04]OFD Sender: No OFD packet to send [19:59:09]OFD Sender: No OFD packet to send [19:59:14]OFD Sender: No OFD packet to send [19:59:19]OFD Sender: No OFD packet to send [19:59:24]OFD Sender: No OFD packet to send [19:59:29]OFD Sender: No OFD packet to send [19:59:34]OFD Sender: No OFD packet to send [19:59:39]OFD Sender: No OFD packet to send [19:59:44]OFD Sender: No OFD packet to send [19:59:49]OFD Sender: No OFD packet to send [19:59:54]OFD Sender: No OFD packet to send [19:59:59]OFD Sender: No OFD packet to send [20:00:04]OFD Sender: No OFD packet to send [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:18]accept exits with 10 [20:05:18]New connection [20:05:18]New thread 3066731876 created [20:05:18]Thread 3066588516 joined [20:05:18]Waiting for new connection... [20:05:18] Sock 10.Parse request [20:05:18]Sock 10.Check first char [20:05:18]Sock 10.First char is OK [20:05:18]request: POST /json_proto HTTP/1.0 [20:05:18]Method: POST [20:05:18]URL: /json_proto [20:05:18]Method is POST - this is cgi request [20:05:18]url: /json_proto [20:05:18]query_string will be loaded in cgi processing [20:05:18]execute_cgi json_proto POST (null) [20:05:18]execute_cgi path=json_proto method=POST [20:05:18]POST find Content-Length [20:05:18]Host: 172.17.54.195:8080 [20:05:18]Content-Length: 681 [20:05:18]Content-Type: application/json [20:05:18] [20:05:18]POST finish read [20:05:18]Found Content-Length = 681 [20:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:18]execute_script... [20:05: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)16323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.690, "sum" : 1250.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1250.00, "payments": [ { "type": 0, "sum" : 1250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:18]POST & json_proto [20:05:18]process_json_proto [20:05:18]json parsed OK: [20:05:18]protocol is kg_v1.0 [20:05:18]action value=close_receipt [20:05:18]process_action close_receipt [20:05:18]cmd_close_receipt [20:05:18]MH_GetDate [20:05:18]Write to MH i2c: F0 00 00 77 58 BE [20:05:18]Write i2c OK [20:05:18]MH_I2C_Read... [20:05:18]Read from MH i2c: F0 [20:05:18]MH_I2C_Read... [20:05:18]Read from MH i2c: F0 09 00 [20:05:18]MH_I2C_Read... [20:05:18]Read from MH i2c: F0 09 00 77 58 00 0B 40 21 67 8D 90 A3 66 C0 [20:05:18]GetLastDocTimeStamp 1730231869 [20:05:18]current date 1730232331 [20:05:18]FM_GetShiftState [20:05:18]SAM_PROTO_GetShiftState [20:05:18]wFMCommunicate request_size=4 [20:05:18]MH_SAM_APDU [20:05:18]CAPDU: 80 13 01 00 [20:05:18]Write to MH i2c: E2 08 00 78 58 80 13 01 00 00 00 00 00 4D [20:05:18]Write i2c OK [20:05:18]MH_I2C_Read... [20:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:18]Read from MH i2c: E2 [20:05:18]MH_I2C_Read... [20:05:18]Read from MH i2c: E2 0E 00 [20:05:18]MH_I2C_Read... [20:05:18]Read from MH i2c: E2 0E 00 78 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A2 [20:05:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:05:18]wFMCommunicate OK [20:05:18]SAM_PROTO_GetShiftState done [20:05:18]FM_GetShiftState done [20:05:18]opened in 1730161559 [20:05:18]opened+sec_in_day 1730247959 [20:05:18]quantity*price = 125036 [20:05:18]sum+1 = 125037 [20:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1250.00 Внесено: 3000.00 СДАЧА: 1750.00 НСП 1% : 11.06 НДС 12% : 132.78 Наличными: 1250.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 118 29.10.2024 20:05 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15772 ФПД: 267944023079349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T200531&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15772&fm=267944023079349&tin=02508201610067®Number=0000000000161798&sum=125000 [20:05:19]StoreToDocumentArchive [20:05:19]shift 172 fd 15772 [20:05:19]save to /storage/0172/doc_00015772 [20:05:19]save last doc name /storage/0172/doc_00015772 to /storage/kkm_last_doc_name [20:05:19]save OK [20:05:19]Clear old archive folders... [20:05:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:19]tlvbuf is 00400AD0 [20:05:19]SAM_PROTO_ClearQueue [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 09 00 00 [20:05:19]Write to MH i2c: E2 08 00 85 58 80 09 00 00 00 00 00 00 4F [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 85 58 00 90 00 51 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]SAM_PROTO_ClearQueue done [20:05:19]KKMCreateOFDPacket [20:05:19]OFDProtocolAddRootSTLVToBuf [20:05:19]FM_MakeSignedData [20:05:19]FM_MakeSignedData [20:05:19]SAM_PROTO_SignData [20:05:19]wFMCommunicate request_size=4 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 01 02 [20:05:19]Write to MH i2c: E2 08 00 86 58 80 0D 01 02 00 00 00 00 57 [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:19]Read from MH i2c: E2 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 [20:05:19]MH_I2C_Read... [20:05:19]Read from MH i2c: E2 03 00 86 58 00 90 00 52 [20:05:19]RAPDU: 90 00 [20:05:19]wFMCommunicate OK [20:05:19]wFMCommunicate request_size=255 [20:05:19]MH_SAM_APDU [20:05:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0B 40 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9C 3D 00 00 35 04 06 00 F3 [20:05:19]Write to MH i2c: E2 02 01 87 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0B 40 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9C 3D 00 00 35 04 06 00 F3 00 00 CA [20:05:19]Write i2c OK [20:05:19]MH_I2C_Read... [20:05:20]OFD Sender: No OFD packet to send [20:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:20]Read from MH i2c: E2 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 03 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 03 00 87 58 00 90 00 53 [20:05:20]RAPDU: 90 00 [20:05:20]wFMCommunicate OK [20:05:20]wFMCommunicate request_size=10 [20:05:20]MH_SAM_APDU [20:05:20]CAPDU: 80 0D 02 02 05 B1 94 50 B9 B5 [20:05:20]Write to MH i2c: E2 0D 00 88 58 80 0D 02 02 05 00 B1 94 50 B9 B5 00 00 67 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:20]Read from MH i2c: E2 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 03 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 03 00 88 58 00 90 00 54 [20:05:20]RAPDU: 90 00 [20:05:20]wFMCommunicate OK [20:05:20]wFMCommunicate request_size=4 [20:05:20]MH_SAM_APDU [20:05:20]CAPDU: 80 0D 03 02 [20:05:20]Write to MH i2c: E2 08 00 89 58 80 0D 03 02 00 00 00 00 5C [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:20]Read from MH i2c: E2 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 0B 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 0B 00 89 58 00 D1 6B A2 61 9B 05 B4 02 90 00 F2 [20:05:20]RAPDU: D1 6B A2 61 9B 05 B4 02 90 00 [20:05:20]wFMCommunicate OK [20:05:20]SAM_PROTO_SignData done [20:05:20]FM_MakeSignedData done [20:05:20]CreateOFDProtocolMessage [20:05:20]wFMCommunicate request_size=4 [20:05:20]MH_SAM_APDU [20:05:20]CAPDU: 80 11 00 00 [20:05:20]Write to MH i2c: E2 08 00 8A 58 80 11 00 00 00 00 00 00 5C [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:20]Read from MH i2c: E2 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 17 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: E2 17 00 8A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AB [20:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:05:20]wFMCommunicate OK [20:05:20]CreateOFDProtocolMessage done [20:05:20]OFDSenderStorePacket 15772 [20:05:20]StoreOFDPacket docnum=15772 [20:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E5 B8 07 01 DE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0B 40 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9C 3D 00 00 35 04 06 00 F3 B1 94 50 B9 B5 D1 6B A2 61 9B 05 B4 02 [20:05:20]CheckFolder [20:05:20]dirname=/storage/ofd_packets [20:05:20]CheckFolder done [20:05:20]ProducePacketName [20:05:20]name=ofd_packets/00015772 [20:05:20]NVStorageSaveData ofd_packets/00015772 [20:05:20]File name is /storage/ofd_packets/00015772 [20:05:20]Write 301 bytes [20:05:20]NVStorageSaveData done [20:05:20]OFDSenderStorePacket done [20:05:20]KKMCreateOFDPacket done [20:05:20]NVStorageSaveData kkm_last_timestamp [20:05:20]File name is /storage/kkm_last_timestamp [20:05:20]Write 4 bytes [20:05:20]NVStorageSaveData done [20:05:20]ExternCall_PrintAddStr [20:05:20]wPrintStart [20:05:20]Write to MH i2c: 01 00 00 8B 58 E3 [20:05:20]Write i2c OK [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 07 00 [20:05:20]MH_I2C_Read... [20:05:20]Read from MH i2c: 01 07 00 8B 58 00 00 00 00 00 FF 0F F8 [20:05:20]RasterBufferAndPrint [20:05:20]line Счет N : (1)16323 [20:05:20]line ИНН: 02508201610067 [20:05:20]line Контрольно-Кассовый Чек [20:05:20]line ПРОДАЖА [20:05:20]line ТРК (МРК, ГНК) : 21 [20:05:20]line Товар: 2710124130 [20:05:20]line Аи-92-К-5 [20:05:20]line 18.690 * 66.90 [20:05:20]line = 1250.36 [20:05:20]line НДС 12% НСП 1% [20:05:20]line > о реализуемом товаре [20:05:20]line ОКРУГЛЕНИЕ: -0.36 [20:05:20]line ИТОГО: 1250.00 [20:05:20]line Внесено: 3000.00 [20:05:20]line СДАЧА: 1750.00 [20:05:20]line НСП 1% : 11.06 [20:05:20]line НДС 12% : 132.78 [20:05:20]line Наличными: 1250.00 [20:05:20]line Безнал.: 0.00 [20:05:20]line Место: АЗС № 178 "Партнер Нефть" [20:05:20]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [20:05:20]line СНО: Общий режим [20:05:20]line Чек 118 29.10.2024 20:05 [20:05:20]line Смена: 172 ФФД: 1.0 [20:05:20]line ЗНМ: 0300000014 [20:05:20]line РНМ: 0000000000161798 [20:05:20]line Версия ККМ: v1.0 [20:05:20]line ФМ: 0000000000963325 [20:05:20]line ФД: 15772 [20:05:20]line ФПД: 267944023079349 [20:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T200531&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15772&fm=267944023079349&tin=02508201610067®Number=0000000000161798&sum=125000 [20:05:20]OFD Sender: Processing packet 15772 [packets to send 4, broken 3] [20:05:20]ProducePacketName [20:05:20]name=ofd_packets/00015772 [20:05:20]OFD Sender: To server: pG, [20:05:20]CommunicateWithHost lk.salyk.kg:30040 [20:05:20]ConnectInit lk.salyk.kg [20:05:20]written 0, free lines is 4095 [20:05:20]Connected sock=9 [20:05:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 E5 B8 07 01 DE DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6C E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 33 00 00 00 00 07 04 06 00 48 E8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0B 40 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9C 3D 00 00 35 04 06 00 F3 B1 94 50 B9 B5 D1 6B A2 61 9B 05 B4 02 [20:05:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 82 C4 47 00 43 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9C 3D 00 00 F4 03 04 00 F7 EA 20 67 B6 04 01 00 00 33 EA 39 49 CB 8F 09 49 [20:05:21]CommunicateWithHost err = 0 [20:05:21]CheckOFDResponse [20:05:21]1017 (14) - 77093643461234 [20:05:21]1041 (16) - 0000000000963325 [20:05:21]1040 (4) - 15772 [20:05:21]1012 (4) - 29.10.2024 14:02 [20:05:21]1206 (1) - 0 [20:05:21]OFD Sender: Remove packet 15772 [20:05:21]ProducePacketName [20:05:21]name=ofd_packets/00015772 [20:05:21]NVStorageDeleteData [20:05:21]Write to MH i2c: 01 00 00 B6 58 0E [20:05:21]Write i2c OK [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: 01 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: 01 07 00 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: 01 07 00 B6 58 00 00 00 00 00 F6 0C 17 [20:05:21]RasterBufferAndPrint [20:05:21]line [20:05:21]line [20:05:21]line [20:05:21]line [20:05:21]line [20:05:21]written 0, free lines is 3324 [20:05:21]MH_Cut [20:05:21]Write to MH i2c: D1 01 00 BD 58 01 E7 [20:05:21]Write i2c OK [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: D1 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: D1 01 00 [20:05:21]MH_I2C_Read... [20:05:21]Read from MH i2c: D1 01 00 BD 58 00 E6 [20:05:21]Write to MH i2c: 01 00 00 BE 58 16 [20:05:21]Write i2c OK [20:05:21]MH_I2C_Read... [20:05:21]OFD Sender: No OFD packet to send [20:05:21]*** Cut start [20:05:21]*** Partial cut [20:05:21]*** CUTSNS_PIN = 1 [20:05:21]*** CUTSNS_PIN = 0 [20:05:22]*** Brake cut motor [20:05:22]Read from MH i2c: 01 [20:05:22]MH_I2C_Read... [20:05:22]*** Stop cut motor [20:05:22]*** Cut end [20:05:22]Read from MH i2c: 01 07 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: 01 07 00 BE 58 00 00 00 00 00 FF 0F 2B [20:05:22]process_action close_receipt done [20:05:22]requested_data is exist [20:05:22]produce_requested_data [20:05:22]requested_item fm.sn is exist - process it [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 11 00 00 [20:05:22]Write to MH i2c: E2 08 00 BF 58 80 11 00 00 00 00 00 00 91 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 17 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 17 00 BF 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E0 [20:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:05:22]wFMCommunicate OK [20:05:22]requested_item fd.num is exist - process it [20:05:22]SAM_PROTO_GetFieldsCounters [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 13 00 00 [20:05:22]Write to MH i2c: E2 08 00 C0 58 80 13 00 00 00 00 00 00 94 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 62 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 62 00 C0 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9C 3D 00 00 0E 04 04 00 AC 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 9F [20:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9C 3D 00 00 0E 04 04 00 AC 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 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_GetFieldsCounters done [20:05:22]requested_item shift.num is exist - process it [20:05:22]requested_item shift.opened is exist - process it [20:05:22]req_shift_opened [20:05:22]FM_GetShiftState [20:05:22]SAM_PROTO_GetShiftState [20:05:22]wFMCommunicate request_size=4 [20:05:22]MH_SAM_APDU [20:05:22]CAPDU: 80 13 01 00 [20:05:22]Write to MH i2c: E2 08 00 C1 58 80 13 01 00 00 00 00 00 96 [20:05:22]Write i2c OK [20:05:22]MH_I2C_Read... [20:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:22]Read from MH i2c: E2 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0E 00 [20:05:22]MH_I2C_Read... [20:05:22]Read from MH i2c: E2 0E 00 C1 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 EB [20:05:22]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:05:22]wFMCommunicate OK [20:05:22]SAM_PROTO_GetShiftState done [20:05:22]FM_GetShiftState done [20:05:22]req_shift_opened done [20:05:22]requested_item shift.open_date is exist - process it [20:05:22]req_shift_open_date [20:05:22]req_shift_open_date done [20:05:22]produce_requested_data done [20:05:22]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15772,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [20:05:22]process_action_free close_receipt [20:05:22]json_value_free [20:05:22]json_value_free done [20:05:22]process_json_proto returns [20:05:22]Send response to host [20:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15772,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [20:05:22]free response buf [20:05:22]execute_script done [20:05:22]execute_script returns [20:05:22]free content buf [20:05:22]Sock 10.Close socket [20:05:22]Sock 10.Thread stoped [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:16]OFD Sender: No OFD packet to send [20:15:21]OFD Sender: No OFD packet to send [20:15:26]OFD Sender: No OFD packet to send [20:15:31]OFD Sender: No OFD packet to send [20:15:36]OFD Sender: No OFD packet to send [20:15:41]OFD Sender: No OFD packet to send [20:15:46]OFD Sender: No OFD packet to send [20:15:51]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:44]accept exits with 8 [20:28:44]New connection [20:28:44]New thread 3066588516 created [20:28:44]Thread 3066731876 joined [20:28:44]Waiting for new connection... [20:28:44] Sock 8.Parse request [20:28:44]Sock 8.Check first char [20:28:44]Sock 8.First char is OK [20:28:44]request: POST /json_proto HTTP/1.0 [20:28:44]Method: POST [20:28:44]URL: /json_proto [20:28:44]Method is POST - this is cgi request [20:28:44]url: /json_proto [20:28:44]query_string will be loaded in cgi processing [20:28:44]execute_cgi json_proto POST (null) [20:28:44]execute_cgi path=json_proto method=POST [20:28:44]POST find Content-Length [20:28:44]Host: 172.17.54.195:8080 [20:28:44]Content-Length: 681 [20:28:44]Content-Type: application/json [20:28:44] [20:28:44]POST finish read [20:28:44]Found Content-Length = 681 [20:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:28:44]execute_script... [20:28: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)16324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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:28:44]POST & json_proto [20:28:44]process_json_proto [20:28:44]json parsed OK: [20:28:44]protocol is kg_v1.0 [20:28:44]action value=close_receipt [20:28:44]process_action close_receipt [20:28:44]cmd_close_receipt [20:28:44]MH_GetDate [20:28:44]Write to MH i2c: F0 00 00 C2 58 09 [20:28:44]Write i2c OK [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: F0 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: F0 09 00 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: F0 09 00 C2 58 00 89 45 21 67 8D 90 A3 66 8E [20:28:44]GetLastDocTimeStamp 1730232331 [20:28:44]current date 1730233737 [20:28:44]FM_GetShiftState [20:28:44]SAM_PROTO_GetShiftState [20:28:44]wFMCommunicate request_size=4 [20:28:44]MH_SAM_APDU [20:28:44]CAPDU: 80 13 01 00 [20:28:44]Write to MH i2c: E2 08 00 C3 58 80 13 01 00 00 00 00 00 98 [20:28:44]Write i2c OK [20:28:44]MH_I2C_Read... [20:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:44]Read from MH i2c: E2 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: E2 0E 00 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: E2 0E 00 C3 58 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 ED [20:28:44]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:28:44]wFMCommunicate OK [20:28:44]SAM_PROTO_GetShiftState done [20:28:44]FM_GetShiftState done [20:28:44]opened in 1730161559 [20:28:44]opened+sec_in_day 1730247959 [20:28:44]quantity*price = 200031 [20:28:44]sum+1 = 200032 [20:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 119 29.10.2024 20:28 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15773 ФПД: 9154245278728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T202857&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15773&fm=9154245278728&tin=02508201610067®Number=0000000000161798&sum=200000 [20:28:45]StoreToDocumentArchive [20:28:45]shift 172 fd 15773 [20:28:45]save to /storage/0172/doc_00015773 [20:28:45]save last doc name /storage/0172/doc_00015773 to /storage/kkm_last_doc_name [20:28:45]save OK [20:28:45]Clear old archive folders... [20:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:45]tlvbuf is 0047FD60 [20:28:45]SAM_PROTO_ClearQueue [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 09 00 00 [20:28:45]Write to MH i2c: E2 08 00 D0 58 80 09 00 00 00 00 00 00 9A [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 D0 58 00 90 00 9C [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]SAM_PROTO_ClearQueue done [20:28:45]KKMCreateOFDPacket [20:28:45]OFDProtocolAddRootSTLVToBuf [20:28:45]FM_MakeSignedData [20:28:45]FM_MakeSignedData [20:28:45]SAM_PROTO_SignData [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 01 02 [20:28:45]Write to MH i2c: E2 08 00 D1 58 80 0D 01 02 00 00 00 00 A2 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 03 00 D1 58 00 90 00 9D [20:28:45]RAPDU: 90 00 [20:28:45]wFMCommunicate OK [20:28:45]wFMCommunicate request_size=255 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 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 77 00 00 00 F4 03 04 00 89 45 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9D 3D 00 00 35 04 06 00 08 [20:28:45]Write to MH i2c: E2 02 01 D2 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 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 77 00 00 00 F4 03 04 00 89 45 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9D 3D 00 00 35 04 06 00 08 00 00 D1 [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:46]Read from MH i2c: E2 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 03 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 03 00 D2 58 00 90 00 9E [20:28:46]RAPDU: 90 00 [20:28:46]wFMCommunicate OK [20:28:46]wFMCommunicate request_size=10 [20:28:46]MH_SAM_APDU [20:28:46]CAPDU: 80 0D 02 02 05 53 63 89 BC 08 [20:28:46]Write to MH i2c: E2 0D 00 D3 58 80 0D 02 02 05 00 53 63 89 BC 08 00 00 B2 [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:46]Read from MH i2c: E2 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 03 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 03 00 D3 58 00 90 00 9F [20:28:46]RAPDU: 90 00 [20:28:46]wFMCommunicate OK [20:28:46]wFMCommunicate request_size=4 [20:28:46]MH_SAM_APDU [20:28:46]CAPDU: 80 0D 03 02 [20:28:46]Write to MH i2c: E2 08 00 D4 58 80 0D 03 02 00 00 00 00 A7 [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:46]Read from MH i2c: E2 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 0B 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 0B 00 D4 58 00 EC E0 EA 93 93 89 7E 46 90 00 D1 [20:28:46]RAPDU: EC E0 EA 93 93 89 7E 46 90 00 [20:28:46]wFMCommunicate OK [20:28:46]SAM_PROTO_SignData done [20:28:46]FM_MakeSignedData done [20:28:46]CreateOFDProtocolMessage [20:28:46]wFMCommunicate request_size=4 [20:28:46]MH_SAM_APDU [20:28:46]CAPDU: 80 11 00 00 [20:28:46]Write to MH i2c: E2 08 00 D5 58 80 11 00 00 00 00 00 00 A7 [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:46]Read from MH i2c: E2 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 17 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: E2 17 00 D5 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F6 [20:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:28:46]wFMCommunicate OK [20:28:46]CreateOFDProtocolMessage done [20:28:46]OFDSenderStorePacket 15773 [20:28:46]StoreOFDPacket docnum=15773 [20:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 3C 2A 07 01 52 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 35 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 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 77 00 00 00 F4 03 04 00 89 45 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9D 3D 00 00 35 04 06 00 08 53 63 89 BC 08 EC E0 EA 93 93 89 7E 46 [20:28:46]CheckFolder [20:28:46]dirname=/storage/ofd_packets [20:28:46]CheckFolder done [20:28:46]ProducePacketName [20:28:46]name=ofd_packets/00015773 [20:28:46]NVStorageSaveData ofd_packets/00015773 [20:28:46]File name is /storage/ofd_packets/00015773 [20:28:46]Write 301 bytes [20:28:46]NVStorageSaveData done [20:28:46]OFDSenderStorePacket done [20:28:46]KKMCreateOFDPacket done [20:28:46]NVStorageSaveData kkm_last_timestamp [20:28:46]File name is /storage/kkm_last_timestamp [20:28:46]Write 4 bytes [20:28:46]NVStorageSaveData done [20:28:46]ExternCall_PrintAddStr [20:28:46]wPrintStart [20:28:46]Write to MH i2c: 01 00 00 D6 58 2E [20:28:46]Write i2c OK [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 [20:28:46]MH_I2C_Read... [20:28:46]Read from MH i2c: 01 07 00 D6 58 00 00 00 00 00 FF 0F 43 [20:28:46]RasterBufferAndPrint [20:28:46]line Счет N : (1)16324 [20:28:46]line ИНН: 02508201610067 [20:28:46]line Контрольно-Кассовый Чек [20:28:46]line ПРОДАЖА [20:28:46]line ТРК (МРК, ГНК) : 21 [20:28:46]line Товар: 2710124130 [20:28:46]line Аи-92-К-5 [20:28:46]line 29.900 * 66.90 [20:28:46]line = 2000.31 [20:28:46]line НДС 12% НСП 1% [20:28:46]line > о реализуемом товаре [20:28:46]line ОКРУГЛЕНИЕ: -0.31 [20:28:46]line ИТОГО: 2000.00 [20:28:46]line Внесено: 2000.00 [20:28:46]line СДАЧА: 0.00 [20:28:46]line НСП 1% : 17.70 [20:28:46]line НДС 12% : 212.42 [20:28:46]line Наличными: 2000.00 [20:28:46]line Безнал.: 0.00 [20:28:46]line Место: АЗС № 178 "Партнер Нефть" [20:28:46]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [20:28:46]line СНО: Общий режим [20:28:46]line Чек 119 29.10.2024 20:28 [20:28:46]line Смена: 172 ФФД: 1.0 [20:28:46]line ЗНМ: 0300000014 [20:28:46]line РНМ: 0000000000161798 [20:28:46]line Версия ККМ: v1.0 [20:28:46]line ФМ: 0000000000963325 [20:28:46]line ФД: 15773 [20:28:46]line ФПД: 9154245278728 [20:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T202857&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15773&fm=9154245278728&tin=02508201610067®Number=0000000000161798&sum=200000 [20:28:46]OFD Sender: Processing packet 15773 [packets to send 4, broken 3] [20:28:46]ProducePacketName [20:28:46]name=ofd_packets/00015773 [20:28:46]OFD Sender: To server: pG, [20:28:46]CommunicateWithHost lk.salyk.kg:30040 [20:28:46]ConnectInit lk.salyk.kg [20:28:46]written 0, free lines is 4095 [20:28:46]Connected sock=10 [20:28:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 3C 2A 07 01 52 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 35 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 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 77 00 00 00 F4 03 04 00 89 45 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9D 3D 00 00 35 04 06 00 08 53 63 89 BC 08 EC E0 EA 93 93 89 7E 46 [20:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 5B 33 47 00 D5 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9D 3D 00 00 F4 03 04 00 75 F0 20 67 B6 04 01 00 00 20 61 39 7B 7C E1 76 A4 [20:28:47]CommunicateWithHost err = 0 [20:28:47]CheckOFDResponse [20:28:47]1017 (14) - 77093643461234 [20:28:47]1041 (16) - 0000000000963325 [20:28:47]1040 (4) - 15773 [20:28:47]1012 (4) - 29.10.2024 14:25 [20:28:47]1206 (1) - 0 [20:28:47]OFD Sender: Remove packet 15773 [20:28:47]ProducePacketName [20:28:47]name=ofd_packets/00015773 [20:28:47]NVStorageDeleteData [20:28:47]Write to MH i2c: 01 00 00 01 59 5A [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: 01 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: 01 07 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: 01 07 00 01 59 00 00 00 00 00 F5 0C 62 [20:28:47]RasterBufferAndPrint [20:28:47]line [20:28:47]line [20:28:47]line [20:28:47]line [20:28:47]line [20:28:47]written 0, free lines is 3324 [20:28:47]MH_Cut [20:28:47]Write to MH i2c: D1 01 00 08 59 01 33 [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: D1 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: D1 01 00 [20:28:47]MH_I2C_Read... [20:28:47]Read from MH i2c: D1 01 00 08 59 00 32 [20:28:47]Write to MH i2c: 01 00 00 09 59 62 [20:28:47]Write i2c OK [20:28:47]MH_I2C_Read... [20:28:47]OFD Sender: No OFD packet to send [20:28:47]*** Cut start [20:28:47]*** Partial cut [20:28:47]*** CUTSNS_PIN = 1 [20:28:47]*** CUTSNS_PIN = 0 [20:28:48]*** Brake cut motor [20:28:48]Read from MH i2c: 01 [20:28:48]MH_I2C_Read... [20:28:48]*** Stop cut motor [20:28:48]*** Cut end [20:28:48]Read from MH i2c: 01 07 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: 01 07 00 09 59 00 00 00 00 00 FF 0F 77 [20:28:48]process_action close_receipt done [20:28:48]requested_data is exist [20:28:48]produce_requested_data [20:28:48]requested_item fm.sn is exist - process it [20:28:48]wFMCommunicate request_size=4 [20:28:48]MH_SAM_APDU [20:28:48]CAPDU: 80 11 00 00 [20:28:48]Write to MH i2c: E2 08 00 0A 59 80 11 00 00 00 00 00 00 DD [20:28:48]Write i2c OK [20:28:48]MH_I2C_Read... [20:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:48]Read from MH i2c: E2 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 17 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 17 00 0A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 2C [20:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:28:48]wFMCommunicate OK [20:28:48]requested_item fd.num is exist - process it [20:28:48]SAM_PROTO_GetFieldsCounters [20:28:48]wFMCommunicate request_size=4 [20:28:48]MH_SAM_APDU [20:28:48]CAPDU: 80 13 00 00 [20:28:48]Write to MH i2c: E2 08 00 0B 59 80 13 00 00 00 00 00 00 E0 [20:28:48]Write i2c OK [20:28:48]MH_I2C_Read... [20:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:48]Read from MH i2c: E2 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 62 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 62 00 0B 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9D 3D 00 00 0E 04 04 00 AC 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 EF [20:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9D 3D 00 00 0E 04 04 00 AC 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 [20:28:48]wFMCommunicate OK [20:28:48]SAM_PROTO_GetFieldsCounters done [20:28:48]requested_item shift.num is exist - process it [20:28:48]requested_item shift.opened is exist - process it [20:28:48]req_shift_opened [20:28:48]FM_GetShiftState [20:28:48]SAM_PROTO_GetShiftState [20:28:48]wFMCommunicate request_size=4 [20:28:48]MH_SAM_APDU [20:28:48]CAPDU: 80 13 01 00 [20:28:48]Write to MH i2c: E2 08 00 0C 59 80 13 01 00 00 00 00 00 E2 [20:28:48]Write i2c OK [20:28:48]MH_I2C_Read... [20:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:48]Read from MH i2c: E2 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 0E 00 [20:28:48]MH_I2C_Read... [20:28:48]Read from MH i2c: E2 0E 00 0C 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 37 [20:28:48]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:28:48]wFMCommunicate OK [20:28:48]SAM_PROTO_GetShiftState done [20:28:48]FM_GetShiftState done [20:28:48]req_shift_opened done [20:28:48]requested_item shift.open_date is exist - process it [20:28:48]req_shift_open_date [20:28:48]req_shift_open_date done [20:28:48]produce_requested_data done [20:28:48]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15773,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [20:28:48]process_action_free close_receipt [20:28:48]json_value_free [20:28:48]json_value_free done [20:28:48]process_json_proto returns [20:28:48]Send response to host [20:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15773,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [20:28:48]free response buf [20:28:48]execute_script done [20:28:48]execute_script returns [20:28:48]free content buf [20:28:48]Sock 8.Close socket [20:28:48]Sock 8.Thread stoped [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:57]OFD Sender: No OFD packet to send [20:31:02]OFD Sender: No OFD packet to send [20:31:07]OFD Sender: No OFD packet to send [20:31:12]OFD Sender: No OFD packet to send [20:31:17]OFD Sender: No OFD packet to send [20:31:22]OFD Sender: No OFD packet to send [20:31:27]OFD Sender: No OFD packet to send [20:31:32]OFD Sender: No OFD packet to send [20:31:37]OFD Sender: No OFD packet to send [20:31:42]OFD Sender: No OFD packet to send [20:31:47]OFD Sender: No OFD packet to send [20:31:52]OFD Sender: No OFD packet to send [20:31:57]OFD Sender: No OFD packet to send [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:57]OFD Sender: No OFD packet to send [20:33:02]OFD Sender: No OFD packet to send [20:33:07]OFD Sender: No OFD packet to send [20:33:12]OFD Sender: No OFD packet to send [20:33:17]OFD Sender: No OFD packet to send [20:33:22]OFD Sender: No OFD packet to send [20:33:27]OFD Sender: No OFD packet to send [20:33:32]OFD Sender: No OFD packet to send [20:33:37]OFD Sender: No OFD packet to send [20:33:42]OFD Sender: No OFD packet to send [20:33:47]OFD Sender: No OFD packet to send [20:33:52]OFD Sender: No OFD packet to send [20:33:57]OFD Sender: No OFD packet to send [20:34:02]OFD Sender: No OFD packet to send [20:34:07]OFD Sender: No OFD packet to send [20:34:12]OFD Sender: No OFD packet to send [20:34:22]OFD Sender: No OFD packet to send [20:34:27]OFD Sender: No OFD packet to send [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:35]ConnectInit Can't connect to host [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:04]accept exits with 9 [20:38:04]New connection [20:38:04]New thread 3066731876 created [20:38:04]Thread 3066588516 joined [20:38:04]Waiting for new connection... [20:38:04] Sock 9.Parse request [20:38:04]Sock 9.Check first char [20:38:04]Sock 9.First char is OK [20:38:04]request: POST /json_proto HTTP/1.0 [20:38:04]Method: POST [20:38:04]URL: /json_proto [20:38:04]Method is POST - this is cgi request [20:38:04]url: /json_proto [20:38:04]query_string will be loaded in cgi processing [20:38:04]execute_cgi json_proto POST (null) [20:38:04]execute_cgi path=json_proto method=POST [20:38:04]POST find Content-Length [20:38:04]Host: 172.17.54.195:8080 [20:38:04]Content-Length: 977 [20:38:04]Content-Type: application/json [20:38:04] [20:38:04]POST finish read [20:38:04]Found Content-Length = 977 [20:38:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:04]execute_script... [20: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)16325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "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 178\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:04]POST & json_proto [20:38:04]process_json_proto [20:38:04]json parsed OK: [20:38:04]protocol is kg_v1.0 [20:38:04]action value=close_receipt [20:38:04]process_action close_receipt [20:38:04]cmd_close_receipt [20:38:04]MH_GetDate [20:38:04]Write to MH i2c: F0 00 00 0D 59 55 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: F0 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: F0 09 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: F0 09 00 0D 59 00 B9 47 21 67 8D 90 A3 66 0C [20:38:04]GetLastDocTimeStamp 1730233737 [20:38:04]current date 1730234297 [20:38:04]FM_GetShiftState [20:38:04]SAM_PROTO_GetShiftState [20:38:04]wFMCommunicate request_size=4 [20:38:04]MH_SAM_APDU [20:38:04]CAPDU: 80 13 01 00 [20:38:04]Write to MH i2c: E2 08 00 0E 59 80 13 01 00 00 00 00 00 E4 [20:38:04]Write i2c OK [20:38:04]MH_I2C_Read... [20:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:04]Read from MH i2c: E2 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 0E 00 [20:38:04]MH_I2C_Read... [20:38:04]Read from MH i2c: E2 0E 00 0E 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 39 [20:38:04]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:38:04]wFMCommunicate OK [20:38:04]SAM_PROTO_GetShiftState done [20:38:04]FM_GetShiftState done [20:38:04]opened in 1730161559 [20:38:04]opened+sec_in_day 1730247959 [20:38:04]quantity*price = 450072 [20:38:04]sum+1 = 450073 [20:38:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 120 29.10.2024 20:38 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Дисконтная программа ДТ номер 178 сэкономлено 59.85 сом ФМ: 0000000000963325 ФД: 15774 ФПД: 124355643396240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T203818&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15774&fm=124355643396240&tin=02508201610067®Number=0000000000161798&sum=450000 [20:38:06]StoreToDocumentArchive [20:38:06]shift 172 fd 15774 [20:38:06]save to /storage/0172/doc_00015774 [20:38:06]save last doc name /storage/0172/doc_00015774 to /storage/kkm_last_doc_name [20:38:06]save OK [20:38:06]Clear old archive folders... [20:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:38:06]tlvbuf is 00380DE0 [20:38:06]SAM_PROTO_ClearQueue [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 09 00 00 [20:38:06]Write to MH i2c: E2 08 00 1B 59 80 09 00 00 00 00 00 00 E6 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 1B 59 00 90 00 E8 [20:38:06]RAPDU: 90 00 [20:38:06]wFMCommunicate OK [20:38:06]SAM_PROTO_ClearQueue done [20:38:06]KKMCreateOFDPacket [20:38:06]OFDProtocolAddRootSTLVToBuf [20:38:06]FM_MakeSignedData [20:38:06]FM_MakeSignedData [20:38:06]SAM_PROTO_SignData [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 0D 01 02 [20:38:06]Write to MH i2c: E2 08 00 1C 59 80 0D 01 02 00 00 00 00 EE [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 1C 59 00 90 00 E9 [20:38:06]RAPDU: 90 00 [20:38:06]wFMCommunicate OK [20:38:06]wFMCommunicate request_size=255 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BA 47 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9E 3D 00 00 35 04 06 00 71 19 CD F3 [20:38:06]Write to MH i2c: E2 02 01 1D 59 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BA 47 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9E 3D 00 00 35 04 06 00 71 19 CD F3 00 00 BD [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 1D 59 00 90 00 EA [20:38:06]RAPDU: 90 00 [20:38:06]wFMCommunicate OK [20:38:06]wFMCommunicate request_size=7 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 0D 02 02 02 50 90 [20:38:06]Write to MH i2c: E2 0A 00 1E 59 80 0D 02 02 02 00 50 90 00 00 D5 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 03 00 1E 59 00 90 00 EB [20:38:06]RAPDU: 90 00 [20:38:06]wFMCommunicate OK [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 0D 03 02 [20:38:06]Write to MH i2c: E2 08 00 1F 59 80 0D 03 02 00 00 00 00 F3 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 0B 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 0B 00 1F 59 00 BF 68 FE 72 84 76 4B 1E 90 00 EE [20:38:06]RAPDU: BF 68 FE 72 84 76 4B 1E 90 00 [20:38:06]wFMCommunicate OK [20:38:06]SAM_PROTO_SignData done [20:38:06]FM_MakeSignedData done [20:38:06]CreateOFDProtocolMessage [20:38:06]wFMCommunicate request_size=4 [20:38:06]MH_SAM_APDU [20:38:06]CAPDU: 80 11 00 00 [20:38:06]Write to MH i2c: E2 08 00 20 59 80 11 00 00 00 00 00 00 F3 [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:06]Read from MH i2c: E2 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 17 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: E2 17 00 20 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 42 [20:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:38:06]wFMCommunicate OK [20:38:06]CreateOFDProtocolMessage done [20:38:06]OFDSenderStorePacket 15774 [20:38:06]StoreOFDPacket docnum=15774 [20:38:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 FA 13 04 01 13 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BA 47 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9E 3D 00 00 35 04 06 00 71 19 CD F3 50 90 BF 68 FE 72 84 76 4B 1E [20:38:06]CheckFolder [20:38:06]dirname=/storage/ofd_packets [20:38:06]CheckFolder done [20:38:06]ProducePacketName [20:38:06]name=ofd_packets/00015774 [20:38:06]NVStorageSaveData ofd_packets/00015774 [20:38:06]File name is /storage/ofd_packets/00015774 [20:38:06]Write 298 bytes [20:38:06]NVStorageSaveData done [20:38:06]OFDSenderStorePacket done [20:38:06]KKMCreateOFDPacket done [20:38:06]NVStorageSaveData kkm_last_timestamp [20:38:06]File name is /storage/kkm_last_timestamp [20:38:06]Write 4 bytes [20:38:06]NVStorageSaveData done [20:38:06]ExternCall_PrintAddStr [20:38:06]wPrintStart [20:38:06]Write to MH i2c: 01 00 00 21 59 7A [20:38:06]Write i2c OK [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 07 00 [20:38:06]MH_I2C_Read... [20:38:06]Read from MH i2c: 01 07 00 21 59 00 00 00 00 00 FF 0F 8F [20:38:06]RasterBufferAndPrint [20:38:06]line Счет N : (1)16325 [20:38:06]line ИНН: 02508201610067 [20:38:06]line Контрольно-Кассовый Чек [20:38:06]line ПРОДАЖА [20:38:06]line ТРК (МРК, ГНК) : 31 [20:38:06]line Товар: 2710194210 [20:38:06]line ДТ-К-5 [20:38:06]line 59.850 * 75.20 [20:38:06]line = 4500.72 [20:38:06]line НДС 12% НСП 1% [20:38:06]line > о реализуемом товаре [20:38:06]line ОКРУГЛЕНИЕ: -0.72 [20:38:06]line ИТОГО: 4500.00 [20:38:06]line Внесено: 4500.00 [20:38:06]line СДАЧА: 0.00 [20:38:06]line НСП 1% : 39.83 [20:38:06]line НДС 12% : 477.95 [20:38:06]line Наличными: 4500.00 [20:38:06]line Безнал.: 0.00 [20:38:06]line Место: АЗС № 178 "Партнер Нефть" [20:38:06]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [20:38:06]line СНО: Общий режим [20:38:06]line Чек 120 29.10.2024 20:38 [20:38:06]line Смена: 172 ФФД: 1.0 [20:38:06]line ЗНМ: 0300000014 [20:38:06]line РНМ: 0000000000161798 [20:38:06]line Версия ККМ: v1.0 [20:38:06]line [20:38:06]line Дисконтная программа [20:38:06]line ДТ [20:38:06]line номер 178 [20:38:06]line сэкономлено 59.85 сом [20:38:06]line ФМ: 0000000000963325 [20:38:06]line ФД: 15774 [20:38:06]line ФПД: 124355643396240 [20:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T203818&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15774&fm=124355643396240&tin=02508201610067®Number=0000000000161798&sum=450000 [20:38:06]OFD Sender: Processing packet 15774 [packets to send 4, broken 3] [20:38:06]ProducePacketName [20:38:06]name=ofd_packets/00015774 [20:38:06]OFD Sender: To server: pG, [20:38:06]CommunicateWithHost lk.salyk.kg:30040 [20:38:06]ConnectInit lk.salyk.kg [20:38:06]written 0, free lines is 4095 [20:38:07]Connected sock=11 [20:38:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 FA 13 04 01 13 AA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 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 BA 47 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9E 3D 00 00 35 04 06 00 71 19 CD F3 50 90 BF 68 FE 72 84 76 4B 1E [20:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 3F 1A 47 00 CD 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 30 39 36 33 33 32 35 10 04 04 00 9E 3D 00 00 F4 03 04 00 A5 F2 20 67 B6 04 01 00 00 0E 40 A9 C5 51 20 E9 C4 [20:38:07]CommunicateWithHost err = 0 [20:38:07]CheckOFDResponse [20:38:07]1017 (14) - 77093643461234 [20:38:07]1041 (16) - 0000000000963325 [20:38:07]1040 (4) - 15774 [20:38:07]1012 (4) - 29.10.2024 14:35 [20:38:07]1206 (1) - 0 [20:38:07]OFD Sender: Remove packet 15774 [20:38:07]ProducePacketName [20:38:07]name=ofd_packets/00015774 [20:38:07]NVStorageDeleteData [20:38:07]Write to MH i2c: 01 00 00 51 59 AA [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: 01 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: 01 07 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: 01 07 00 51 59 00 00 00 00 00 98 0C 55 [20:38:07]RasterBufferAndPrint [20:38:07]line [20:38:07]line [20:38:07]line [20:38:07]line [20:38:07]line [20:38:07]written 0, free lines is 3230 [20:38:07]MH_Cut [20:38:07]Write to MH i2c: D1 01 00 58 59 01 83 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: D1 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: D1 01 00 [20:38:07]MH_I2C_Read... [20:38:07]Read from MH i2c: D1 01 00 58 59 00 82 [20:38:07]Write to MH i2c: 01 00 00 59 59 B2 [20:38:07]Write i2c OK [20:38:07]MH_I2C_Read... [20:38:07]OFD Sender: No OFD packet to send [20:38:08]*** Cut start [20:38:08]*** Partial cut [20:38:08]*** CUTSNS_PIN = 1 [20:38:08]*** CUTSNS_PIN = 0 [20:38:08]*** Brake cut motor [20:38:08]Read from MH i2c: 01 [20:38:08]MH_I2C_Read... [20:38:08]*** Stop cut motor [20:38:08]*** Cut end [20:38:08]Read from MH i2c: 01 07 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: 01 07 00 59 59 00 00 00 00 00 FF 0F C7 [20:38:08]process_action close_receipt done [20:38:08]requested_data is exist [20:38:08]produce_requested_data [20:38:08]requested_item fm.sn is exist - process it [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 11 00 00 [20:38:08]Write to MH i2c: E2 08 00 5A 59 80 11 00 00 00 00 00 00 2D [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:08]Read from MH i2c: E2 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 [20:38:08]MH_I2C_Read... [20:38:08]Read from MH i2c: E2 17 00 5A 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7C [20:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:38:08]wFMCommunicate OK [20:38:08]requested_item fd.num is exist - process it [20:38:08]SAM_PROTO_GetFieldsCounters [20:38:08]wFMCommunicate request_size=4 [20:38:08]MH_SAM_APDU [20:38:08]CAPDU: 80 13 00 00 [20:38:08]Write to MH i2c: E2 08 00 5B 59 80 13 00 00 00 00 00 00 30 [20:38:08]Write i2c OK [20:38:08]MH_I2C_Read... [20:38:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:09]Read from MH i2c: E2 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: E2 62 00 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: E2 62 00 5B 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9E 3D 00 00 0E 04 04 00 AC 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 43 [20:38:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9E 3D 00 00 0E 04 04 00 AC 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 [20:38:09]wFMCommunicate OK [20:38:09]SAM_PROTO_GetFieldsCounters done [20:38:09]requested_item shift.num is exist - process it [20:38:09]requested_item shift.opened is exist - process it [20:38:09]req_shift_opened [20:38:09]FM_GetShiftState [20:38:09]SAM_PROTO_GetShiftState [20:38:09]wFMCommunicate request_size=4 [20:38:09]MH_SAM_APDU [20:38:09]CAPDU: 80 13 01 00 [20:38:09]Write to MH i2c: E2 08 00 5C 59 80 13 01 00 00 00 00 00 32 [20:38:09]Write i2c OK [20:38:09]MH_I2C_Read... [20:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:09]Read from MH i2c: E2 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: E2 0E 00 [20:38:09]MH_I2C_Read... [20:38:09]Read from MH i2c: E2 0E 00 5C 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 87 [20:38:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:38:09]wFMCommunicate OK [20:38:09]SAM_PROTO_GetShiftState done [20:38:09]FM_GetShiftState done [20:38:09]req_shift_opened done [20:38:09]requested_item shift.open_date is exist - process it [20:38:09]req_shift_open_date [20:38:09]req_shift_open_date done [20:38:09]produce_requested_data done [20:38:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15774,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [20:38:09]process_action_free close_receipt [20:38:09]json_value_free [20:38:09]json_value_free done [20:38:09]process_json_proto returns [20:38:09]Send response to host [20:38:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15774,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [20:38:09]free response buf [20:38:09]execute_script done [20:38:09]execute_script returns [20:38:09]free content buf [20:38:09]Sock 9.Close socket [20:38:09]Sock 9.Thread stoped [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:09]accept exits with 10 [20:52:09]New connection [20:52:09]New thread 3066588516 created [20:52:09]Thread 3066731876 joined [20:52:09]Waiting for new connection... [20:52:09] Sock 10.Parse request [20:52:09]Sock 10.Check first char [20:52:09]Sock 10.First char is OK [20:52:09]request: POST /json_proto HTTP/1.0 [20:52:09]Method: POST [20:52:09]URL: /json_proto [20:52:09]Method is POST - this is cgi request [20:52:09]url: /json_proto [20:52:09]query_string will be loaded in cgi processing [20:52:09]execute_cgi json_proto POST (null) [20:52:09]execute_cgi path=json_proto method=POST [20:52:09]POST find Content-Length [20:52:09]Host: 172.17.54.195:8080 [20:52:09]Content-Length: 671 [20:52:09]Content-Type: application/json [20:52:09] [20:52:09]POST finish read [20:52:09]Found Content-Length = 671 [20:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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" ] } } [20:52:09]execute_script... [20:52: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)16326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 17.550, "sum" : 1200.42, "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" ] } } [20:52:09]POST & json_proto [20:52:09]process_json_proto [20:52:09]json parsed OK: [20:52:09]protocol is kg_v1.0 [20:52:09]action value=close_receipt [20:52:09]process_action close_receipt [20:52:09]cmd_close_receipt [20:52:09]MH_GetDate [20:52:09]Write to MH i2c: F0 00 00 5D 59 A5 [20:52:09]Write i2c OK [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 09 00 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: F0 09 00 5D 59 00 06 4B 21 67 8D 90 A3 66 AD [20:52:09]GetLastDocTimeStamp 1730234298 [20:52:09]current date 1730235142 [20:52:09]FM_GetShiftState [20:52:09]SAM_PROTO_GetShiftState [20:52:09]wFMCommunicate request_size=4 [20:52:09]MH_SAM_APDU [20:52:09]CAPDU: 80 13 01 00 [20:52:09]Write to MH i2c: E2 08 00 5E 59 80 13 01 00 00 00 00 00 34 [20:52:09]Write i2c OK [20:52:09]MH_I2C_Read... [20:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:09]Read from MH i2c: E2 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: E2 0E 00 [20:52:09]MH_I2C_Read... [20:52:09]Read from MH i2c: E2 0E 00 5E 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 89 [20:52:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:52:09]wFMCommunicate OK [20:52:09]SAM_PROTO_GetShiftState done [20:52:09]FM_GetShiftState done [20:52:09]opened in 1730161559 [20:52:09]opened+sec_in_day 1730247959 [20:52:09]quantity*price = 120042 [20:52:09]sum+1 = 120043 [20:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 121 29.10.2024 20:52 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15775 ФПД: 23354968057683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T205222&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15775&fm=23354968057683&tin=02508201610067®Number=0000000000161798&sum=120000 [20:52:10]StoreToDocumentArchive [20:52:10]shift 172 fd 15775 [20:52:10]save to /storage/0172/doc_00015775 [20:52:10]save last doc name /storage/0172/doc_00015775 to /storage/kkm_last_doc_name [20:52:10]save OK [20:52:10]Clear old archive folders... [20:52:10]ProcessDocumentItem done err = 0, tmpTLVsize=249 [20:52:10]tlvbuf is 00319CC0 [20:52:10]SAM_PROTO_ClearQueue [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 09 00 00 [20:52:10]Write to MH i2c: E2 08 00 6B 59 80 09 00 00 00 00 00 00 36 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 6B 59 00 90 00 38 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]SAM_PROTO_ClearQueue done [20:52:10]KKMCreateOFDPacket [20:52:10]OFDProtocolAddRootSTLVToBuf [20:52:10]FM_MakeSignedData [20:52:10]FM_MakeSignedData [20:52:10]SAM_PROTO_SignData [20:52:10]wFMCommunicate request_size=4 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 01 02 [20:52:10]Write to MH i2c: E2 08 00 6C 59 80 0D 01 02 00 00 00 00 3E [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:10]Read from MH i2c: E2 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 [20:52:10]MH_I2C_Read... [20:52:10]Read from MH i2c: E2 03 00 6C 59 00 90 00 39 [20:52:10]RAPDU: 90 00 [20:52:10]wFMCommunicate OK [20:52:10]wFMCommunicate request_size=255 [20:52:10]MH_SAM_APDU [20:52:10]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA 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 CC 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 79 00 00 00 F4 03 04 00 06 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9F 3D 00 00 35 04 06 00 15 3D C0 [20:52:10]Write to MH i2c: E2 02 01 6D 59 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA 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 CC 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 79 00 00 00 F4 03 04 00 06 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9F 3D 00 00 35 04 06 00 15 3D C0 00 00 E0 [20:52:10]Write i2c OK [20:52:10]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 6D 59 00 90 00 3A [20:52:11]RAPDU: 90 00 [20:52:11]wFMCommunicate OK [20:52:11]wFMCommunicate request_size=8 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 0D 02 02 03 93 27 53 [20:52:11]Write to MH i2c: E2 0B 00 6E 59 80 0D 02 02 03 00 93 27 53 00 00 54 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:11]Read from MH i2c: E2 03 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 03 00 6E 59 00 90 00 3B [20:52:11]RAPDU: 90 00 [20:52:11]wFMCommunicate OK [20:52:11]wFMCommunicate request_size=4 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 0D 03 02 [20:52:11]Write to MH i2c: E2 08 00 6F 59 80 0D 03 02 00 00 00 00 43 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 0B 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 0B 00 6F 59 00 D9 D7 82 CC 76 20 53 F6 90 00 21 [20:52:11]RAPDU: D9 D7 82 CC 76 20 53 F6 90 00 [20:52:11]wFMCommunicate OK [20:52:11]SAM_PROTO_SignData done [20:52:11]FM_MakeSignedData done [20:52:11]CreateOFDProtocolMessage [20:52:11]wFMCommunicate request_size=4 [20:52:11]MH_SAM_APDU [20:52:11]CAPDU: 80 11 00 00 [20:52:11]Write to MH i2c: E2 08 00 70 59 80 11 00 00 00 00 00 00 43 [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:11]Read from MH i2c: E2 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 17 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: E2 17 00 70 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 92 [20:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:52:11]wFMCommunicate OK [20:52:11]CreateOFDProtocolMessage done [20:52:11]OFDSenderStorePacket 15775 [20:52:11]StoreOFDPacket docnum=15775 [20:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 EB E8 05 01 C6 31 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA 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 CC 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 79 00 00 00 F4 03 04 00 06 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9F 3D 00 00 35 04 06 00 15 3D C0 93 27 53 D9 D7 82 CC 76 20 53 F6 [20:52:11]CheckFolder [20:52:11]dirname=/storage/ofd_packets [20:52:11]CheckFolder done [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00015775 [20:52:11]NVStorageSaveData ofd_packets/00015775 [20:52:11]File name is /storage/ofd_packets/00015775 [20:52:11]Write 299 bytes [20:52:11]NVStorageSaveData done [20:52:11]OFDSenderStorePacket done [20:52:11]KKMCreateOFDPacket done [20:52:11]NVStorageSaveData kkm_last_timestamp [20:52:11]File name is /storage/kkm_last_timestamp [20:52:11]Write 4 bytes [20:52:11]NVStorageSaveData done [20:52:11]ExternCall_PrintAddStr [20:52:11]wPrintStart [20:52:11]Write to MH i2c: 01 00 00 71 59 CA [20:52:11]Write i2c OK [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 [20:52:11]MH_I2C_Read... [20:52:11]Read from MH i2c: 01 07 00 71 59 00 00 00 00 00 FF 0F DF [20:52:11]RasterBufferAndPrint [20:52:11]line Счет N : (1)16326 [20:52:11]line ИНН: 02508201610067 [20:52:11]line Контрольно-Кассовый Чек [20:52:11]line ПРОДАЖА [20:52:11]line ТРК (МРК, ГНК) : 12 [20:52:11]line Товар: 50.50.0 [20:52:11]line SUPER 92-К-5 [20:52:11]line 17.550 * 68.40 [20:52:11]line = 1200.42 [20:52:11]line НДС 12% НСП 1% [20:52:11]line > о реализуемом товаре [20:52:11]line ОКРУГЛЕНИЕ: -0.42 [20:52:11]line ИТОГО: 1200.00 [20:52:11]line Внесено: 1200.00 [20:52:11]line СДАЧА: 0.00 [20:52:11]line НСП 1% : 10.62 [20:52:11]line НДС 12% : 127.48 [20:52:11]line Наличными: 1200.00 [20:52:11]line Безнал.: 0.00 [20:52:11]line Место: АЗС № 178 "Партнер Нефть" [20:52:11]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [20:52:11]line СНО: Общий режим [20:52:11]line Чек 121 29.10.2024 20:52 [20:52:11]line Смена: 172 ФФД: 1.0 [20:52:11]line ЗНМ: 0300000014 [20:52:11]line РНМ: 0000000000161798 [20:52:11]line Версия ККМ: v1.0 [20:52:11]line ФМ: 0000000000963325 [20:52:11]line ФД: 15775 [20:52:11]line ФПД: 23354968057683 [20:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T205222&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15775&fm=23354968057683&tin=02508201610067®Number=0000000000161798&sum=120000 [20:52:11]written 0, free lines is 4095 [20:52:11]OFD Sender: Processing packet 15775 [packets to send 4, broken 3] [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00015775 [20:52:11]OFD Sender: To server: pG, [20:52:11]CommunicateWithHost lk.salyk.kg:30040 [20:52:11]ConnectInit lk.salyk.kg [20:52:11]Connected sock=6 [20:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 EB E8 05 01 C6 31 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 EA 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 CC 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 79 00 00 00 F4 03 04 00 06 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9F 3D 00 00 35 04 06 00 15 3D C0 93 27 53 D9 D7 82 CC 76 20 53 F6 [20:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 F4 DD 47 00 41 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 9F 3D 00 00 F4 03 04 00 F2 F5 20 67 B6 04 01 00 00 2D DE F7 BC EE 3E B8 6B [20:52:12]CommunicateWithHost err = 0 [20:52:12]CheckOFDResponse [20:52:12]1017 (14) - 77093643461234 [20:52:12]1041 (16) - 0000000000963325 [20:52:12]1040 (4) - 15775 [20:52:12]1012 (4) - 29.10.2024 14:49 [20:52:12]1206 (1) - 0 [20:52:12]OFD Sender: Remove packet 15775 [20:52:12]ProducePacketName [20:52:12]name=ofd_packets/00015775 [20:52:12]NVStorageDeleteData [20:52:12]Write to MH i2c: 01 00 00 9C 59 F5 [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: 01 07 00 9C 59 00 00 00 00 00 E7 0C EF [20:52:12]RasterBufferAndPrint [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]line [20:52:12]written 0, free lines is 3310 [20:52:12]MH_Cut [20:52:12]Write to MH i2c: D1 01 00 A3 59 01 CE [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: D1 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: D1 01 00 [20:52:12]MH_I2C_Read... [20:52:12]Read from MH i2c: D1 01 00 A3 59 00 CD [20:52:12]Write to MH i2c: 01 00 00 A4 59 FD [20:52:12]Write i2c OK [20:52:12]MH_I2C_Read... [20:52:12]OFD Sender: No OFD packet to send [20:52:12]*** Cut start [20:52:12]*** Partial cut [20:52:12]*** CUTSNS_PIN = 1 [20:52:12]*** CUTSNS_PIN = 0 [20:52:13]*** Brake cut motor [20:52:13]Read from MH i2c: 01 [20:52:13]MH_I2C_Read... [20:52:13]*** Stop cut motor [20:52:13]*** Cut end [20:52:13]Read from MH i2c: 01 07 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: 01 07 00 A4 59 00 00 00 00 00 FF 0F 12 [20:52:13]process_action close_receipt done [20:52:13]requested_data is exist [20:52:13]produce_requested_data [20:52:13]requested_item fm.sn is exist - process it [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 11 00 00 [20:52:13]Write to MH i2c: E2 08 00 A5 59 80 11 00 00 00 00 00 00 78 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 17 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 17 00 A5 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C7 [20:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:52:13]wFMCommunicate OK [20:52:13]requested_item fd.num is exist - process it [20:52:13]SAM_PROTO_GetFieldsCounters [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 00 00 [20:52:13]Write to MH i2c: E2 08 00 A6 59 80 13 00 00 00 00 00 00 7B [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 62 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 62 00 A6 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9F 3D 00 00 0E 04 04 00 AC 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 92 [20:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 9F 3D 00 00 0E 04 04 00 AC 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 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetFieldsCounters done [20:52:13]requested_item shift.num is exist - process it [20:52:13]requested_item shift.opened is exist - process it [20:52:13]req_shift_opened [20:52:13]FM_GetShiftState [20:52:13]SAM_PROTO_GetShiftState [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 01 00 [20:52:13]Write to MH i2c: E2 08 00 A7 59 80 13 01 00 00 00 00 00 7D [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 A7 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D2 [20:52:13]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetShiftState done [20:52:13]FM_GetShiftState done [20:52:13]req_shift_opened done [20:52:13]requested_item shift.open_date is exist - process it [20:52:13]req_shift_open_date [20:52:13]req_shift_open_date done [20:52:13]produce_requested_data done [20:52:13]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15775,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [20:52:13]process_action_free close_receipt [20:52:13]json_value_free [20:52:13]json_value_free done [20:52:13]process_json_proto returns [20:52:13]Send response to host [20:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15775,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [20:52:13]free response buf [20:52:13]execute_script done [20:52:13]execute_script returns [20:52:13]free content buf [20:52:13]Sock 10.Close socket [20:52:13]Sock 10.Thread stoped [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:07]accept exits with 8 [20:53:07]New connection [20:53:07]New thread 3066731876 created [20:53:07]Thread 3066588516 joined [20:53:07]Waiting for new connection... [20:53:07] Sock 8.Parse request [20:53:07]Sock 8.Check first char [20:53:07]Sock 8.First char is OK [20:53:07]request: POST /json_proto HTTP/1.0 [20:53:07]Method: POST [20:53:07]URL: /json_proto [20:53:07]Method is POST - this is cgi request [20:53:07]url: /json_proto [20:53:07]query_string will be loaded in cgi processing [20:53:07]execute_cgi json_proto POST (null) [20:53:07]execute_cgi path=json_proto method=POST [20:53:07]POST find Content-Length [20:53:07]Host: 172.17.54.195:8080 [20:53:07]Content-Length: 681 [20:53:07]Content-Type: application/json [20:53:07] [20:53:07]POST finish read [20:53:07]Found Content-Length = 681 [20:53:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:53:07]execute_script... [20:53: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)16327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:53:07]POST & json_proto [20:53:07]process_json_proto [20:53:07]json parsed OK: [20:53:07]protocol is kg_v1.0 [20:53:07]action value=close_receipt [20:53:07]process_action close_receipt [20:53:07]cmd_close_receipt [20:53:07]MH_GetDate [20:53:07]Write to MH i2c: F0 00 00 A8 59 F0 [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 09 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: F0 09 00 A8 59 00 40 4B 21 67 8D 90 A3 66 32 [20:53:07]GetLastDocTimeStamp 1730235142 [20:53:07]current date 1730235200 [20:53:07]FM_GetShiftState [20:53:07]SAM_PROTO_GetShiftState [20:53:07]wFMCommunicate request_size=4 [20:53:07]MH_SAM_APDU [20:53:07]CAPDU: 80 13 01 00 [20:53:07]Write to MH i2c: E2 08 00 A9 59 80 13 01 00 00 00 00 00 7F [20:53:07]Write i2c OK [20:53:07]MH_I2C_Read... [20:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:07]Read from MH i2c: E2 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 [20:53:07]MH_I2C_Read... [20:53:07]Read from MH i2c: E2 0E 00 A9 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 D4 [20:53:07]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:53:07]wFMCommunicate OK [20:53:07]SAM_PROTO_GetShiftState done [20:53:07]FM_GetShiftState done [20:53:07]opened in 1730161559 [20:53:07]opened+sec_in_day 1730247959 [20:53:07]quantity*price = 100015 [20:53:07]sum+1 = 100017 [20:53:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 122 29.10.2024 20:53 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15776 ФПД: 124765216220097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T205320&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15776&fm=124765216220097&tin=02508201610067®Number=0000000000161798&sum=100000 [20:53:08]StoreToDocumentArchive [20:53:08]shift 172 fd 15776 [20:53:08]save to /storage/0172/doc_00015776 [20:53:08]save last doc name /storage/0172/doc_00015776 to /storage/kkm_last_doc_name [20:53:08]save OK [20:53:08]Clear old archive folders... [20:53:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:08]tlvbuf is 0031FB00 [20:53:08]SAM_PROTO_ClearQueue [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 09 00 00 [20:53:08]Write to MH i2c: E2 08 00 B6 59 80 09 00 00 00 00 00 00 81 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B6 59 00 90 00 83 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]SAM_PROTO_ClearQueue done [20:53:08]KKMCreateOFDPacket [20:53:08]OFDProtocolAddRootSTLVToBuf [20:53:08]FM_MakeSignedData [20:53:08]FM_MakeSignedData [20:53:08]SAM_PROTO_SignData [20:53:08]wFMCommunicate request_size=4 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 0D 01 02 [20:53:08]Write to MH i2c: E2 08 00 B7 59 80 0D 01 02 00 00 00 00 89 [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:08]Read from MH i2c: E2 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 [20:53:08]MH_I2C_Read... [20:53:08]Read from MH i2c: E2 03 00 B7 59 00 90 00 84 [20:53:08]RAPDU: 90 00 [20:53:08]wFMCommunicate OK [20:53:08]wFMCommunicate request_size=255 [20:53:08]MH_SAM_APDU [20:53:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 40 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A0 3D 00 00 35 04 06 00 71 [20:53:08]Write to MH i2c: E2 02 01 B8 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 40 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A0 3D 00 00 35 04 06 00 71 00 00 9C [20:53:08]Write i2c OK [20:53:08]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 03 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 03 00 B8 59 00 90 00 85 [20:53:09]RAPDU: 90 00 [20:53:09]wFMCommunicate OK [20:53:09]wFMCommunicate request_size=10 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 0D 02 02 05 79 2A 64 A3 C1 [20:53:09]Write to MH i2c: E2 0D 00 B9 59 80 0D 02 02 05 00 79 2A 64 A3 C1 00 00 01 [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 03 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 03 00 B9 59 00 90 00 86 [20:53:09]RAPDU: 90 00 [20:53:09]wFMCommunicate OK [20:53:09]wFMCommunicate request_size=4 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 0D 03 02 [20:53:09]Write to MH i2c: E2 08 00 BA 59 80 0D 03 02 00 00 00 00 8E [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 0B 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 0B 00 BA 59 00 C4 C2 FD D1 7A CB E1 5D 90 00 66 [20:53:09]RAPDU: C4 C2 FD D1 7A CB E1 5D 90 00 [20:53:09]wFMCommunicate OK [20:53:09]SAM_PROTO_SignData done [20:53:09]FM_MakeSignedData done [20:53:09]CreateOFDProtocolMessage [20:53:09]wFMCommunicate request_size=4 [20:53:09]MH_SAM_APDU [20:53:09]CAPDU: 80 11 00 00 [20:53:09]Write to MH i2c: E2 08 00 BB 59 80 11 00 00 00 00 00 00 8E [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:09]Read from MH i2c: E2 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 17 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: E2 17 00 BB 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 DD [20:53:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:53:09]wFMCommunicate OK [20:53:09]CreateOFDProtocolMessage done [20:53:09]OFDSenderStorePacket 15776 [20:53:09]StoreOFDPacket docnum=15776 [20:53:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 0A 83 07 01 E7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 40 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A0 3D 00 00 35 04 06 00 71 79 2A 64 A3 C1 C4 C2 FD D1 7A CB E1 5D [20:53:09]CheckFolder [20:53:09]dirname=/storage/ofd_packets [20:53:09]CheckFolder done [20:53:09]ProducePacketName [20:53:09]name=ofd_packets/00015776 [20:53:09]NVStorageSaveData ofd_packets/00015776 [20:53:09]File name is /storage/ofd_packets/00015776 [20:53:09]Write 301 bytes [20:53:09]NVStorageSaveData done [20:53:09]OFDSenderStorePacket done [20:53:09]KKMCreateOFDPacket done [20:53:09]NVStorageSaveData kkm_last_timestamp [20:53:09]File name is /storage/kkm_last_timestamp [20:53:09]Write 4 bytes [20:53:09]NVStorageSaveData done [20:53:09]ExternCall_PrintAddStr [20:53:09]wPrintStart [20:53:09]Write to MH i2c: 01 00 00 BC 59 15 [20:53:09]Write i2c OK [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 07 00 [20:53:09]MH_I2C_Read... [20:53:09]Read from MH i2c: 01 07 00 BC 59 00 00 00 00 00 FF 0F 2A [20:53:09]RasterBufferAndPrint [20:53:09]line Счет N : (1)16327 [20:53:09]line ИНН: 02508201610067 [20:53:09]line Контрольно-Кассовый Чек [20:53:09]line ПРОДАЖА [20:53:09]line ТРК (МРК, ГНК) : 21 [20:53:09]line Товар: 2710124130 [20:53:09]line Аи-92-К-5 [20:53:09]line 14.950 * 66.90 [20:53:09]line = 1000.16 [20:53:09]line НДС 12% НСП 1% [20:53:09]line > о реализуемом товаре [20:53:09]line ОКРУГЛЕНИЕ: -0.16 [20:53:09]line ИТОГО: 1000.00 [20:53:09]line Внесено: 1000.00 [20:53:09]line СДАЧА: 0.00 [20:53:09]line НСП 1% : 8.85 [20:53:09]line НДС 12% : 106.21 [20:53:09]line Наличными: 1000.00 [20:53:09]line Безнал.: 0.00 [20:53:09]line Место: АЗС № 178 "Партнер Нефть" [20:53:09]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [20:53:09]line СНО: Общий режим [20:53:09]line Чек 122 29.10.2024 20:53 [20:53:09]line Смена: 172 ФФД: 1.0 [20:53:09]line ЗНМ: 0300000014 [20:53:09]line РНМ: 0000000000161798 [20:53:09]line Версия ККМ: v1.0 [20:53:09]line ФМ: 0000000000963325 [20:53:09]line ФД: 15776 [20:53:09]line ФПД: 124765216220097 [20:53:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T205320&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15776&fm=124765216220097&tin=02508201610067®Number=0000000000161798&sum=100000 [20:53:09]OFD Sender: Processing packet 15776 [packets to send 4, broken 3] [20:53:09]ProducePacketName [20:53:09]name=ofd_packets/00015776 [20:53:09]OFD Sender: To server: pG, [20:53:09]CommunicateWithHost lk.salyk.kg:30040 [20:53:09]ConnectInit lk.salyk.kg [20:53:09]written 0, free lines is 4095 [20:53:09]Connected sock=10 [20:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 0A 83 07 01 E7 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7A 00 00 00 F4 03 04 00 40 4B 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A0 3D 00 00 35 04 06 00 71 79 2A 64 A3 C1 C4 C2 FD D1 7A CB E1 5D [20:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 9C 3B 47 00 D1 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A0 3D 00 00 F4 03 04 00 2C F6 20 67 B6 04 01 00 00 52 60 02 C7 5B 31 17 FE [20:53:09]CommunicateWithHost err = 0 [20:53:09]CheckOFDResponse [20:53:09]1017 (14) - 77093643461234 [20:53:09]1041 (16) - 0000000000963325 [20:53:09]1040 (4) - 15776 [20:53:09]1012 (4) - 29.10.2024 14:50 [20:53:09]1206 (1) - 0 [20:53:09]OFD Sender: Remove packet 15776 [20:53:09]ProducePacketName [20:53:09]name=ofd_packets/00015776 [20:53:09]NVStorageDeleteData [20:53:10]Write to MH i2c: 01 00 00 E7 59 40 [20:53:10]Write i2c OK [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: 01 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: 01 07 00 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: 01 07 00 E7 59 00 00 00 00 00 EC 0C 3F [20:53:10]RasterBufferAndPrint [20:53:10]line [20:53:10]line [20:53:10]line [20:53:10]line [20:53:10]line [20:53:10]written 0, free lines is 3314 [20:53:10]MH_Cut [20:53:10]Write to MH i2c: D1 01 00 EE 59 01 19 [20:53:10]Write i2c OK [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: D1 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: D1 01 00 [20:53:10]MH_I2C_Read... [20:53:10]Read from MH i2c: D1 01 00 EE 59 00 18 [20:53:10]Write to MH i2c: 01 00 00 EF 59 48 [20:53:10]Write i2c OK [20:53:10]MH_I2C_Read... [20:53:10]OFD Sender: No OFD packet to send [20:53:10]*** Cut start [20:53:10]*** Partial cut [20:53:10]*** CUTSNS_PIN = 1 [20:53:10]*** CUTSNS_PIN = 0 [20:53:11]*** Brake cut motor [20:53:11]Read from MH i2c: 01 [20:53:11]MH_I2C_Read... [20:53:11]*** Stop cut motor [20:53:11]*** Cut end [20:53:11]Read from MH i2c: 01 07 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: 01 07 00 EF 59 00 00 00 00 00 FF 0F 5D [20:53:11]process_action close_receipt done [20:53:11]requested_data is exist [20:53:11]produce_requested_data [20:53:11]requested_item fm.sn is exist - process it [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 11 00 00 [20:53:11]Write to MH i2c: E2 08 00 F0 59 80 11 00 00 00 00 00 00 C3 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 17 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 17 00 F0 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 12 [20:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [20:53:11]wFMCommunicate OK [20:53:11]requested_item fd.num is exist - process it [20:53:11]SAM_PROTO_GetFieldsCounters [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 13 00 00 [20:53:11]Write to MH i2c: E2 08 00 F1 59 80 13 00 00 00 00 00 00 C6 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 62 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 62 00 F1 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A0 3D 00 00 0E 04 04 00 AC 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 E1 [20:53:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A0 3D 00 00 0E 04 04 00 AC 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 [20:53:11]wFMCommunicate OK [20:53:11]SAM_PROTO_GetFieldsCounters done [20:53:11]requested_item shift.num is exist - process it [20:53:11]requested_item shift.opened is exist - process it [20:53:11]req_shift_opened [20:53:11]FM_GetShiftState [20:53:11]SAM_PROTO_GetShiftState [20:53:11]wFMCommunicate request_size=4 [20:53:11]MH_SAM_APDU [20:53:11]CAPDU: 80 13 01 00 [20:53:11]Write to MH i2c: E2 08 00 F2 59 80 13 01 00 00 00 00 00 C8 [20:53:11]Write i2c OK [20:53:11]MH_I2C_Read... [20:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:11]Read from MH i2c: E2 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 0E 00 [20:53:11]MH_I2C_Read... [20:53:11]Read from MH i2c: E2 0E 00 F2 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 1D [20:53:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [20:53:11]wFMCommunicate OK [20:53:11]SAM_PROTO_GetShiftState done [20:53:11]FM_GetShiftState done [20:53:11]req_shift_opened done [20:53:11]requested_item shift.open_date is exist - process it [20:53:11]req_shift_open_date [20:53:11]req_shift_open_date done [20:53:11]produce_requested_data done [20:53:11]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15776,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [20:53:11]process_action_free close_receipt [20:53:11]json_value_free [20:53:11]json_value_free done [20:53:11]process_json_proto returns [20:53:11]Send response to host [20:53:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15776,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [20:53:11]free response buf [20:53:11]execute_script done [20:53:11]execute_script returns [20:53:11]free content buf [20:53:11]Sock 8.Close socket [20:53:11]Sock 8.Thread stoped [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:45]OFD Sender: No OFD packet to send [20:54:50]OFD Sender: No OFD packet to send [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:25]OFD Sender: No OFD packet to send [20:55:30]OFD Sender: No OFD packet to send [20:55:35]OFD Sender: No OFD packet to send [20:55:40]OFD Sender: No OFD packet to send [20:55:45]OFD Sender: No OFD packet to send [20:55:50]OFD Sender: No OFD packet to send [20:55:55]OFD Sender: No OFD packet to send [20:56:00]OFD Sender: No OFD packet to send [20:56:05]OFD Sender: No OFD packet to send [20:56:10]OFD Sender: No OFD packet to send [20:56:15]OFD Sender: No OFD packet to send [20:56:20]OFD Sender: No OFD packet to send [20:56:25]OFD Sender: No OFD packet to send [20:56:30]OFD Sender: No OFD packet to send [20:56:35]OFD Sender: No OFD packet to send [20:56:40]OFD Sender: No OFD packet to send [20:56:45]OFD Sender: No OFD packet to send [20:56:50]OFD Sender: No OFD packet to send [20:56:55]OFD Sender: No OFD packet to send [20:57:00]OFD Sender: No OFD packet to send [20:57:05]OFD Sender: No OFD packet to send [20:57:10]OFD Sender: No OFD packet to send [20:57:15]OFD Sender: No OFD packet to send [20:57:20]OFD Sender: No OFD packet to send [20:57:25]OFD Sender: No OFD packet to send [20:57:30]OFD Sender: No OFD packet to send [20:57:35]OFD Sender: No OFD packet to send [20:57:40]OFD Sender: No OFD packet to send [20:57:45]OFD Sender: No OFD packet to send [20:57:50]OFD Sender: No OFD packet to send [20:57:55]OFD Sender: No OFD packet to send [20:58:00]OFD Sender: No OFD packet to send [20:58:05]OFD Sender: No OFD packet to send [20:58:10]OFD Sender: No OFD packet to send [20:58:15]OFD Sender: No OFD packet to send [20:58:20]OFD Sender: No OFD packet to send [20:58:25]OFD Sender: No OFD packet to send [20:58:30]OFD Sender: No OFD packet to send [20:58:35]OFD Sender: No OFD packet to send [20:58:40]OFD Sender: No OFD packet to send [20:58:45]OFD Sender: No OFD packet to send [20:58:50]OFD Sender: No OFD packet to send [20:58:55]OFD Sender: No OFD packet to send [20:59:00]OFD Sender: No OFD packet to send [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]OFD Sender: No OFD packet to send [21:01:20]OFD Sender: No OFD packet to send [21:01:25]OFD Sender: No OFD packet to send [21:01:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:11]OFD Sender: No OFD packet to send [21:08:16]OFD Sender: No OFD packet to send [21:08:21]OFD Sender: No OFD packet to send [21:08:26]OFD Sender: No OFD packet to send [21:08:31]OFD Sender: No OFD packet to send [21:08:36]OFD Sender: No OFD packet to send [21:08:41]OFD Sender: No OFD packet to send [21:08:46]OFD Sender: No OFD packet to send [21:08:51]OFD Sender: No OFD packet to send [21:08:56]OFD Sender: No OFD packet to send [21:09:01]OFD Sender: No OFD packet to send [21:09:06]OFD Sender: No OFD packet to send [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]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:39]accept exits with 9 [21:12:39]New connection [21:12:39]New thread 3066588516 created [21:12:39]Thread 3066731876 joined [21:12:39]Waiting for new connection... [21:12:39] Sock 9.Parse request [21:12:39]Sock 9.Check first char [21:12:39]Sock 9.First char is OK [21:12:39]request: POST /json_proto HTTP/1.0 [21:12:39]Method: POST [21:12:39]URL: /json_proto [21:12:39]Method is POST - this is cgi request [21:12:39]url: /json_proto [21:12:39]query_string will be loaded in cgi processing [21:12:39]execute_cgi json_proto POST (null) [21:12:39]execute_cgi path=json_proto method=POST [21:12:39]POST find Content-Length [21:12:39]Host: 172.17.54.195:8080 [21:12:39]Content-Length: 773 [21:12:39]Content-Type: application/json [21:12:39] [21:12:39]POST finish read [21:12:39]Found Content-Length = 773 [21:12:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.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: Mbank", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:39]execute_script... [21:12: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)16328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.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: Mbank", "total" : 200.00, "payments": [ { "type": 1, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:39]POST & json_proto [21:12:39]process_json_proto [21:12:39]json parsed OK: [21:12:39]protocol is kg_v1.0 [21:12:39]action value=close_receipt [21:12:39]process_action close_receipt [21:12:39]cmd_close_receipt [21:12:39]MH_GetDate [21:12:39]Write to MH i2c: F0 00 00 F3 59 3B [21:12:39]Write i2c OK [21:12:39]MH_I2C_Read... [21:12:39]Read from MH i2c: F0 [21:12:39]MH_I2C_Read... [21:12:39]Read from MH i2c: F0 09 00 [21:12:39]MH_I2C_Read... [21:12:39]Read from MH i2c: F0 09 00 F3 59 00 D4 4F 21 67 8D 90 A3 66 15 [21:12:39]GetLastDocTimeStamp 1730235200 [21:12:39]current date 1730236372 [21:12:39]FM_GetShiftState [21:12:39]SAM_PROTO_GetShiftState [21:12:39]wFMCommunicate request_size=4 [21:12:39]MH_SAM_APDU [21:12:39]CAPDU: 80 13 01 00 [21:12:39]Write to MH i2c: E2 08 00 F4 59 80 13 01 00 00 00 00 00 CA [21:12:39]Write i2c OK [21:12:39]MH_I2C_Read... [21:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:39]Read from MH i2c: E2 [21:12:39]MH_I2C_Read... [21:12:39]Read from MH i2c: E2 0E 00 [21:12:39]MH_I2C_Read... [21:12:39]Read from MH i2c: E2 0E 00 F4 59 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 1F [21:12:39]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:12:39]wFMCommunicate OK [21:12:39]SAM_PROTO_GetShiftState done [21:12:39]FM_GetShiftState done [21:12:39]opened in 1730161559 [21:12:39]opened+sec_in_day 1730247959 [21:12:39]quantity*price = 20041 [21:12:39]sum+1 = 20042 [21:12:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 123 29.10.2024 21:12 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15777 ФПД: 273193553781903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T211252&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15777&fm=273193553781903&tin=02508201610067®Number=0000000000161798&sum=20000 [21:12:40]StoreToDocumentArchive [21:12:40]shift 172 fd 15777 [21:12:40]save to /storage/0172/doc_00015777 [21:12:40]save last doc name /storage/0172/doc_00015777 to /storage/kkm_last_doc_name [21:12:40]save OK [21:12:40]Clear old archive folders... [21:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:12:40]tlvbuf is 0031F660 [21:12:40]SAM_PROTO_ClearQueue [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 09 00 00 [21:12:40]Write to MH i2c: E2 08 00 01 5A 80 09 00 00 00 00 00 00 CD [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 01 5A 00 90 00 CF [21:12:40]RAPDU: 90 00 [21:12:40]wFMCommunicate OK [21:12:40]SAM_PROTO_ClearQueue done [21:12:40]KKMCreateOFDPacket [21:12:40]OFDProtocolAddRootSTLVToBuf [21:12:40]FM_MakeSignedData [21:12:40]FM_MakeSignedData [21:12:40]SAM_PROTO_SignData [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 0D 01 02 [21:12:40]Write to MH i2c: E2 08 00 02 5A 80 0D 01 02 00 00 00 00 D5 [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 02 5A 00 90 00 D0 [21:12:40]RAPDU: 90 00 [21:12:40]wFMCommunicate OK [21:12:40]wFMCommunicate request_size=255 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 4F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A1 3D 00 00 35 04 06 00 F8 77 D4 [21:12:40]Write to MH i2c: E2 02 01 03 5A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 4F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A1 3D 00 00 35 04 06 00 F8 77 D4 00 00 95 [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 03 5A 00 90 00 D1 [21:12:40]RAPDU: 90 00 [21:12:40]wFMCommunicate OK [21:12:40]wFMCommunicate request_size=8 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 0D 02 02 03 BA 64 8F [21:12:40]Write to MH i2c: E2 0B 00 04 5A 80 0D 02 02 03 00 BA 64 8F 00 00 8B [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:40]Read from MH i2c: E2 03 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 03 00 04 5A 00 90 00 D2 [21:12:40]RAPDU: 90 00 [21:12:40]wFMCommunicate OK [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 0D 03 02 [21:12:40]Write to MH i2c: E2 08 00 05 5A 80 0D 03 02 00 00 00 00 DA [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:40]Read from MH i2c: E2 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 0B 00 [21:12:40]MH_I2C_Read... [21:12:40]Read from MH i2c: E2 0B 00 05 5A 00 C6 36 90 35 58 DB FD D9 90 00 A5 [21:12:40]RAPDU: C6 36 90 35 58 DB FD D9 90 00 [21:12:40]wFMCommunicate OK [21:12:40]SAM_PROTO_SignData done [21:12:40]FM_MakeSignedData done [21:12:40]CreateOFDProtocolMessage [21:12:40]wFMCommunicate request_size=4 [21:12:40]MH_SAM_APDU [21:12:40]CAPDU: 80 11 00 00 [21:12:40]Write to MH i2c: E2 08 00 06 5A 80 11 00 00 00 00 00 00 DA [21:12:40]Write i2c OK [21:12:40]MH_I2C_Read... [21:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:41]Read from MH i2c: E2 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: E2 17 00 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: E2 17 00 06 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 29 [21:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:12:41]wFMCommunicate OK [21:12:41]CreateOFDProtocolMessage done [21:12:41]OFDSenderStorePacket 15777 [21:12:41]StoreOFDPacket docnum=15777 [21:12:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C4 FE 05 01 59 AC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 4F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A1 3D 00 00 35 04 06 00 F8 77 D4 BA 64 8F C6 36 90 35 58 DB FD D9 [21:12:41]CheckFolder [21:12:41]dirname=/storage/ofd_packets [21:12:41]CheckFolder done [21:12:41]ProducePacketName [21:12:41]name=ofd_packets/00015777 [21:12:41]NVStorageSaveData ofd_packets/00015777 [21:12:41]File name is /storage/ofd_packets/00015777 [21:12:41]Write 299 bytes [21:12:41]NVStorageSaveData done [21:12:41]OFDSenderStorePacket done [21:12:41]KKMCreateOFDPacket done [21:12:41]NVStorageSaveData kkm_last_timestamp [21:12:41]File name is /storage/kkm_last_timestamp [21:12:41]Write 4 bytes [21:12:41]NVStorageSaveData done [21:12:41]ExternCall_PrintAddStr [21:12:41]wPrintStart [21:12:41]Write to MH i2c: 01 00 00 07 5A 61 [21:12:41]Write i2c OK [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 07 5A 00 00 00 00 00 FF 0F 76 [21:12:41]RasterBufferAndPrint [21:12:41]line Счет N : (1)16328 [21:12:41]line ИНН: 02508201610067 [21:12:41]line Контрольно-Кассовый Чек [21:12:41]line ПРОДАЖА [21:12:41]line ТРК (МРК, ГНК) : 12 [21:12:41]line Товар: 50.50.0 [21:12:41]line SUPER 92-К-5 [21:12:41]line 2.930 * 68.40 [21:12:41]line = 200.41 [21:12:41]line НДС 12% НСП 1% [21:12:41]line > о реализуемом товаре [21:12:41]line ОКРУГЛЕНИЕ: -0.41 [21:12:41]line ИТОГО: 200.00 [21:12:41]line НСП 1% : 1.77 [21:12:41]line НДС 12% : 21.28 [21:12:41]line Наличными: 0.00 [21:12:41]line Безнал.: 200.00 [21:12:41]line Место: АЗС № 178 "Партнер Нефть" [21:12:41]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:12:41]line СНО: Общий режим [21:12:41]line Чек 123 29.10.2024 21:12 [21:12:41]line Смена: 172 ФФД: 1.0 [21:12:41]line ЗНМ: 0300000014 [21:12:41]line РНМ: 0000000000161798 [21:12:41]line Версия ККМ: v1.0 [21:12:41]line Платежная система: Mbank [21:12:41]line ФМ: 0000000000963325 [21:12:41]line ФД: 15777 [21:12:41]line ФПД: 273193553781903 [21:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T211252&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15777&fm=273193553781903&tin=02508201610067®Number=0000000000161798&sum=20000 [21:12:41]written 0, free lines is 4095 [21:12:41]OFD Sender: Processing packet 15777 [packets to send 4, broken 3] [21:12:41]ProducePacketName [21:12:41]name=ofd_packets/00015777 [21:12:41]OFD Sender: To server: pG, [21:12:41]CommunicateWithHost lk.salyk.kg:30040 [21:12:41]ConnectInit lk.salyk.kg [21:12:41]Connected sock=10 [21:12:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C4 FE 05 01 59 AC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D4 4F 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A1 3D 00 00 35 04 06 00 F8 77 D4 BA 64 8F C6 36 90 35 58 DB FD D9 [21:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 C3 6E 47 00 CA 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A1 3D 00 00 F4 03 04 00 C0 FA 20 67 B6 04 01 00 00 8D 47 EF 59 C1 B3 A6 67 [21:12:41]CommunicateWithHost err = 0 [21:12:41]CheckOFDResponse [21:12:41]1017 (14) - 77093643461234 [21:12:41]1041 (16) - 0000000000963325 [21:12:41]1040 (4) - 15777 [21:12:41]1012 (4) - 29.10.2024 15:09 [21:12:41]1206 (1) - 0 [21:12:41]OFD Sender: Remove packet 15777 [21:12:41]ProducePacketName [21:12:41]name=ofd_packets/00015777 [21:12:41]NVStorageDeleteData [21:12:41]Write to MH i2c: 01 00 00 31 5A 8B [21:12:41]Write i2c OK [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: 01 07 00 31 5A 00 00 00 00 00 01 0D A0 [21:12:41]RasterBufferAndPrint [21:12:41]line [21:12:41]line [21:12:41]line [21:12:41]line [21:12:41]line [21:12:41]written 0, free lines is 3335 [21:12:41]MH_Cut [21:12:41]Write to MH i2c: D1 01 00 38 5A 01 64 [21:12:41]Write i2c OK [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: D1 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: D1 01 00 [21:12:41]MH_I2C_Read... [21:12:41]Read from MH i2c: D1 01 00 38 5A 00 63 [21:12:41]Write to MH i2c: 01 00 00 39 5A 93 [21:12:41]Write i2c OK [21:12:41]MH_I2C_Read... [21:12:42]OFD Sender: No OFD packet to send [21:12:42]*** Cut start [21:12:42]*** Partial cut [21:12:42]*** CUTSNS_PIN = 1 [21:12:42]*** CUTSNS_PIN = 0 [21:12:42]*** Brake cut motor [21:12:43]Read from MH i2c: 01 [21:12:43]MH_I2C_Read... [21:12:43]*** Stop cut motor [21:12:43]*** Cut end [21:12:43]Read from MH i2c: 01 07 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: 01 07 00 39 5A 00 00 00 00 00 FF 0F A8 [21:12:43]process_action close_receipt done [21:12:43]requested_data is exist [21:12:43]produce_requested_data [21:12:43]requested_item fm.sn is exist - process it [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 11 00 00 [21:12:43]Write to MH i2c: E2 08 00 3A 5A 80 11 00 00 00 00 00 00 0E [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 17 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 17 00 3A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 5D [21:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:12:43]wFMCommunicate OK [21:12:43]requested_item fd.num is exist - process it [21:12:43]SAM_PROTO_GetFieldsCounters [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 13 00 00 [21:12:43]Write to MH i2c: E2 08 00 3B 5A 80 13 00 00 00 00 00 00 11 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 62 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 62 00 3B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A1 3D 00 00 0E 04 04 00 AC 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 30 [21:12:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A1 3D 00 00 0E 04 04 00 AC 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 [21:12:43]wFMCommunicate OK [21:12:43]SAM_PROTO_GetFieldsCounters done [21:12:43]requested_item shift.num is exist - process it [21:12:43]requested_item shift.opened is exist - process it [21:12:43]req_shift_opened [21:12:43]FM_GetShiftState [21:12:43]SAM_PROTO_GetShiftState [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 13 01 00 [21:12:43]Write to MH i2c: E2 08 00 3C 5A 80 13 01 00 00 00 00 00 13 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 0E 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 0E 00 3C 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 68 [21:12:43]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:12:43]wFMCommunicate OK [21:12:43]SAM_PROTO_GetShiftState done [21:12:43]FM_GetShiftState done [21:12:43]req_shift_opened done [21:12:43]requested_item shift.open_date is exist - process it [21:12:43]req_shift_open_date [21:12:43]req_shift_open_date done [21:12:43]produce_requested_data done [21:12:43]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15777,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:12:43]process_action_free close_receipt [21:12:43]json_value_free [21:12:43]json_value_free done [21:12:43]process_json_proto returns [21:12:43]Send response to host [21:12:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15777,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:12:43]free response buf [21:12:43]execute_script done [21:12:43]execute_script returns [21:12:43]free content buf [21:12:43]Sock 9.Close socket [21:12:43]Sock 9.Thread stoped [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:36]accept exits with 8 [21:19:36]New connection [21:19:36]New thread 3066731876 created [21:19:36]Thread 3066588516 joined [21:19:36]Waiting for new connection... [21:19:36] Sock 8.Parse request [21:19:36]Sock 8.Check first char [21:19:36]Sock 8.First char is OK [21:19:36]request: POST /json_proto HTTP/1.0 [21:19:36]Method: POST [21:19:36]URL: /json_proto [21:19:36]Method is POST - this is cgi request [21:19:36]url: /json_proto [21:19:36]query_string will be loaded in cgi processing [21:19:36]execute_cgi json_proto POST (null) [21:19:36]execute_cgi path=json_proto method=POST [21:19:36]POST find Content-Length [21:19:36]Host: 172.17.54.195:8080 [21:19:36]Content-Length: 780 [21:19:36]Content-Type: application/json [21:19:36] [21:19:36]POST finish read [21:19:36]Found Content-Length = 780 [21:19:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:36]execute_script... [21:19: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)16329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:36]POST & json_proto [21:19:36]process_json_proto [21:19:36]json parsed OK: [21:19:36]protocol is kg_v1.0 [21:19:36]action value=close_receipt [21:19:36]process_action close_receipt [21:19:36]cmd_close_receipt [21:19:36]MH_GetDate [21:19:36]Write to MH i2c: F0 00 00 3D 5A 86 [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: F0 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: F0 09 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: F0 09 00 3D 5A 00 75 51 21 67 8D 90 A3 66 03 [21:19:36]GetLastDocTimeStamp 1730236372 [21:19:36]current date 1730236789 [21:19:36]FM_GetShiftState [21:19:36]SAM_PROTO_GetShiftState [21:19:36]wFMCommunicate request_size=4 [21:19:36]MH_SAM_APDU [21:19:36]CAPDU: 80 13 01 00 [21:19:36]Write to MH i2c: E2 08 00 3E 5A 80 13 01 00 00 00 00 00 15 [21:19:36]Write i2c OK [21:19:36]MH_I2C_Read... [21:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:36]Read from MH i2c: E2 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 0E 00 [21:19:36]MH_I2C_Read... [21:19:36]Read from MH i2c: E2 0E 00 3E 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 6A [21:19:36]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:19:36]wFMCommunicate OK [21:19:36]SAM_PROTO_GetShiftState done [21:19:36]FM_GetShiftState done [21:19:36]opened in 1730161559 [21:19:36]opened+sec_in_day 1730247959 [21:19:36]quantity*price = 30022 [21:19:36]sum+1 = 30024 [21:19:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.88 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 124 29.10.2024 21:19 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15778 ФПД: 198531009996291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T211949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15778&fm=198531009996291&tin=02508201610067®Number=0000000000161798&sum=30000 [21:19:37]StoreToDocumentArchive [21:19:37]shift 172 fd 15778 [21:19:37]save to /storage/0172/doc_00015778 [21:19:37]save last doc name /storage/0172/doc_00015778 to /storage/kkm_last_doc_name [21:19:37]save OK [21:19:37]Clear old archive folders... [21:19:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:19:37]tlvbuf is 00348C60 [21:19:37]SAM_PROTO_ClearQueue [21:19:37]wFMCommunicate request_size=4 [21:19:37]MH_SAM_APDU [21:19:37]CAPDU: 80 09 00 00 [21:19:37]Write to MH i2c: E2 08 00 4B 5A 80 09 00 00 00 00 00 00 17 [21:19:37]Write i2c OK [21:19:37]MH_I2C_Read... [21:19:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:37]Read from MH i2c: E2 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: E2 03 00 [21:19:37]MH_I2C_Read... [21:19:37]Read from MH i2c: E2 03 00 4B 5A 00 90 00 19 [21:19:37]RAPDU: 90 00 [21:19:37]wFMCommunicate OK [21:19:37]SAM_PROTO_ClearQueue done [21:19:37]KKMCreateOFDPacket [21:19:37]OFDProtocolAddRootSTLVToBuf [21:19:37]FM_MakeSignedData [21:19:37]FM_MakeSignedData [21:19:37]SAM_PROTO_SignData [21:19:37]wFMCommunicate request_size=4 [21:19:37]MH_SAM_APDU [21:19:37]CAPDU: 80 0D 01 02 [21:19:37]Write to MH i2c: E2 08 00 4C 5A 80 0D 01 02 00 00 00 00 1F [21:19:37]Write i2c OK [21:19:37]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 4C 5A 00 90 00 1A [21:19:38]RAPDU: 90 00 [21:19:38]wFMCommunicate OK [21:19:38]wFMCommunicate request_size=255 [21:19:38]MH_SAM_APDU [21:19:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 75 51 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A2 3D 00 00 35 04 06 00 B4 90 1A 53 [21:19:38]Write to MH i2c: E2 02 01 4D 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 75 51 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A2 3D 00 00 35 04 06 00 B4 90 1A 53 00 00 6A [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 4D 5A 00 90 00 1B [21:19:38]RAPDU: 90 00 [21:19:38]wFMCommunicate OK [21:19:38]wFMCommunicate request_size=7 [21:19:38]MH_SAM_APDU [21:19:38]CAPDU: 80 0D 02 02 02 E6 03 [21:19:38]Write to MH i2c: E2 0A 00 4E 5A 80 0D 02 02 02 00 E6 03 00 00 0F [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 03 00 4E 5A 00 90 00 1C [21:19:38]RAPDU: 90 00 [21:19:38]wFMCommunicate OK [21:19:38]wFMCommunicate request_size=4 [21:19:38]MH_SAM_APDU [21:19:38]CAPDU: 80 0D 03 02 [21:19:38]Write to MH i2c: E2 08 00 4F 5A 80 0D 03 02 00 00 00 00 24 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 0B 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 0B 00 4F 5A 00 F2 B3 7D B4 F5 BC 97 60 90 00 A3 [21:19:38]RAPDU: F2 B3 7D B4 F5 BC 97 60 90 00 [21:19:38]wFMCommunicate OK [21:19:38]SAM_PROTO_SignData done [21:19:38]FM_MakeSignedData done [21:19:38]CreateOFDProtocolMessage [21:19:38]wFMCommunicate request_size=4 [21:19:38]MH_SAM_APDU [21:19:38]CAPDU: 80 11 00 00 [21:19:38]Write to MH i2c: E2 08 00 50 5A 80 11 00 00 00 00 00 00 24 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 17 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 17 00 50 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 73 [21:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:19:38]wFMCommunicate OK [21:19:38]CreateOFDProtocolMessage done [21:19:38]OFDSenderStorePacket 15778 [21:19:38]StoreOFDPacket docnum=15778 [21:19:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D4 EF 04 01 76 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 75 51 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A2 3D 00 00 35 04 06 00 B4 90 1A 53 E6 03 F2 B3 7D B4 F5 BC 97 60 [21:19:38]CheckFolder [21:19:38]dirname=/storage/ofd_packets [21:19:38]CheckFolder done [21:19:38]ProducePacketName [21:19:38]name=ofd_packets/00015778 [21:19:38]NVStorageSaveData ofd_packets/00015778 [21:19:38]File name is /storage/ofd_packets/00015778 [21:19:38]Write 298 bytes [21:19:38]NVStorageSaveData done [21:19:38]OFDSenderStorePacket done [21:19:38]KKMCreateOFDPacket done [21:19:38]NVStorageSaveData kkm_last_timestamp [21:19:38]File name is /storage/kkm_last_timestamp [21:19:38]Write 4 bytes [21:19:38]NVStorageSaveData done [21:19:38]ExternCall_PrintAddStr [21:19:38]wPrintStart [21:19:38]Write to MH i2c: 01 00 00 51 5A AB [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: 01 07 00 51 5A 00 00 00 00 00 FF 0F C0 [21:19:38]RasterBufferAndPrint [21:19:38]line Счет N : (1)16329 [21:19:38]line ИНН: 02508201610067 [21:19:38]line Контрольно-Кассовый Чек [21:19:38]line ПРОДАЖА [21:19:38]line ТРК (МРК, ГНК) : 31 [21:19:38]line Товар: 2710194210 [21:19:38]line ДТ-К-5 [21:19:38]line 3.940 * 76.20 [21:19:38]line = 300.23 [21:19:38]line НДС 12% НСП 1% [21:19:38]line > о реализуемом товаре [21:19:38]line ОКРУГЛЕНИЕ: -0.23 [21:19:38]line ИТОГО: 300.00 [21:19:38]line НСП 1% : 2.66 [21:19:38]line НДС 12% : 31.88 [21:19:38]line Наличными: 0.00 [21:19:38]line Безнал.: 300.00 [21:19:38]line Место: АЗС № 178 "Партнер Нефть" [21:19:38]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:19:38]line СНО: Общий режим [21:19:38]line Чек 124 29.10.2024 21:19 [21:19:38]line Смена: 172 ФФД: 1.0 [21:19:38]line ЗНМ: 0300000014 [21:19:38]line РНМ: 0000000000161798 [21:19:38]line Версия ККМ: v1.0 [21:19:38]line Платежная система: Mbank [21:19:38]line ФМ: 0000000000963325 [21:19:38]line ФД: 15778 [21:19:38]line ФПД: 198531009996291 [21:19:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T211949&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15778&fm=198531009996291&tin=02508201610067®Number=0000000000161798&sum=30000 [21:19:38]OFD Sender: Processing packet 15778 [packets to send 4, broken 3] [21:19:38]ProducePacketName [21:19:38]name=ofd_packets/00015778 [21:19:38]OFD Sender: To server: pG, [21:19:38]CommunicateWithHost lk.salyk.kg:30040 [21:19:38]ConnectInit lk.salyk.kg [21:19:38]written 0, free lines is 4095 [21:19:38]Connected sock=10 [21:19:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 D4 EF 04 01 76 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 75 51 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A2 3D 00 00 35 04 06 00 B4 90 1A 53 E6 03 F2 B3 7D B4 F5 BC 97 60 [21:19:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 22 C2 47 00 2B C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A2 3D 00 00 F4 03 04 00 61 FC 20 67 B6 04 01 00 00 31 61 3D 57 B2 0C EB 1C [21:19:39]CommunicateWithHost err = 0 [21:19:39]CheckOFDResponse [21:19:39]1017 (14) - 77093643461234 [21:19:39]1041 (16) - 0000000000963325 [21:19:39]1040 (4) - 15778 [21:19:39]1012 (4) - 29.10.2024 15:16 [21:19:39]1206 (1) - 0 [21:19:39]OFD Sender: Remove packet 15778 [21:19:39]ProducePacketName [21:19:39]name=ofd_packets/00015778 [21:19:39]NVStorageDeleteData [21:19:39]Write to MH i2c: 01 00 00 7B 5A D5 [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: 01 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: 01 07 00 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: 01 07 00 7B 5A 00 00 00 00 00 FE 0C E6 [21:19:39]RasterBufferAndPrint [21:19:39]line [21:19:39]line [21:19:39]line [21:19:39]line [21:19:39]line [21:19:39]written 0, free lines is 3332 [21:19:39]MH_Cut [21:19:39]Write to MH i2c: D1 01 00 82 5A 01 AE [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: D1 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: D1 01 00 [21:19:39]MH_I2C_Read... [21:19:39]Read from MH i2c: D1 01 00 82 5A 00 AD [21:19:39]Write to MH i2c: 01 00 00 83 5A DD [21:19:39]Write i2c OK [21:19:39]MH_I2C_Read... [21:19:39]OFD Sender: No OFD packet to send [21:19:39]*** Cut start [21:19:39]*** Partial cut [21:19:39]*** CUTSNS_PIN = 1 [21:19:39]*** CUTSNS_PIN = 0 [21:19:40]*** Brake cut motor [21:19:40]Read from MH i2c: 01 [21:19:40]MH_I2C_Read... [21:19:40]*** Stop cut motor [21:19:40]*** Cut end [21:19:40]Read from MH i2c: 01 07 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: 01 07 00 83 5A 00 00 00 00 00 FF 0F F2 [21:19:40]process_action close_receipt done [21:19:40]requested_data is exist [21:19:40]produce_requested_data [21:19:40]requested_item fm.sn is exist - process it [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 11 00 00 [21:19:40]Write to MH i2c: E2 08 00 84 5A 80 11 00 00 00 00 00 00 58 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 17 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 17 00 84 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 A7 [21:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:19:40]wFMCommunicate OK [21:19:40]requested_item fd.num is exist - process it [21:19:40]SAM_PROTO_GetFieldsCounters [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 13 00 00 [21:19:40]Write to MH i2c: E2 08 00 85 5A 80 13 00 00 00 00 00 00 5B [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 62 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 62 00 85 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A2 3D 00 00 0E 04 04 00 AC 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 7E [21:19:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A2 3D 00 00 0E 04 04 00 AC 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 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetFieldsCounters done [21:19:40]requested_item shift.num is exist - process it [21:19:40]requested_item shift.opened is exist - process it [21:19:40]req_shift_opened [21:19:40]FM_GetShiftState [21:19:40]SAM_PROTO_GetShiftState [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 13 01 00 [21:19:40]Write to MH i2c: E2 08 00 86 5A 80 13 01 00 00 00 00 00 5D [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0E 00 86 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B2 [21:19:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_GetShiftState done [21:19:40]FM_GetShiftState done [21:19:40]req_shift_opened done [21:19:40]requested_item shift.open_date is exist - process it [21:19:40]req_shift_open_date [21:19:40]req_shift_open_date done [21:19:40]produce_requested_data done [21:19:40]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15778,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:19:40]process_action_free close_receipt [21:19:40]json_value_free [21:19:40]json_value_free done [21:19:40]process_json_proto returns [21:19:40]Send response to host [21:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15778,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:19:40]free response buf [21:19:40]execute_script done [21:19:40]execute_script returns [21:19:40]free content buf [21:19:40]Sock 8.Close socket [21:19:40]Sock 8.Thread stoped [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:25]accept exits with 9 [21:22:25]New connection [21:22:25]New thread 3066588516 created [21:22:25]Thread 3066731876 joined [21:22:25]Waiting for new connection... [21:22:25] Sock 9.Parse request [21:22:25]Sock 9.Check first char [21:22:25]Sock 9.First char is OK [21:22:25]request: POST /json_proto HTTP/1.0 [21:22:25]Method: POST [21:22:25]URL: /json_proto [21:22:25]Method is POST - this is cgi request [21:22:25]url: /json_proto [21:22:25]query_string will be loaded in cgi processing [21:22:25]execute_cgi json_proto POST (null) [21:22:25]execute_cgi path=json_proto method=POST [21:22:25]POST find Content-Length [21:22:25]Host: 172.17.54.195:8080 [21:22:25]Content-Length: 671 [21:22:25]Content-Type: application/json [21:22:25] [21:22:25]POST finish read [21:22:25]Found Content-Length = 671 [21:22:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [21:22:25]execute_script... [21:22: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)16330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [21:22:25]POST & json_proto [21:22:25]process_json_proto [21:22:25]json parsed OK: [21:22:25]protocol is kg_v1.0 [21:22:25]action value=close_receipt [21:22:25]process_action close_receipt [21:22:25]cmd_close_receipt [21:22:25]MH_GetDate [21:22:25]Write to MH i2c: F0 00 00 87 5A D0 [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: F0 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: F0 09 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: F0 09 00 87 5A 00 1E 52 21 67 8D 90 A3 66 F7 [21:22:25]GetLastDocTimeStamp 1730236789 [21:22:25]current date 1730236958 [21:22:25]FM_GetShiftState [21:22:25]SAM_PROTO_GetShiftState [21:22:25]wFMCommunicate request_size=4 [21:22:25]MH_SAM_APDU [21:22:25]CAPDU: 80 13 01 00 [21:22:25]Write to MH i2c: E2 08 00 88 5A 80 13 01 00 00 00 00 00 5F [21:22:25]Write i2c OK [21:22:25]MH_I2C_Read... [21:22:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:25]Read from MH i2c: E2 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 0E 00 [21:22:25]MH_I2C_Read... [21:22:25]Read from MH i2c: E2 0E 00 88 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B4 [21:22:25]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:22:25]wFMCommunicate OK [21:22:25]SAM_PROTO_GetShiftState done [21:22:25]FM_GetShiftState done [21:22:25]opened in 1730161559 [21:22:25]opened+sec_in_day 1730247959 [21:22:25]quantity*price = 100000 [21:22:25]sum+1 = 100002 [21:22:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 125 29.10.2024 21:22 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15779 ФПД: 9020291309377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T212238&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15779&fm=9020291309377&tin=02508201610067®Number=0000000000161798&sum=100000 [21:22:26]StoreToDocumentArchive [21:22:26]shift 172 fd 15779 [21:22:26]save to /storage/0172/doc_00015779 [21:22:26]save last doc name /storage/0172/doc_00015779 to /storage/kkm_last_doc_name [21:22:26]save OK [21:22:26]Clear old archive folders... [21:22:26]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:22:26]tlvbuf is 004A2160 [21:22:26]SAM_PROTO_ClearQueue [21:22:26]wFMCommunicate request_size=4 [21:22:26]MH_SAM_APDU [21:22:26]CAPDU: 80 09 00 00 [21:22:26]Write to MH i2c: E2 08 00 95 5A 80 09 00 00 00 00 00 00 61 [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:26]Read from MH i2c: E2 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 95 5A 00 90 00 63 [21:22:26]RAPDU: 90 00 [21:22:26]wFMCommunicate OK [21:22:26]SAM_PROTO_ClearQueue done [21:22:26]KKMCreateOFDPacket [21:22:26]OFDProtocolAddRootSTLVToBuf [21:22:26]FM_MakeSignedData [21:22:26]FM_MakeSignedData [21:22:26]SAM_PROTO_SignData [21:22:26]wFMCommunicate request_size=4 [21:22:26]MH_SAM_APDU [21:22:26]CAPDU: 80 0D 01 02 [21:22:26]Write to MH i2c: E2 08 00 96 5A 80 0D 01 02 00 00 00 00 69 [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:26]Read from MH i2c: E2 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 96 5A 00 90 00 64 [21:22:26]RAPDU: 90 00 [21:22:26]wFMCommunicate OK [21:22:26]wFMCommunicate request_size=255 [21:22:26]MH_SAM_APDU [21:22:26]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 1E 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A3 3D 00 00 35 04 06 00 08 34 33 [21:22:26]Write to MH i2c: E2 02 01 97 5A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 1E 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A3 3D 00 00 35 04 06 00 08 34 33 00 00 95 [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:26]Read from MH i2c: E2 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 97 5A 00 90 00 65 [21:22:26]RAPDU: 90 00 [21:22:26]wFMCommunicate OK [21:22:26]wFMCommunicate request_size=8 [21:22:26]MH_SAM_APDU [21:22:26]CAPDU: 80 0D 02 02 03 42 5F 41 [21:22:26]Write to MH i2c: E2 0B 00 98 5A 80 0D 02 02 03 00 42 5F 41 00 00 54 [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 [21:22:26]MH_I2C_Read... [21:22:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:26]Read from MH i2c: E2 03 00 [21:22:26]MH_I2C_Read... [21:22:26]Read from MH i2c: E2 03 00 98 5A 00 90 00 66 [21:22:26]RAPDU: 90 00 [21:22:26]wFMCommunicate OK [21:22:26]wFMCommunicate request_size=4 [21:22:26]MH_SAM_APDU [21:22:26]CAPDU: 80 0D 03 02 [21:22:26]Write to MH i2c: E2 08 00 99 5A 80 0D 03 02 00 00 00 00 6E [21:22:26]Write i2c OK [21:22:26]MH_I2C_Read... [21:22:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:26]Read from MH i2c: E2 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 0B 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 0B 00 99 5A 00 D2 B9 8C A1 21 8D AB 57 90 00 D7 [21:22:27]RAPDU: D2 B9 8C A1 21 8D AB 57 90 00 [21:22:27]wFMCommunicate OK [21:22:27]SAM_PROTO_SignData done [21:22:27]FM_MakeSignedData done [21:22:27]CreateOFDProtocolMessage [21:22:27]wFMCommunicate request_size=4 [21:22:27]MH_SAM_APDU [21:22:27]CAPDU: 80 11 00 00 [21:22:27]Write to MH i2c: E2 08 00 9A 5A 80 11 00 00 00 00 00 00 6E [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:27]Read from MH i2c: E2 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 17 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: E2 17 00 9A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 BD [21:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:22:27]wFMCommunicate OK [21:22:27]CreateOFDProtocolMessage done [21:22:27]OFDSenderStorePacket 15779 [21:22:27]StoreOFDPacket docnum=15779 [21:22:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 95 F0 05 01 46 AF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 1E 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A3 3D 00 00 35 04 06 00 08 34 33 42 5F 41 D2 B9 8C A1 21 8D AB 57 [21:22:27]CheckFolder [21:22:27]dirname=/storage/ofd_packets [21:22:27]CheckFolder done [21:22:27]ProducePacketName [21:22:27]name=ofd_packets/00015779 [21:22:27]NVStorageSaveData ofd_packets/00015779 [21:22:27]File name is /storage/ofd_packets/00015779 [21:22:27]Write 299 bytes [21:22:27]NVStorageSaveData done [21:22:27]OFDSenderStorePacket done [21:22:27]KKMCreateOFDPacket done [21:22:27]NVStorageSaveData kkm_last_timestamp [21:22:27]File name is /storage/kkm_last_timestamp [21:22:27]Write 4 bytes [21:22:27]NVStorageSaveData done [21:22:27]ExternCall_PrintAddStr [21:22:27]wPrintStart [21:22:27]Write to MH i2c: 01 00 00 9B 5A F5 [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 07 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 07 00 9B 5A 00 00 00 00 00 FF 0F 0A [21:22:27]RasterBufferAndPrint [21:22:27]line Счет N : (1)16330 [21:22:27]line ИНН: 02508201610067 [21:22:27]line Контрольно-Кассовый Чек [21:22:27]line ПРОДАЖА [21:22:27]line ТРК (МРК, ГНК) : 12 [21:22:27]line Товар: 50.50.0 [21:22:27]line SUPER 92-К-5 [21:22:27]line 14.620 * 68.40 [21:22:27]line = 1000.01 [21:22:27]line НДС 12% НСП 1% [21:22:27]line > о реализуемом товаре [21:22:27]line ОКРУГЛЕНИЕ: -0.01 [21:22:27]line ИТОГО: 1000.00 [21:22:27]line Внесено: 1000.00 [21:22:27]line СДАЧА: 0.00 [21:22:27]line НСП 1% : 8.85 [21:22:27]line НДС 12% : 106.20 [21:22:27]line Наличными: 1000.00 [21:22:27]line Безнал.: 0.00 [21:22:27]line Место: АЗС № 178 "Партнер Нефть" [21:22:27]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:22:27]line СНО: Общий режим [21:22:27]line Чек 125 29.10.2024 21:22 [21:22:27]line Смена: 172 ФФД: 1.0 [21:22:27]line ЗНМ: 0300000014 [21:22:27]line РНМ: 0000000000161798 [21:22:27]line Версия ККМ: v1.0 [21:22:27]line ФМ: 0000000000963325 [21:22:27]line ФД: 15779 [21:22:27]line ФПД: 9020291309377 [21:22:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T212238&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15779&fm=9020291309377&tin=02508201610067®Number=0000000000161798&sum=100000 [21:22:27]OFD Sender: Processing packet 15779 [packets to send 4, broken 3] [21:22:27]ProducePacketName [21:22:27]name=ofd_packets/00015779 [21:22:27]OFD Sender: To server: pG, [21:22:27]CommunicateWithHost lk.salyk.kg:30040 [21:22:27]ConnectInit lk.salyk.kg [21:22:27]written 0, free lines is 4095 [21:22:27]Connected sock=10 [21:22:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 95 F0 05 01 46 AF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 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 1E 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A3 3D 00 00 35 04 06 00 08 34 33 42 5F 41 D2 B9 8C A1 21 8D AB 57 [21:22:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 40 DD 47 00 DC B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A3 3D 00 00 F4 03 04 00 0A FD 20 67 B6 04 01 00 00 22 60 23 AC E2 3D B0 C3 [21:22:27]CommunicateWithHost err = 0 [21:22:27]CheckOFDResponse [21:22:27]1017 (14) - 77093643461234 [21:22:27]1041 (16) - 0000000000963325 [21:22:27]1040 (4) - 15779 [21:22:27]1012 (4) - 29.10.2024 15:19 [21:22:27]1206 (1) - 0 [21:22:27]OFD Sender: Remove packet 15779 [21:22:27]ProducePacketName [21:22:27]name=ofd_packets/00015779 [21:22:27]NVStorageDeleteData [21:22:27]Write to MH i2c: 01 00 00 C6 5A 20 [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 07 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: 01 07 00 C6 5A 00 00 00 00 00 EF 0C 22 [21:22:27]RasterBufferAndPrint [21:22:27]line [21:22:27]line [21:22:27]line [21:22:27]line [21:22:27]line [21:22:27]written 0, free lines is 3317 [21:22:27]MH_Cut [21:22:27]Write to MH i2c: D1 01 00 CD 5A 01 F9 [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: D1 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: D1 01 00 [21:22:27]MH_I2C_Read... [21:22:27]Read from MH i2c: D1 01 00 CD 5A 00 F8 [21:22:27]Write to MH i2c: 01 00 00 CE 5A 28 [21:22:27]Write i2c OK [21:22:27]MH_I2C_Read... [21:22:28]OFD Sender: No OFD packet to send [21:22:28]*** Cut start [21:22:28]*** Partial cut [21:22:28]*** CUTSNS_PIN = 1 [21:22:28]*** CUTSNS_PIN = 0 [21:22:28]*** Brake cut motor [21:22:29]Read from MH i2c: 01 [21:22:29]MH_I2C_Read... [21:22:29]*** Stop cut motor [21:22:29]*** Cut end [21:22:29]Read from MH i2c: 01 07 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: 01 07 00 CE 5A 00 00 00 00 00 FF 0F 3D [21:22:29]process_action close_receipt done [21:22:29]requested_data is exist [21:22:29]produce_requested_data [21:22:29]requested_item fm.sn is exist - process it [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 11 00 00 [21:22:29]Write to MH i2c: E2 08 00 CF 5A 80 11 00 00 00 00 00 00 A3 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 17 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 17 00 CF 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 F2 [21:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:22:29]wFMCommunicate OK [21:22:29]requested_item fd.num is exist - process it [21:22:29]SAM_PROTO_GetFieldsCounters [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 13 00 00 [21:22:29]Write to MH i2c: E2 08 00 D0 5A 80 13 00 00 00 00 00 00 A6 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 62 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 62 00 D0 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A3 3D 00 00 0E 04 04 00 AC 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 CD [21:22:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A3 3D 00 00 0E 04 04 00 AC 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 [21:22:29]wFMCommunicate OK [21:22:29]SAM_PROTO_GetFieldsCounters done [21:22:29]requested_item shift.num is exist - process it [21:22:29]requested_item shift.opened is exist - process it [21:22:29]req_shift_opened [21:22:29]FM_GetShiftState [21:22:29]SAM_PROTO_GetShiftState [21:22:29]wFMCommunicate request_size=4 [21:22:29]MH_SAM_APDU [21:22:29]CAPDU: 80 13 01 00 [21:22:29]Write to MH i2c: E2 08 00 D1 5A 80 13 01 00 00 00 00 00 A8 [21:22:29]Write i2c OK [21:22:29]MH_I2C_Read... [21:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:29]Read from MH i2c: E2 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 0E 00 [21:22:29]MH_I2C_Read... [21:22:29]Read from MH i2c: E2 0E 00 D1 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FD [21:22:29]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:22:29]wFMCommunicate OK [21:22:29]SAM_PROTO_GetShiftState done [21:22:29]FM_GetShiftState done [21:22:29]req_shift_opened done [21:22:29]requested_item shift.open_date is exist - process it [21:22:29]req_shift_open_date [21:22:29]req_shift_open_date done [21:22:29]produce_requested_data done [21:22:29]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15779,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:22:29]process_action_free close_receipt [21:22:29]json_value_free [21:22:29]json_value_free done [21:22:29]process_json_proto returns [21:22:29]Send response to host [21:22:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15779,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:22:29]free response buf [21:22:29]execute_script done [21:22:29]execute_script returns [21:22:29]free content buf [21:22:29]Sock 9.Close socket [21:22:29]Sock 9.Thread stoped [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:31]accept exits with 8 [21:25:31]New connection [21:25:31]New thread 3066731876 created [21:25:31]Thread 3066588516 joined [21:25:31]Waiting for new connection... [21:25:31] Sock 8.Parse request [21:25:31]Sock 8.Check first char [21:25:31]Sock 8.First char is OK [21:25:31]request: POST /json_proto HTTP/1.0 [21:25:31]Method: POST [21:25:31]URL: /json_proto [21:25:31]Method is POST - this is cgi request [21:25:31]url: /json_proto [21:25:31]query_string will be loaded in cgi processing [21:25:31]execute_cgi json_proto POST (null) [21:25:31]execute_cgi path=json_proto method=POST [21:25:31]POST find Content-Length [21:25:31]Host: 172.17.54.195:8080 [21:25:31]Content-Length: 671 [21:25:31]Content-Type: application/json [21:25:31] [21:25:31]POST finish read [21:25:31]Found Content-Length = 671 [21:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "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" ] } } [21:25:31]execute_script... [21:25: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)16331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 21.930, "sum" : 1500.01, "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" ] } } [21:25:31]POST & json_proto [21:25:31]process_json_proto [21:25:31]json parsed OK: [21:25:31]protocol is kg_v1.0 [21:25:31]action value=close_receipt [21:25:31]process_action close_receipt [21:25:31]cmd_close_receipt [21:25:31]MH_GetDate [21:25:31]Write to MH i2c: F0 00 00 D2 5A 1B [21:25:31]Write i2c OK [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: F0 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: F0 09 00 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: F0 09 00 D2 5A 00 D8 52 21 67 8D 90 A3 66 FC [21:25:31]GetLastDocTimeStamp 1730236958 [21:25:31]current date 1730237144 [21:25:31]FM_GetShiftState [21:25:31]SAM_PROTO_GetShiftState [21:25:31]wFMCommunicate request_size=4 [21:25:31]MH_SAM_APDU [21:25:31]CAPDU: 80 13 01 00 [21:25:31]Write to MH i2c: E2 08 00 D3 5A 80 13 01 00 00 00 00 00 AA [21:25:31]Write i2c OK [21:25:31]MH_I2C_Read... [21:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:31]Read from MH i2c: E2 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: E2 0E 00 [21:25:31]MH_I2C_Read... [21:25:31]Read from MH i2c: E2 0E 00 D3 5A 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 FF [21:25:31]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:25:31]wFMCommunicate OK [21:25:31]SAM_PROTO_GetShiftState done [21:25:31]FM_GetShiftState done [21:25:31]opened in 1730161559 [21:25:31]opened+sec_in_day 1730247959 [21:25:31]quantity*price = 150001 [21:25:31]sum+1 = 150002 [21:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 126 29.10.2024 21:25 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15780 ФПД: 85959333949181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T212544&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15780&fm=85959333949181&tin=02508201610067®Number=0000000000161798&sum=150000 [21:25:32]StoreToDocumentArchive [21:25:32]shift 172 fd 15780 [21:25:32]save to /storage/0172/doc_00015780 [21:25:32]save last doc name /storage/0172/doc_00015780 to /storage/kkm_last_doc_name [21:25:32]save OK [21:25:32]Clear old archive folders... [21:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:25:32]tlvbuf is 00304310 [21:25:32]SAM_PROTO_ClearQueue [21:25:32]wFMCommunicate request_size=4 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 09 00 00 [21:25:32]Write to MH i2c: E2 08 00 E0 5A 80 09 00 00 00 00 00 00 AC [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 E0 5A 00 90 00 AE [21:25:32]RAPDU: 90 00 [21:25:32]wFMCommunicate OK [21:25:32]SAM_PROTO_ClearQueue done [21:25:32]KKMCreateOFDPacket [21:25:32]OFDProtocolAddRootSTLVToBuf [21:25:32]FM_MakeSignedData [21:25:32]FM_MakeSignedData [21:25:32]SAM_PROTO_SignData [21:25:32]wFMCommunicate request_size=4 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 0D 01 02 [21:25:32]Write to MH i2c: E2 08 00 E1 5A 80 0D 01 02 00 00 00 00 B4 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 E1 5A 00 90 00 AF [21:25:32]RAPDU: 90 00 [21:25:32]wFMCommunicate OK [21:25:32]wFMCommunicate request_size=255 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 7E 00 00 00 F4 03 04 00 D8 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A4 3D 00 00 35 04 06 00 4E 2D F7 [21:25:32]Write to MH i2c: E2 02 01 E2 5A 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 7E 00 00 00 F4 03 04 00 D8 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A4 3D 00 00 35 04 06 00 4E 2D F7 00 00 13 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 E2 5A 00 90 00 B0 [21:25:32]RAPDU: 90 00 [21:25:32]wFMCommunicate OK [21:25:32]wFMCommunicate request_size=8 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 0D 02 02 03 90 AE FD [21:25:32]Write to MH i2c: E2 0B 00 E3 5A 80 0D 02 02 03 00 90 AE FD 00 00 F8 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:32]Read from MH i2c: E2 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 [21:25:32]MH_I2C_Read... [21:25:32]Read from MH i2c: E2 03 00 E3 5A 00 90 00 B1 [21:25:32]RAPDU: 90 00 [21:25:32]wFMCommunicate OK [21:25:32]wFMCommunicate request_size=4 [21:25:32]MH_SAM_APDU [21:25:32]CAPDU: 80 0D 03 02 [21:25:32]Write to MH i2c: E2 08 00 E4 5A 80 0D 03 02 00 00 00 00 B9 [21:25:32]Write i2c OK [21:25:32]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 0B 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 0B 00 E4 5A 00 AC 65 2C AA 8D 3F FA 13 90 00 7A [21:25:33]RAPDU: AC 65 2C AA 8D 3F FA 13 90 00 [21:25:33]wFMCommunicate OK [21:25:33]SAM_PROTO_SignData done [21:25:33]FM_MakeSignedData done [21:25:33]CreateOFDProtocolMessage [21:25:33]wFMCommunicate request_size=4 [21:25:33]MH_SAM_APDU [21:25:33]CAPDU: 80 11 00 00 [21:25:33]Write to MH i2c: E2 08 00 E5 5A 80 11 00 00 00 00 00 00 B9 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:33]Read from MH i2c: E2 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 17 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: E2 17 00 E5 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 08 [21:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:25:33]wFMCommunicate OK [21:25:33]CreateOFDProtocolMessage done [21:25:33]OFDSenderStorePacket 15780 [21:25:33]StoreOFDPacket docnum=15780 [21:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F6 B2 05 01 21 55 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 7E 00 00 00 F4 03 04 00 D8 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A4 3D 00 00 35 04 06 00 4E 2D F7 90 AE FD AC 65 2C AA 8D 3F FA 13 [21:25:33]CheckFolder [21:25:33]dirname=/storage/ofd_packets [21:25:33]CheckFolder done [21:25:33]ProducePacketName [21:25:33]name=ofd_packets/00015780 [21:25:33]NVStorageSaveData ofd_packets/00015780 [21:25:33]File name is /storage/ofd_packets/00015780 [21:25:33]Write 299 bytes [21:25:33]NVStorageSaveData done [21:25:33]OFDSenderStorePacket done [21:25:33]KKMCreateOFDPacket done [21:25:33]NVStorageSaveData kkm_last_timestamp [21:25:33]File name is /storage/kkm_last_timestamp [21:25:33]Write 4 bytes [21:25:33]NVStorageSaveData done [21:25:33]ExternCall_PrintAddStr [21:25:33]wPrintStart [21:25:33]Write to MH i2c: 01 00 00 E6 5A 40 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 07 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 07 00 E6 5A 00 00 00 00 00 FF 0F 55 [21:25:33]RasterBufferAndPrint [21:25:33]line Счет N : (1)16331 [21:25:33]line ИНН: 02508201610067 [21:25:33]line Контрольно-Кассовый Чек [21:25:33]line ПРОДАЖА [21:25:33]line ТРК (МРК, ГНК) : 12 [21:25:33]line Товар: 50.50.0 [21:25:33]line SUPER 92-К-5 [21:25:33]line 21.930 * 68.40 [21:25:33]line = 1500.01 [21:25:33]line НДС 12% НСП 1% [21:25:33]line > о реализуемом товаре [21:25:33]line ОКРУГЛЕНИЕ: -0.01 [21:25:33]line ИТОГО: 1500.00 [21:25:33]line Внесено: 1500.00 [21:25:33]line СДАЧА: 0.00 [21:25:33]line НСП 1% : 13.27 [21:25:33]line НДС 12% : 159.29 [21:25:33]line Наличными: 1500.00 [21:25:33]line Безнал.: 0.00 [21:25:33]line Место: АЗС № 178 "Партнер Нефть" [21:25:33]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:25:33]line СНО: Общий режим [21:25:33]line Чек 126 29.10.2024 21:25 [21:25:33]line Смена: 172 ФФД: 1.0 [21:25:33]line ЗНМ: 0300000014 [21:25:33]line РНМ: 0000000000161798 [21:25:33]line Версия ККМ: v1.0 [21:25:33]line ФМ: 0000000000963325 [21:25:33]line ФД: 15780 [21:25:33]line ФПД: 85959333949181 [21:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T212544&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15780&fm=85959333949181&tin=02508201610067®Number=0000000000161798&sum=150000 [21:25:33]OFD Sender: Processing packet 15780 [packets to send 4, broken 3] [21:25:33]ProducePacketName [21:25:33]name=ofd_packets/00015780 [21:25:33]OFD Sender: To server: pG, [21:25:33]CommunicateWithHost lk.salyk.kg:30040 [21:25:33]ConnectInit lk.salyk.kg [21:25:33]written 0, free lines is 4095 [21:25:33]Connected sock=10 [21:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 F6 B2 05 01 21 55 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 55 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 F1 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 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 7E 00 00 00 F4 03 04 00 D8 52 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A4 3D 00 00 35 04 06 00 4E 2D F7 90 AE FD AC 65 2C AA 8D 3F FA 13 [21:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 7B 7F 47 00 92 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A4 3D 00 00 F4 03 04 00 C4 FD 20 67 B6 04 01 00 00 52 C6 20 41 1E ED FF 14 [21:25:33]CommunicateWithHost err = 0 [21:25:33]CheckOFDResponse [21:25:33]1017 (14) - 77093643461234 [21:25:33]1041 (16) - 0000000000963325 [21:25:33]1040 (4) - 15780 [21:25:33]1012 (4) - 29.10.2024 15:22 [21:25:33]1206 (1) - 0 [21:25:33]OFD Sender: Remove packet 15780 [21:25:33]ProducePacketName [21:25:33]name=ofd_packets/00015780 [21:25:33]NVStorageDeleteData [21:25:33]Write to MH i2c: 01 00 00 11 5B 6C [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 07 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: 01 07 00 11 5B 00 00 00 00 00 FA 0C 79 [21:25:33]RasterBufferAndPrint [21:25:33]line [21:25:33]line [21:25:33]line [21:25:33]line [21:25:33]line [21:25:33]written 0, free lines is 3329 [21:25:33]MH_Cut [21:25:33]Write to MH i2c: D1 01 00 18 5B 01 45 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: D1 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: D1 01 00 [21:25:33]MH_I2C_Read... [21:25:33]Read from MH i2c: D1 01 00 18 5B 00 44 [21:25:33]Write to MH i2c: 01 00 00 19 5B 74 [21:25:33]Write i2c OK [21:25:33]MH_I2C_Read... [21:25:34]OFD Sender: No OFD packet to send [21:25:34]*** Cut start [21:25:34]*** Partial cut [21:25:34]*** CUTSNS_PIN = 1 [21:25:34]*** CUTSNS_PIN = 0 [21:25:34]*** Brake cut motor [21:25:35]Read from MH i2c: 01 [21:25:35]MH_I2C_Read... [21:25:35]*** Stop cut motor [21:25:35]*** Cut end [21:25:35]Read from MH i2c: 01 07 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: 01 07 00 19 5B 00 00 00 00 00 FF 0F 89 [21:25:35]process_action close_receipt done [21:25:35]requested_data is exist [21:25:35]produce_requested_data [21:25:35]requested_item fm.sn is exist - process it [21:25:35]wFMCommunicate request_size=4 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 11 00 00 [21:25:35]Write to MH i2c: E2 08 00 1A 5B 80 11 00 00 00 00 00 00 EF [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:35]Read from MH i2c: E2 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 17 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 17 00 1A 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3E [21:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:25:35]wFMCommunicate OK [21:25:35]requested_item fd.num is exist - process it [21:25:35]SAM_PROTO_GetFieldsCounters [21:25:35]wFMCommunicate request_size=4 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 13 00 00 [21:25:35]Write to MH i2c: E2 08 00 1B 5B 80 13 00 00 00 00 00 00 F2 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:35]Read from MH i2c: E2 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 62 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 62 00 1B 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A4 3D 00 00 0E 04 04 00 AC 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 1D [21:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A4 3D 00 00 0E 04 04 00 AC 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 [21:25:35]wFMCommunicate OK [21:25:35]SAM_PROTO_GetFieldsCounters done [21:25:35]requested_item shift.num is exist - process it [21:25:35]requested_item shift.opened is exist - process it [21:25:35]req_shift_opened [21:25:35]FM_GetShiftState [21:25:35]SAM_PROTO_GetShiftState [21:25:35]wFMCommunicate request_size=4 [21:25:35]MH_SAM_APDU [21:25:35]CAPDU: 80 13 01 00 [21:25:35]Write to MH i2c: E2 08 00 1C 5B 80 13 01 00 00 00 00 00 F4 [21:25:35]Write i2c OK [21:25:35]MH_I2C_Read... [21:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:35]Read from MH i2c: E2 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 0E 00 [21:25:35]MH_I2C_Read... [21:25:35]Read from MH i2c: E2 0E 00 1C 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 49 [21:25:35]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:25:35]wFMCommunicate OK [21:25:35]SAM_PROTO_GetShiftState done [21:25:35]FM_GetShiftState done [21:25:35]req_shift_opened done [21:25:35]requested_item shift.open_date is exist - process it [21:25:35]req_shift_open_date [21:25:35]req_shift_open_date done [21:25:35]produce_requested_data done [21:25:35]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15780,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:25:35]process_action_free close_receipt [21:25:35]json_value_free [21:25:35]json_value_free done [21:25:35]process_json_proto returns [21:25:35]Send response to host [21:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15780,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:25:35]free response buf [21:25:35]execute_script done [21:25:35]execute_script returns [21:25:35]free content buf [21:25:35]Sock 8.Close socket [21:25:35]Sock 8.Thread stoped [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]OFD Sender: No OFD packet to send [21:29:04]OFD Sender: No OFD packet to send [21:29:09]OFD Sender: No OFD packet to send [21:29:14]OFD Sender: No OFD packet to send [21:29:19]OFD Sender: No OFD packet to send [21:29:24]OFD Sender: No OFD packet to send [21:29:29]OFD Sender: No OFD packet to send [21:29:34]OFD Sender: No OFD packet to send [21:29:39]OFD Sender: No OFD packet to send [21:29:44]OFD Sender: No OFD packet to send [21:29:49]OFD Sender: No OFD packet to send [21:29:54]OFD Sender: No OFD packet to send [21:29:59]OFD Sender: No OFD packet to send [21:30:04]OFD Sender: No OFD packet to send [21:30:09]OFD Sender: No OFD packet to send [21:30:14]OFD Sender: No OFD packet to send [21:30:19]OFD Sender: No OFD packet to send [21:30:24]OFD Sender: No OFD packet to send [21:30:29]OFD Sender: No OFD packet to send [21:30:34]OFD Sender: No OFD packet to send [21:30:39]OFD Sender: No OFD packet to send [21:30:44]OFD Sender: No OFD packet to send [21:30:49]OFD Sender: No OFD packet to send [21:30:54]OFD Sender: No OFD packet to send [21:30:59]OFD Sender: No OFD packet to send [21:31:04]OFD Sender: No OFD packet to send [21:31:09]OFD Sender: No OFD packet to send [21:31:14]OFD Sender: No OFD packet to send [21:31:19]OFD Sender: No OFD packet to send [21:31:24]OFD Sender: No OFD packet to send [21:31:29]OFD Sender: No OFD packet to send [21:31:34]OFD Sender: No OFD packet to send [21:31:39]OFD Sender: No OFD packet to send [21:31:44]OFD Sender: No OFD packet to send [21:31:49]OFD Sender: No OFD packet to send [21:31:54]OFD Sender: No OFD packet to send [21:31:59]OFD Sender: No OFD packet to send [21:32:04]OFD Sender: No OFD packet to send [21:32:09]OFD Sender: No OFD packet to send [21:32:14]OFD Sender: No OFD packet to send [21:32:19]OFD Sender: No OFD packet to send [21:32:24]OFD Sender: No OFD packet to send [21:32:29]OFD Sender: No OFD packet to send [21:32:34]OFD Sender: No OFD packet to send [21:32:39]OFD Sender: No OFD packet to send [21:32:44]OFD Sender: No OFD packet to send [21:32:49]OFD Sender: No OFD packet to send [21:32:54]OFD Sender: No OFD packet to send [21:32:59]OFD Sender: No OFD packet to send [21:33:04]OFD Sender: No OFD packet to send [21:33:09]OFD Sender: No OFD packet to send [21:33:14]OFD Sender: No OFD packet to send [21:33:19]OFD Sender: No OFD packet to send [21:33:24]OFD Sender: No OFD packet to send [21:33:29]OFD Sender: No OFD packet to send [21:33:34]OFD Sender: No OFD packet to send [21:33:39]OFD Sender: No OFD packet to send [21:33:44]OFD Sender: No OFD packet to send [21:33:49]OFD Sender: No OFD packet to send [21:33:54]OFD Sender: No OFD packet to send [21:33:59]OFD Sender: No OFD packet to send [21:34:04]OFD Sender: No OFD packet to send [21:34:09]OFD Sender: No OFD packet to send [21:34:14]OFD Sender: No OFD packet to send [21:34:19]OFD Sender: No OFD packet to send [21:34:24]OFD Sender: No OFD packet to send [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:29]OFD Sender: No OFD packet to send [21:35:34]OFD Sender: No OFD packet to send [21:35:39]OFD Sender: No OFD packet to send [21:35:44]OFD Sender: No OFD packet to send [21:35:49]OFD Sender: No OFD packet to send [21:35:54]OFD Sender: No OFD packet to send [21:35:59]OFD Sender: No OFD packet to send [21:36:04]OFD Sender: No OFD packet to send [21:36:09]OFD Sender: No OFD packet to send [21:36:14]OFD Sender: No OFD packet to send [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:29]OFD Sender: No OFD packet to send [21:38:34]OFD Sender: No OFD packet to send [21:38:39]OFD Sender: No OFD packet to send [21:38:44]OFD Sender: No OFD packet to send [21:38:49]OFD Sender: No OFD packet to send [21:38:54]OFD Sender: No OFD packet to send [21:38:59]OFD Sender: No OFD packet to send [21:39:04]OFD Sender: No OFD packet to send [21:39:05]accept exits with 9 [21:39:05]New connection [21:39:05]New thread 3066588516 created [21:39:05]Thread 3066731876 joined [21:39:05]Waiting for new connection... [21:39:05] Sock 9.Parse request [21:39:05]Sock 9.Check first char [21:39:05]Sock 9.First char is OK [21:39:05]request: POST /json_proto HTTP/1.0 [21:39:05]Method: POST [21:39:05]URL: /json_proto [21:39:05]Method is POST - this is cgi request [21:39:05]url: /json_proto [21:39:05]query_string will be loaded in cgi processing [21:39:05]execute_cgi json_proto POST (null) [21:39:05]execute_cgi path=json_proto method=POST [21:39:05]POST find Content-Length [21:39:05]Host: 172.17.54.195:8080 [21:39:05]Content-Length: 676 [21:39:05]Content-Type: application/json [21:39:05] [21:39:05]POST finish read [21:39:05]Found Content-Length = 676 [21:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:39:05]execute_script... [21:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:39:05]POST & json_proto [21:39:05]process_json_proto [21:39:05]json parsed OK: [21:39:05]protocol is kg_v1.0 [21:39:05]action value=close_receipt [21:39:05]process_action close_receipt [21:39:05]cmd_close_receipt [21:39:05]MH_GetDate [21:39:05]Write to MH i2c: F0 00 00 1D 5B 67 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: F0 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: F0 09 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: F0 09 00 1D 5B 00 06 56 21 67 8D 90 A3 66 7A [21:39:05]GetLastDocTimeStamp 1730237144 [21:39:05]current date 1730237958 [21:39:05]FM_GetShiftState [21:39:05]SAM_PROTO_GetShiftState [21:39:05]wFMCommunicate request_size=4 [21:39:05]MH_SAM_APDU [21:39:05]CAPDU: 80 13 01 00 [21:39:05]Write to MH i2c: E2 08 00 1E 5B 80 13 01 00 00 00 00 00 F6 [21:39:05]Write i2c OK [21:39:05]MH_I2C_Read... [21:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:05]Read from MH i2c: E2 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 [21:39:05]MH_I2C_Read... [21:39:05]Read from MH i2c: E2 0E 00 1E 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 4B [21:39:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:39:05]wFMCommunicate OK [21:39:05]SAM_PROTO_GetShiftState done [21:39:05]FM_GetShiftState done [21:39:05]opened in 1730161559 [21:39:05]opened+sec_in_day 1730247959 [21:39:05]quantity*price = 30038 [21:39:05]sum+1 = 30039 [21:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 127 29.10.2024 21:39 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15781 ФПД: 173235445113999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T213918&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15781&fm=173235445113999&tin=02508201610067®Number=0000000000161798&sum=30000 [21:39:06]StoreToDocumentArchive [21:39:06]shift 172 fd 15781 [21:39:06]save to /storage/0172/doc_00015781 [21:39:06]save last doc name /storage/0172/doc_00015781 to /storage/kkm_last_doc_name [21:39:06]save OK [21:39:06]Clear old archive folders... [21:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:39:06]tlvbuf is 0048A4F0 [21:39:06]SAM_PROTO_ClearQueue [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 09 00 00 [21:39:06]Write to MH i2c: E2 08 00 2B 5B 80 09 00 00 00 00 00 00 F8 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 2B 5B 00 90 00 FA [21:39:06]RAPDU: 90 00 [21:39:06]wFMCommunicate OK [21:39:06]SAM_PROTO_ClearQueue done [21:39:06]KKMCreateOFDPacket [21:39:06]OFDProtocolAddRootSTLVToBuf [21:39:06]FM_MakeSignedData [21:39:06]FM_MakeSignedData [21:39:06]SAM_PROTO_SignData [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 0D 01 02 [21:39:06]Write to MH i2c: E2 08 00 2C 5B 80 0D 01 02 00 00 00 00 00 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 2C 5B 00 90 00 FB [21:39:06]RAPDU: 90 00 [21:39:06]wFMCommunicate OK [21:39:06]wFMCommunicate request_size=255 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 06 56 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A5 3D 00 00 35 04 06 00 9D [21:39:06]Write to MH i2c: E2 02 01 2D 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 06 56 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A5 3D 00 00 35 04 06 00 9D 00 00 14 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 2D 5B 00 90 00 FC [21:39:06]RAPDU: 90 00 [21:39:06]wFMCommunicate OK [21:39:06]wFMCommunicate request_size=10 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 0D 02 02 05 8E 85 2B 24 8F [21:39:06]Write to MH i2c: E2 0D 00 2E 5B 80 0D 02 02 05 00 8E 85 2B 24 8F 00 00 FE [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 03 00 2E 5B 00 90 00 FD [21:39:06]RAPDU: 90 00 [21:39:06]wFMCommunicate OK [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 0D 03 02 [21:39:06]Write to MH i2c: E2 08 00 2F 5B 80 0D 03 02 00 00 00 00 05 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 0B 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 0B 00 2F 5B 00 FD 3C 96 62 FA AD 8E CD 90 00 39 [21:39:06]RAPDU: FD 3C 96 62 FA AD 8E CD 90 00 [21:39:06]wFMCommunicate OK [21:39:06]SAM_PROTO_SignData done [21:39:06]FM_MakeSignedData done [21:39:06]CreateOFDProtocolMessage [21:39:06]wFMCommunicate request_size=4 [21:39:06]MH_SAM_APDU [21:39:06]CAPDU: 80 11 00 00 [21:39:06]Write to MH i2c: E2 08 00 30 5B 80 11 00 00 00 00 00 00 05 [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:06]Read from MH i2c: E2 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 17 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: E2 17 00 30 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 54 [21:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:39:06]wFMCommunicate OK [21:39:06]CreateOFDProtocolMessage done [21:39:06]OFDSenderStorePacket 15781 [21:39:06]StoreOFDPacket docnum=15781 [21:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 C6 4F 07 01 2A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 06 56 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A5 3D 00 00 35 04 06 00 9D 8E 85 2B 24 8F FD 3C 96 62 FA AD 8E CD [21:39:06]CheckFolder [21:39:06]dirname=/storage/ofd_packets [21:39:06]CheckFolder done [21:39:06]ProducePacketName [21:39:06]name=ofd_packets/00015781 [21:39:06]NVStorageSaveData ofd_packets/00015781 [21:39:06]File name is /storage/ofd_packets/00015781 [21:39:06]Write 301 bytes [21:39:06]NVStorageSaveData done [21:39:06]OFDSenderStorePacket done [21:39:06]KKMCreateOFDPacket done [21:39:06]NVStorageSaveData kkm_last_timestamp [21:39:06]File name is /storage/kkm_last_timestamp [21:39:06]Write 4 bytes [21:39:06]NVStorageSaveData done [21:39:06]ExternCall_PrintAddStr [21:39:06]wPrintStart [21:39:06]Write to MH i2c: 01 00 00 31 5B 8C [21:39:06]Write i2c OK [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 07 00 [21:39:06]MH_I2C_Read... [21:39:06]Read from MH i2c: 01 07 00 31 5B 00 00 00 00 00 FF 0F A1 [21:39:06]RasterBufferAndPrint [21:39:06]line Счет N : (1)16332 [21:39:06]line ИНН: 02508201610067 [21:39:06]line Контрольно-Кассовый Чек [21:39:06]line ПРОДАЖА [21:39:06]line ТРК (МРК, ГНК) : 21 [21:39:06]line Товар: 2710124130 [21:39:06]line Аи-92-К-5 [21:39:06]line 4.490 * 66.90 [21:39:06]line = 300.38 [21:39:06]line НДС 12% НСП 1% [21:39:06]line > о реализуемом товаре [21:39:06]line ОКРУГЛЕНИЕ: -0.38 [21:39:06]line ИТОГО: 300.00 [21:39:06]line Внесено: 300.00 [21:39:06]line СДАЧА: 0.00 [21:39:06]line НСП 1% : 2.66 [21:39:06]line НДС 12% : 31.90 [21:39:06]line Наличными: 300.00 [21:39:06]line Безнал.: 0.00 [21:39:06]line Место: АЗС № 178 "Партнер Нефть" [21:39:06]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:39:06]line СНО: Общий режим [21:39:06]line Чек 127 29.10.2024 21:39 [21:39:06]line Смена: 172 ФФД: 1.0 [21:39:06]line ЗНМ: 0300000014 [21:39:06]line РНМ: 0000000000161798 [21:39:06]line Версия ККМ: v1.0 [21:39:06]line ФМ: 0000000000963325 [21:39:06]line ФД: 15781 [21:39:06]line ФПД: 173235445113999 [21:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T213918&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15781&fm=173235445113999&tin=02508201610067®Number=0000000000161798&sum=30000 [21:39:07]OFD Sender: Processing packet 15781 [packets to send 4, broken 3] [21:39:07]ProducePacketName [21:39:07]name=ofd_packets/00015781 [21:39:07]OFD Sender: To server: pG, [21:39:07]CommunicateWithHost lk.salyk.kg:30040 [21:39:07]ConnectInit lk.salyk.kg [21:39:07]written 0, free lines is 4095 [21:39:07]Connected sock=10 [21:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 C6 4F 07 01 2A C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7F 00 00 00 F4 03 04 00 06 56 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A5 3D 00 00 35 04 06 00 9D 8E 85 2B 24 8F FD 3C 96 62 FA AD 8E CD [21:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8C B8 47 00 F2 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A5 3D 00 00 F4 03 04 00 F2 00 21 67 B6 04 01 00 00 F2 15 AE 6B AB C4 FB D0 [21:39:07]CommunicateWithHost err = 0 [21:39:07]CheckOFDResponse [21:39:07]1017 (14) - 77093643461234 [21:39:07]1041 (16) - 0000000000963325 [21:39:07]1040 (4) - 15781 [21:39:07]1012 (4) - 29.10.2024 15:36 [21:39:07]1206 (1) - 0 [21:39:07]OFD Sender: Remove packet 15781 [21:39:07]ProducePacketName [21:39:07]name=ofd_packets/00015781 [21:39:07]NVStorageDeleteData [21:39:07]Write to MH i2c: 01 00 00 5C 5B B7 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: 01 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: 01 07 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: 01 07 00 5C 5B 00 00 00 00 00 03 0D CE [21:39:07]RasterBufferAndPrint [21:39:07]line [21:39:07]line [21:39:07]line [21:39:07]line [21:39:07]line [21:39:07]written 0, free lines is 3340 [21:39:07]MH_Cut [21:39:07]Write to MH i2c: D1 01 00 63 5B 01 90 [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: D1 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: D1 01 00 [21:39:07]MH_I2C_Read... [21:39:07]Read from MH i2c: D1 01 00 63 5B 00 8F [21:39:07]Write to MH i2c: 01 00 00 64 5B BF [21:39:07]Write i2c OK [21:39:07]MH_I2C_Read... [21:39:08]OFD Sender: No OFD packet to send [21:39:08]*** Cut start [21:39:08]*** Partial cut [21:39:08]*** CUTSNS_PIN = 1 [21:39:08]*** CUTSNS_PIN = 0 [21:39:08]*** Brake cut motor [21:39:09]Read from MH i2c: 01 [21:39:09]MH_I2C_Read... [21:39:09]*** Stop cut motor [21:39:09]*** Cut end [21:39:09]Read from MH i2c: 01 07 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: 01 07 00 64 5B 00 00 00 00 00 FF 0F D4 [21:39:09]process_action close_receipt done [21:39:09]requested_data is exist [21:39:09]produce_requested_data [21:39:09]requested_item fm.sn is exist - process it [21:39:09]wFMCommunicate request_size=4 [21:39:09]MH_SAM_APDU [21:39:09]CAPDU: 80 11 00 00 [21:39:09]Write to MH i2c: E2 08 00 65 5B 80 11 00 00 00 00 00 00 3A [21:39:09]Write i2c OK [21:39:09]MH_I2C_Read... [21:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:09]Read from MH i2c: E2 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 17 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 17 00 65 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 89 [21:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:39:09]wFMCommunicate OK [21:39:09]requested_item fd.num is exist - process it [21:39:09]SAM_PROTO_GetFieldsCounters [21:39:09]wFMCommunicate request_size=4 [21:39:09]MH_SAM_APDU [21:39:09]CAPDU: 80 13 00 00 [21:39:09]Write to MH i2c: E2 08 00 66 5B 80 13 00 00 00 00 00 00 3D [21:39:09]Write i2c OK [21:39:09]MH_I2C_Read... [21:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:09]Read from MH i2c: E2 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 62 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 62 00 66 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A5 3D 00 00 0E 04 04 00 AC 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 6C [21:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A5 3D 00 00 0E 04 04 00 AC 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 [21:39:09]wFMCommunicate OK [21:39:09]SAM_PROTO_GetFieldsCounters done [21:39:09]requested_item shift.num is exist - process it [21:39:09]requested_item shift.opened is exist - process it [21:39:09]req_shift_opened [21:39:09]FM_GetShiftState [21:39:09]SAM_PROTO_GetShiftState [21:39:09]wFMCommunicate request_size=4 [21:39:09]MH_SAM_APDU [21:39:09]CAPDU: 80 13 01 00 [21:39:09]Write to MH i2c: E2 08 00 67 5B 80 13 01 00 00 00 00 00 3F [21:39:09]Write i2c OK [21:39:09]MH_I2C_Read... [21:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:09]Read from MH i2c: E2 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 0E 00 [21:39:09]MH_I2C_Read... [21:39:09]Read from MH i2c: E2 0E 00 67 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 94 [21:39:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:39:09]wFMCommunicate OK [21:39:09]SAM_PROTO_GetShiftState done [21:39:09]FM_GetShiftState done [21:39:09]req_shift_opened done [21:39:09]requested_item shift.open_date is exist - process it [21:39:09]req_shift_open_date [21:39:09]req_shift_open_date done [21:39:09]produce_requested_data done [21:39:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15781,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:39:09]process_action_free close_receipt [21:39:09]json_value_free [21:39:09]json_value_free done [21:39:09]process_json_proto returns [21:39:09]Send response to host [21:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15781,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:39:09]free response buf [21:39:09]execute_script done [21:39:09]execute_script returns [21:39:09]free content buf [21:39:09]Sock 9.Close socket [21:39:09]Sock 9.Thread stoped [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:05]accept exits with 8 [21:45:05]New connection [21:45:05]New thread 3066731876 created [21:45:05]Thread 3066588516 joined [21:45:05]Waiting for new connection... [21:45:05] Sock 8.Parse request [21:45:05]Sock 8.Check first char [21:45:05]Sock 8.First char is OK [21:45:05]request: POST /json_proto HTTP/1.0 [21:45:05]Method: POST [21:45:05]URL: /json_proto [21:45:05]Method is POST - this is cgi request [21:45:05]url: /json_proto [21:45:05]query_string will be loaded in cgi processing [21:45:05]execute_cgi json_proto POST (null) [21:45:05]execute_cgi path=json_proto method=POST [21:45:05]POST find Content-Length [21:45:05]Host: 172.17.54.195:8080 [21:45:05]Content-Length: 773 [21:45:05]Content-Type: application/json [21:45:05] [21:45:05]POST finish read [21:45:05]Found Content-Length = 773 [21:45:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:05]execute_script... [21:45:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 4.390, "sum" : 300.28, "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: Mbank", "total" : 300.00, "payments": [ { "type": 1, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:05]POST & json_proto [21:45:05]process_json_proto [21:45:05]json parsed OK: [21:45:05]protocol is kg_v1.0 [21:45:05]action value=close_receipt [21:45:05]process_action close_receipt [21:45:05]cmd_close_receipt [21:45:05]MH_GetDate [21:45:05]Write to MH i2c: F0 00 00 68 5B B2 [21:45:05]Write i2c OK [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: F0 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: F0 09 00 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: F0 09 00 68 5B 00 6E 57 21 67 8D 90 A3 66 2E [21:45:05]GetLastDocTimeStamp 1730237958 [21:45:05]current date 1730238318 [21:45:05]FM_GetShiftState [21:45:05]SAM_PROTO_GetShiftState [21:45:05]wFMCommunicate request_size=4 [21:45:05]MH_SAM_APDU [21:45:05]CAPDU: 80 13 01 00 [21:45:05]Write to MH i2c: E2 08 00 69 5B 80 13 01 00 00 00 00 00 41 [21:45:05]Write i2c OK [21:45:05]MH_I2C_Read... [21:45:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:05]Read from MH i2c: E2 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: E2 0E 00 [21:45:05]MH_I2C_Read... [21:45:05]Read from MH i2c: E2 0E 00 69 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 96 [21:45:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:45:05]wFMCommunicate OK [21:45:05]SAM_PROTO_GetShiftState done [21:45:05]FM_GetShiftState done [21:45:05]opened in 1730161559 [21:45:05]opened+sec_in_day 1730247959 [21:45:05]quantity*price = 30027 [21:45:05]sum+1 = 30029 [21:45:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 128 29.10.2024 21:45 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15782 ФПД: 18582238709943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T214518&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15782&fm=18582238709943&tin=02508201610067®Number=0000000000161798&sum=30000 [21:45:06]StoreToDocumentArchive [21:45:06]shift 172 fd 15782 [21:45:06]save to /storage/0172/doc_00015782 [21:45:06]save last doc name /storage/0172/doc_00015782 to /storage/kkm_last_doc_name [21:45:06]save OK [21:45:06]Clear old archive folders... [21:45:06]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:45:06]tlvbuf is 003AB020 [21:45:06]SAM_PROTO_ClearQueue [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 09 00 00 [21:45:06]Write to MH i2c: E2 08 00 76 5B 80 09 00 00 00 00 00 00 43 [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 76 5B 00 90 00 45 [21:45:06]RAPDU: 90 00 [21:45:06]wFMCommunicate OK [21:45:06]SAM_PROTO_ClearQueue done [21:45:06]KKMCreateOFDPacket [21:45:06]OFDProtocolAddRootSTLVToBuf [21:45:06]FM_MakeSignedData [21:45:06]FM_MakeSignedData [21:45:06]SAM_PROTO_SignData [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 0D 01 02 [21:45:06]Write to MH i2c: E2 08 00 77 5B 80 0D 01 02 00 00 00 00 4B [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 77 5B 00 90 00 46 [21:45:06]RAPDU: 90 00 [21:45:06]wFMCommunicate OK [21:45:06]wFMCommunicate request_size=255 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6E 57 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A6 3D 00 00 35 04 06 00 10 E6 83 [21:45:06]Write to MH i2c: E2 02 01 78 5B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6E 57 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A6 3D 00 00 35 04 06 00 10 E6 83 00 00 C2 [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 78 5B 00 90 00 47 [21:45:06]RAPDU: 90 00 [21:45:06]wFMCommunicate OK [21:45:06]wFMCommunicate request_size=8 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 0D 02 02 03 BC C8 B7 [21:45:06]Write to MH i2c: E2 0B 00 79 5B 80 0D 02 02 03 00 BC C8 B7 00 00 8F [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:06]Read from MH i2c: E2 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 [21:45:06]MH_I2C_Read... [21:45:06]Read from MH i2c: E2 03 00 79 5B 00 90 00 48 [21:45:06]RAPDU: 90 00 [21:45:06]wFMCommunicate OK [21:45:06]wFMCommunicate request_size=4 [21:45:06]MH_SAM_APDU [21:45:06]CAPDU: 80 0D 03 02 [21:45:06]Write to MH i2c: E2 08 00 7A 5B 80 0D 03 02 00 00 00 00 50 [21:45:06]Write i2c OK [21:45:06]MH_I2C_Read... [21:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:07]Read from MH i2c: E2 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: E2 0B 00 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: E2 0B 00 7A 5B 00 0F 5B 0D C1 31 DB 98 E8 90 00 15 [21:45:07]RAPDU: 0F 5B 0D C1 31 DB 98 E8 90 00 [21:45:07]wFMCommunicate OK [21:45:07]SAM_PROTO_SignData done [21:45:07]FM_MakeSignedData done [21:45:07]CreateOFDProtocolMessage [21:45:07]wFMCommunicate request_size=4 [21:45:07]MH_SAM_APDU [21:45:07]CAPDU: 80 11 00 00 [21:45:07]Write to MH i2c: E2 08 00 7B 5B 80 11 00 00 00 00 00 00 50 [21:45:07]Write i2c OK [21:45:07]MH_I2C_Read... [21:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:07]Read from MH i2c: E2 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: E2 17 00 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: E2 17 00 7B 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9F [21:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:45:07]wFMCommunicate OK [21:45:07]CreateOFDProtocolMessage done [21:45:07]OFDSenderStorePacket 15782 [21:45:07]StoreOFDPacket docnum=15782 [21:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FE 75 05 01 CB 3E 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6E 57 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A6 3D 00 00 35 04 06 00 10 E6 83 BC C8 B7 0F 5B 0D C1 31 DB 98 E8 [21:45:07]CheckFolder [21:45:07]dirname=/storage/ofd_packets [21:45:07]CheckFolder done [21:45:07]ProducePacketName [21:45:07]name=ofd_packets/00015782 [21:45:07]NVStorageSaveData ofd_packets/00015782 [21:45:07]File name is /storage/ofd_packets/00015782 [21:45:07]Write 299 bytes [21:45:07]NVStorageSaveData done [21:45:07]OFDSenderStorePacket done [21:45:07]KKMCreateOFDPacket done [21:45:07]NVStorageSaveData kkm_last_timestamp [21:45:07]File name is /storage/kkm_last_timestamp [21:45:07]Write 4 bytes [21:45:07]NVStorageSaveData done [21:45:07]ExternCall_PrintAddStr [21:45:07]wPrintStart [21:45:07]Write to MH i2c: 01 00 00 7C 5B D7 [21:45:07]Write i2c OK [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 07 00 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 07 00 7C 5B 00 00 00 00 00 FF 0F EC [21:45:07]RasterBufferAndPrint [21:45:07]line Счет N : (1)16333 [21:45:07]line ИНН: 02508201610067 [21:45:07]line Контрольно-Кассовый Чек [21:45:07]line ПРОДАЖА [21:45:07]line ТРК (МРК, ГНК) : 12 [21:45:07]line Товар: 50.50.0 [21:45:07]line SUPER 92-К-5 [21:45:07]line 4.390 * 68.40 [21:45:07]line = 300.28 [21:45:07]line НДС 12% НСП 1% [21:45:07]line > о реализуемом товаре [21:45:07]line ОКРУГЛЕНИЕ: -0.28 [21:45:07]line ИТОГО: 300.00 [21:45:07]line НСП 1% : 2.66 [21:45:07]line НДС 12% : 31.89 [21:45:07]line Наличными: 0.00 [21:45:07]line Безнал.: 300.00 [21:45:07]line Место: АЗС № 178 "Партнер Нефть" [21:45:07]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [21:45:07]line СНО: Общий режим [21:45:07]line Чек 128 29.10.2024 21:45 [21:45:07]line Смена: 172 ФФД: 1.0 [21:45:07]line ЗНМ: 0300000014 [21:45:07]line РНМ: 0000000000161798 [21:45:07]line Версия ККМ: v1.0 [21:45:07]line Платежная система: Mbank [21:45:07]line ФМ: 0000000000963325 [21:45:07]line ФД: 15782 [21:45:07]line ФПД: 18582238709943 [21:45:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T214518&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15782&fm=18582238709943&tin=02508201610067®Number=0000000000161798&sum=30000 [21:45:07]OFD Sender: Processing packet 15782 [packets to send 4, broken 3] [21:45:07]ProducePacketName [21:45:07]name=ofd_packets/00015782 [21:45:07]OFD Sender: To server: pG, [21:45:07]CommunicateWithHost lk.salyk.kg:30040 [21:45:07]ConnectInit lk.salyk.kg [21:45:07]written 0, free lines is 4095 [21:45:07]Connected sock=10 [21:45:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 FE 75 05 01 CB 3E 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 6E 57 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A6 3D 00 00 35 04 06 00 10 E6 83 BC C8 B7 0F 5B 0D C1 31 DB 98 E8 [21:45:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 4B 97 47 00 26 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A6 3D 00 00 F4 03 04 00 5A 02 21 67 B6 04 01 00 00 02 79 23 B3 F9 83 73 2B [21:45:07]CommunicateWithHost err = 0 [21:45:07]CheckOFDResponse [21:45:07]1017 (14) - 77093643461234 [21:45:07]1041 (16) - 0000000000963325 [21:45:07]1040 (4) - 15782 [21:45:07]1012 (4) - 29.10.2024 15:42 [21:45:07]1206 (1) - 0 [21:45:07]OFD Sender: Remove packet 15782 [21:45:07]ProducePacketName [21:45:07]name=ofd_packets/00015782 [21:45:07]NVStorageDeleteData [21:45:07]Write to MH i2c: 01 00 00 A6 5B 01 [21:45:07]Write i2c OK [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 07 00 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: 01 07 00 A6 5B 00 00 00 00 00 16 0D 2B [21:45:07]RasterBufferAndPrint [21:45:07]line [21:45:07]line [21:45:07]line [21:45:07]line [21:45:07]line [21:45:07]written 0, free lines is 3357 [21:45:07]MH_Cut [21:45:07]Write to MH i2c: D1 01 00 AD 5B 01 DA [21:45:07]Write i2c OK [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: D1 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: D1 01 00 [21:45:07]MH_I2C_Read... [21:45:07]Read from MH i2c: D1 01 00 AD 5B 00 D9 [21:45:07]Write to MH i2c: 01 00 00 AE 5B 09 [21:45:07]Write i2c OK [21:45:07]MH_I2C_Read... [21:45:08]OFD Sender: No OFD packet to send [21:45:08]*** Cut start [21:45:08]*** Partial cut [21:45:08]*** CUTSNS_PIN = 1 [21:45:08]*** CUTSNS_PIN = 0 [21:45:08]*** Brake cut motor [21:45:09]Read from MH i2c: 01 [21:45:09]MH_I2C_Read... [21:45:09]*** Stop cut motor [21:45:09]*** Cut end [21:45:09]Read from MH i2c: 01 07 00 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: 01 07 00 AE 5B 00 00 00 00 00 FF 0F 1E [21:45:09]process_action close_receipt done [21:45:09]requested_data is exist [21:45:09]produce_requested_data [21:45:09]requested_item fm.sn is exist - process it [21:45:09]wFMCommunicate request_size=4 [21:45:09]MH_SAM_APDU [21:45:09]CAPDU: 80 11 00 00 [21:45:09]Write to MH i2c: E2 08 00 AF 5B 80 11 00 00 00 00 00 00 84 [21:45:09]Write i2c OK [21:45:09]MH_I2C_Read... [21:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:09]Read from MH i2c: E2 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 17 00 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 17 00 AF 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D3 [21:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [21:45:09]wFMCommunicate OK [21:45:09]requested_item fd.num is exist - process it [21:45:09]SAM_PROTO_GetFieldsCounters [21:45:09]wFMCommunicate request_size=4 [21:45:09]MH_SAM_APDU [21:45:09]CAPDU: 80 13 00 00 [21:45:09]Write to MH i2c: E2 08 00 B0 5B 80 13 00 00 00 00 00 00 87 [21:45:09]Write i2c OK [21:45:09]MH_I2C_Read... [21:45:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:09]Read from MH i2c: E2 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 62 00 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 62 00 B0 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A6 3D 00 00 0E 04 04 00 AC 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 BA [21:45:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A6 3D 00 00 0E 04 04 00 AC 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 [21:45:09]wFMCommunicate OK [21:45:09]SAM_PROTO_GetFieldsCounters done [21:45:09]requested_item shift.num is exist - process it [21:45:09]requested_item shift.opened is exist - process it [21:45:09]req_shift_opened [21:45:09]FM_GetShiftState [21:45:09]SAM_PROTO_GetShiftState [21:45:09]wFMCommunicate request_size=4 [21:45:09]MH_SAM_APDU [21:45:09]CAPDU: 80 13 01 00 [21:45:09]Write to MH i2c: E2 08 00 B1 5B 80 13 01 00 00 00 00 00 89 [21:45:09]Write i2c OK [21:45:09]MH_I2C_Read... [21:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:09]Read from MH i2c: E2 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 0E 00 [21:45:09]MH_I2C_Read... [21:45:09]Read from MH i2c: E2 0E 00 B1 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 DE [21:45:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [21:45:09]wFMCommunicate OK [21:45:09]SAM_PROTO_GetShiftState done [21:45:09]FM_GetShiftState done [21:45:09]req_shift_opened done [21:45:09]requested_item shift.open_date is exist - process it [21:45:09]req_shift_open_date [21:45:09]req_shift_open_date done [21:45:09]produce_requested_data done [21:45:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15782,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [21:45:09]process_action_free close_receipt [21:45:09]json_value_free [21:45:09]json_value_free done [21:45:09]process_json_proto returns [21:45:09]Send response to host [21:45:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15782,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [21:45:09]free response buf [21:45:09]execute_script done [21:45:09]execute_script returns [21:45:09]free content buf [21:45:09]Sock 8.Close socket [21:45:09]Sock 8.Thread stoped [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47:53]OFD Sender: No OFD packet to send [21:47:58]OFD Sender: No OFD packet to send [21:48:03]OFD Sender: No OFD packet to send [21:48:08]OFD Sender: No OFD packet to send [21:48:13]OFD Sender: No OFD packet to send [21:48:18]OFD Sender: No OFD packet to send [21:48:23]OFD Sender: No OFD packet to send [21:48:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:53]OFD Sender: No OFD packet to send [21:51:58]OFD Sender: No OFD packet to send [21:52:03]OFD Sender: No OFD packet to send [21:52:08]OFD Sender: No OFD packet to send [21:52:13]OFD Sender: No OFD packet to send [21:52:18]OFD Sender: No OFD packet to send [21:52:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:38]OFD Sender: No OFD packet to send [21:52:43]OFD Sender: No OFD packet to send [21:52:48]OFD Sender: No OFD packet to send [21:52:53]OFD Sender: No OFD packet to send [21:52:58]OFD Sender: No OFD packet to send [21:53:03]OFD Sender: No OFD packet to send [21:53:08]OFD Sender: No OFD packet to send [21:53:13]OFD Sender: No OFD packet to send [21:53:18]OFD Sender: No OFD packet to send [21:53:23]OFD Sender: No OFD packet to send [21:53:28]OFD Sender: No OFD packet to send [21:53:33]OFD Sender: No OFD packet to send [21:53:38]OFD Sender: No OFD packet to send [21:53:43]OFD Sender: No OFD packet to send [21:53:48]OFD Sender: No OFD packet to send [21:53:53]OFD Sender: No OFD packet to send [21:53:58]OFD Sender: No OFD packet to send [21:54:03]OFD Sender: No OFD packet to send [21:54:08]OFD Sender: No OFD packet to send [21:54:13]OFD Sender: No OFD packet to send [21:54:18]OFD Sender: No OFD packet to send [21:54:23]OFD Sender: No OFD packet to send [21:54:28]OFD Sender: No OFD packet to send [21:54:33]OFD Sender: No OFD packet to send [21:54:38]OFD Sender: No OFD packet to send [21:54:43]OFD Sender: No OFD packet to send [21:54:48]OFD Sender: No OFD packet to send [21:54:53]OFD Sender: No OFD packet to send [21:54:58]OFD Sender: No OFD packet to send [21:55:03]OFD Sender: No OFD packet to send [21:55:08]OFD Sender: No OFD packet to send [21:55:13]OFD Sender: No OFD packet to send [21:55:18]OFD Sender: No OFD packet to send [21:55:23]OFD Sender: No OFD packet to send [21:55:28]OFD Sender: No OFD packet to send [21:55:33]OFD Sender: No OFD packet to send [21:55:38]OFD Sender: No OFD packet to send [21:55:43]OFD Sender: No OFD packet to send [21:55:48]OFD Sender: No OFD packet to send [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:05]accept exits with 9 [22:13:05]New connection [22:13:05]New thread 3066588516 created [22:13:05]Thread 3066731876 joined [22:13:05]Waiting for new connection... [22:13:05] Sock 9.Parse request [22:13:05]Sock 9.Check first char [22:13:05]Sock 9.First char is OK [22:13:05]request: POST /json_proto HTTP/1.0 [22:13:05]Method: POST [22:13:05]URL: /json_proto [22:13:05]Method is POST - this is cgi request [22:13:05]url: /json_proto [22:13:05]query_string will be loaded in cgi processing [22:13:05]execute_cgi json_proto POST (null) [22:13:05]execute_cgi path=json_proto method=POST [22:13:05]POST find Content-Length [22:13:05]Host: 172.17.54.195:8080 [22:13:05]Content-Length: 628 [22:13:05]Content-Type: application/json [22:13:05] [22:13:05]POST finish read [22:13:05]Found Content-Length = 628 [22:13:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:05]execute_script... [22:13:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:05]POST & json_proto [22:13:05]process_json_proto [22:13:05]json parsed OK: [22:13:05]protocol is kg_v1.0 [22:13:05]action value=close_receipt [22:13:05]process_action close_receipt [22:13:05]cmd_close_receipt [22:13:05]MH_GetDate [22:13:05]Write to MH i2c: F0 00 00 B2 5B FC [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: F0 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: F0 09 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: F0 09 00 B2 5B 00 FE 5D 21 67 8D 90 A3 66 0E [22:13:05]GetLastDocTimeStamp 1730238318 [22:13:05]current date 1730239998 [22:13:05]FM_GetShiftState [22:13:05]SAM_PROTO_GetShiftState [22:13:05]wFMCommunicate request_size=4 [22:13:05]MH_SAM_APDU [22:13:05]CAPDU: 80 13 01 00 [22:13:05]Write to MH i2c: E2 08 00 B3 5B 80 13 01 00 00 00 00 00 8B [22:13:05]Write i2c OK [22:13:05]MH_I2C_Read... [22:13:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:05]Read from MH i2c: E2 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0E 00 [22:13:05]MH_I2C_Read... [22:13:05]Read from MH i2c: E2 0E 00 B3 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 E0 [22:13:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:13:05]wFMCommunicate OK [22:13:05]SAM_PROTO_GetShiftState done [22:13:05]FM_GetShiftState done [22:13:05]opened in 1730161559 [22:13:05]opened+sec_in_day 1730247959 [22:13:05]quantity*price = 50000 [22:13:05]sum+1 = 50001 [22:13:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 129 29.10.2024 22:13 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15783 ФПД: 129600996708591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T221318&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15783&fm=129600996708591&tin=02508201610067®Number=0000000000161798&sum=50000 [22:13:06]StoreToDocumentArchive [22:13:06]shift 172 fd 15783 [22:13:06]save to /storage/0172/doc_00015783 [22:13:06]save last doc name /storage/0172/doc_00015783 to /storage/kkm_last_doc_name [22:13:06]save OK [22:13:06]Clear old archive folders... [22:13:06]ProcessDocumentItem done err = 0, tmpTLVsize=249 [22:13:06]tlvbuf is 0036F980 [22:13:06]SAM_PROTO_ClearQueue [22:13:06]wFMCommunicate request_size=4 [22:13:06]MH_SAM_APDU [22:13:06]CAPDU: 80 09 00 00 [22:13:06]Write to MH i2c: E2 08 00 C0 5B 80 09 00 00 00 00 00 00 8D [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:06]Read from MH i2c: E2 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 C0 5B 00 90 00 8F [22:13:06]RAPDU: 90 00 [22:13:06]wFMCommunicate OK [22:13:06]SAM_PROTO_ClearQueue done [22:13:06]KKMCreateOFDPacket [22:13:06]OFDProtocolAddRootSTLVToBuf [22:13:06]FM_MakeSignedData [22:13:06]FM_MakeSignedData [22:13:06]SAM_PROTO_SignData [22:13:06]wFMCommunicate request_size=4 [22:13:06]MH_SAM_APDU [22:13:06]CAPDU: 80 0D 01 02 [22:13:06]Write to MH i2c: E2 08 00 C1 5B 80 0D 01 02 00 00 00 00 95 [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:06]Read from MH i2c: E2 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 C1 5B 00 90 00 90 [22:13:06]RAPDU: 90 00 [22:13:06]wFMCommunicate OK [22:13:06]wFMCommunicate request_size=255 [22:13:06]MH_SAM_APDU [22:13:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FE 5D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A7 3D 00 00 35 04 06 00 75 DF 15 [22:13:06]Write to MH i2c: E2 02 01 C2 5B 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FE 5D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A7 3D 00 00 35 04 06 00 75 DF 15 00 00 36 [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:06]Read from MH i2c: E2 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 [22:13:06]MH_I2C_Read... [22:13:06]Read from MH i2c: E2 03 00 C2 5B 00 90 00 91 [22:13:06]RAPDU: 90 00 [22:13:06]wFMCommunicate OK [22:13:06]wFMCommunicate request_size=8 [22:13:06]MH_SAM_APDU [22:13:06]CAPDU: 80 0D 02 02 03 5F 10 EF [22:13:06]Write to MH i2c: E2 0B 00 C3 5B 80 0D 02 02 03 00 5F 10 EF 00 00 FC [22:13:06]Write i2c OK [22:13:06]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:07]Read from MH i2c: E2 03 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 03 00 C3 5B 00 90 00 92 [22:13:07]RAPDU: 90 00 [22:13:07]wFMCommunicate OK [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 0D 03 02 [22:13:07]Write to MH i2c: E2 08 00 C4 5B 80 0D 03 02 00 00 00 00 9A [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0B 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 0B 00 C4 5B 00 BB 19 AF B8 33 69 5D FD 90 00 CC [22:13:07]RAPDU: BB 19 AF B8 33 69 5D FD 90 00 [22:13:07]wFMCommunicate OK [22:13:07]SAM_PROTO_SignData done [22:13:07]FM_MakeSignedData done [22:13:07]CreateOFDProtocolMessage [22:13:07]wFMCommunicate request_size=4 [22:13:07]MH_SAM_APDU [22:13:07]CAPDU: 80 11 00 00 [22:13:07]Write to MH i2c: E2 08 00 C5 5B 80 11 00 00 00 00 00 00 9A [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:07]Read from MH i2c: E2 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: E2 17 00 C5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E9 [22:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:13:07]wFMCommunicate OK [22:13:07]CreateOFDProtocolMessage done [22:13:07]OFDSenderStorePacket 15783 [22:13:07]StoreOFDPacket docnum=15783 [22:13:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C9 9C 05 01 F1 E3 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FE 5D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A7 3D 00 00 35 04 06 00 75 DF 15 5F 10 EF BB 19 AF B8 33 69 5D FD [22:13:07]CheckFolder [22:13:07]dirname=/storage/ofd_packets [22:13:07]CheckFolder done [22:13:07]ProducePacketName [22:13:07]name=ofd_packets/00015783 [22:13:07]NVStorageSaveData ofd_packets/00015783 [22:13:07]File name is /storage/ofd_packets/00015783 [22:13:07]Write 299 bytes [22:13:07]NVStorageSaveData done [22:13:07]OFDSenderStorePacket done [22:13:07]KKMCreateOFDPacket done [22:13:07]NVStorageSaveData kkm_last_timestamp [22:13:07]File name is /storage/kkm_last_timestamp [22:13:07]Write 4 bytes [22:13:07]NVStorageSaveData done [22:13:07]ExternCall_PrintAddStr [22:13:07]wPrintStart [22:13:07]Write to MH i2c: 01 00 00 C6 5B 21 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 C6 5B 00 00 00 00 00 FF 0F 36 [22:13:07]RasterBufferAndPrint [22:13:07]line Счет N : (1)16334 [22:13:07]line ИНН: 02508201610067 [22:13:07]line Контрольно-Кассовый Чек [22:13:07]line ПРОДАЖА [22:13:07]line ТРК (МРК, ГНК) : 12 [22:13:07]line Товар: 50.50.0 [22:13:07]line SUPER 92-К-5 [22:13:07]line 7.310 * 68.40 [22:13:07]line = 500.00 [22:13:07]line НДС 12% НСП 1% [22:13:07]line > о реализуемом товаре [22:13:07]line ИТОГО: 500.00 [22:13:07]line НСП 1% : 4.42 [22:13:07]line НДС 12% : 53.10 [22:13:07]line Наличными: 500.00 [22:13:07]line Безнал.: 0.00 [22:13:07]line Место: АЗС № 178 "Партнер Нефть" [22:13:07]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [22:13:07]line СНО: Общий режим [22:13:07]line Чек 129 29.10.2024 22:13 [22:13:07]line Смена: 172 ФФД: 1.0 [22:13:07]line ЗНМ: 0300000014 [22:13:07]line РНМ: 0000000000161798 [22:13:07]line Версия ККМ: v1.0 [22:13:07]line ФМ: 0000000000963325 [22:13:07]line ФД: 15783 [22:13:07]line ФПД: 129600996708591 [22:13:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T221318&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15783&fm=129600996708591&tin=02508201610067®Number=0000000000161798&sum=50000 [22:13:07]OFD Sender: Processing packet 15783 [packets to send 4, broken 3] [22:13:07]ProducePacketName [22:13:07]name=ofd_packets/00015783 [22:13:07]OFD Sender: To server: pG, [22:13:07]CommunicateWithHost lk.salyk.kg:30040 [22:13:07]ConnectInit lk.salyk.kg [22:13:07]written 0, free lines is 4095 [22:13:07]Connected sock=10 [22:13:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 C9 9C 05 01 F1 E3 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 FE 5D 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A7 3D 00 00 35 04 06 00 75 DF 15 5F 10 EF BB 19 AF B8 33 69 5D FD [22:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 13 AA 47 00 DC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A7 3D 00 00 F4 03 04 00 EA 08 21 67 B6 04 01 00 00 17 12 27 87 32 E6 56 41 [22:13:07]CommunicateWithHost err = 0 [22:13:07]CheckOFDResponse [22:13:07]1017 (14) - 77093643461234 [22:13:07]1041 (16) - 0000000000963325 [22:13:07]1040 (4) - 15783 [22:13:07]1012 (4) - 29.10.2024 16:10 [22:13:07]1206 (1) - 0 [22:13:07]OFD Sender: Remove packet 15783 [22:13:07]ProducePacketName [22:13:07]name=ofd_packets/00015783 [22:13:07]NVStorageDeleteData [22:13:07]Write to MH i2c: 01 00 00 EE 5B 49 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: 01 07 00 EE 5B 00 00 00 00 00 2F 0D 8C [22:13:07]RasterBufferAndPrint [22:13:07]line [22:13:07]line [22:13:07]line [22:13:07]line [22:13:07]line [22:13:07]written 0, free lines is 3381 [22:13:07]MH_Cut [22:13:07]Write to MH i2c: D1 01 00 F5 5B 01 22 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D1 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D1 01 00 [22:13:07]MH_I2C_Read... [22:13:07]Read from MH i2c: D1 01 00 F5 5B 00 21 [22:13:07]Write to MH i2c: 01 00 00 F6 5B 51 [22:13:07]Write i2c OK [22:13:07]MH_I2C_Read... [22:13:08]OFD Sender: No OFD packet to send [22:13:08]*** Cut start [22:13:08]*** Partial cut [22:13:08]*** CUTSNS_PIN = 1 [22:13:08]*** CUTSNS_PIN = 0 [22:13:08]*** Brake cut motor [22:13:09]Read from MH i2c: 01 [22:13:09]MH_I2C_Read... [22:13:09]*** Stop cut motor [22:13:09]*** Cut end [22:13:09]Read from MH i2c: 01 07 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: 01 07 00 F6 5B 00 00 00 00 00 FF 0F 66 [22:13:09]process_action close_receipt done [22:13:09]requested_data is exist [22:13:09]produce_requested_data [22:13:09]requested_item fm.sn is exist - process it [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 11 00 00 [22:13:09]Write to MH i2c: E2 08 00 F7 5B 80 11 00 00 00 00 00 00 CC [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 17 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 17 00 F7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1B [22:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:13:09]wFMCommunicate OK [22:13:09]requested_item fd.num is exist - process it [22:13:09]SAM_PROTO_GetFieldsCounters [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 13 00 00 [22:13:09]Write to MH i2c: E2 08 00 F8 5B 80 13 00 00 00 00 00 00 CF [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 62 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 62 00 F8 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A7 3D 00 00 0E 04 04 00 AC 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 06 [22:13:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A7 3D 00 00 0E 04 04 00 AC 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 [22:13:09]wFMCommunicate OK [22:13:09]SAM_PROTO_GetFieldsCounters done [22:13:09]requested_item shift.num is exist - process it [22:13:09]requested_item shift.opened is exist - process it [22:13:09]req_shift_opened [22:13:09]FM_GetShiftState [22:13:09]SAM_PROTO_GetShiftState [22:13:09]wFMCommunicate request_size=4 [22:13:09]MH_SAM_APDU [22:13:09]CAPDU: 80 13 01 00 [22:13:09]Write to MH i2c: E2 08 00 F9 5B 80 13 01 00 00 00 00 00 D1 [22:13:09]Write i2c OK [22:13:09]MH_I2C_Read... [22:13:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:09]Read from MH i2c: E2 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 0E 00 [22:13:09]MH_I2C_Read... [22:13:09]Read from MH i2c: E2 0E 00 F9 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 26 [22:13:09]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:13:09]wFMCommunicate OK [22:13:09]SAM_PROTO_GetShiftState done [22:13:09]FM_GetShiftState done [22:13:09]req_shift_opened done [22:13:09]requested_item shift.open_date is exist - process it [22:13:09]req_shift_open_date [22:13:09]req_shift_open_date done [22:13:09]produce_requested_data done [22:13:09]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15783,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [22:13:09]process_action_free close_receipt [22:13:09]json_value_free [22:13:09]json_value_free done [22:13:09]process_json_proto returns [22:13:09]Send response to host [22:13:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15783,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [22:13:09]free response buf [22:13:09]execute_script done [22:13:09]execute_script returns [22:13:09]free content buf [22:13:09]Sock 9.Close socket [22:13:09]Sock 9.Thread stoped [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:01]accept exits with 8 [22:29:01]New connection [22:29:01]New thread 3066731876 created [22:29:01]Thread 3066588516 joined [22:29:01]Waiting for new connection... [22:29:01] Sock 8.Parse request [22:29:01]Sock 8.Check first char [22:29:01]Sock 8.First char is OK [22:29:01]request: POST /json_proto HTTP/1.0 [22:29:01]Method: POST [22:29:01]URL: /json_proto [22:29:01]Method is POST - this is cgi request [22:29:01]url: /json_proto [22:29:01]query_string will be loaded in cgi processing [22:29:01]execute_cgi json_proto POST (null) [22:29:01]execute_cgi path=json_proto method=POST [22:29:01]POST find Content-Length [22:29:01]Host: 172.17.54.195:8080 [22:29:01]Content-Length: 784 [22:29:01]Content-Type: application/json [22:29:01] [22:29:01]POST finish read [22:29:01]Found Content-Length = 784 [22:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "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: Mbank", "total" : 740.00, "payments": [ { "type": 1, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:01]execute_script... [22:29: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)16335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.070, "sum" : 740.58, "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: Mbank", "total" : 740.00, "payments": [ { "type": 1, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:01]POST & json_proto [22:29:01]process_json_proto [22:29:01]json parsed OK: [22:29:01]protocol is kg_v1.0 [22:29:01]action value=close_receipt [22:29:01]process_action close_receipt [22:29:01]cmd_close_receipt [22:29:01]MH_GetDate [22:29:01]Write to MH i2c: F0 00 00 FA 5B 44 [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: F0 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: F0 09 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: F0 09 00 FA 5B 00 BA 61 21 67 8D 90 A3 66 16 [22:29:01]GetLastDocTimeStamp 1730239998 [22:29:01]current date 1730240954 [22:29:01]FM_GetShiftState [22:29:01]SAM_PROTO_GetShiftState [22:29:01]wFMCommunicate request_size=4 [22:29:01]MH_SAM_APDU [22:29:01]CAPDU: 80 13 01 00 [22:29:01]Write to MH i2c: E2 08 00 FB 5B 80 13 01 00 00 00 00 00 D3 [22:29:01]Write i2c OK [22:29:01]MH_I2C_Read... [22:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:01]Read from MH i2c: E2 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 0E 00 [22:29:01]MH_I2C_Read... [22:29:01]Read from MH i2c: E2 0E 00 FB 5B 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 28 [22:29:01]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:29:01]wFMCommunicate OK [22:29:01]SAM_PROTO_GetShiftState done [22:29:01]FM_GetShiftState done [22:29:01]opened in 1730161559 [22:29:01]opened+sec_in_day 1730247959 [22:29:01]quantity*price = 74058 [22:29:01]sum+1 = 74059 [22:29:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 740.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 0.00 Безнал.: 740.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 130 29.10.2024 22:29 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15784 ФПД: 218796897501851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T222914&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15784&fm=218796897501851&tin=02508201610067®Number=0000000000161798&sum=74000 [22:29:02]StoreToDocumentArchive [22:29:02]shift 172 fd 15784 [22:29:02]save to /storage/0172/doc_00015784 [22:29:02]save last doc name /storage/0172/doc_00015784 to /storage/kkm_last_doc_name [22:29:02]save OK [22:29:02]Clear old archive folders... [22:29:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:02]tlvbuf is 00377B40 [22:29:02]SAM_PROTO_ClearQueue [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 09 00 00 [22:29:02]Write to MH i2c: E2 08 00 08 5C 80 09 00 00 00 00 00 00 D6 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 08 5C 00 90 00 D8 [22:29:02]RAPDU: 90 00 [22:29:02]wFMCommunicate OK [22:29:02]SAM_PROTO_ClearQueue done [22:29:02]KKMCreateOFDPacket [22:29:02]OFDProtocolAddRootSTLVToBuf [22:29:02]FM_MakeSignedData [22:29:02]FM_MakeSignedData [22:29:02]SAM_PROTO_SignData [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 0D 01 02 [22:29:02]Write to MH i2c: E2 08 00 09 5C 80 0D 01 02 00 00 00 00 DE [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 09 5C 00 90 00 D9 [22:29:02]RAPDU: 90 00 [22:29:02]wFMCommunicate OK [22:29:02]wFMCommunicate request_size=255 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BA 61 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A8 3D 00 00 35 04 06 00 C6 [22:29:02]Write to MH i2c: E2 02 01 0A 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BA 61 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A8 3D 00 00 35 04 06 00 C6 00 00 44 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 0A 5C 00 90 00 DA [22:29:02]RAPDU: 90 00 [22:29:02]wFMCommunicate OK [22:29:02]wFMCommunicate request_size=10 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 0D 02 02 05 FE 9F 5A 82 9B [22:29:02]Write to MH i2c: E2 0D 00 0B 5C 80 0D 02 02 05 00 FE 9F 5A 82 9B 00 00 FF [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 03 00 0B 5C 00 90 00 DB [22:29:02]RAPDU: 90 00 [22:29:02]wFMCommunicate OK [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 0D 03 02 [22:29:02]Write to MH i2c: E2 08 00 0C 5C 80 0D 03 02 00 00 00 00 E3 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 0B 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 0B 00 0C 5C 00 34 0A 7D 76 AA D6 75 17 90 00 21 [22:29:02]RAPDU: 34 0A 7D 76 AA D6 75 17 90 00 [22:29:02]wFMCommunicate OK [22:29:02]SAM_PROTO_SignData done [22:29:02]FM_MakeSignedData done [22:29:02]CreateOFDProtocolMessage [22:29:02]wFMCommunicate request_size=4 [22:29:02]MH_SAM_APDU [22:29:02]CAPDU: 80 11 00 00 [22:29:02]Write to MH i2c: E2 08 00 0D 5C 80 11 00 00 00 00 00 00 E3 [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:02]Read from MH i2c: E2 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: E2 17 00 0D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 32 [22:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:29:02]wFMCommunicate OK [22:29:02]CreateOFDProtocolMessage done [22:29:02]OFDSenderStorePacket 15784 [22:29:02]StoreOFDPacket docnum=15784 [22:29:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 C3 EC 07 01 4D B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BA 61 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A8 3D 00 00 35 04 06 00 C6 FE 9F 5A 82 9B 34 0A 7D 76 AA D6 75 17 [22:29:02]CheckFolder [22:29:02]dirname=/storage/ofd_packets [22:29:02]CheckFolder done [22:29:02]ProducePacketName [22:29:02]name=ofd_packets/00015784 [22:29:02]NVStorageSaveData ofd_packets/00015784 [22:29:02]File name is /storage/ofd_packets/00015784 [22:29:02]Write 301 bytes [22:29:02]NVStorageSaveData done [22:29:02]OFDSenderStorePacket done [22:29:02]KKMCreateOFDPacket done [22:29:02]NVStorageSaveData kkm_last_timestamp [22:29:02]File name is /storage/kkm_last_timestamp [22:29:02]Write 4 bytes [22:29:02]NVStorageSaveData done [22:29:02]ExternCall_PrintAddStr [22:29:02]wPrintStart [22:29:02]Write to MH i2c: 01 00 00 0E 5C 6A [22:29:02]OFD Sender: Processing packet 15784 [packets to send 4, broken 3] [22:29:02]ProducePacketName [22:29:02]name=ofd_packets/00015784 [22:29:02]OFD Sender: To server: pG, [22:29:02]CommunicateWithHost lk.salyk.kg:30040 [22:29:02]ConnectInit lk.salyk.kg [22:29:02]Write i2c OK [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 [22:29:02]MH_I2C_Read... [22:29:02]Read from MH i2c: 01 07 00 0E 5C 00 00 00 00 00 FF 0F 7F [22:29:02]RasterBufferAndPrint [22:29:02]line Счет N : (1)16335 [22:29:02]line ИНН: 02508201610067 [22:29:02]line Контрольно-Кассовый Чек [22:29:02]line ПРОДАЖА [22:29:02]line ТРК (МРК, ГНК) : 21 [22:29:02]line Товар: 2710124130 [22:29:02]line Аи-92-К-5 [22:29:02]line 11.070 * 66.90 [22:29:02]line = 740.58 [22:29:02]line НДС 12% НСП 1% [22:29:02]line > о реализуемом товаре [22:29:02]line ОКРУГЛЕНИЕ: -0.58 [22:29:02]line ИТОГО: 740.00 [22:29:02]line НСП 1% : 6.55 [22:29:02]line НДС 12% : 78.65 [22:29:02]line Наличными: 0.00 [22:29:02]line Безнал.: 740.00 [22:29:02]line Место: АЗС № 178 "Партнер Нефть" [22:29:02]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [22:29:02]line СНО: Общий режим [22:29:02]line Чек 130 29.10.2024 22:29 [22:29:02]line Смена: 172 ФФД: 1.0 [22:29:02]line ЗНМ: 0300000014 [22:29:02]line РНМ: 0000000000161798 [22:29:02]line Версия ККМ: v1.0 [22:29:02]line Платежная система: Mbank [22:29:02]line ФМ: 0000000000963325 [22:29:02]line ФД: 15784 [22:29:02]line ФПД: 218796897501851 [22:29:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T222914&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15784&fm=218796897501851&tin=02508201610067®Number=0000000000161798&sum=74000 [22:29:03]Connected sock=10 [22:29:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 C3 EC 07 01 4D B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4A 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 BA 61 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A8 3D 00 00 35 04 06 00 C6 FE 9F 5A 82 9B 34 0A 7D 76 AA D6 75 17 [22:29:03]written 0, free lines is 4095 [22:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 75 F9 47 00 4A 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A8 3D 00 00 F4 03 04 00 A5 0C 21 67 B6 04 01 00 00 24 4C 38 79 49 A3 6E 11 [22:29:03]CommunicateWithHost err = 0 [22:29:03]CheckOFDResponse [22:29:03]1017 (14) - 77093643461234 [22:29:03]1041 (16) - 0000000000963325 [22:29:03]1040 (4) - 15784 [22:29:03]1012 (4) - 29.10.2024 16:26 [22:29:03]1206 (1) - 0 [22:29:03]OFD Sender: Remove packet 15784 [22:29:03]ProducePacketName [22:29:03]name=ofd_packets/00015784 [22:29:03]NVStorageDeleteData [22:29:03]Write to MH i2c: 01 00 00 38 5C 94 [22:29:03]Write i2c OK [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: 01 [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: 01 07 00 [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: 01 07 00 38 5C 00 00 00 00 00 0A 0D B2 [22:29:03]RasterBufferAndPrint [22:29:03]line [22:29:03]line [22:29:03]line [22:29:03]line [22:29:03]line [22:29:03]written 0, free lines is 3344 [22:29:03]MH_Cut [22:29:03]Write to MH i2c: D1 01 00 3F 5C 01 6D [22:29:03]Write i2c OK [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: D1 [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: D1 01 00 [22:29:03]MH_I2C_Read... [22:29:03]Read from MH i2c: D1 01 00 3F 5C 00 6C [22:29:03]Write to MH i2c: 01 00 00 40 5C 9C [22:29:03]Write i2c OK [22:29:03]MH_I2C_Read... [22:29:03]OFD Sender: No OFD packet to send [22:29:04]*** Cut start [22:29:04]*** Partial cut [22:29:04]*** CUTSNS_PIN = 1 [22:29:04]*** CUTSNS_PIN = 0 [22:29:04]*** Brake cut motor [22:29:04]Read from MH i2c: 01 [22:29:04]MH_I2C_Read... [22:29:04]*** Stop cut motor [22:29:04]*** Cut end [22:29:04]Read from MH i2c: 01 07 00 [22:29:04]MH_I2C_Read... [22:29:04]Read from MH i2c: 01 07 00 40 5C 00 00 00 00 00 FF 0F B1 [22:29:04]process_action close_receipt done [22:29:04]requested_data is exist [22:29:04]produce_requested_data [22:29:04]requested_item fm.sn is exist - process it [22:29:04]wFMCommunicate request_size=4 [22:29:04]MH_SAM_APDU [22:29:04]CAPDU: 80 11 00 00 [22:29:04]Write to MH i2c: E2 08 00 41 5C 80 11 00 00 00 00 00 00 17 [22:29:04]Write i2c OK [22:29:04]MH_I2C_Read... [22:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:05]Read from MH i2c: E2 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 17 00 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 17 00 41 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 66 [22:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:29:05]wFMCommunicate OK [22:29:05]requested_item fd.num is exist - process it [22:29:05]SAM_PROTO_GetFieldsCounters [22:29:05]wFMCommunicate request_size=4 [22:29:05]MH_SAM_APDU [22:29:05]CAPDU: 80 13 00 00 [22:29:05]Write to MH i2c: E2 08 00 42 5C 80 13 00 00 00 00 00 00 1A [22:29:05]Write i2c OK [22:29:05]MH_I2C_Read... [22:29:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:05]Read from MH i2c: E2 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 62 00 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 62 00 42 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A8 3D 00 00 0E 04 04 00 AC 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 55 [22:29:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A8 3D 00 00 0E 04 04 00 AC 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 [22:29:05]wFMCommunicate OK [22:29:05]SAM_PROTO_GetFieldsCounters done [22:29:05]requested_item shift.num is exist - process it [22:29:05]requested_item shift.opened is exist - process it [22:29:05]req_shift_opened [22:29:05]FM_GetShiftState [22:29:05]SAM_PROTO_GetShiftState [22:29:05]wFMCommunicate request_size=4 [22:29:05]MH_SAM_APDU [22:29:05]CAPDU: 80 13 01 00 [22:29:05]Write to MH i2c: E2 08 00 43 5C 80 13 01 00 00 00 00 00 1C [22:29:05]Write i2c OK [22:29:05]MH_I2C_Read... [22:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:05]Read from MH i2c: E2 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 0E 00 [22:29:05]MH_I2C_Read... [22:29:05]Read from MH i2c: E2 0E 00 43 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 71 [22:29:05]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:29:05]wFMCommunicate OK [22:29:05]SAM_PROTO_GetShiftState done [22:29:05]FM_GetShiftState done [22:29:05]req_shift_opened done [22:29:05]requested_item shift.open_date is exist - process it [22:29:05]req_shift_open_date [22:29:05]req_shift_open_date done [22:29:05]produce_requested_data done [22:29:05]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15784,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [22:29:05]process_action_free close_receipt [22:29:05]json_value_free [22:29:05]json_value_free done [22:29:05]process_json_proto returns [22:29:05]Send response to host [22:29:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15784,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [22:29:05]free response buf [22:29:05]execute_script done [22:29:05]execute_script returns [22:29:05]free content buf [22:29:05]Sock 8.Close socket [22:29:05]Sock 8.Thread stoped [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:51]accept exits with 9 [22:56:51]New connection [22:56:51]New thread 3066588516 created [22:56:51]Thread 3066731876 joined [22:56:51]Waiting for new connection... [22:56:51] Sock 9.Parse request [22:56:51]Sock 9.Check first char [22:56:51]Sock 9.First char is OK [22:56:51]request: POST /json_proto HTTP/1.0 [22:56:51]Method: POST [22:56:51]URL: /json_proto [22:56:51]Method is POST - this is cgi request [22:56:51]url: /json_proto [22:56:51]query_string will be loaded in cgi processing [22:56:51]execute_cgi json_proto POST (null) [22:56:51]execute_cgi path=json_proto method=POST [22:56:51]POST find Content-Length [22:56:51]Host: 172.17.54.195:8080 [22:56:51]Content-Length: 790 [22:56:51]Content-Type: application/json [22:56:51] [22:56:51]POST finish read [22:56:51]Found Content-Length = 790 [22:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 27.000, "sum" : 1050.30, "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: Mbank", "total" : 1050.00, "payments": [ { "type": 1, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:51]execute_script... [22:56: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)16336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 27.000, "sum" : 1050.30, "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: Mbank", "total" : 1050.00, "payments": [ { "type": 1, "sum" : 1050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:51]POST & json_proto [22:56:51]process_json_proto [22:56:51]json parsed OK: [22:56:51]protocol is kg_v1.0 [22:56:51]action value=close_receipt [22:56:51]process_action close_receipt [22:56:51]cmd_close_receipt [22:56:51]MH_GetDate [22:56:51]Write to MH i2c: F0 00 00 44 5C 8F [22:56:51]Write i2c OK [22:56:51]MH_I2C_Read... [22:56:51]Read from MH i2c: F0 [22:56:51]MH_I2C_Read... [22:56:51]Read from MH i2c: F0 09 00 [22:56:51]MH_I2C_Read... [22:56:51]Read from MH i2c: F0 09 00 44 5C 00 41 68 21 67 8D 90 A3 66 EF [22:56:51]GetLastDocTimeStamp 1730240954 [22:56:51]current date 1730242625 [22:56:51]FM_GetShiftState [22:56:51]SAM_PROTO_GetShiftState [22:56:51]wFMCommunicate request_size=4 [22:56:51]MH_SAM_APDU [22:56:51]CAPDU: 80 13 01 00 [22:56:51]Write to MH i2c: E2 08 00 45 5C 80 13 01 00 00 00 00 00 1E [22:56:51]Write i2c OK [22:56:51]MH_I2C_Read... [22:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:51]Read from MH i2c: E2 [22:56:51]MH_I2C_Read... [22:56:51]Read from MH i2c: E2 0E 00 [22:56:51]MH_I2C_Read... [22:56:51]Read from MH i2c: E2 0E 00 45 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 73 [22:56:51]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:56:51]wFMCommunicate OK [22:56:51]SAM_PROTO_GetShiftState done [22:56:51]FM_GetShiftState done [22:56:51]opened in 1730161559 [22:56:51]opened+sec_in_day 1730247959 [22:56:51]quantity*price = 105030 [22:56:51]sum+1 = 105031 [22:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1050.00 НСП 1% : 9.29 НДС 12% : 111.54 Наличными: 0.00 Безнал.: 1050.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 131 29.10.2024 22:57 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15785 ФПД: 136492858467876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T225705&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15785&fm=136492858467876&tin=02508201610067®Number=0000000000161798&sum=105000 [22:56:52]StoreToDocumentArchive [22:56:52]shift 172 fd 15785 [22:56:52]save to /storage/0172/doc_00015785 [22:56:52]save last doc name /storage/0172/doc_00015785 to /storage/kkm_last_doc_name [22:56:52]save OK [22:56:52]Clear old archive folders... [22:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:56:52]tlvbuf is B6F22610 [22:56:52]SAM_PROTO_ClearQueue [22:56:52]wFMCommunicate request_size=4 [22:56:52]MH_SAM_APDU [22:56:52]CAPDU: 80 09 00 00 [22:56:52]Write to MH i2c: E2 08 00 52 5C 80 09 00 00 00 00 00 00 20 [22:56:52]Write i2c OK [22:56:52]MH_I2C_Read... [22:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:52]Read from MH i2c: E2 [22:56:52]MH_I2C_Read... [22:56:52]Read from MH i2c: E2 03 00 [22:56:52]MH_I2C_Read... [22:56:52]Read from MH i2c: E2 03 00 52 5C 00 90 00 22 [22:56:52]RAPDU: 90 00 [22:56:52]wFMCommunicate OK [22:56:52]SAM_PROTO_ClearQueue done [22:56:52]KKMCreateOFDPacket [22:56:52]OFDProtocolAddRootSTLVToBuf [22:56:52]FM_MakeSignedData [22:56:52]FM_MakeSignedData [22:56:52]SAM_PROTO_SignData [22:56:52]wFMCommunicate request_size=4 [22:56:52]MH_SAM_APDU [22:56:52]CAPDU: 80 0D 01 02 [22:56:52]Write to MH i2c: E2 08 00 53 5C 80 0D 01 02 00 00 00 00 28 [22:56:52]Write i2c OK [22:56:52]MH_I2C_Read... [22:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:52]Read from MH i2c: E2 [22:56:52]MH_I2C_Read... [22:56:52]Read from MH i2c: E2 03 00 [22:56:52]MH_I2C_Read... [22:56:52]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [22:56:52]RAPDU: 90 00 [22:56:52]wFMCommunicate OK [22:56:52]wFMCommunicate request_size=255 [22:56:52]MH_SAM_APDU [22:56:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 46 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 9A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 41 68 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A9 3D 00 00 35 04 06 00 7C 23 [22:56:52]Write to MH i2c: E2 02 01 54 5C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 46 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 9A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 41 68 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A9 3D 00 00 35 04 06 00 7C 23 00 00 AB [22:56:52]Write i2c OK [22:56:52]MH_I2C_Read... [22:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:53]Read from MH i2c: E2 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 03 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 03 00 54 5C 00 90 00 24 [22:56:53]RAPDU: 90 00 [22:56:53]wFMCommunicate OK [22:56:53]wFMCommunicate request_size=9 [22:56:53]MH_SAM_APDU [22:56:53]CAPDU: 80 0D 02 02 04 B8 57 E6 24 [22:56:53]Write to MH i2c: E2 0C 00 55 5C 80 0D 02 02 04 00 B8 57 E6 24 00 00 4C [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:53]Read from MH i2c: E2 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 03 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 03 00 55 5C 00 90 00 25 [22:56:53]RAPDU: 90 00 [22:56:53]wFMCommunicate OK [22:56:53]wFMCommunicate request_size=4 [22:56:53]MH_SAM_APDU [22:56:53]CAPDU: 80 0D 03 02 [22:56:53]Write to MH i2c: E2 08 00 56 5C 80 0D 03 02 00 00 00 00 2D [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:53]Read from MH i2c: E2 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 0B 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 0B 00 56 5C 00 FF 13 85 78 C6 56 AD CD 90 00 D3 [22:56:53]RAPDU: FF 13 85 78 C6 56 AD CD 90 00 [22:56:53]wFMCommunicate OK [22:56:53]SAM_PROTO_SignData done [22:56:53]FM_MakeSignedData done [22:56:53]CreateOFDProtocolMessage [22:56:53]wFMCommunicate request_size=4 [22:56:53]MH_SAM_APDU [22:56:53]CAPDU: 80 11 00 00 [22:56:53]Write to MH i2c: E2 08 00 57 5C 80 11 00 00 00 00 00 00 2D [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:53]Read from MH i2c: E2 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 17 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: E2 17 00 57 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 7C [22:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:56:53]wFMCommunicate OK [22:56:53]CreateOFDProtocolMessage done [22:56:53]OFDSenderStorePacket 15785 [22:56:53]StoreOFDPacket docnum=15785 [22:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 AD 1C 06 01 CA FE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 46 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 9A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 41 68 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A9 3D 00 00 35 04 06 00 7C 23 B8 57 E6 24 FF 13 85 78 C6 56 AD CD [22:56:53]CheckFolder [22:56:53]dirname=/storage/ofd_packets [22:56:53]CheckFolder done [22:56:53]ProducePacketName [22:56:53]name=ofd_packets/00015785 [22:56:53]NVStorageSaveData ofd_packets/00015785 [22:56:53]File name is /storage/ofd_packets/00015785 [22:56:53]Write 300 bytes [22:56:53]NVStorageSaveData done [22:56:53]OFDSenderStorePacket done [22:56:53]KKMCreateOFDPacket done [22:56:53]NVStorageSaveData kkm_last_timestamp [22:56:53]File name is /storage/kkm_last_timestamp [22:56:53]Write 4 bytes [22:56:53]NVStorageSaveData done [22:56:53]ExternCall_PrintAddStr [22:56:53]wPrintStart [22:56:53]Write to MH i2c: 01 00 00 58 5C B4 [22:56:53]Write i2c OK [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: 01 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: 01 07 00 [22:56:53]MH_I2C_Read... [22:56:53]Read from MH i2c: 01 07 00 58 5C 00 00 00 00 00 FF 0F C9 [22:56:53]RasterBufferAndPrint [22:56:53]line Счет N : (1)16336 [22:56:53]line ИНН: 02508201610067 [22:56:53]line Контрольно-Кассовый Чек [22:56:53]line ПРОДАЖА [22:56:53]line ТРК (МРК, ГНК) : 41 [22:56:53]line Товар: 2711190000 [22:56:53]line ГАЗ-К-5 [22:56:53]line 27.000 * 38.90 [22:56:53]line = 1050.30 [22:56:53]line НДС 12% НСП 1% [22:56:53]line > о реализуемом товаре [22:56:53]line ОКРУГЛЕНИЕ: -0.30 [22:56:53]line ИТОГО: 1050.00 [22:56:53]line НСП 1% : 9.29 [22:56:53]line НДС 12% : 111.54 [22:56:53]line Наличными: 0.00 [22:56:53]line Безнал.: 1050.00 [22:56:53]line Место: АЗС № 178 "Партнер Нефть" [22:56:53]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [22:56:53]line СНО: Общий режим [22:56:53]line Чек 131 29.10.2024 22:57 [22:56:53]line Смена: 172 ФФД: 1.0 [22:56:53]line ЗНМ: 0300000014 [22:56:53]line РНМ: 0000000000161798 [22:56:53]line Версия ККМ: v1.0 [22:56:53]line Платежная система: Mbank [22:56:53]line ФМ: 0000000000963325 [22:56:53]line ФД: 15785 [22:56:53]line ФПД: 136492858467876 [22:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T225705&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15785&fm=136492858467876&tin=02508201610067®Number=0000000000161798&sum=105000 [22:56:53]OFD Sender: Processing packet 15785 [packets to send 4, broken 3] [22:56:53]ProducePacketName [22:56:53]name=ofd_packets/00015785 [22:56:53]OFD Sender: To server: pG, [22:56:53]CommunicateWithHost lk.salyk.kg:30040 [22:56:53]ConnectInit lk.salyk.kg [22:56:53]written 0, free lines is 4095 [22:56:53]Connected sock=11 [22:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 AD 1C 06 01 CA FE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 46 9A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 9A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 2B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 9A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 41 68 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A9 3D 00 00 35 04 06 00 7C 23 B8 57 E6 24 FF 13 85 78 C6 56 AD CD [22:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 F3 CE 47 00 FC B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 A9 3D 00 00 F4 03 04 00 2C 13 21 67 B6 04 01 00 00 AF 0D 5A CD 07 B6 91 BA [22:56:54]CommunicateWithHost err = 0 [22:56:54]CheckOFDResponse [22:56:54]1017 (14) - 77093643461234 [22:56:54]1041 (16) - 0000000000963325 [22:56:54]1040 (4) - 15785 [22:56:54]1012 (4) - 29.10.2024 16:54 [22:56:54]1206 (1) - 0 [22:56:54]OFD Sender: Remove packet 15785 [22:56:54]ProducePacketName [22:56:54]name=ofd_packets/00015785 [22:56:54]NVStorageDeleteData [22:56:54]Write to MH i2c: 01 00 00 82 5C DE [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 07 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: 01 07 00 82 5C 00 00 00 00 00 0E 0D 00 [22:56:54]RasterBufferAndPrint [22:56:54]line [22:56:54]line [22:56:54]line [22:56:54]line [22:56:54]line [22:56:54]written 0, free lines is 3349 [22:56:54]MH_Cut [22:56:54]Write to MH i2c: D1 01 00 89 5C 01 B7 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: D1 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: D1 01 00 [22:56:54]MH_I2C_Read... [22:56:54]Read from MH i2c: D1 01 00 89 5C 00 B6 [22:56:54]Write to MH i2c: 01 00 00 8A 5C E6 [22:56:54]Write i2c OK [22:56:54]MH_I2C_Read... [22:56:54]OFD Sender: No OFD packet to send [22:56:54]*** Cut start [22:56:54]*** Partial cut [22:56:54]*** CUTSNS_PIN = 1 [22:56:54]*** CUTSNS_PIN = 0 [22:56:55]*** Brake cut motor [22:56:55]Read from MH i2c: 01 [22:56:55]MH_I2C_Read... [22:56:55]*** Stop cut motor [22:56:55]*** Cut end [22:56:55]Read from MH i2c: 01 07 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: 01 07 00 8A 5C 00 00 00 00 00 FF 0F FB [22:56:55]process_action close_receipt done [22:56:55]requested_data is exist [22:56:55]produce_requested_data [22:56:55]requested_item fm.sn is exist - process it [22:56:55]wFMCommunicate request_size=4 [22:56:55]MH_SAM_APDU [22:56:55]CAPDU: 80 11 00 00 [22:56:55]Write to MH i2c: E2 08 00 8B 5C 80 11 00 00 00 00 00 00 61 [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:55]Read from MH i2c: E2 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 17 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 17 00 8B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B0 [22:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [22:56:55]wFMCommunicate OK [22:56:55]requested_item fd.num is exist - process it [22:56:55]SAM_PROTO_GetFieldsCounters [22:56:55]wFMCommunicate request_size=4 [22:56:55]MH_SAM_APDU [22:56:55]CAPDU: 80 13 00 00 [22:56:55]Write to MH i2c: E2 08 00 8C 5C 80 13 00 00 00 00 00 00 64 [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:55]Read from MH i2c: E2 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 62 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 62 00 8C 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A9 3D 00 00 0E 04 04 00 AC 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 A3 [22:56:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 A9 3D 00 00 0E 04 04 00 AC 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 [22:56:55]wFMCommunicate OK [22:56:55]SAM_PROTO_GetFieldsCounters done [22:56:55]requested_item shift.num is exist - process it [22:56:55]requested_item shift.opened is exist - process it [22:56:55]req_shift_opened [22:56:55]FM_GetShiftState [22:56:55]SAM_PROTO_GetShiftState [22:56:55]wFMCommunicate request_size=4 [22:56:55]MH_SAM_APDU [22:56:55]CAPDU: 80 13 01 00 [22:56:55]Write to MH i2c: E2 08 00 8D 5C 80 13 01 00 00 00 00 00 66 [22:56:55]Write i2c OK [22:56:55]MH_I2C_Read... [22:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:55]Read from MH i2c: E2 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 0E 00 [22:56:55]MH_I2C_Read... [22:56:55]Read from MH i2c: E2 0E 00 8D 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BB [22:56:55]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [22:56:55]wFMCommunicate OK [22:56:55]SAM_PROTO_GetShiftState done [22:56:55]FM_GetShiftState done [22:56:55]req_shift_opened done [22:56:55]requested_item shift.open_date is exist - process it [22:56:55]req_shift_open_date [22:56:55]req_shift_open_date done [22:56:55]produce_requested_data done [22:56:55]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15785,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [22:56:55]process_action_free close_receipt [22:56:55]json_value_free [22:56:55]json_value_free done [22:56:55]process_json_proto returns [22:56:55]Send response to host [22:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15785,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [22:56:55]free response buf [22:56:55]execute_script done [22:56:55]execute_script returns [22:56:55]free content buf [22:56:55]Sock 9.Close socket [22:56:55]Sock 9.Thread stoped [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:06]accept exits with 8 [23:00:06]New connection [23:00:06]New thread 3066731876 created [23:00:06]Thread 3066588516 joined [23:00:06]Waiting for new connection... [23:00:06] Sock 8.Parse request [23:00:06]Sock 8.Check first char [23:00:06]Sock 8.First char is OK [23:00:06]request: POST /json_proto HTTP/1.0 [23:00:06]Method: POST [23:00:06]URL: /json_proto [23:00:06]Method is POST - this is cgi request [23:00:06]url: /json_proto [23:00:06]query_string will be loaded in cgi processing [23:00:06]execute_cgi json_proto POST (null) [23:00:06]execute_cgi path=json_proto method=POST [23:00:06]POST find Content-Length [23:00:06]Host: 172.17.54.195:8080 [23:00:06]Content-Length: 681 [23:00:06]Content-Type: application/json [23:00:06] [23:00:06]POST finish read [23:00:06]Found Content-Length = 681 [23:00:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:00:06]execute_script... [23:00: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)16337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "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:00:06]POST & json_proto [23:00:06]process_json_proto [23:00:06]json parsed OK: [23:00:06]protocol is kg_v1.0 [23:00:06]action value=close_receipt [23:00:06]process_action close_receipt [23:00:06]cmd_close_receipt [23:00:06]MH_GetDate [23:00:06]Write to MH i2c: F0 00 00 8E 5C D9 [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: F0 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: F0 09 00 [23:00:06]MH_I2C_Read... [23:00:06]Read from MH i2c: F0 09 00 8E 5C 00 04 69 21 67 8D 90 A3 66 FD [23:00:06]GetLastDocTimeStamp 1730242625 [23:00:06]current date 1730242820 [23:00:06]FM_GetShiftState [23:00:06]SAM_PROTO_GetShiftState [23:00:06]wFMCommunicate request_size=4 [23:00:06]MH_SAM_APDU [23:00:06]CAPDU: 80 13 01 00 [23:00:06]Write to MH i2c: E2 08 00 8F 5C 80 13 01 00 00 00 00 00 68 [23:00:06]Write i2c OK [23:00:06]MH_I2C_Read... [23:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:07]Read from MH i2c: E2 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 8F 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 BD [23:00:07]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:00:07]wFMCommunicate OK [23:00:07]SAM_PROTO_GetShiftState done [23:00:07]FM_GetShiftState done [23:00:07]opened in 1730161559 [23:00:07]opened+sec_in_day 1730247959 [23:00:07]quantity*price = 100015 [23:00:07]sum+1 = 100017 [23:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 132 29.10.2024 23:00 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15786 ФПД: 83093219342526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T230020&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15786&fm=83093219342526&tin=02508201610067®Number=0000000000161798&sum=100000 [23:00:08]StoreToDocumentArchive [23:00:08]shift 172 fd 15786 [23:00:08]save to /storage/0172/doc_00015786 [23:00:08]save last doc name /storage/0172/doc_00015786 to /storage/kkm_last_doc_name [23:00:08]save OK [23:00:08]Clear old archive folders... [23:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:08]tlvbuf is 0036F640 [23:00:08]SAM_PROTO_ClearQueue [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 09 00 00 [23:00:08]Write to MH i2c: E2 08 00 9C 5C 80 09 00 00 00 00 00 00 6A [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 9C 5C 00 90 00 6C [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]SAM_PROTO_ClearQueue done [23:00:08]KKMCreateOFDPacket [23:00:08]OFDProtocolAddRootSTLVToBuf [23:00:08]FM_MakeSignedData [23:00:08]FM_MakeSignedData [23:00:08]SAM_PROTO_SignData [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 01 02 [23:00:08]Write to MH i2c: E2 08 00 9D 5C 80 0D 01 02 00 00 00 00 72 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 9D 5C 00 90 00 6D [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=255 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 04 69 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AA 3D 00 00 35 04 06 00 4B [23:00:08]Write to MH i2c: E2 02 01 9E 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 04 69 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AA 3D 00 00 35 04 06 00 4B 00 00 55 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 9E 5C 00 90 00 6E [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=10 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 02 02 05 92 A5 D2 78 BE [23:00:08]Write to MH i2c: E2 0D 00 9F 5C 80 0D 02 02 05 00 92 A5 D2 78 BE 00 00 BE [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 9F 5C 00 90 00 6F [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 03 02 [23:00:08]Write to MH i2c: E2 08 00 A0 5C 80 0D 03 02 00 00 00 00 77 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 0B 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 0B 00 A0 5C 00 A4 87 21 AE 04 D1 43 4B 90 00 D5 [23:00:08]RAPDU: A4 87 21 AE 04 D1 43 4B 90 00 [23:00:08]wFMCommunicate OK [23:00:08]SAM_PROTO_SignData done [23:00:08]FM_MakeSignedData done [23:00:08]CreateOFDProtocolMessage [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 11 00 00 [23:00:08]Write to MH i2c: E2 08 00 A1 5C 80 11 00 00 00 00 00 00 77 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 A1 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 C6 [23:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:00:08]wFMCommunicate OK [23:00:08]CreateOFDProtocolMessage done [23:00:08]OFDSenderStorePacket 15786 [23:00:08]StoreOFDPacket docnum=15786 [23:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 62 D1 07 01 AD 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 84 00 00 00 F4 03 04 00 04 69 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AA 3D 00 00 35 04 06 00 4B 92 A5 D2 78 BE A4 87 21 AE 04 D1 43 4B [23:00:08]CheckFolder [23:00:08]dirname=/storage/ofd_packets [23:00:08]CheckFolder done [23:00:08]ProducePacketName [23:00:08]name=ofd_packets/00015786 [23:00:08]NVStorageSaveData ofd_packets/00015786 [23:00:08]File name is /storage/ofd_packets/00015786 [23:00:08]Write 301 bytes [23:00:08]NVStorageSaveData done [23:00:08]OFDSenderStorePacket done [23:00:08]KKMCreateOFDPacket done [23:00:08]NVStorageSaveData kkm_last_timestamp [23:00:08]File name is /storage/kkm_last_timestamp [23:00:08]Write 4 bytes [23:00:08]NVStorageSaveData done [23:00:08]ExternCall_PrintAddStr [23:00:08]wPrintStart [23:00:08]Write to MH i2c: 01 00 00 A2 5C FE [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 07 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 07 00 A2 5C 00 00 00 00 00 FF 0F 13 [23:00:08]RasterBufferAndPrint [23:00:08]line Счет N : (1)16337 [23:00:08]line ИНН: 02508201610067 [23:00:08]line Контрольно-Кассовый Чек [23:00:08]line ПРОДАЖА [23:00:08]line ТРК (МРК, ГНК) : 21 [23:00:08]line Товар: 2710124130 [23:00:08]line Аи-92-К-5 [23:00:08]line 14.950 * 66.90 [23:00:08]line = 1000.16 [23:00:08]line НДС 12% НСП 1% [23:00:08]line > о реализуемом товаре [23:00:08]line ОКРУГЛЕНИЕ: -0.16 [23:00:08]line ИТОГО: 1000.00 [23:00:08]line Внесено: 1000.00 [23:00:08]line СДАЧА: 0.00 [23:00:08]line НСП 1% : 8.85 [23:00:08]line НДС 12% : 106.21 [23:00:08]line Наличными: 1000.00 [23:00:08]line Безнал.: 0.00 [23:00:08]line Место: АЗС № 178 "Партнер Нефть" [23:00:08]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [23:00:08]line СНО: Общий режим [23:00:08]line Чек 132 29.10.2024 23:00 [23:00:08]line Смена: 172 ФФД: 1.0 [23:00:08]line ЗНМ: 0300000014 [23:00:08]line РНМ: 0000000000161798 [23:00:08]line Версия ККМ: v1.0 [23:00:08]line ФМ: 0000000000963325 [23:00:08]line ФД: 15786 [23:00:08]line ФПД: 83093219342526 [23:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T230020&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15786&fm=83093219342526&tin=02508201610067®Number=0000000000161798&sum=100000 [23:00:09]OFD Sender: Processing packet 15786 [packets to send 4, broken 3] [23:00:09]ProducePacketName [23:00:09]name=ofd_packets/00015786 [23:00:09]OFD Sender: To server: pG, [23:00:09]CommunicateWithHost lk.salyk.kg:30040 [23:00:09]ConnectInit lk.salyk.kg [23:00:09]written 0, free lines is 4095 [23:00:09]Connected sock=10 [23:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 62 D1 07 01 AD 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 84 00 00 00 F4 03 04 00 04 69 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AA 3D 00 00 35 04 06 00 4B 92 A5 D2 78 BE A4 87 21 AE 04 D1 43 4B [23:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 54 22 47 00 F2 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AA 3D 00 00 F4 03 04 00 EF 13 21 67 B6 04 01 00 00 C6 A5 4C DD E4 99 F3 48 [23:00:09]CommunicateWithHost err = 0 [23:00:09]CheckOFDResponse [23:00:09]1017 (14) - 77093643461234 [23:00:09]1041 (16) - 0000000000963325 [23:00:09]1040 (4) - 15786 [23:00:09]1012 (4) - 29.10.2024 16:57 [23:00:09]1206 (1) - 0 [23:00:09]OFD Sender: Remove packet 15786 [23:00:09]ProducePacketName [23:00:09]name=ofd_packets/00015786 [23:00:09]NVStorageDeleteData [23:00:09]Write to MH i2c: 01 00 00 CD 5C 29 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 07 00 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 07 00 CD 5C 00 00 00 00 00 FE 0C 3A [23:00:09]RasterBufferAndPrint [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]written 0, free lines is 3332 [23:00:09]MH_Cut [23:00:09]Write to MH i2c: D1 01 00 D4 5C 01 02 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 01 00 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 01 00 D4 5C 00 01 [23:00:09]Write to MH i2c: 01 00 00 D5 5C 31 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]OFD Sender: No OFD packet to send [23:00:10]*** Cut start [23:00:10]*** Partial cut [23:00:10]*** CUTSNS_PIN = 1 [23:00:10]*** CUTSNS_PIN = 0 [23:00:10]*** Brake cut motor [23:00:10]Read from MH i2c: 01 [23:00:10]MH_I2C_Read... [23:00:10]*** Stop cut motor [23:00:10]*** Cut end [23:00:10]Read from MH i2c: 01 07 00 [23:00:10]MH_I2C_Read... [23:00:10]Read from MH i2c: 01 07 00 D5 5C 00 00 00 00 00 FF 0F 46 [23:00:10]process_action close_receipt done [23:00:10]requested_data is exist [23:00:10]produce_requested_data [23:00:10]requested_item fm.sn is exist - process it [23:00:10]wFMCommunicate request_size=4 [23:00:10]MH_SAM_APDU [23:00:10]CAPDU: 80 11 00 00 [23:00:10]Write to MH i2c: E2 08 00 D6 5C 80 11 00 00 00 00 00 00 AC [23:00:10]Write i2c OK [23:00:10]MH_I2C_Read... [23:00:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:10]Read from MH i2c: E2 [23:00:10]MH_I2C_Read... [23:00:10]Read from MH i2c: E2 17 00 [23:00:10]MH_I2C_Read... [23:00:10]Read from MH i2c: E2 17 00 D6 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 FB [23:00:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:00:10]wFMCommunicate OK [23:00:10]requested_item fd.num is exist - process it [23:00:10]SAM_PROTO_GetFieldsCounters [23:00:10]wFMCommunicate request_size=4 [23:00:10]MH_SAM_APDU [23:00:10]CAPDU: 80 13 00 00 [23:00:10]Write to MH i2c: E2 08 00 D7 5C 80 13 00 00 00 00 00 00 AF [23:00:10]Write i2c OK [23:00:10]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 62 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 62 00 D7 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AA 3D 00 00 0E 04 04 00 AC 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 F2 [23:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AA 3D 00 00 0E 04 04 00 AC 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 [23:00:11]wFMCommunicate OK [23:00:11]SAM_PROTO_GetFieldsCounters done [23:00:11]requested_item shift.num is exist - process it [23:00:11]requested_item shift.opened is exist - process it [23:00:11]req_shift_opened [23:00:11]FM_GetShiftState [23:00:11]SAM_PROTO_GetShiftState [23:00:11]wFMCommunicate request_size=4 [23:00:11]MH_SAM_APDU [23:00:11]CAPDU: 80 13 01 00 [23:00:11]Write to MH i2c: E2 08 00 D8 5C 80 13 01 00 00 00 00 00 B1 [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 D8 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 06 [23:00:11]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:00:11]wFMCommunicate OK [23:00:11]SAM_PROTO_GetShiftState done [23:00:11]FM_GetShiftState done [23:00:11]req_shift_opened done [23:00:11]requested_item shift.open_date is exist - process it [23:00:11]req_shift_open_date [23:00:11]req_shift_open_date done [23:00:11]produce_requested_data done [23:00:11]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15786,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [23:00:11]process_action_free close_receipt [23:00:11]json_value_free [23:00:11]json_value_free done [23:00:11]process_json_proto returns [23:00:11]Send response to host [23:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15786,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [23:00:11]free response buf [23:00:11]execute_script done [23:00:11]execute_script returns [23:00:11]free content buf [23:00:11]Sock 8.Close socket [23:00:11]Sock 8.Thread stoped [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]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:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:09]ConnectInit Can't connect to host [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [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 [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:14]accept exits with 9 [23:52:14]New connection [23:52:14]New thread 3066588516 created [23:52:14]Thread 3066731876 joined [23:52:14]Waiting for new connection... [23:52:14] Sock 9.Parse request [23:52:14]Sock 9.Check first char [23:52:14]Sock 9.First char is OK [23:52:14]request: POST /json_proto HTTP/1.0 [23:52:14]Method: POST [23:52:14]URL: /json_proto [23:52:14]Method is POST - this is cgi request [23:52:14]url: /json_proto [23:52:14]query_string will be loaded in cgi processing [23:52:14]execute_cgi json_proto POST (null) [23:52:14]execute_cgi path=json_proto method=POST [23:52:14]POST find Content-Length [23:52:14]Host: 172.17.54.195:8080 [23:52:14]Content-Length: 671 [23:52:14]Content-Type: application/json [23:52:14] [23:52:14]POST finish read [23:52:14]Found Content-Length = 671 [23:52:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [23:52:14]execute_script... [23:52: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)16338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "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" ] } } [23:52:14]POST & json_proto [23:52:14]process_json_proto [23:52:14]json parsed OK: [23:52:14]protocol is kg_v1.0 [23:52:14]action value=close_receipt [23:52:14]process_action close_receipt [23:52:14]cmd_close_receipt [23:52:14]MH_GetDate [23:52:14]Write to MH i2c: F0 00 00 D9 5C 24 [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: F0 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: F0 09 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: F0 09 00 D9 5C 00 3C 75 21 67 8D 90 A3 66 8C [23:52:14]GetLastDocTimeStamp 1730242820 [23:52:14]current date 1730245948 [23:52:14]FM_GetShiftState [23:52:14]SAM_PROTO_GetShiftState [23:52:14]wFMCommunicate request_size=4 [23:52:14]MH_SAM_APDU [23:52:14]CAPDU: 80 13 01 00 [23:52:14]Write to MH i2c: E2 08 00 DA 5C 80 13 01 00 00 00 00 00 B3 [23:52:14]Write i2c OK [23:52:14]MH_I2C_Read... [23:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:14]Read from MH i2c: E2 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 0E 00 [23:52:14]MH_I2C_Read... [23:52:14]Read from MH i2c: E2 0E 00 DA 5C 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 08 [23:52:14]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:52:14]wFMCommunicate OK [23:52:14]SAM_PROTO_GetShiftState done [23:52:14]FM_GetShiftState done [23:52:14]opened in 1730161559 [23:52:14]opened+sec_in_day 1730247959 [23:52:14]quantity*price = 200001 [23:52:14]sum+1 = 200003 [23:52:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 133 29.10.2024 23:52 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15787 ФПД: 110364748416362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T235228&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15787&fm=110364748416362&tin=02508201610067®Number=0000000000161798&sum=200000 [23:52:15]StoreToDocumentArchive [23:52:15]shift 172 fd 15787 [23:52:15]save to /storage/0172/doc_00015787 [23:52:15]save last doc name /storage/0172/doc_00015787 to /storage/kkm_last_doc_name [23:52:15]save OK [23:52:15]Clear old archive folders... [23:52:15]ProcessDocumentItem done err = 0, tmpTLVsize=249 [23:52:15]tlvbuf is 00321CA0 [23:52:15]SAM_PROTO_ClearQueue [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 09 00 00 [23:52:15]Write to MH i2c: E2 08 00 E7 5C 80 09 00 00 00 00 00 00 B5 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 E7 5C 00 90 00 B7 [23:52:15]RAPDU: 90 00 [23:52:15]wFMCommunicate OK [23:52:15]SAM_PROTO_ClearQueue done [23:52:15]KKMCreateOFDPacket [23:52:15]OFDProtocolAddRootSTLVToBuf [23:52:15]FM_MakeSignedData [23:52:15]FM_MakeSignedData [23:52:15]SAM_PROTO_SignData [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 0D 01 02 [23:52:15]Write to MH i2c: E2 08 00 E8 5C 80 0D 01 02 00 00 00 00 BD [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 E8 5C 00 90 00 B8 [23:52:15]RAPDU: 90 00 [23:52:15]wFMCommunicate OK [23:52:15]wFMCommunicate request_size=255 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 85 00 00 00 F4 03 04 00 3C 75 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AB 3D 00 00 35 04 06 00 64 60 4B [23:52:15]Write to MH i2c: E2 02 01 E9 5C 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 85 00 00 00 F4 03 04 00 3C 75 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AB 3D 00 00 35 04 06 00 64 60 4B 00 00 C7 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 E9 5C 00 90 00 B9 [23:52:15]RAPDU: 90 00 [23:52:15]wFMCommunicate OK [23:52:15]wFMCommunicate request_size=8 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 0D 02 02 03 A0 05 6A [23:52:15]Write to MH i2c: E2 0B 00 EA 5C 80 0D 02 02 03 00 A0 05 6A 00 00 D5 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:15]Read from MH i2c: E2 03 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 03 00 EA 5C 00 90 00 BA [23:52:15]RAPDU: 90 00 [23:52:15]wFMCommunicate OK [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 0D 03 02 [23:52:15]Write to MH i2c: E2 08 00 EB 5C 80 0D 03 02 00 00 00 00 C2 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0B 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0B 00 EB 5C 00 B5 80 00 77 45 C6 F7 BF 90 00 30 [23:52:16]RAPDU: B5 80 00 77 45 C6 F7 BF 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_SignData done [23:52:16]FM_MakeSignedData done [23:52:16]CreateOFDProtocolMessage [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 11 00 00 [23:52:16]Write to MH i2c: E2 08 00 EC 5C 80 11 00 00 00 00 00 00 C2 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 EC 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 11 [23:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:52:16]wFMCommunicate OK [23:52:16]CreateOFDProtocolMessage done [23:52:16]OFDSenderStorePacket 15787 [23:52:16]StoreOFDPacket docnum=15787 [23:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 64 8C 05 01 BA B9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 85 00 00 00 F4 03 04 00 3C 75 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AB 3D 00 00 35 04 06 00 64 60 4B A0 05 6A B5 80 00 77 45 C6 F7 BF [23:52:16]CheckFolder [23:52:16]dirname=/storage/ofd_packets [23:52:16]CheckFolder done [23:52:16]ProducePacketName [23:52:16]name=ofd_packets/00015787 [23:52:16]NVStorageSaveData ofd_packets/00015787 [23:52:16]File name is /storage/ofd_packets/00015787 [23:52:16]Write 299 bytes [23:52:16]NVStorageSaveData done [23:52:16]OFDSenderStorePacket done [23:52:16]KKMCreateOFDPacket done [23:52:16]NVStorageSaveData kkm_last_timestamp [23:52:16]File name is /storage/kkm_last_timestamp [23:52:16]Write 4 bytes [23:52:16]NVStorageSaveData done [23:52:16]ExternCall_PrintAddStr [23:52:16]wPrintStart [23:52:16]Write to MH i2c: 01 00 00 ED 5C 49 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 ED 5C 00 00 00 00 00 FF 0F 5E [23:52:16]RasterBufferAndPrint [23:52:16]line Счет N : (1)16338 [23:52:16]line ИНН: 02508201610067 [23:52:16]line Контрольно-Кассовый Чек [23:52:16]line ПРОДАЖА [23:52:16]line ТРК (МРК, ГНК) : 12 [23:52:16]line Товар: 50.50.0 [23:52:16]line SUPER 92-К-5 [23:52:16]line 29.240 * 68.40 [23:52:16]line = 2000.02 [23:52:16]line НДС 12% НСП 1% [23:52:16]line > о реализуемом товаре [23:52:16]line ОКРУГЛЕНИЕ: -0.02 [23:52:16]line ИТОГО: 2000.00 [23:52:16]line Внесено: 2000.00 [23:52:16]line СДАЧА: 0.00 [23:52:16]line НСП 1% : 17.70 [23:52:16]line НДС 12% : 212.39 [23:52:16]line Наличными: 2000.00 [23:52:16]line Безнал.: 0.00 [23:52:16]line Место: АЗС № 178 "Партнер Нефть" [23:52:16]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [23:52:16]line СНО: Общий режим [23:52:16]line Чек 133 29.10.2024 23:52 [23:52:16]line Смена: 172 ФФД: 1.0 [23:52:16]line ЗНМ: 0300000014 [23:52:16]line РНМ: 0000000000161798 [23:52:16]line Версия ККМ: v1.0 [23:52:16]line ФМ: 0000000000963325 [23:52:16]line ФД: 15787 [23:52:16]line ФПД: 110364748416362 [23:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T235228&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15787&fm=110364748416362&tin=02508201610067®Number=0000000000161798&sum=200000 [23:52:16]written 0, free lines is 4095 [23:52:16]OFD Sender: Processing packet 15787 [packets to send 4, broken 3] [23:52:16]ProducePacketName [23:52:16]name=ofd_packets/00015787 [23:52:16]OFD Sender: To server: pG, [23:52:16]CommunicateWithHost lk.salyk.kg:30040 [23:52:16]ConnectInit lk.salyk.kg [23:52:16]Connected sock=10 [23:52:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 64 8C 05 01 BA B9 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 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 F7 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 85 00 00 00 F4 03 04 00 3C 75 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AB 3D 00 00 35 04 06 00 64 60 4B A0 05 6A B5 80 00 77 45 C6 F7 BF [23:52:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 8C 65 47 00 0D 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 30 39 36 33 33 32 35 10 04 04 00 AB 3D 00 00 F4 03 04 00 27 20 21 67 B6 04 01 00 00 AB 27 B2 16 ED B0 25 16 [23:52:16]CommunicateWithHost err = 0 [23:52:16]CheckOFDResponse [23:52:16]1017 (14) - 77093643461234 [23:52:16]1041 (16) - 0000000000963325 [23:52:16]1040 (4) - 15787 [23:52:16]1012 (4) - 29.10.2024 17:49 [23:52:16]1206 (1) - 0 [23:52:16]OFD Sender: Remove packet 15787 [23:52:16]ProducePacketName [23:52:16]name=ofd_packets/00015787 [23:52:16]NVStorageDeleteData [23:52:16]Write to MH i2c: 01 00 00 18 5D 75 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 18 5D 00 00 00 00 00 F3 0C 7B [23:52:16]RasterBufferAndPrint [23:52:16]line [23:52:16]line [23:52:16]line [23:52:16]line [23:52:16]line [23:52:16]written 0, free lines is 3326 [23:52:16]MH_Cut [23:52:16]Write to MH i2c: D1 01 00 1F 5D 01 4E [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: D1 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: D1 01 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: D1 01 00 1F 5D 00 4D [23:52:16]Write to MH i2c: 01 00 00 20 5D 7D [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:17]OFD Sender: No OFD packet to send [23:52:17]*** Cut start [23:52:17]*** Partial cut [23:52:17]*** CUTSNS_PIN = 1 [23:52:17]*** CUTSNS_PIN = 0 [23:52:17]*** Brake cut motor [23:52:18]Read from MH i2c: 01 [23:52:18]MH_I2C_Read... [23:52:18]*** Stop cut motor [23:52:18]*** Cut end [23:52:18]Read from MH i2c: 01 07 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: 01 07 00 20 5D 00 00 00 00 00 FF 0F 92 [23:52:18]process_action close_receipt done [23:52:18]requested_data is exist [23:52:18]produce_requested_data [23:52:18]requested_item fm.sn is exist - process it [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 11 00 00 [23:52:18]Write to MH i2c: E2 08 00 21 5D 80 11 00 00 00 00 00 00 F8 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:18]Read from MH i2c: E2 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 17 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 17 00 21 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 47 [23:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:52:18]wFMCommunicate OK [23:52:18]requested_item fd.num is exist - process it [23:52:18]SAM_PROTO_GetFieldsCounters [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 13 00 00 [23:52:18]Write to MH i2c: E2 08 00 22 5D 80 13 00 00 00 00 00 00 FB [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:18]Read from MH i2c: E2 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 62 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 62 00 22 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AB 3D 00 00 0E 04 04 00 AC 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 42 [23:52:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AB 3D 00 00 0E 04 04 00 AC 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 [23:52:18]wFMCommunicate OK [23:52:18]SAM_PROTO_GetFieldsCounters done [23:52:18]requested_item shift.num is exist - process it [23:52:18]requested_item shift.opened is exist - process it [23:52:18]req_shift_opened [23:52:18]FM_GetShiftState [23:52:18]SAM_PROTO_GetShiftState [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 13 01 00 [23:52:18]Write to MH i2c: E2 08 00 23 5D 80 13 01 00 00 00 00 00 FD [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:18]Read from MH i2c: E2 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 0E 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: E2 0E 00 23 5D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 52 [23:52:18]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:52:18]wFMCommunicate OK [23:52:18]SAM_PROTO_GetShiftState done [23:52:18]FM_GetShiftState done [23:52:18]req_shift_opened done [23:52:18]requested_item shift.open_date is exist - process it [23:52:18]req_shift_open_date [23:52:18]req_shift_open_date done [23:52:18]produce_requested_data done [23:52:18]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15787,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [23:52:18]process_action_free close_receipt [23:52:18]json_value_free [23:52:18]json_value_free done [23:52:18]process_json_proto returns [23:52:18]Send response to host [23:52:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15787,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [23:52:18]free response buf [23:52:18]execute_script done [23:52:18]execute_script returns [23:52:18]free content buf [23:52:18]Sock 9.Close socket [23:52:18]Sock 9.Thread stoped [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:19]accept exits with 8 [23:59:19]New connection [23:59:19]New thread 3066731876 created [23:59:19]Thread 3066588516 joined [23:59:19]Waiting for new connection... [23:59:19] Sock 8.Parse request [23:59:19]Sock 8.Check first char [23:59:19]Sock 8.First char is OK [23:59:19]request: POST /json_proto HTTP/1.0 [23:59:19]Method: POST [23:59:19]URL: /json_proto [23:59:19]Method is POST - this is cgi request [23:59:19]url: /json_proto [23:59:19]query_string will be loaded in cgi processing [23:59:19]execute_cgi json_proto POST (null) [23:59:19]execute_cgi path=json_proto method=POST [23:59:19]POST find Content-Length [23:59:19]Host: 172.17.54.195:8080 [23:59:19]Content-Length: 676 [23:59:19]Content-Type: application/json [23:59:19] [23:59:19]POST finish read [23:59:19]Found Content-Length = 676 [23:59:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:19]execute_script... [23:59: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)16339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:19]POST & json_proto [23:59:19]process_json_proto [23:59:19]json parsed OK: [23:59:19]protocol is kg_v1.0 [23:59:19]action value=close_receipt [23:59:19]process_action close_receipt [23:59:19]cmd_close_receipt [23:59:19]MH_GetDate [23:59:19]Write to MH i2c: F0 00 00 24 5D 70 [23:59:19]Write i2c OK [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: F0 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: F0 09 00 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: F0 09 00 24 5D 00 E4 76 21 67 8D 90 A3 66 81 [23:59:19]GetLastDocTimeStamp 1730245948 [23:59:19]current date 1730246372 [23:59:19]FM_GetShiftState [23:59:19]SAM_PROTO_GetShiftState [23:59:19]wFMCommunicate request_size=4 [23:59:19]MH_SAM_APDU [23:59:19]CAPDU: 80 13 01 00 [23:59:19]Write to MH i2c: E2 08 00 25 5D 80 13 01 00 00 00 00 00 FF [23:59:19]Write i2c OK [23:59:19]MH_I2C_Read... [23:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:19]Read from MH i2c: E2 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 0E 00 [23:59:19]MH_I2C_Read... [23:59:19]Read from MH i2c: E2 0E 00 25 5D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 54 [23:59:19]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:59:19]wFMCommunicate OK [23:59:19]SAM_PROTO_GetShiftState done [23:59:19]FM_GetShiftState done [23:59:19]opened in 1730161559 [23:59:19]opened+sec_in_day 1730247959 [23:59:19]quantity*price = 14049 [23:59:19]sum+1 = 14050 [23:59:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 134 29.10.2024 23:59 Смена: 172 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15788 ФПД: 75236314021519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T235932&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15788&fm=75236314021519&tin=02508201610067®Number=0000000000161798&sum=14000 [23:59:20]StoreToDocumentArchive [23:59:20]shift 172 fd 15788 [23:59:20]save to /storage/0172/doc_00015788 [23:59:20]save last doc name /storage/0172/doc_00015788 to /storage/kkm_last_doc_name [23:59:20]save OK [23:59:20]Clear old archive folders... [23:59:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:59:20]tlvbuf is 0031A250 [23:59:20]SAM_PROTO_ClearQueue [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 09 00 00 [23:59:20]Write to MH i2c: E2 08 00 32 5D 80 09 00 00 00 00 00 00 01 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 32 5D 00 90 00 03 [23:59:20]RAPDU: 90 00 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_ClearQueue done [23:59:20]KKMCreateOFDPacket [23:59:20]OFDProtocolAddRootSTLVToBuf [23:59:20]FM_MakeSignedData [23:59:20]FM_MakeSignedData [23:59:20]SAM_PROTO_SignData [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 0D 01 02 [23:59:20]Write to MH i2c: E2 08 00 33 5D 80 0D 01 02 00 00 00 00 09 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 33 5D 00 90 00 04 [23:59:20]RAPDU: 90 00 [23:59:20]wFMCommunicate OK [23:59:20]wFMCommunicate request_size=255 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 E4 76 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AC 3D 00 00 35 04 06 00 44 [23:59:20]Write to MH i2c: E2 02 01 34 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 E4 76 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AC 3D 00 00 35 04 06 00 44 00 00 07 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 34 5D 00 90 00 05 [23:59:20]RAPDU: 90 00 [23:59:20]wFMCommunicate OK [23:59:20]wFMCommunicate request_size=10 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 0D 02 02 05 6D 51 C5 7E 8F [23:59:20]Write to MH i2c: E2 0D 00 35 5D 80 0D 02 02 05 00 6D 51 C5 7E 8F 00 00 A6 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 03 00 35 5D 00 90 00 06 [23:59:20]RAPDU: 90 00 [23:59:20]wFMCommunicate OK [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 0D 03 02 [23:59:20]Write to MH i2c: E2 08 00 36 5D 80 0D 03 02 00 00 00 00 0E [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0B 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0B 00 36 5D 00 AC 2A 5B 83 16 84 06 67 90 00 CA [23:59:20]RAPDU: AC 2A 5B 83 16 84 06 67 90 00 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_SignData done [23:59:20]FM_MakeSignedData done [23:59:20]CreateOFDProtocolMessage [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 11 00 00 [23:59:20]Write to MH i2c: E2 08 00 37 5D 80 11 00 00 00 00 00 00 0E [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 17 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 17 00 37 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 5D [23:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:59:20]wFMCommunicate OK [23:59:20]CreateOFDProtocolMessage done [23:59:20]OFDSenderStorePacket 15788 [23:59:20]StoreOFDPacket docnum=15788 [23:59:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EA 90 07 01 01 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 E4 76 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AC 3D 00 00 35 04 06 00 44 6D 51 C5 7E 8F AC 2A 5B 83 16 84 06 67 [23:59:20]CheckFolder [23:59:20]dirname=/storage/ofd_packets [23:59:20]CheckFolder done [23:59:20]ProducePacketName [23:59:20]name=ofd_packets/00015788 [23:59:20]NVStorageSaveData ofd_packets/00015788 [23:59:20]File name is /storage/ofd_packets/00015788 [23:59:20]Write 301 bytes [23:59:20]NVStorageSaveData done [23:59:20]OFDSenderStorePacket done [23:59:20]KKMCreateOFDPacket done [23:59:20]NVStorageSaveData kkm_last_timestamp [23:59:20]File name is /storage/kkm_last_timestamp [23:59:20]Write 4 bytes [23:59:20]NVStorageSaveData done [23:59:20]ExternCall_PrintAddStr [23:59:20]wPrintStart [23:59:20]Write to MH i2c: 01 00 00 38 5D 95 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: 01 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: 01 07 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: 01 07 00 38 5D 00 00 00 00 00 FF 0F AA [23:59:20]RasterBufferAndPrint [23:59:20]line Счет N : (1)16339 [23:59:20]line ИНН: 02508201610067 [23:59:20]line Контрольно-Кассовый Чек [23:59:20]line ПРОДАЖА [23:59:20]line ТРК (МРК, ГНК) : 21 [23:59:20]line Товар: 2710124130 [23:59:20]line Аи-92-К-5 [23:59:20]line 2.100 * 66.90 [23:59:20]line = 140.49 [23:59:20]line НДС 12% НСП 1% [23:59:20]line > о реализуемом товаре [23:59:20]line ОКРУГЛЕНИЕ: -0.49 [23:59:20]line ИТОГО: 140.00 [23:59:20]line Внесено: 140.00 [23:59:20]line СДАЧА: 0.00 [23:59:20]line НСП 1% : 1.24 [23:59:20]line НДС 12% : 14.92 [23:59:20]line Наличными: 140.00 [23:59:20]line Безнал.: 0.00 [23:59:20]line Место: АЗС № 178 "Партнер Нефть" [23:59:20]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [23:59:20]line СНО: Общий режим [23:59:20]line Чек 134 29.10.2024 23:59 [23:59:20]line Смена: 172 ФФД: 1.0 [23:59:20]line ЗНМ: 0300000014 [23:59:20]line РНМ: 0000000000161798 [23:59:20]line Версия ККМ: v1.0 [23:59:20]line ФМ: 0000000000963325 [23:59:20]line ФД: 15788 [23:59:20]line ФПД: 75236314021519 [23:59:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T235932&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15788&fm=75236314021519&tin=02508201610067®Number=0000000000161798&sum=14000 [23:59:21]OFD Sender: Processing packet 15788 [packets to send 4, broken 3] [23:59:21]ProducePacketName [23:59:21]name=ofd_packets/00015788 [23:59:21]OFD Sender: To server: pG, [23:59:21]CommunicateWithHost lk.salyk.kg:30040 [23:59:21]ConnectInit lk.salyk.kg [23:59:21]written 0, free lines is 4095 [23:59:21]Connected sock=10 [23:59:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0F 01 00 00 EA 90 07 01 01 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 E4 76 21 67 0E 04 04 00 AC 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AC 3D 00 00 35 04 06 00 44 6D 51 C5 7E 8F AC 2A 5B 83 16 84 06 67 [23:59:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 97 39 47 00 EF 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AC 3D 00 00 F4 03 04 00 D0 21 21 67 B6 04 01 00 00 B5 7D 1A AC 86 32 16 4E [23:59:21]CommunicateWithHost err = 0 [23:59:21]CheckOFDResponse [23:59:21]1017 (14) - 77093643461234 [23:59:21]1041 (16) - 0000000000963325 [23:59:21]1040 (4) - 15788 [23:59:21]1012 (4) - 29.10.2024 17:56 [23:59:21]1206 (1) - 0 [23:59:21]OFD Sender: Remove packet 15788 [23:59:21]ProducePacketName [23:59:21]name=ofd_packets/00015788 [23:59:21]NVStorageDeleteData [23:59:21]Write to MH i2c: 01 00 00 63 5D C0 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: 01 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: 01 07 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: 01 07 00 63 5D 00 00 00 00 00 FD 0C D0 [23:59:21]RasterBufferAndPrint [23:59:21]line [23:59:21]line [23:59:21]line [23:59:21]line [23:59:21]line [23:59:21]written 0, free lines is 3332 [23:59:21]MH_Cut [23:59:21]Write to MH i2c: D1 01 00 6A 5D 01 99 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: D1 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: D1 01 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: D1 01 00 6A 5D 00 98 [23:59:21]Write to MH i2c: 01 00 00 6B 5D C8 [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]OFD Sender: No OFD packet to send [23:59:22]*** Cut start [23:59:22]*** Partial cut [23:59:22]*** CUTSNS_PIN = 1 [23:59:22]*** CUTSNS_PIN = 0 [23:59:22]*** Brake cut motor [23:59:22]Read from MH i2c: 01 [23:59:22]MH_I2C_Read... [23:59:22]*** Stop cut motor [23:59:22]*** Cut end [23:59:22]Read from MH i2c: 01 07 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: 01 07 00 6B 5D 00 00 00 00 00 FF 0F DD [23:59:22]process_action close_receipt done [23:59:22]requested_data is exist [23:59:22]produce_requested_data [23:59:22]requested_item fm.sn is exist - process it [23:59:22]wFMCommunicate request_size=4 [23:59:22]MH_SAM_APDU [23:59:22]CAPDU: 80 11 00 00 [23:59:22]Write to MH i2c: E2 08 00 6C 5D 80 11 00 00 00 00 00 00 43 [23:59:22]Write i2c OK [23:59:22]MH_I2C_Read... [23:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:22]Read from MH i2c: E2 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 17 00 [23:59:22]MH_I2C_Read... [23:59:22]Read from MH i2c: E2 17 00 6C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 92 [23:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [23:59:22]wFMCommunicate OK [23:59:22]requested_item fd.num is exist - process it [23:59:22]SAM_PROTO_GetFieldsCounters [23:59:22]wFMCommunicate request_size=4 [23:59:22]MH_SAM_APDU [23:59:22]CAPDU: 80 13 00 00 [23:59:22]Write to MH i2c: E2 08 00 6D 5D 80 13 00 00 00 00 00 00 46 [23:59:22]Write i2c OK [23:59:22]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 6D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 91 [23:59:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetFieldsCounters done [23:59:23]requested_item shift.num is exist - process it [23:59:23]requested_item shift.opened is exist - process it [23:59:23]req_shift_opened [23:59:23]FM_GetShiftState [23:59:23]SAM_PROTO_GetShiftState [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 13 01 00 [23:59:23]Write to MH i2c: E2 08 00 6E 5D 80 13 01 00 00 00 00 00 48 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 6E 5D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 9D [23:59:23]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetShiftState done [23:59:23]FM_GetShiftState done [23:59:23]req_shift_opened done [23:59:23]requested_item shift.open_date is exist - process it [23:59:23]req_shift_open_date [23:59:23]req_shift_open_date done [23:59:23]produce_requested_data done [23:59:23]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15788,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [23:59:23]process_action_free close_receipt [23:59:23]json_value_free [23:59:23]json_value_free done [23:59:23]process_json_proto returns [23:59:23]Send response to host [23:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15788,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [23:59:23]free response buf [23:59:23]execute_script done [23:59:23]execute_script returns [23:59:23]free content buf [23:59:23]Sock 8.Close socket [23:59:23]Sock 8.Thread stoped [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:08]ConnectInit Can't connect to host [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:40]accept exits with 9 [00:08:40]New connection [00:08:40]New thread 3066588516 created [00:08:40]Thread 3066731876 joined [00:08:40]Waiting for new connection... [00:08:40] Sock 9.Parse request [00:08:40]Sock 9.Check first char [00:08:40]Sock 9.First char is OK [00:08:40]request: POST /json_proto HTTP/1.0 [00:08:40]Method: POST [00:08:40]URL: /json_proto [00:08:40]Method is POST - this is cgi request [00:08:40]url: /json_proto [00:08:40]query_string will be loaded in cgi processing [00:08:40]execute_cgi json_proto POST (null) [00:08:40]execute_cgi path=json_proto method=POST [00:08:40]POST find Content-Length [00:08:40]Host: 172.17.54.195:8080 [00:08:40]Content-Length: 215 [00:08:40]Content-Type: application/json [00:08:40] [00:08:40]POST finish read [00:08:40]Found Content-Length = 215 [00:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:40]execute_script... [00:08:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:40]POST & json_proto [00:08:40]process_json_proto [00:08:40]json parsed OK: [00:08:40]protocol is kg_v1.0 [00:08:40]action value=get_value [00:08:40]process_action get_value [00:08:40]cmd_get_value [00:08:40]process_action get_value done [00:08:40]requested_data is exist [00:08:40]produce_requested_data [00:08:40]requested_item kkm.sn is exist - process it [00:08:40]requested_item kkm.ver is exist - process it [00:08:40]requested_item fm.sn is exist - process it [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 11 00 00 [00:08:40]Write to MH i2c: E2 08 00 6F 5D 80 11 00 00 00 00 00 00 46 [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 17 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 17 00 6F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 95 [00:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:08:40]wFMCommunicate OK [00:08:40]requested_item fd.num is exist - process it [00:08:40]SAM_PROTO_GetFieldsCounters [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 13 00 00 [00:08:40]Write to MH i2c: E2 08 00 70 5D 80 13 00 00 00 00 00 00 49 [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 62 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 62 00 70 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 94 [00:08:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 [00:08:40]wFMCommunicate OK [00:08:40]SAM_PROTO_GetFieldsCounters done [00:08:40]requested_item shift.num is exist - process it [00:08:40]requested_item shift.opened is exist - process it [00:08:40]req_shift_opened [00:08:40]FM_GetShiftState [00:08:40]SAM_PROTO_GetShiftState [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 13 01 00 [00:08:40]Write to MH i2c: E2 08 00 71 5D 80 13 01 00 00 00 00 00 4B [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 0E 00 71 5D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 A0 [00:08:40]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [00:08:40]wFMCommunicate OK [00:08:40]SAM_PROTO_GetShiftState done [00:08:40]FM_GetShiftState done [00:08:40]req_shift_opened done [00:08:40]requested_item shift.open_date is exist - process it [00:08:40]req_shift_open_date [00:08:40]req_shift_open_date done [00:08:40]produce_requested_data done [00:08:40]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15788,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559} [00:08:40]process_action_free get_value [00:08:40]json_value_free [00:08:40]json_value_free done [00:08:40]process_json_proto returns [00:08:40]Send response to host [00:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15788,"shift.num":172,"shift.opened":1,"shift.open_date":1730161559}}} [00:08:40]free response buf [00:08:40]execute_script done [00:08:40]execute_script returns [00:08:40]free content buf [00:08:40]Sock 9.Close socket [00:08:40]Sock 9.Thread stoped [00:08:40]accept exits with 10 [00:08:40]New connection [00:08:40]New thread 3066731876 created [00:08:40]Thread 3066588516 joined [00:08:40]Waiting for new connection... [00:08:40] Sock 10.Parse request [00:08:40]Sock 10.Check first char [00:08:40]Sock 10.First char is OK [00:08:40]request: POST /json_proto HTTP/1.0 [00:08:40]Method: POST [00:08:40]URL: /json_proto [00:08:40]Method is POST - this is cgi request [00:08:40]url: /json_proto [00:08:40]query_string will be loaded in cgi processing [00:08:40]execute_cgi json_proto POST (null) [00:08:40]execute_cgi path=json_proto method=POST [00:08:40]POST find Content-Length [00:08:40]Host: 172.17.54.195:8080 [00:08:40]Content-Length: 331 [00:08:40]Content-Type: application/json [00:08:40] [00:08:40]POST finish read [00:08:40]Found Content-Length = 331 [00:08:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:40]execute_script... [00:08:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:40]POST & json_proto [00:08:40]process_json_proto [00:08:40]json parsed OK: [00:08:40]protocol is kg_v1.0 [00:08:40]action value=get_value [00:08:40]process_action get_value [00:08:40]cmd_get_value [00:08:40]process_action get_value done [00:08:40]requested_data is exist [00:08:40]produce_requested_data [00:08:40]requested_item fm.sale.total is exist - process it [00:08:40]SAM_PROTO_GetFMData [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 13 03 00 [00:08:40]Write to MH i2c: E2 08 00 72 5D 80 13 03 00 00 00 00 00 4E [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 72 5D 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 B8 [00:08:41]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:08:41]wFMCommunicate OK [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 17 00 00 [00:08:41]Write to MH i2c: E2 08 00 73 5D 80 17 00 00 00 00 00 00 50 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 73 5D 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 B9 [00:08:41]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:08:41]wFMCommunicate OK [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 17 00 00 [00:08:41]Write to MH i2c: E2 08 00 74 5D 80 17 00 00 00 00 00 00 51 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 FD 00 74 5D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F5 [00:08:41]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:08:41]wFMCommunicate OK [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 17 00 00 [00:08:41]Write to MH i2c: E2 08 00 75 5D 80 17 00 00 00 00 00 00 52 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 75 5D 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 CC [00:08:42]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 76 5D 80 17 00 00 00 00 00 00 53 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]OFD Sender: No OFD packet to send [00:08:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 DC 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 DC 00 76 5D 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 37 [00:08:42]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:42]wFMCommunicate OK [00:08:42]SAM_PROTO_GetFMData done [00:08:42]requested_item fm.sale_refund.total is exist - process it [00:08:42]requested_item fm.buy.total is exist - process it [00:08:42]requested_item shift.sale.total is exist - process it [00:08:42]SAM_PROTO_GetShiftData [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 13 02 00 [00:08:42]Write to MH i2c: E2 08 00 77 5D 80 13 02 00 00 00 00 00 52 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 FD 00 77 5D 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 6F [00:08:42]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=4 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 17 00 00 [00:08:42]Write to MH i2c: E2 08 00 78 5D 80 17 00 00 00 00 00 00 55 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 78 5D 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 6E [00:08:43]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 [00:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 17 00 00 [00:08:43]Write to MH i2c: E2 08 00 79 5D 80 17 00 00 00 00 00 00 56 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 79 5D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0A [00:08:43]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 [00:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 17 00 00 [00:08:43]Write to MH i2c: E2 08 00 7A 5D 80 17 00 00 00 00 00 00 57 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 FD 00 7A 5D 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 D5 [00:08:43]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 [00:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=4 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 17 00 00 [00:08:43]Write to MH i2c: E2 08 00 7B 5D 80 17 00 00 00 00 00 00 58 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 CC 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 CC 00 7B 5D 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 39 [00:08:44]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 [00:08:44]wFMCommunicate OK [00:08:44]SAM_PROTO_GetShiftData done [00:08:44]requested_item shift.sale.total_cash is exist - process it [00:08:44]requested_item shift.sale_refund.total is exist - process it [00:08:44]requested_item shift.sale_refund.total_cash is exist - process it [00:08:44]requested_item shift.buy.total is exist - process it [00:08:44]requested_item shift.buy.total_cash is exist - process it [00:08:44]produce_requested_data done [00:08:44]produce_requested_data return {"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:44]process_action_free get_value [00:08:44]json_value_free [00:08:44]json_value_free done [00:08:44]process_json_proto returns [00:08:44]Send response to host [00:08:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:44]free response buf [00:08:44]execute_script done [00:08:44]execute_script returns [00:08:44]free content buf [00:08:44]Sock 10.Close socket [00:08:44]Sock 10.Thread stoped [00:08:44]accept exits with 9 [00:08:44]New connection [00:08:44]New thread 3066588516 created [00:08:44]Thread 3066731876 joined [00:08:44]Waiting for new connection... [00:08:44] Sock 9.Parse request [00:08:44]Sock 9.Check first char [00:08:44]Sock 9.First char is OK [00:08:44]request: POST /json_proto HTTP/1.0 [00:08:44]Method: POST [00:08:44]URL: /json_proto [00:08:44]Method is POST - this is cgi request [00:08:44]url: /json_proto [00:08:44]query_string will be loaded in cgi processing [00:08:44]execute_cgi json_proto POST (null) [00:08:44]execute_cgi path=json_proto method=POST [00:08:44]POST find Content-Length [00:08:44]Host: 172.17.54.195:8080 [00:08:44]Content-Length: 331 [00:08:44]Content-Type: application/json [00:08:44] [00:08:44]POST finish read [00:08:44]Found Content-Length = 331 [00:08:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:44]execute_script... [00:08:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:44]POST & json_proto [00:08:44]process_json_proto [00:08:44]json parsed OK: [00:08:44]protocol is kg_v1.0 [00:08:44]action value=get_value [00:08:44]process_action get_value [00:08:44]cmd_get_value [00:08:44]process_action get_value done [00:08:44]requested_data is exist [00:08:44]produce_requested_data [00:08:44]requested_item fm.sale.total is exist - process it [00:08:44]SAM_PROTO_GetFMData [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 13 03 00 [00:08:44]Write to MH i2c: E2 08 00 7C 5D 80 13 03 00 00 00 00 00 58 [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 FD 00 7C 5D 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 C2 [00:08:44]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:08:44]wFMCommunicate OK [00:08:44]wFMCommunicate request_size=4 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 17 00 00 [00:08:44]Write to MH i2c: E2 08 00 7D 5D 80 17 00 00 00 00 00 00 5A [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 7D 5D 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 C3 [00:08:45]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 17 00 00 [00:08:45]Write to MH i2c: E2 08 00 7E 5D 80 17 00 00 00 00 00 00 5B [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 7E 5D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 FF [00:08:45]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 17 00 00 [00:08:45]Write to MH i2c: E2 08 00 7F 5D 80 17 00 00 00 00 00 00 5C [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 FD 00 7F 5D 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 D6 [00:08:45]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 80 5D 80 17 00 00 00 00 00 00 5D [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 DC 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 DC 00 80 5D 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 41 [00:08:46]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:46]wFMCommunicate OK [00:08:46]SAM_PROTO_GetFMData done [00:08:46]requested_item fm.sale_refund.total is exist - process it [00:08:46]requested_item fm.buy.total is exist - process it [00:08:46]requested_item shift.sale.total is exist - process it [00:08:46]SAM_PROTO_GetShiftData [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 13 02 00 [00:08:46]Write to MH i2c: E2 08 00 81 5D 80 13 02 00 00 00 00 00 5C [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 81 5D 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 79 [00:08:46]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 82 5D 80 17 00 00 00 00 00 00 5F [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 82 5D 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 78 [00:08:47]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 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 83 5D 80 17 00 00 00 00 00 00 60 [00:08:47]OFD Sender: No OFD packet to send [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 83 5D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 14 [00:08:48]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 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 84 5D 80 17 00 00 00 00 00 00 61 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 84 5D 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 DF [00:08:48]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 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 85 5D 80 17 00 00 00 00 00 00 62 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 CC 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 CC 00 85 5D 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 43 [00:08:48]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 [00:08:48]wFMCommunicate OK [00:08:48]SAM_PROTO_GetShiftData done [00:08:48]requested_item shift.sale.total_cash is exist - process it [00:08:48]requested_item shift.sale_refund.total is exist - process it [00:08:48]requested_item shift.sale_refund.total_cash is exist - process it [00:08:48]requested_item shift.buy.total is exist - process it [00:08:48]requested_item shift.buy.total_cash is exist - process it [00:08:48]produce_requested_data done [00:08:48]produce_requested_data return {"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:48]process_action_free get_value [00:08:48]json_value_free [00:08:49]json_value_free done [00:08:49]process_json_proto returns [00:08:49]Send response to host [00:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:49]free response buf [00:08:49]execute_script done [00:08:49]execute_script returns [00:08:49]free content buf [00:08:49]Sock 9.Close socket [00:08:49]Sock 9.Thread stoped [00:08:49]accept exits with 10 [00:08:49]New connection [00:08:49]New thread 3066731876 created [00:08:49]Thread 3066588516 joined [00:08:49]Waiting for new connection... [00:08:49] Sock 10.Parse request [00:08:49]Sock 10.Check first char [00:08:49]Sock 10.First char is OK [00:08:49]request: POST /json_proto HTTP/1.0 [00:08:49]Method: POST [00:08:49]URL: /json_proto [00:08:49]Method is POST - this is cgi request [00:08:49]url: /json_proto [00:08:49]query_string will be loaded in cgi processing [00:08:49]execute_cgi json_proto POST (null) [00:08:49]execute_cgi path=json_proto method=POST [00:08:49]POST find Content-Length [00:08:49]Host: 172.17.54.195:8080 [00:08:49]Content-Length: 251 [00:08:49]Content-Type: application/json [00:08:49] [00:08:49]POST finish read [00:08:49]Found Content-Length = 251 [00:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043A\u043C\u0430\u0442\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:49]execute_script... [00:08:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043A\u043C\u0430\u0442\u043E\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:49]POST & json_proto [00:08:49]process_json_proto [00:08:49]json parsed OK: [00:08:49]protocol is kg_v1.0 [00:08:49]action value=x_report [00:08:49]process_action x_report [00:08:49]cmd_x_report [00:08:49]MH_GetDate [00:08:49]Write to MH i2c: F0 00 00 86 5D D2 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 86 5D 00 1E 79 21 67 8D 90 A3 66 20 [00:08:49]GetLastDocTimeStamp 1730246372 [00:08:49]current date 1730246942 [00:08:49]FM_GetShiftState [00:08:49]SAM_PROTO_GetShiftState [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 01 00 [00:08:49]Write to MH i2c: E2 08 00 87 5D 80 13 01 00 00 00 00 00 61 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 0E 00 87 5D 00 09 00 01 97 2B 20 67 00 00 00 00 90 00 B6 [00:08:49]RAPDU: 09 00 01 97 2B 20 67 00 00 00 00 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetShiftState done [00:08:49]FM_GetShiftState done [00:08:49]KKMCreateXReportDocument [00:08:49]Load OK [00:08:49]Malloc new data [00:08:49]MH_GetDate [00:08:49]Write to MH i2c: F0 00 00 88 5D D4 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: F0 09 00 88 5D 00 1F 79 21 67 8D 90 A3 66 23 [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 11 00 00 [00:08:49]Write to MH i2c: E2 08 00 89 5D 80 11 00 00 00 00 00 00 60 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 17 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 17 00 89 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 AF [00:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetFieldsCounters [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 00 00 [00:08:49]Write to MH i2c: E2 08 00 8A 5D 80 13 00 00 00 00 00 00 63 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 8A 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 AE [00:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AC 3D 00 00 0E 04 04 00 AC 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 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetFieldsCounters done [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]Malloc new data [00:08:49]KKMCreateXReportDocument OK [00:08:49]KKMSetXReportData OK [00:08:49]KKMPrepareXReportFMData [00:08:49]SAM_PROTO_GetShiftData [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 02 00 [00:08:49]Write to MH i2c: E2 08 00 8B 5D 80 13 02 00 00 00 00 00 66 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 8B 5D 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 83 [00:08:50]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 [00:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 8C 5D 80 17 00 00 00 00 00 00 69 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 8C 5D 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 82 [00:08:50]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 [00:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 8D 5D 80 17 00 00 00 00 00 00 6A [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 8D 5D 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1E [00:08:51]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 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 8E 5D 80 17 00 00 00 00 00 00 6B [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 8E 5D 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 E9 [00:08:51]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 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 8F 5D 80 17 00 00 00 00 00 00 6C [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 CC 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 CC 00 8F 5D 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 4D [00:08:52]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 [00:08:52]wFMCommunicate OK [00:08:52]SAM_PROTO_GetShiftData done [00:08:52]1194 (1195) - счетчики итогов смены [00:08:52] 1134 (4) - 134 - количество чеков со всеми признаками расчетов [00:08:52] 1129 (156) - счетчики операций «приход» [00:08:52] 1135 (4) - 134 - количество чеков по признаку расчетов [00:08:52] 1201 (3) - 132861.00 - общая итоговая сумма в чеках [00:08:52] 1136 (3) - 105811.00 - итоговая сумма в чеках наличными [00:08:52] 1138 (3) - 27050.00 - итоговая сумма в чеках безналичными [00:08:52] 1024 (123) - суммы налогов [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 0% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (12) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (3) - 14112.75 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (12) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (3) - 1175.97 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1130 (141) - счетчики операций «возврат прихода» [00:08:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:52] 1024 (117) - суммы налогов [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 0% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1131 (141) - счетчики операций «расход» [00:08:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:52] 1024 (117) - суммы налогов [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 0% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1132 (141) - счетчики операций «возврат расхода» [00:08:52] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:52] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:52] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:52] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:52] 1024 (117) - суммы налогов [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 0% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1006 (9) - суммы НДС [00:08:52] 1010 (1) - 12% - код ставки НДС [00:08:52] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 2% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 3% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 5% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 0,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1007 (9) - суммы НСП [00:08:52] 1014 (1) - 1,50% - код ставки НСП [00:08:52] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:52] 1133 (588) - - счетчики коррекции - не используются [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1194 (04AA) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1134 (046E) [00:08:52]Malloc new data [00:08:52]Processing tag 1129 (0469) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1014 (03F6) [00:08:52]Malloc new data [00:08:52]Processing tag 1015 (03F7) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1130 (046A) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1135 (046F) [00:08:52]Malloc new data [00:08:52]Processing tag 1201 (04B1) [00:08:52]Malloc new data [00:08:52]Processing tag 1136 (0470) [00:08:52]Malloc new data [00:08:52]Processing tag 1138 (0472) [00:08:52]Malloc new data [00:08:52]Processing tag 1024 (0400) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1006 (03EE) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1006 (03EE) [00:08:52]OFD Sender: No OFD packet to send [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:52]Processing tag 1010 (03F2) [00:08:52]Malloc new data [00:08:52]Processing tag 1011 (03F3) [00:08:52]Malloc new data [00:08:52]SetTLVBufToDocument err=0 [00:08:52]Processing tag 1007 (03EF) [00:08:52]Load OK [00:08:52]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1131 (046B) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1135 (046F) [00:08:53]Malloc new data [00:08:53]Processing tag 1201 (04B1) [00:08:53]Malloc new data [00:08:53]Processing tag 1136 (0470) [00:08:53]Malloc new data [00:08:53]Processing tag 1138 (0472) [00:08:53]Malloc new data [00:08:53]Processing tag 1024 (0400) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1006 (03EE) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1010 (03F2) [00:08:53]Malloc new data [00:08:53]Processing tag 1011 (03F3) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1006 (03EE) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1010 (03F2) [00:08:53]Malloc new data [00:08:53]Processing tag 1011 (03F3) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1132 (046C) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1135 (046F) [00:08:53]Malloc new data [00:08:53]Processing tag 1201 (04B1) [00:08:53]Malloc new data [00:08:53]Processing tag 1136 (0470) [00:08:53]Malloc new data [00:08:53]Processing tag 1138 (0472) [00:08:53]Malloc new data [00:08:53]Processing tag 1024 (0400) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1006 (03EE) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1010 (03F2) [00:08:53]Malloc new data [00:08:53]Processing tag 1011 (03F3) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1006 (03EE) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1010 (03F2) [00:08:53]Malloc new data [00:08:53]Processing tag 1011 (03F3) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1007 (03EF) [00:08:53]Load OK [00:08:53]SetTLVBufToDocument [00:08:53]Processing tag 1014 (03F6) [00:08:53]Malloc new data [00:08:53]Processing tag 1015 (03F7) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Processing tag 1133 (046D) [00:08:53]Malloc new data [00:08:53]SetTLVBufToDocument err=0 [00:08:53]SetTLVBufToDocument err=0 [00:08:53]Malloc new data [00:08:53]SAM_PROTO_GetFMData [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 03 00 [00:08:53]Write to MH i2c: E2 08 00 90 5D 80 13 03 00 00 00 00 00 6C [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 90 5D 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 D6 [00:08:53]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 91 5D 80 17 00 00 00 00 00 00 6E [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 91 5D 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 [00:09:40] *** EcrCore started. Build 196 *** [00:09:40]MH_InterfaceInit /dev/i2c-1 [00:09:40]Malloc ok [00:09:40]MH_GetMetrics [00:09:40]Write to MH i2c: 00 00 00 01 00 00 [00:09:40]/dev/ttyS4 opened [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 00 29 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 B3 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 57 [00:09:40]Are we in boot? [00:09:40]We are not in boot now [00:09:40]Write to MH i2c: 01 00 00 02 00 02 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 01 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 01 07 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: 01 07 00 02 00 00 00 00 00 00 FF 0F 17 [00:09:40]Model is 3 [00:09:40]MH firmware is 30620 [00:09:40]MH boot firmware is 3 [00:09:40]MH_SetPrinterDots 448 [00:09:40]HeadWidthInBytes 56 [00:09:40]maxmasksize 7 [00:09:40]Write to MH i2c: D6 06 00 03 00 41 00 60 00 FF FF 7D [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D6 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D6 01 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D6 01 00 03 00 00 D9 [00:09:40]Write to MH i2c: D5 00 00 04 00 D8 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D5 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D5 01 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: D5 01 00 04 00 00 D9 [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]LoadDictionaryFromArray [00:09:40]Load OK [00:09:40]ExternCall_SetCallbacks [00:09:40]NVStorageInit [00:09:40]MH_GetDate [00:09:40]Write to MH i2c: F0 00 00 05 00 F4 [00:09:40]Write i2c OK [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: F0 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: F0 09 00 [00:09:40]MH_I2C_Read... [00:09:40]Read from MH i2c: F0 09 00 05 00 00 52 79 21 67 8D 90 A3 66 76 [00:09:54]Current date/time: 30.10.2024 00:09 [00:09:54]FM_Init [00:09:54]wFMConnect [00:09:54]MH_SAM_On [00:09:54]Write to MH i2c: E0 00 00 06 00 E5 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_init finished! [00:09:54]*** atr: [00:09:54]*** 0F 3B D5 18 FF 81 91 FE [00:09:54]*** 1F C3 80 73 C8 21 10 0A [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]*** 00 00 00 00 00 00 00 00 [00:09:54]Read from MH i2c: E0 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E0 10 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [00:09:54]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:09:54]wFMCommunicate request_size=10 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:09:54]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [00:09:54]RAPDU: 90 00 [00:09:54]wFMCommunicate OK [00:09:54]wFMCommunicate request_size=4 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 11 00 00 [00:09:54]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 17 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D1 [00:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:09:54]wFMCommunicate OK [00:09:54]Detected FM SN is 0000000000963325 [00:09:54]Stored FM SN is 0000000000963325 [00:09:54]wFMCommunicate request_size=9 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 16 00 00 04 FC 97 00 00 [00:09:54]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 FC 97 00 00 00 00 23 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:09:54]RAPDU: 90 00 [00:09:54]wFMCommunicate OK [00:09:54]FM PIN OK [00:09:54]wFMCommunicate request_size=8 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 14 04 00 03 02 00 01 [00:09:54]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [00:09:54]RAPDU: 90 00 [00:09:54]wFMCommunicate OK [00:09:54]wFMCommunicate request_size=13 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:09:54]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:09:54]RAPDU: 90 00 [00:09:54]wFMCommunicate OK [00:09:54]wFMCommunicate request_size=4 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 11 00 00 [00:09:54]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 17 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D5 [00:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:09:54]wFMCommunicate OK [00:09:54]DocumentArchiveInit [00:09:54]Start Httpd... [00:09:54]Httpd thread 3067440484 created [00:09:54]Write to MH i2c: 01 00 00 0D 00 0D [00:09:54]OFD Sender: No OFD packet to send [00:09:54]Allocated Socket 5 [00:09:54]Bind OK [00:09:54]Listen OK [00:09:54]httpd running on port 8080 [00:09:54]Waiting for new connection... [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: 01 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: 01 07 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [00:09:54]MH Int Process started [00:09:57]accept exits with 6 [00:09:57]New connection [00:09:57]New thread 3067153764 created [00:09:57]Waiting for new connection... [00:09:57] Sock 6.Parse request [00:09:57]Sock 6.Check first char [00:09:57]Sock 6.First char is OK [00:09:57]request: POST /json_proto HTTP/1.0 [00:09:57]Method: POST [00:09:57]URL: /json_proto [00:09:57]Method is POST - this is cgi request [00:09:57]url: /json_proto [00:09:57]query_string will be loaded in cgi processing [00:09:57]execute_cgi json_proto POST (null) [00:09:57]execute_cgi path=json_proto method=POST [00:09:57]POST find Content-Length [00:09:57]Host: 172.17.54.195:8080 [00:09:57]Content-Length: 215 [00:09:57]Content-Type: application/json [00:09:57] [00:09:57]POST finish read [00:09:57]Found Content-Length = 215 [00:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:57]execute_script... [00:09:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:57]POST & json_proto [00:09:57]process_json_proto [00:09:57]json parsed OK: [00:09:57]protocol is kg_v1.0 [00:09:57]action value=get_value [00:09:57]process_action get_value [00:09:57]cmd_get_value [00:09:57]process_action get_value done [00:09:57]requested_data is exist [00:09:57]produce_requested_data [00:09:57]requested_item kkm.sn is exist - process it [00:09:57]requested_item kkm.ver is exist - process it [00:09:57]requested_item fm.sn is exist - process it [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 11 00 00 [00:09:57]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 17 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D7 [00:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:09:57]wFMCommunicate OK [00:09:57]requested_item fd.num is exist - process it [00:09:57]SAM_PROTO_GetFieldsCounters [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 13 00 00 [00:09:57]Write to MH i2c: E2 08 00 0F 00 80 13 00 00 00 00 00 00 8B [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 62 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 62 00 0F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AD 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AD 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:57]wFMCommunicate OK [00:09:57]SAM_PROTO_GetFieldsCounters done [00:09:57]requested_item shift.num is exist - process it [00:09:57]requested_item shift.opened is exist - process it [00:09:57]req_shift_opened [00:09:57]FM_GetShiftState [00:09:57]SAM_PROTO_GetShiftState [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 13 01 00 [00:09:57]Write to MH i2c: E2 08 00 10 00 80 13 01 00 00 00 00 00 8D [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 0E 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 0E 00 10 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 98 [00:09:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:57]wFMCommunicate OK [00:09:57]SAM_PROTO_GetShiftState done [00:09:57]FM_GetShiftState done [00:09:57]req_shift_opened done [00:09:57]requested_item shift.open_date is exist - process it [00:09:57]req_shift_open_date [00:09:57]FM_GetShiftState [00:09:57]SAM_PROTO_GetShiftState [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 13 01 00 [00:09:57]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 0E 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 0E 00 11 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 99 [00:09:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:09:57]wFMCommunicate OK [00:09:57]SAM_PROTO_GetShiftState done [00:09:57]FM_GetShiftState done [00:09:57]req_shift_open_date done [00:09:57]produce_requested_data done [00:09:57]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15789,"shift.num":172,"shift.opened":0,"shift.open_date":0} [00:09:57]process_action_free get_value [00:09:57]json_value_free [00:09:57]json_value_free done [00:09:57]process_json_proto returns [00:09:57]Send response to host [00:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15789,"shift.num":172,"shift.opened":0,"shift.open_date":0}}} [00:09:57]free response buf [00:09:57]execute_script done [00:09:57]execute_script returns [00:09:57]free content buf [00:09:57]Sock 6.Close socket [00:09:57]Sock 6.Thread stoped [00:09:57]accept exits with 9 [00:09:57]New connection [00:09:57]New thread 3067010404 created [00:09:57]Thread 3067153764 joined [00:09:57]Waiting for new connection... [00:09:57] Sock 9.Parse request [00:09:57]Sock 9.Check first char [00:09:57]Sock 9.First char is OK [00:09:57]request: POST /json_proto HTTP/1.0 [00:09:57]Method: POST [00:09:57]URL: /json_proto [00:09:57]Method is POST - this is cgi request [00:09:57]url: /json_proto [00:09:57]query_string will be loaded in cgi processing [00:09:57]execute_cgi json_proto POST (null) [00:09:57]execute_cgi path=json_proto method=POST [00:09:57]POST find Content-Length [00:09:57]Host: 172.17.54.195:8080 [00:09:57]Content-Length: 331 [00:09:57]Content-Type: application/json [00:09:57] [00:09:57]POST finish read [00:09:57]Found Content-Length = 331 [00:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:57]execute_script... [00:09:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:58]POST & json_proto [00:09:58]process_json_proto [00:09:58]json parsed OK: [00:09:58]protocol is kg_v1.0 [00:09:58]action value=get_value [00:09:58]process_action get_value [00:09:58]cmd_get_value [00:09:58]process_action get_value done [00:09:58]requested_data is exist [00:09:58]produce_requested_data [00:09:58]requested_item fm.sale.total is exist - process it [00:09:58]SAM_PROTO_GetFMData [00:09:58]wFMCommunicate request_size=4 [00:09:58]MH_SAM_APDU [00:09:58]CAPDU: 80 13 03 00 [00:09:58]Write to MH i2c: E2 08 00 12 00 80 13 03 00 00 00 00 00 91 [00:09:58]Write i2c OK [00:09:58]MH_I2C_Read... [00:09:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:58]Read from MH i2c: E2 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 12 00 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 FB [00:09:58]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:09:58]wFMCommunicate OK [00:09:58]wFMCommunicate request_size=4 [00:09:58]MH_SAM_APDU [00:09:58]CAPDU: 80 17 00 00 [00:09:58]Write to MH i2c: E2 08 00 13 00 80 17 00 00 00 00 00 00 93 [00:09:58]Write i2c OK [00:09:58]MH_I2C_Read... [00:09:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:58]Read from MH i2c: E2 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 13 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 FC [00:09:58]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:09:58]wFMCommunicate OK [00:09:58]wFMCommunicate request_size=4 [00:09:58]MH_SAM_APDU [00:09:58]CAPDU: 80 17 00 00 [00:09:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [00:09:58]Write i2c OK [00:09:58]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 14 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 38 [00:09:59]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:09:59]wFMCommunicate OK [00:09:59]wFMCommunicate request_size=4 [00:09:59]MH_SAM_APDU [00:09:59]CAPDU: 80 17 00 00 [00:09:59]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:09:59]Write i2c OK [00:09:59]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 15 00 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 0F [00:09:59]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:09:59]wFMCommunicate OK [00:09:59]wFMCommunicate request_size=4 [00:09:59]MH_SAM_APDU [00:09:59]CAPDU: 80 17 00 00 [00:09:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:09:59]Write i2c OK [00:09:59]MH_I2C_Read... [00:09:59]OFD Sender: No OFD packet to send [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 DC 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 DC 00 16 00 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 7A [00:09:59]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:59]wFMCommunicate OK [00:09:59]SAM_PROTO_GetFMData done [00:09:59]requested_item fm.sale_refund.total is exist - process it [00:09:59]requested_item fm.buy.total is exist - process it [00:09:59]requested_item shift.sale.total is exist - process it [00:09:59]SAM_PROTO_GetShiftData [00:09:59]wFMCommunicate request_size=4 [00:09:59]MH_SAM_APDU [00:09:59]CAPDU: 80 13 02 00 [00:09:59]Write to MH i2c: E2 08 00 17 00 80 13 02 00 00 00 00 00 95 [00:09:59]Write i2c OK [00:09:59]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 17 00 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 B2 [00:10:00]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 [00:10:00]wFMCommunicate OK [00:10:00]wFMCommunicate request_size=4 [00:10:00]MH_SAM_APDU [00:10:00]CAPDU: 80 17 00 00 [00:10:00]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [00:10:00]Write i2c OK [00:10:00]MH_I2C_Read... [00:10:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:00]Read from MH i2c: E2 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 18 00 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 B1 [00:10:00]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 [00:10:00]wFMCommunicate OK [00:10:00]wFMCommunicate request_size=4 [00:10:00]MH_SAM_APDU [00:10:00]CAPDU: 80 17 00 00 [00:10:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [00:10:00]Write i2c OK [00:10:00]MH_I2C_Read... [00:10:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:00]Read from MH i2c: E2 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 19 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4D [00:10:00]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 [00:10:00]wFMCommunicate OK [00:10:00]wFMCommunicate request_size=4 [00:10:00]MH_SAM_APDU [00:10:00]CAPDU: 80 17 00 00 [00:10:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:10:00]Write i2c OK [00:10:00]MH_I2C_Read... [00:10:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:00]Read from MH i2c: E2 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 [00:10:00]MH_I2C_Read... [00:10:00]Read from MH i2c: E2 FD 00 1A 00 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 18 [00:10:00]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 [00:10:00]wFMCommunicate OK [00:10:00]wFMCommunicate request_size=4 [00:10:00]MH_SAM_APDU [00:10:00]CAPDU: 80 17 00 00 [00:10:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:10:00]Write i2c OK [00:10:00]MH_I2C_Read... [00:10:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:10:01]Read from MH i2c: E2 [00:10:01]MH_I2C_Read... [00:10:01]Read from MH i2c: E2 CC 00 [00:10:01]MH_I2C_Read... [00:10:01]Read from MH i2c: E2 CC 00 1B 00 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 7C [00:10:01]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 [00:10:01]wFMCommunicate OK [00:10:01]SAM_PROTO_GetShiftData done [00:10:01]requested_item shift.sale.total_cash is exist - process it [00:10:01]requested_item shift.sale_refund.total is exist - process it [00:10:01]requested_item shift.sale_refund.total_cash is exist - process it [00:10:01]requested_item shift.buy.total is exist - process it [00:10:01]requested_item shift.buy.total_cash is exist - process it [00:10:01]produce_requested_data done [00:10:01]produce_requested_data return {"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:10:01]process_action_free get_value [00:10:01]json_value_free [00:10:01]json_value_free done [00:10:01]process_json_proto returns [00:10:01]Send response to host [00:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:10:01]free response buf [00:10:01]execute_script done [00:10:01]execute_script returns [00:10:01]free content buf [00:10:01]Sock 9.Close socket [00:10:01]Sock 9.Thread stoped [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:53]accept exits with 6 [00:17:53]New connection [00:17:53]New thread 3067153764 created [00:17:53]Thread 3067010404 joined [00:17:53]Waiting for new connection... [00:17:53] Sock 6.Parse request [00:17:53]Sock 6.Check first char [00:17:53]Sock 6.First char is OK [00:17:53]request: POST /json_proto HTTP/1.0 [00:17:53]Method: POST [00:17:53]URL: /json_proto [00:17:53]Method is POST - this is cgi request [00:17:53]url: /json_proto [00:17:53]query_string will be loaded in cgi processing [00:17:53]execute_cgi json_proto POST (null) [00:17:53]execute_cgi path=json_proto method=POST [00:17:53]POST find Content-Length [00:17:53]Host: 172.17.54.195:8080 [00:17:53]Content-Length: 215 [00:17:53]Content-Type: application/json [00:17:53] [00:17:53]POST finish read [00:17:53]Found Content-Length = 215 [00:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:53]execute_script... [00:17:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:53]POST & json_proto [00:17:53]process_json_proto [00:17:53]json parsed OK: [00:17:53]protocol is kg_v1.0 [00:17:53]action value=get_value [00:17:53]process_action get_value [00:17:53]cmd_get_value [00:17:53]process_action get_value done [00:17:53]requested_data is exist [00:17:53]produce_requested_data [00:17:53]requested_item kkm.sn is exist - process it [00:17:53]requested_item kkm.ver is exist - process it [00:17:53]requested_item fm.sn is exist - process it [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 11 00 00 [00:17:53]Write to MH i2c: E2 08 00 1C 00 80 11 00 00 00 00 00 00 96 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 17 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 17 00 1C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E5 [00:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:17:53]wFMCommunicate OK [00:17:53]requested_item fd.num is exist - process it [00:17:53]SAM_PROTO_GetFieldsCounters [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 13 00 00 [00:17:53]Write to MH i2c: E2 08 00 1D 00 80 13 00 00 00 00 00 00 99 [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 62 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 62 00 1D 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AD 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [00:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AD 3D 00 00 0E 04 04 00 AC 00 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:17:53]wFMCommunicate OK [00:17:53]SAM_PROTO_GetFieldsCounters done [00:17:53]requested_item shift.num is exist - process it [00:17:53]requested_item shift.opened is exist - process it [00:17:53]req_shift_opened [00:17:53]FM_GetShiftState [00:17:53]SAM_PROTO_GetShiftState [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 13 01 00 [00:17:53]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 0E 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 0E 00 1E 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A6 [00:17:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:53]wFMCommunicate OK [00:17:53]SAM_PROTO_GetShiftState done [00:17:53]FM_GetShiftState done [00:17:53]req_shift_opened done [00:17:53]requested_item shift.open_date is exist - process it [00:17:53]req_shift_open_date [00:17:53]FM_GetShiftState [00:17:53]SAM_PROTO_GetShiftState [00:17:53]wFMCommunicate request_size=4 [00:17:53]MH_SAM_APDU [00:17:53]CAPDU: 80 13 01 00 [00:17:53]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [00:17:53]Write i2c OK [00:17:53]MH_I2C_Read... [00:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:53]Read from MH i2c: E2 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 0E 00 [00:17:53]MH_I2C_Read... [00:17:53]Read from MH i2c: E2 0E 00 1F 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A7 [00:17:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:53]wFMCommunicate OK [00:17:53]SAM_PROTO_GetShiftState done [00:17:53]FM_GetShiftState done [00:17:53]req_shift_open_date done [00:17:53]produce_requested_data done [00:17:53]produce_requested_data return {"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15789,"shift.num":172,"shift.opened":0,"shift.open_date":0} [00:17:53]process_action_free get_value [00:17:53]json_value_free [00:17:53]json_value_free done [00:17:53]process_json_proto returns [00:17:53]Send response to host [00:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000014","kkm.ver":"v1.0","fm.sn":"0000000000963325","fd.num":15789,"shift.num":172,"shift.opened":0,"shift.open_date":0}}} [00:17:53]free response buf [00:17:53]execute_script done [00:17:53]execute_script returns [00:17:53]free content buf [00:17:53]Sock 6.Close socket [00:17:53]Sock 6.Thread stoped [00:17:53]accept exits with 9 [00:17:53]New connection [00:17:53]New thread 3067010404 created [00:17:53]Thread 3067153764 joined [00:17:53]Waiting for new connection... [00:17:53] Sock 9.Parse request [00:17:53]Sock 9.Check first char [00:17:53]Sock 9.First char is OK [00:17:53]request: POST /json_proto HTTP/1.0 [00:17:53]Method: POST [00:17:53]URL: /json_proto [00:17:53]Method is POST - this is cgi request [00:17:53]url: /json_proto [00:17:53]query_string will be loaded in cgi processing [00:17:53]execute_cgi json_proto POST (null) [00:17:53]execute_cgi path=json_proto method=POST [00:17:53]POST find Content-Length [00:17:53]Host: 172.17.54.195:8080 [00:17:53]Content-Length: 331 [00:17:53]Content-Type: application/json [00:17:53] [00:17:53]POST finish read [00:17:53]Found Content-Length = 331 [00:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:53]execute_script... [00:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:17:54]POST & json_proto [00:17:54]process_json_proto [00:17:54]json parsed OK: [00:17:54]protocol is kg_v1.0 [00:17:54]action value=get_value [00:17:54]process_action get_value [00:17:54]cmd_get_value [00:17:54]process_action get_value done [00:17:54]requested_data is exist [00:17:54]produce_requested_data [00:17:54]requested_item fm.sale.total is exist - process it [00:17:54]SAM_PROTO_GetFMData [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 13 03 00 [00:17:54]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 20 00 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 09 [00:17:54]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:54]OFD Sender: No OFD packet to send [00:17:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:54]Read from MH i2c: E2 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 [00:17:54]MH_I2C_Read... [00:17:54]Read from MH i2c: E2 FD 00 21 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 0A [00:17:54]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:17:54]wFMCommunicate OK [00:17:54]wFMCommunicate request_size=4 [00:17:54]MH_SAM_APDU [00:17:54]CAPDU: 80 17 00 00 [00:17:54]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [00:17:54]Write i2c OK [00:17:54]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 22 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 46 [00:17:55]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:17:55]wFMCommunicate OK [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 17 00 00 [00:17:55]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 FD 00 23 00 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 1D [00:17:55]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:17:55]wFMCommunicate OK [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 17 00 00 [00:17:55]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:17:55]Read from MH i2c: E2 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 DC 00 [00:17:55]MH_I2C_Read... [00:17:55]Read from MH i2c: E2 DC 00 24 00 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 88 [00:17:55]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:17:55]wFMCommunicate OK [00:17:55]SAM_PROTO_GetFMData done [00:17:55]requested_item fm.sale_refund.total is exist - process it [00:17:55]requested_item fm.buy.total is exist - process it [00:17:55]requested_item shift.sale.total is exist - process it [00:17:55]SAM_PROTO_GetShiftData [00:17:55]wFMCommunicate request_size=4 [00:17:55]MH_SAM_APDU [00:17:55]CAPDU: 80 13 02 00 [00:17:55]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [00:17:55]Write i2c OK [00:17:55]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 25 00 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 C0 [00:17:56]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 D4 BA CA 70 04 03 00 6C 74 A1 72 04 03 00 68 46 29 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 CB 88 15 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 5D CB 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 [00:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:56]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 26 00 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 BF [00:17:56]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 [00:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:56]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 27 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [00:17:56]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 [00:17:56]wFMCommunicate OK [00:17:56]wFMCommunicate request_size=4 [00:17:56]MH_SAM_APDU [00:17:56]CAPDU: 80 17 00 00 [00:17:56]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [00:17:56]Write i2c OK [00:17:56]MH_I2C_Read... [00:17:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:17:56]Read from MH i2c: E2 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 [00:17:56]MH_I2C_Read... [00:17:56]Read from MH i2c: E2 FD 00 28 00 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 26 [00:17:57]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 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 17 00 00 [00:17:57]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 CC 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 CC 00 29 00 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 8A [00:17:57]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 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetShiftData done [00:17:57]requested_item shift.sale.total_cash is exist - process it [00:17:57]requested_item shift.sale_refund.total is exist - process it [00:17:57]requested_item shift.sale_refund.total_cash is exist - process it [00:17:57]requested_item shift.buy.total is exist - process it [00:17:57]requested_item shift.buy.total_cash is exist - process it [00:17:57]produce_requested_data done [00:17:57]produce_requested_data return {"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:17:57]process_action_free get_value [00:17:57]json_value_free [00:17:57]json_value_free done [00:17:57]process_json_proto returns [00:17:57]Send response to host [00:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":132861.00,"shift.sale.total_cash":105811.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:17:57]free response buf [00:17:57]execute_script done [00:17:57]execute_script returns [00:17:57]free content buf [00:17:57]Sock 9.Close socket [00:17:57]Sock 9.Thread stoped [00:17:57]accept exits with 6 [00:17:57]New connection [00:17:57]New thread 3067153764 created [00:17:57]Thread 3067010404 joined [00:17:57]Waiting for new connection... [00:17:57] Sock 6.Parse request [00:17:57]Sock 6.Check first char [00:17:57]Sock 6.First char is OK [00:17:57]request: POST /json_proto HTTP/1.0 [00:17:57]Method: POST [00:17:57]URL: /json_proto [00:17:57]Method is POST - this is cgi request [00:17:57]url: /json_proto [00:17:57]query_string will be loaded in cgi processing [00:17:57]execute_cgi json_proto POST (null) [00:17:57]execute_cgi path=json_proto method=POST [00:17:57]POST find Content-Length [00:17:57]Host: 172.17.54.195:8080 [00:17:57]Content-Length: 283 [00:17:57]Content-Type: application/json [00:17:57] [00:17:57]POST finish read [00:17:57]Found Content-Length = 283 [00:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0440\u0448\u0435\u043D\u043A\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:57]execute_script... [00:17:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u0440\u0448\u0435\u043D\u043A\u0443\u043B\u043E\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:17:57]POST & json_proto [00:17:57]process_json_proto [00:17:57]json parsed OK: [00:17:57]protocol is kg_v1.0 [00:17:57]action value=open_shift [00:17:57]process_action open_shift [00:17:57]cmd_open_shift [00:17:57]MH_GetDate [00:17:57]Write to MH i2c: F0 00 00 2A 00 19 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 09 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 09 00 2A 00 00 36 7B 21 67 8D 90 A3 66 81 [00:17:57]GetLastDocTimeStamp 1730246974 [00:17:57]current date 1730247478 [00:17:57]FM_GetShiftState [00:17:57]SAM_PROTO_GetShiftState [00:17:57]wFMCommunicate request_size=4 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 13 01 00 [00:17:57]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 0E 00 2B 00 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B3 [00:17:57]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:17:57]wFMCommunicate OK [00:17:57]SAM_PROTO_GetShiftState done [00:17:57]FM_GetShiftState done [00:17:57]KKMCreateOpenShiftDocument [00:17:57]Load OK [00:17:57]Malloc new data [00:17:57]MH_GetDate [00:17:57]Write to MH i2c: F0 00 00 2C 00 1B [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 09 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: F0 09 00 2C 00 00 36 7B 21 67 8D 90 A3 66 83 [00:17:57]Malloc new data [00:17:57]KKMCreateOpenShiftDocument OK [00:17:57]KKMSetOpenShiftData OK [00:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=215 [00:17:57]tlvbuf is 00274D50 [00:17:57]KKMLoadAndSignOpenShiftData [00:17:57]SAM_PROTO_ProcessDocument [00:17:57]wFMCommunicate request_size=9 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 15 01 00 04 02 00 D7 00 [00:17:57]Write to MH i2c: E2 0C 00 2D 00 80 15 01 00 04 00 02 00 D7 00 00 00 8D [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=23 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:17:57]Write to MH i2c: E2 1A 00 2E 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 A3 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=38 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 [00:17:57]Write to MH i2c: E2 29 00 2F 00 80 15 02 00 21 00 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 00 00 96 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=95 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 15 02 00 5A F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 [00:17:57]Write to MH i2c: E2 62 00 30 00 80 15 02 00 5A 00 F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 00 00 FD [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:57]Read from MH i2c: E2 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 [00:17:57]MH_I2C_Read... [00:17:57]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [00:17:57]RAPDU: 90 00 [00:17:57]wFMCommunicate OK [00:17:57]wFMCommunicate request_size=51 [00:17:57]MH_SAM_APDU [00:17:57]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:17:57]Write to MH i2c: E2 36 00 31 00 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 63 [00:17:57]Write i2c OK [00:17:57]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [00:17:58]RAPDU: 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=13 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 15 02 00 08 F4 03 04 00 36 7B 21 67 [00:17:58]Write to MH i2c: E2 10 00 32 00 80 15 02 00 08 00 F4 03 04 00 36 7B 21 67 00 00 F6 [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [00:17:58]RAPDU: 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=25 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 [00:17:58]Write to MH i2c: E2 1C 00 33 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 00 00 1C [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 03 00 33 00 00 90 00 A7 [00:17:58]RAPDU: 90 00 [00:17:58]wFMCommunicate OK [00:17:58]wFMCommunicate request_size=4 [00:17:58]MH_SAM_APDU [00:17:58]CAPDU: 80 15 03 00 [00:17:58]Write to MH i2c: E2 08 00 34 00 80 15 03 00 00 00 00 00 B5 [00:17:58]Write i2c OK [00:17:58]MH_I2C_Read... [00:17:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:17:58]Read from MH i2c: E2 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 38 00 [00:17:58]MH_I2C_Read... [00:17:58]Read from MH i2c: E2 38 00 34 00 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AE 3D 00 00 0E 04 04 00 AD 00 00 00 35 04 06 00 DA CA 8B 1C 21 AF 90 00 30 [00:17:58]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AE 3D 00 00 0E 04 04 00 AD 00 00 00 35 04 06 00 DA CA 8B 1C 21 AF 90 00 [00:17:58]wFMCommunicate OK [00:17:58]SAM_PROTO_ProcessDocument answer len = 51 [00:17:58]SAM_PROTO_ProcessDocument done [00:17:58]SetTLVBufToDocument [00:17:58]Processing tag 1209 (04B9) [00:17:58]Malloc new data [00:17:58]Processing tag 1041 (0411) [00:17:58]Processing tag 1040 (0410) [00:17:58]Malloc new data [00:17:58]Processing tag 1038 (040E) [00:17:58]Malloc new data [00:17:58]Processing tag 1077 (0435) [00:17:58]Malloc new data [00:17:58]SetTLVBufToDocument err=0 [00:17:58]KKMLoadAndSignOpenShiftData store KKM data [00:17:58]KKMLoadAndSignOpenShiftData err=0 [00:17:58]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шаршенкулова Н. Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 Место: АЗС № 178 "Партнер Нефть" 30.10.2024 00:17 Смена: 173 РНМ: 0000000000161798 ЗНМ: 0300000014 ФД: 15790 ФМ: 0000000000963325 ФПД: 240563452125615 [00:17:58]StoreToDocumentArchive [00:17:58]shift 173 fd 15790 [00:17:58]Create dir for shift 0173 [00:17:58]save to /storage/0173/doc_00015790 [00:17:58]save last doc name /storage/0173/doc_00015790 to /storage/kkm_last_doc_name [00:17:58]save OK [00:17:58]Clear old archive folders... [00:17:58]Remove dir /storage/0172 [00:17:58]opendir ok [00:17:58]file . [00:17:58]file .. [00:17:58]file doc_00015654 [00:17:58]remove file /storage/0172/doc_00015654 [00:17:58]file doc_00015655 [00:17:58]remove file /storage/0172/doc_00015655 [00:17:58]file doc_00015656 [00:17:58]remove file /storage/0172/doc_00015656 [00:17:58]file doc_00015657 [00:17:58]remove file /storage/0172/doc_00015657 [00:17:58]file doc_00015658 [00:17:58]remove file /storage/0172/doc_00015658 [00:17:58]file doc_00015659 [00:17:58]remove file /storage/0172/doc_00015659 [00:17:58]file doc_00015660 [00:17:58]remove file /storage/0172/doc_00015660 [00:17:58]file doc_00015661 [00:17:58]remove file /storage/0172/doc_00015661 [00:17:58]file doc_00015662 [00:17:58]remove file /storage/0172/doc_00015662 [00:17:58]file doc_00015663 [00:17:58]remove file /storage/0172/doc_00015663 [00:17:58]file doc_00015664 [00:17:58]remove file /storage/0172/doc_00015664 [00:17:58]file doc_00015665 [00:17:58]remove file /storage/0172/doc_00015665 [00:17:58]file doc_00015666 [00:17:58]remove file /storage/0172/doc_00015666 [00:17:58]file doc_00015667 [00:17:58]remove file /storage/0172/doc_00015667 [00:17:58]file doc_00015668 [00:17:58]remove file /storage/0172/doc_00015668 [00:17:58]file doc_00015669 [00:17:58]remove file /storage/0172/doc_00015669 [00:17:58]file doc_00015670 [00:17:58]remove file /storage/0172/doc_00015670 [00:17:58]file doc_00015671 [00:17:58]remove file /storage/0172/doc_00015671 [00:17:58]file doc_00015672 [00:17:58]remove file /storage/0172/doc_00015672 [00:17:58]file doc_00015673 [00:17:58]remove file /storage/0172/doc_00015673 [00:17:58]file doc_00015674 [00:17:58]remove file /storage/0172/doc_00015674 [00:17:58]file doc_00015675 [00:17:58]remove file /storage/0172/doc_00015675 [00:17:58]file doc_00015676 [00:17:58]remove file /storage/0172/doc_00015676 [00:17:58]file doc_00015677 [00:17:58]remove file /storage/0172/doc_00015677 [00:17:58]file doc_00015678 [00:17:58]remove file /storage/0172/doc_00015678 [00:17:58]file doc_00015679 [00:17:58]remove file /storage/0172/doc_00015679 [00:17:58]file doc_00015680 [00:17:58]remove file /storage/0172/doc_00015680 [00:17:58]file doc_00015681 [00:17:58]remove file /storage/0172/doc_00015681 [00:17:58]file doc_00015682 [00:17:58]remove file /storage/0172/doc_00015682 [00:17:58]file doc_00015683 [00:17:58]remove file /storage/0172/doc_00015683 [00:17:58]file doc_00015684 [00:17:58]remove file /storage/0172/doc_00015684 [00:17:58]file doc_00015685 [00:17:58]remove file /storage/0172/doc_00015685 [00:17:58]file doc_00015686 [00:17:58]remove file /storage/0172/doc_00015686 [00:17:58]file doc_00015687 [00:17:58]remove file /storage/0172/doc_00015687 [00:17:58]file doc_00015688 [00:17:58]remove file /storage/0172/doc_00015688 [00:17:58]file doc_00015689 [00:17:58]remove file /storage/0172/doc_00015689 [00:17:58]file doc_00015690 [00:17:58]remove file /storage/0172/doc_00015690 [00:17:58]file doc_00015691 [00:17:58]remove file /storage/0172/doc_00015691 [00:17:58]file doc_00015692 [00:17:58]remove file /storage/0172/doc_00015692 [00:17:58]file doc_00015693 [00:17:58]remove file /storage/0172/doc_00015693 [00:17:58]file doc_00015694 [00:17:58]remove file /storage/0172/doc_00015694 [00:17:58]file doc_00015695 [00:17:58]remove file /storage/0172/doc_00015695 [00:17:58]file doc_00015696 [00:17:58]remove file /storage/0172/doc_00015696 [00:17:58]file doc_00015697 [00:17:58]remove file /storage/0172/doc_00015697 [00:17:58]file doc_00015698 [00:17:58]remove file /storage/0172/doc_00015698 [00:17:58]file doc_00015699 [00:17:58]remove file /storage/0172/doc_00015699 [00:17:58]file doc_00015700 [00:17:58]remove file /storage/0172/doc_00015700 [00:17:58]file doc_00015701 [00:17:58]remove file /storage/0172/doc_00015701 [00:17:58]file doc_00015702 [00:17:58]remove file /storage/0172/doc_00015702 [00:17:58]file doc_00015703 [00:17:58]remove file /storage/0172/doc_00015703 [00:17:58]file doc_00015704 [00:17:58]remove file /storage/0172/doc_00015704 [00:17:58]file doc_00015705 [00:17:58]remove file /storage/0172/doc_00015705 [00:17:58]file doc_00015706 [00:17:58]remove file /storage/0172/doc_00015706 [00:17:58]file doc_00015707 [00:17:58]remove file /storage/0172/doc_00015707 [00:17:58]file doc_00015708 [00:17:58]remove file /storage/0172/doc_00015708 [00:17:58]file doc_00015709 [00:17:58]remove file /storage/0172/doc_00015709 [00:17:58]file doc_00015710 [00:17:58]remove file /storage/0172/doc_00015710 [00:17:58]file doc_00015711 [00:17:58]remove file /storage/0172/doc_00015711 [00:17:58]file doc_00015712 [00:17:58]remove file /storage/0172/doc_00015712 [00:17:58]file doc_00015713 [00:17:58]remove file /storage/0172/doc_00015713 [00:17:58]file doc_00015714 [00:17:58]remove file /storage/0172/doc_00015714 [00:17:58]file doc_00015715 [00:17:58]remove file /storage/0172/doc_00015715 [00:17:58]file doc_00015716 [00:17:58]remove file /storage/0172/doc_00015716 [00:17:58]file doc_00015717 [00:17:58]remove file /storage/0172/doc_00015717 [00:17:58]file doc_00015718 [00:17:58]remove file /storage/0172/doc_00015718 [00:17:58]file doc_00015719 [00:17:58]remove file /storage/0172/doc_00015719 [00:17:58]file doc_00015720 [00:17:58]remove file /storage/0172/doc_00015720 [00:17:58]file doc_00015721 [00:17:58]remove file /storage/0172/doc_00015721 [00:17:58]file doc_00015722 [00:17:58]remove file /storage/0172/doc_00015722 [00:17:58]file doc_00015723 [00:17:58]remove file /storage/0172/doc_00015723 [00:17:58]file doc_00015724 [00:17:58]remove file /storage/0172/doc_00015724 [00:17:58]file doc_00015725 [00:17:58]remove file /storage/0172/doc_00015725 [00:17:58]file doc_00015726 [00:17:58]remove file /storage/0172/doc_00015726 [00:17:58]file doc_00015727 [00:17:58]remove file /storage/0172/doc_00015727 [00:17:58]file doc_00015728 [00:17:58]remove file /storage/0172/doc_00015728 [00:17:58]file doc_00015729 [00:17:58]remove file /storage/0172/doc_00015729 [00:17:58]file doc_00015730 [00:17:58]remove file /storage/0172/doc_00015730 [00:17:58]file doc_00015731 [00:17:58]remove file /storage/0172/doc_00015731 [00:17:58]file doc_00015732 [00:17:58]remove file /storage/0172/doc_00015732 [00:17:58]file doc_00015733 [00:17:58]remove file /storage/0172/doc_00015733 [00:17:58]file doc_00015734 [00:17:58]remove file /storage/0172/doc_00015734 [00:17:58]file doc_00015735 [00:17:58]remove file /storage/0172/doc_00015735 [00:17:58]file doc_00015736 [00:17:58]remove file /storage/0172/doc_00015736 [00:17:58]file doc_00015737 [00:17:58]remove file /storage/0172/doc_00015737 [00:17:58]file doc_00015738 [00:17:58]remove file /storage/0172/doc_00015738 [00:17:58]file doc_00015739 [00:17:58]remove file /storage/0172/doc_00015739 [00:17:58]file doc_00015740 [00:17:58]remove file /storage/0172/doc_00015740 [00:17:58]file doc_00015741 [00:17:58]remove file /storage/0172/doc_00015741 [00:17:58]file doc_00015742 [00:17:58]remove file /storage/0172/doc_00015742 [00:17:58]file doc_00015743 [00:17:58]remove file /storage/0172/doc_00015743 [00:17:58]file doc_00015744 [00:17:58]remove file /storage/0172/doc_00015744 [00:17:58]file doc_00015745 [00:17:58]remove file /storage/0172/doc_00015745 [00:17:58]file doc_00015746 [00:17:58]remove file /storage/0172/doc_00015746 [00:17:58]file doc_00015747 [00:17:58]remove file /storage/0172/doc_00015747 [00:17:58]file doc_00015748 [00:17:58]remove file /storage/0172/doc_00015748 [00:17:58]file doc_00015749 [00:17:58]remove file /storage/0172/doc_00015749 [00:17:58]file doc_00015750 [00:17:58]remove file /storage/0172/doc_00015750 [00:17:58]file doc_00015751 [00:17:58]remove file /storage/0172/doc_00015751 [00:17:58]file doc_00015752 [00:17:58]remove file /storage/0172/doc_00015752 [00:17:58]file doc_00015753 [00:17:58]remove file /storage/0172/doc_00015753 [00:17:58]file doc_00015754 [00:17:58]remove file /storage/0172/doc_00015754 [00:17:58]file doc_00015755 [00:17:58]remove file /storage/0172/doc_00015755 [00:17:58]file doc_00015756 [00:17:58]remove file /storage/0172/doc_00015756 [00:17:58]file doc_00015757 [00:17:58]remove file /storage/0172/doc_00015757 [00:17:58]file doc_00015758 [00:17:58]remove file /storage/0172/doc_00015758 [00:17:58]file doc_00015759 [00:17:58]remove file /storage/0172/doc_00015759 [00:17:58]file doc_00015760 [00:17:58]remove file /storage/0172/doc_00015760 [00:17:58]file doc_00015761 [00:17:58]remove file /storage/0172/doc_00015761 [00:17:58]file doc_00015762 [00:17:58]remove file /storage/0172/doc_00015762 [00:17:58]file doc_00015763 [00:17:58]remove file /storage/0172/doc_00015763 [00:17:58]file doc_00015764 [00:17:58]remove file /storage/0172/doc_00015764 [00:17:58]file doc_00015765 [00:17:58]remove file /storage/0172/doc_00015765 [00:17:58]file doc_00015766 [00:17:58]remove file /storage/0172/doc_00015766 [00:17:58]file doc_00015767 [00:17:58]remove file /storage/0172/doc_00015767 [00:17:58]file doc_00015768 [00:17:58]remove file /storage/0172/doc_00015768 [00:17:58]file doc_00015769 [00:17:58]remove file /storage/0172/doc_00015769 [00:17:58]file doc_00015770 [00:17:58]remove file /storage/0172/doc_00015770 [00:17:58]file doc_00015771 [00:17:58]remove file /storage/0172/doc_00015771 [00:17:58]file doc_00015772 [00:17:59]remove file /storage/0172/doc_00015772 [00:17:59]file doc_00015773 [00:17:59]remove file /storage/0172/doc_00015773 [00:17:59]file doc_00015774 [00:17:59]remove file /storage/0172/doc_00015774 [00:17:59]file doc_00015775 [00:17:59]remove file /storage/0172/doc_00015775 [00:17:59]file doc_00015776 [00:17:59]remove file /storage/0172/doc_00015776 [00:17:59]file doc_00015777 [00:17:59]remove file /storage/0172/doc_00015777 [00:17:59]file doc_00015778 [00:17:59]remove file /storage/0172/doc_00015778 [00:17:59]file doc_00015779 [00:17:59]remove file /storage/0172/doc_00015779 [00:17:59]file doc_00015780 [00:17:59]remove file /storage/0172/doc_00015780 [00:17:59]file doc_00015781 [00:17:59]remove file /storage/0172/doc_00015781 [00:17:59]file doc_00015782 [00:17:59]remove file /storage/0172/doc_00015782 [00:17:59]file doc_00015783 [00:17:59]remove file /storage/0172/doc_00015783 [00:17:59]file doc_00015784 [00:17:59]remove file /storage/0172/doc_00015784 [00:17:59]file doc_00015785 [00:17:59]remove file /storage/0172/doc_00015785 [00:17:59]file doc_00015786 [00:17:59]remove file /storage/0172/doc_00015786 [00:17:59]file doc_00015787 [00:17:59]remove file /storage/0172/doc_00015787 [00:17:59]file doc_00015788 [00:17:59]remove file /storage/0172/doc_00015788 [00:17:59]file doc_00015789 [00:17:59]remove file /storage/0172/doc_00015789 [00:17:59]remove dir /storage/0172 [00:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:17:59]tlvbuf is 00273F30 [00:17:59]SAM_PROTO_ClearQueue [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 09 00 00 [00:17:59]Write to MH i2c: E2 08 00 35 00 80 09 00 00 00 00 00 00 A7 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 35 00 00 90 00 A9 [00:17:59]RAPDU: 90 00 [00:17:59]wFMCommunicate OK [00:17:59]SAM_PROTO_ClearQueue done [00:17:59]KKMCreateOFDPacket [00:17:59]OFDProtocolAddRootSTLVToBuf [00:17:59]FM_MakeSignedData [00:17:59]FM_MakeSignedData [00:17:59]SAM_PROTO_SignData [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 0D 01 02 [00:17:59]Write to MH i2c: E2 08 00 36 00 80 0D 01 02 00 00 00 00 AF [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 36 00 00 90 00 AA [00:17:59]RAPDU: 90 00 [00:17:59]wFMCommunicate OK [00:17:59]wFMCommunicate request_size=255 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 0D 02 02 FA 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 36 7B 21 67 0E 04 04 00 AD 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 11 04 10 00 30 30 30 30 30 30 [00:17:59]Write to MH i2c: E2 02 01 37 00 80 0D 02 02 FA 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 36 7B 21 67 0E 04 04 00 AD 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 11 04 10 00 30 30 30 30 30 30 00 00 57 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 37 00 00 90 00 AB [00:17:59]RAPDU: 90 00 [00:17:59]wFMCommunicate OK [00:17:59]wFMCommunicate request_size=25 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 0D 02 02 14 30 30 30 30 39 36 33 33 32 35 35 04 06 00 DA CA 8B 1C 21 AF [00:17:59]Write to MH i2c: E2 1C 00 38 00 80 0D 02 02 14 00 30 30 30 30 39 36 33 33 32 35 35 04 06 00 DA CA 8B 1C 21 AF 00 00 30 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [00:17:59]RAPDU: 90 00 [00:17:59]wFMCommunicate OK [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 0D 03 02 [00:17:59]Write to MH i2c: E2 08 00 39 00 80 0D 03 02 00 00 00 00 B4 [00:17:59]OFD Sender: No OFD packet to send [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 0B 00 [00:17:59]MH_I2C_Read... [00:17:59]Read from MH i2c: E2 0B 00 39 00 00 D2 2A E7 27 B3 75 17 73 90 00 71 [00:17:59]RAPDU: D2 2A E7 27 B3 75 17 73 90 00 [00:17:59]wFMCommunicate OK [00:17:59]SAM_PROTO_SignData done [00:17:59]FM_MakeSignedData done [00:17:59]CreateOFDProtocolMessage [00:17:59]wFMCommunicate request_size=4 [00:17:59]MH_SAM_APDU [00:17:59]CAPDU: 80 11 00 00 [00:17:59]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [00:17:59]Write i2c OK [00:17:59]MH_I2C_Read... [00:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:17:59]Read from MH i2c: E2 [00:17:59]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 17 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 03 [00:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:18:00]wFMCommunicate OK [00:18:00]CreateOFDProtocolMessage done [00:18:00]OFDSenderStorePacket 15790 [00:18:00]StoreOFDPacket docnum=15790 [00:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 1E 01 00 00 54 65 16 01 38 99 5A 02 01 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 36 7B 21 67 0E 04 04 00 AD 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 35 04 06 00 DA CA 8B 1C 21 AF D2 2A E7 27 B3 75 17 73 [00:18:00]CheckFolder [00:18:00]dirname=/storage/ofd_packets [00:18:00]CheckFolder done [00:18:00]ProducePacketName [00:18:00]name=ofd_packets/00015790 [00:18:00]NVStorageSaveData ofd_packets/00015790 [00:18:00]File name is /storage/ofd_packets/00015790 [00:18:00]Write 316 bytes [00:18:00]NVStorageSaveData done [00:18:00]OFDSenderStorePacket done [00:18:00]KKMCreateOFDPacket done [00:18:00]NVStorageSaveData kkm_last_timestamp [00:18:00]File name is /storage/kkm_last_timestamp [00:18:00]Write 4 bytes [00:18:00]NVStorageSaveData done [00:18:00]ExternCall_PrintAddStr [00:18:00]wPrintStart [00:18:00]Write to MH i2c: 01 00 00 3B 00 3B [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 07 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 07 00 3B 00 00 00 00 00 00 FF 0F 50 [00:18:00]RasterBufferAndPrint [00:18:00]line Отчет об открытии смены [00:18:00]line ФФД: 1.0 [00:18:00]line ИНН: 02508201610067 [00:18:00]line Кассир: Шаршенкулова Н. [00:18:00]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:18:00]line Место: АЗС № 178 "Партнер Нефть" [00:18:00]line 30.10.2024 00:17 [00:18:00]line Смена: 173 [00:18:00]line РНМ: 0000000000161798 [00:18:00]line ЗНМ: 0300000014 [00:18:00]line ФД: 15790 [00:18:00]line ФМ: 0000000000963325 [00:18:00]line ФПД: 240563452125615 [00:18:00]written 0, free lines is 4095 [00:18:00]OFD Sender: Processing packet 15790 [packets to send 4, broken 3] [00:18:00]ProducePacketName [00:18:00]name=ofd_packets/00015790 [00:18:00]OFD Sender: To server: pG, [00:18:00]CommunicateWithHost lk.salyk.kg:30040 [00:18:00]ConnectInit lk.salyk.kg [00:18:00]Connected sock=10 [00:18:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 1E 01 00 00 54 65 16 01 38 99 5A 02 01 00 02 00 0A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1D 00 D0 A8 D0 B0 D1 80 D1 88 D0 B5 D0 BD D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 56 00 37 32 30 30 30 30 2C 20 D0 94 D0 B6 D0 B0 D0 BB D0 B0 D0 BB 20 D0 90 D0 B1 D0 B0 D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 BE D0 B1 D0 BB 2E 2C 20 D1 81 2E 20 D0 A3 D1 87 2D D0 A2 D0 B5 D1 80 D0 B5 D0 BA 20 34 31 2E 37 36 36 31 33 36 2C 37 33 2E 31 39 35 38 33 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 37 38 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 36 7B 21 67 0E 04 04 00 AD 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 35 04 06 00 DA CA 8B 1C 21 AF D2 2A E7 27 B3 75 17 73 [00:18:00]Write to MH i2c: 01 00 00 4D 00 4D [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 07 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: 01 07 00 4D 00 00 00 00 00 00 8B 0E ED [00:18:00]RasterBufferAndPrint [00:18:00]line [00:18:00]line [00:18:00]line [00:18:00]line [00:18:00]line [00:18:00]written 0, free lines is 3743 [00:18:00]MH_Cut [00:18:00]Write to MH i2c: D1 01 00 54 00 01 26 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: D1 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: D1 01 00 [00:18:00]MH_I2C_Read... [00:18:00]Read from MH i2c: D1 01 00 54 00 00 25 [00:18:00]Write to MH i2c: 01 00 00 55 00 55 [00:18:00]Write i2c OK [00:18:00]MH_I2C_Read... [00:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 BA 7D 47 00 0E 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AE 3D 00 00 F4 03 04 00 22 26 21 67 B6 04 01 00 00 46 8A C2 98 7B AA 3A 9C [00:18:00]CommunicateWithHost err = 0 [00:18:00]CheckOFDResponse [00:18:00]1017 (14) - 77093643461234 [00:18:00]1041 (16) - 0000000000963325 [00:18:00]1040 (4) - 15790 [00:18:00]1012 (4) - 29.10.2024 18:14 [00:18:00]1206 (1) - 0 [00:18:00]OFD Sender: Remove packet 15790 [00:18:00]ProducePacketName [00:18:00]name=ofd_packets/00015790 [00:18:00]NVStorageDeleteData [00:18:00]*** Cut start [00:18:00]*** Partial cut [00:18:00]*** CUTSNS_PIN = 1 [00:18:00]*** CUTSNS_PIN = 0 [00:18:01]OFD Sender: No OFD packet to send [00:18:01]*** Brake cut motor [00:18:01]Read from MH i2c: 01 [00:18:01]MH_I2C_Read... [00:18:01]*** Stop cut motor [00:18:01]*** Cut end [00:18:01]Read from MH i2c: 01 07 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: 01 07 00 55 00 00 00 00 00 00 FF 0F 6A [00:18:01]process_action open_shift done [00:18:01]requested_data is exist [00:18:01]produce_requested_data [00:18:01]requested_item fd.num is exist - process it [00:18:01]SAM_PROTO_GetFieldsCounters [00:18:01]wFMCommunicate request_size=4 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 13 00 00 [00:18:01]Write to MH i2c: E2 08 00 56 00 80 13 00 00 00 00 00 00 D2 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 62 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 62 00 56 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [00:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AE 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:01]wFMCommunicate OK [00:18:01]SAM_PROTO_GetFieldsCounters done [00:18:01]requested_item shift.num is exist - process it [00:18:01]requested_item shift.opened is exist - process it [00:18:01]req_shift_opened [00:18:01]FM_GetShiftState [00:18:01]SAM_PROTO_GetShiftState [00:18:01]wFMCommunicate request_size=4 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 13 01 00 [00:18:01]Write to MH i2c: E2 08 00 57 00 80 13 01 00 00 00 00 00 D4 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:01]Read from MH i2c: E2 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 0E 00 [00:18:01]MH_I2C_Read... [00:18:01]Read from MH i2c: E2 0E 00 57 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 19 [00:18:01]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:18:01]wFMCommunicate OK [00:18:01]SAM_PROTO_GetShiftState done [00:18:01]FM_GetShiftState done [00:18:01]req_shift_opened done [00:18:01]requested_item shift.open_date is exist - process it [00:18:01]req_shift_open_date [00:18:01]req_shift_open_date done [00:18:01]produce_requested_data done [00:18:01]produce_requested_data return {"fd.num":15790,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:18:01]process_action_free open_shift [00:18:01]json_value_free [00:18:01]json_value_free done [00:18:01]process_json_proto returns [00:18:01]Send response to host [00:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":15790,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:18:01]free response buf [00:18:01]execute_script done [00:18:01]execute_script returns [00:18:01]free content buf [00:18:01]Sock 6.Close socket [00:18:01]Sock 6.Thread stoped [00:18:01]accept exits with 9 [00:18:01]New connection [00:18:01]New thread 3067010404 created [00:18:01]Thread 3067153764 joined [00:18:01]Waiting for new connection... [00:18:01] Sock 9.Parse request [00:18:01]Sock 9.Check first char [00:18:01]Sock 9.First char is OK [00:18:01]request: POST /json_proto HTTP/1.0 [00:18:01]Method: POST [00:18:01]URL: /json_proto [00:18:01]Method is POST - this is cgi request [00:18:01]url: /json_proto [00:18:01]query_string will be loaded in cgi processing [00:18:01]execute_cgi json_proto POST (null) [00:18:01]execute_cgi path=json_proto method=POST [00:18:01]POST find Content-Length [00:18:01]Host: 172.17.54.195:8080 [00:18:01]Content-Length: 331 [00:18:01]Content-Type: application/json [00:18:01] [00:18:01]POST finish read [00:18:01]Found Content-Length = 331 [00:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:01]execute_script... [00:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:01]POST & json_proto [00:18:01]process_json_proto [00:18:01]json parsed OK: [00:18:01]protocol is kg_v1.0 [00:18:01]action value=get_value [00:18:01]process_action get_value [00:18:01]cmd_get_value [00:18:01]process_action get_value done [00:18:01]requested_data is exist [00:18:01]produce_requested_data [00:18:01]requested_item fm.sale.total is exist - process it [00:18:01]SAM_PROTO_GetFMData [00:18:01]wFMCommunicate request_size=4 [00:18:01]MH_SAM_APDU [00:18:01]CAPDU: 80 13 03 00 [00:18:01]Write to MH i2c: E2 08 00 58 00 80 13 03 00 00 00 00 00 D7 [00:18:01]Write i2c OK [00:18:01]MH_I2C_Read... [00:18:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 58 00 00 BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 41 [00:18:02]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 54 3C 00 00 69 04 A0 00 6F 04 04 00 09 3C 00 00 B1 04 04 00 24 22 8C 5F 70 04 04 00 68 93 C6 47 72 04 04 00 BC 8E C5 17 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 05 4B 26 0A 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 1B 82 D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 4B 00 00 00 B1 04 03 00 70 45 9F 70 04 03 00 70 45 9F 72 04 00 00 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 52 EA 10 EF 03 09 00 F6 03 01 00 00 90 00 [00:18:02]wFMCommunicate OK [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 17 00 00 [00:18:02]Write to MH i2c: E2 08 00 59 00 80 17 00 00 00 00 00 00 D9 [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:02]Read from MH i2c: E2 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 [00:18:02]MH_I2C_Read... [00:18:02]Read from MH i2c: E2 FD 00 59 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 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 42 [00:18:02]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 68 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 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 90 00 [00:18:02]wFMCommunicate OK [00:18:02]wFMCommunicate request_size=4 [00:18:02]MH_SAM_APDU [00:18:02]CAPDU: 80 17 00 00 [00:18:02]Write to MH i2c: E2 08 00 5A 00 80 17 00 00 00 00 00 00 DA [00:18:02]Write i2c OK [00:18:02]MH_I2C_Read... [00:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:03]Read from MH i2c: E2 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 FD 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 FD 00 5A 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7E [00:18:03]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:18:03]wFMCommunicate OK [00:18:03]wFMCommunicate request_size=4 [00:18:03]MH_SAM_APDU [00:18:03]CAPDU: 80 17 00 00 [00:18:03]Write to MH i2c: E2 08 00 5B 00 80 17 00 00 00 00 00 00 DB [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:03]Read from MH i2c: E2 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 FD 00 [00:18:03]MH_I2C_Read... [00:18:03]Read from MH i2c: E2 FD 00 5B 00 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 55 [00:18:03]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:18:03]wFMCommunicate OK [00:18:03]wFMCommunicate request_size=4 [00:18:03]MH_SAM_APDU [00:18:03]CAPDU: 80 17 00 00 [00:18:03]Write to MH i2c: E2 08 00 5C 00 80 17 00 00 00 00 00 00 DC [00:18:03]Write i2c OK [00:18:03]MH_I2C_Read... [00:18:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:18:04]Read from MH i2c: E2 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: E2 DC 00 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: E2 DC 00 5C 00 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 C0 [00:18:04]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:04]wFMCommunicate OK [00:18:04]SAM_PROTO_GetFMData done [00:18:04]requested_item fm.sale_refund.total is exist - process it [00:18:04]requested_item fm.buy.total is exist - process it [00:18:04]requested_item shift.sale.total is exist - process it [00:18:04]SAM_PROTO_GetShiftData [00:18:04]wFMCommunicate request_size=4 [00:18:04]MH_SAM_APDU [00:18:04]CAPDU: 80 13 02 00 [00:18:04]Write to MH i2c: E2 08 00 5D 00 80 13 02 00 00 00 00 00 DB [00:18:04]Write i2c OK [00:18:04]MH_I2C_Read... [00:18:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:04]Read from MH i2c: E2 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: E2 FD 00 [00:18:04]MH_I2C_Read... [00:18:04]Read from MH i2c: E2 FD 00 5D 00 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 4E [00:18:04]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:18:04]wFMCommunicate OK [00:18:04]wFMCommunicate request_size=4 [00:18:04]MH_SAM_APDU [00:18:04]CAPDU: 80 17 00 00 [00:18:04]Write to MH i2c: E2 08 00 5E 00 80 17 00 00 00 00 00 00 DE [00:18:04]Write i2c OK [00:18:04]MH_I2C_Read... [00:18:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:05]Read from MH i2c: E2 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 5E 00 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 E6 [00:18:05]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:18:05]wFMCommunicate OK [00:18:05]wFMCommunicate request_size=4 [00:18:05]MH_SAM_APDU [00:18:05]CAPDU: 80 17 00 00 [00:18:05]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [00:18:05]Write i2c OK [00:18:05]MH_I2C_Read... [00:18:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:05]Read from MH i2c: E2 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 5F 00 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 B1 [00:18:05]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:18:05]wFMCommunicate OK [00:18:05]wFMCommunicate request_size=4 [00:18:05]MH_SAM_APDU [00:18:05]CAPDU: 80 17 00 00 [00:18:05]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [00:18:05]Write i2c OK [00:18:05]MH_I2C_Read... [00:18:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:05]Read from MH i2c: E2 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 [00:18:05]MH_I2C_Read... [00:18:05]Read from MH i2c: E2 FD 00 60 00 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 52 [00:18:06]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 OFD Sender: No OFD packet to send [00:18:06]00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:18:06]wFMCommunicate OK [00:18:06]wFMCommunicate request_size=4 [00:18:06]MH_SAM_APDU [00:18:06]CAPDU: 80 17 00 00 [00:18:06]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [00:18:06]Write i2c OK [00:18:06]MH_I2C_Read... [00:18:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:18:06]Read from MH i2c: E2 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 BD 00 [00:18:06]MH_I2C_Read... [00:18:06]Read from MH i2c: E2 BD 00 61 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C7 [00:18:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:06]wFMCommunicate OK [00:18:06]SAM_PROTO_GetShiftData done [00:18:06]requested_item shift.sale.total_cash is exist - process it [00:18:06]requested_item shift.sale_refund.total is exist - process it [00:18:06]requested_item shift.sale_refund.total_cash is exist - process it [00:18:06]requested_item shift.buy.total is exist - process it [00:18:06]requested_item shift.buy.total_cash is exist - process it [00:18:06]produce_requested_data done [00:18:06]produce_requested_data return {"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:18:06]process_action_free get_value [00:18:06]json_value_free [00:18:06]json_value_free done [00:18:06]process_json_proto returns [00:18:06]Send response to host [00:18:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":16030193.00,"fm.sale_refund.total":104380.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:18:06]free response buf [00:18:06]execute_script done [00:18:06]execute_script returns [00:18:06]free content buf [00:18:06]Sock 9.Close socket [00:18:06]Sock 9.Thread stoped [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:20:58]accept exits with 6 [00:20:58]New connection [00:20:58]New thread 3067153764 created [00:20:58]Thread 3067010404 joined [00:20:58]Waiting for new connection... [00:20:58] Sock 6.Parse request [00:20:58]Sock 6.Check first char [00:20:58]Sock 6.First char is OK [00:20:58]request: POST /json_proto HTTP/1.0 [00:20:58]Method: POST [00:20:58]URL: /json_proto [00:20:58]Method is POST - this is cgi request [00:20:58]url: /json_proto [00:20:58]query_string will be loaded in cgi processing [00:20:58]execute_cgi json_proto POST (null) [00:20:58]execute_cgi path=json_proto method=POST [00:20:58]POST find Content-Length [00:20:58]Host: 172.17.54.195:8080 [00:20:58]Content-Length: 680 [00:20:58]Content-Type: application/json [00:20:58] [00:20:58]POST finish read [00:20:58]Found Content-Length = 680 [00:20:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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" ] } } [00:20:58]execute_script... [00:20: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)16340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "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" ] } } [00:20:58]POST & json_proto [00:20:58]process_json_proto [00:20:58]json parsed OK: [00:20:58]protocol is kg_v1.0 [00:20:58]action value=close_receipt [00:20:58]process_action close_receipt [00:20:58]cmd_close_receipt [00:20:58]MH_GetDate [00:20:58]Write to MH i2c: F0 00 00 62 00 51 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: F0 09 00 62 00 00 EB 7B 21 67 8D 90 A3 66 6E [00:20:58]GetLastDocTimeStamp 1730247478 [00:20:58]current date 1730247659 [00:20:58]FM_GetShiftState [00:20:58]SAM_PROTO_GetShiftState [00:20:58]wFMCommunicate request_size=4 [00:20:58]MH_SAM_APDU [00:20:58]CAPDU: 80 13 01 00 [00:20:58]Write to MH i2c: E2 08 00 63 00 80 13 01 00 00 00 00 00 E0 [00:20:58]Write i2c OK [00:20:58]MH_I2C_Read... [00:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:58]Read from MH i2c: E2 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 0E 00 [00:20:58]MH_I2C_Read... [00:20:58]Read from MH i2c: E2 0E 00 63 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 25 [00:20:58]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:20:58]wFMCommunicate OK [00:20:58]SAM_PROTO_GetShiftState done [00:20:58]FM_GetShiftState done [00:20:58]opened in 1730247478 [00:20:58]opened+sec_in_day 1730333878 [00:20:58]quantity*price = 50025 [00:20:58]sum+1 = 50026 [00:20:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 1 30.10.2024 00:20 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15791 ФПД: 273350854991020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T002059&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15791&fm=273350854991020&tin=02508201610067®Number=0000000000161798&sum=50000 [00:21:00]StoreToDocumentArchive [00:21:00]shift 173 fd 15791 [00:21:00]save to /storage/0173/doc_00015791 [00:21:00]save last doc name /storage/0173/doc_00015791 to /storage/kkm_last_doc_name [00:21:00]save OK [00:21:00]Clear old archive folders... [00:21:00]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:21:00]tlvbuf is 00231610 [00:21:00]SAM_PROTO_ClearQueue [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 09 00 00 [00:21:00]Write to MH i2c: E2 08 00 70 00 80 09 00 00 00 00 00 00 E2 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 70 00 00 90 00 E4 [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_ClearQueue done [00:21:00]KKMCreateOFDPacket [00:21:00]OFDProtocolAddRootSTLVToBuf [00:21:00]FM_MakeSignedData [00:21:00]FM_MakeSignedData [00:21:00]SAM_PROTO_SignData [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 01 02 [00:21:00]Write to MH i2c: E2 08 00 71 00 80 0D 01 02 00 00 00 00 EA [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 71 00 00 90 00 E5 [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=255 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 01 00 00 00 F4 03 04 00 EB 7B 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AF 3D 00 00 35 04 06 00 F8 9C [00:21:00]Write to MH i2c: E2 02 01 72 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 01 00 00 00 F4 03 04 00 EB 7B 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AF 3D 00 00 35 04 06 00 F8 9C 00 00 4B [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 72 00 00 90 00 E6 [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=9 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 02 02 04 74 9C 5C AC [00:21:00]Write to MH i2c: E2 0C 00 73 00 80 0D 02 02 04 00 74 9C 5C AC 00 00 0D [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [00:21:00]RAPDU: 90 00 [00:21:00]wFMCommunicate OK [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 0D 03 02 [00:21:00]Write to MH i2c: E2 08 00 74 00 80 0D 03 02 00 00 00 00 EF [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 0B 00 74 00 00 CC 05 6E D2 63 9C 7E E7 90 00 65 [00:21:00]RAPDU: CC 05 6E D2 63 9C 7E E7 90 00 [00:21:00]wFMCommunicate OK [00:21:00]SAM_PROTO_SignData done [00:21:00]FM_MakeSignedData done [00:21:00]CreateOFDProtocolMessage [00:21:00]wFMCommunicate request_size=4 [00:21:00]MH_SAM_APDU [00:21:00]CAPDU: 80 11 00 00 [00:21:00]Write to MH i2c: E2 08 00 75 00 80 11 00 00 00 00 00 00 EF [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:00]Read from MH i2c: E2 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: E2 17 00 75 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 3E [00:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:21:00]wFMCommunicate OK [00:21:00]CreateOFDProtocolMessage done [00:21:00]OFDSenderStorePacket 15791 [00:21:00]StoreOFDPacket docnum=15791 [00:21:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 57 E3 06 01 AB 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 01 00 00 00 F4 03 04 00 EB 7B 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AF 3D 00 00 35 04 06 00 F8 9C 74 9C 5C AC CC 05 6E D2 63 9C 7E E7 [00:21:00]CheckFolder [00:21:00]dirname=/storage/ofd_packets [00:21:00]CheckFolder done [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00015791 [00:21:00]NVStorageSaveData ofd_packets/00015791 [00:21:00]File name is /storage/ofd_packets/00015791 [00:21:00]Write 300 bytes [00:21:00]NVStorageSaveData done [00:21:00]OFDSenderStorePacket done [00:21:00]KKMCreateOFDPacket done [00:21:00]NVStorageSaveData kkm_last_timestamp [00:21:00]File name is /storage/kkm_last_timestamp [00:21:00]Write 4 bytes [00:21:00]NVStorageSaveData done [00:21:00]ExternCall_PrintAddStr [00:21:00]wPrintStart [00:21:00]Write to MH i2c: 01 00 00 76 00 76 [00:21:00]Write i2c OK [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 [00:21:00]MH_I2C_Read... [00:21:00]Read from MH i2c: 01 07 00 76 00 00 00 00 00 00 FF 0F 8B [00:21:00]RasterBufferAndPrint [00:21:00]line Счет N : (1)16340 [00:21:00]line ИНН: 02508201610067 [00:21:00]line Контрольно-Кассовый Чек [00:21:00]line ПРОДАЖА [00:21:00]line ТРК (МРК, ГНК) : 41 [00:21:00]line Товар: 2711190000 [00:21:00]line ГАЗ-К-5 [00:21:00]line 12.860 * 38.90 [00:21:00]line = 500.25 [00:21:00]line НДС 12% НСП 1% [00:21:00]line > о реализуемом товаре [00:21:00]line ОКРУГЛЕНИЕ: -0.25 [00:21:00]line ИТОГО: 500.00 [00:21:00]line Внесено: 500.00 [00:21:00]line СДАЧА: 0.00 [00:21:00]line НСП 1% : 4.43 [00:21:00]line НДС 12% : 53.12 [00:21:00]line Наличными: 500.00 [00:21:00]line Безнал.: 0.00 [00:21:00]line Место: АЗС № 178 "Партнер Нефть" [00:21:00]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:21:00]line СНО: Общий режим [00:21:00]line Чек 1 30.10.2024 00:20 [00:21:00]line Смена: 173 ФФД: 1.0 [00:21:00]line ЗНМ: 0300000014 [00:21:00]line РНМ: 0000000000161798 [00:21:00]line Версия ККМ: v1.0 [00:21:00]line ФМ: 0000000000963325 [00:21:00]line ФД: 15791 [00:21:00]line ФПД: 273350854991020 [00:21:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T002059&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15791&fm=273350854991020&tin=02508201610067®Number=0000000000161798&sum=50000 [00:21:00]OFD Sender: Processing packet 15791 [packets to send 4, broken 3] [00:21:00]ProducePacketName [00:21:00]name=ofd_packets/00015791 [00:21:00]OFD Sender: To server: pG, [00:21:00]CommunicateWithHost lk.salyk.kg:30040 [00:21:00]ConnectInit lk.salyk.kg [00:21:00]written 0, free lines is 4095 [00:21:01]Connected sock=10 [00:21:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 57 E3 06 01 AB 59 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 01 00 00 00 F4 03 04 00 EB 7B 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AF 3D 00 00 35 04 06 00 F8 9C 74 9C 5C AC CC 05 6E D2 63 9C 7E E7 [00:21:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 50 15 47 00 89 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 AF 3D 00 00 F4 03 04 00 D6 26 21 67 B6 04 01 00 00 F8 D0 67 05 10 4A 8B A7 [00:21:01]CommunicateWithHost err = 0 [00:21:01]CheckOFDResponse [00:21:01]1017 (14) - 77093643461234 [00:21:01]1041 (16) - 0000000000963325 [00:21:01]1040 (4) - 15791 [00:21:01]1012 (4) - 29.10.2024 18:17 [00:21:01]1206 (1) - 0 [00:21:01]OFD Sender: Remove packet 15791 [00:21:01]ProducePacketName [00:21:01]name=ofd_packets/00015791 [00:21:01]NVStorageDeleteData [00:21:01]Write to MH i2c: 01 00 00 A1 00 A1 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 FE 0C B2 [00:21:01]RasterBufferAndPrint [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]line [00:21:01]written 0, free lines is 3335 [00:21:01]MH_Cut [00:21:01]Write to MH i2c: D1 01 00 A8 00 01 7A [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 [00:21:01]MH_I2C_Read... [00:21:01]Read from MH i2c: D1 01 00 A8 00 00 79 [00:21:01]Write to MH i2c: 01 00 00 A9 00 A9 [00:21:01]Write i2c OK [00:21:01]MH_I2C_Read... [00:21:01]OFD Sender: No OFD packet to send [00:21:02]*** Cut start [00:21:02]*** Partial cut [00:21:02]*** CUTSNS_PIN = 1 [00:21:02]*** CUTSNS_PIN = 0 [00:21:02]*** Brake cut motor [00:21:02]Read from MH i2c: 01 [00:21:02]MH_I2C_Read... [00:21:02]*** Stop cut motor [00:21:02]*** Cut end [00:21:02]Read from MH i2c: 01 07 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [00:21:02]process_action close_receipt done [00:21:02]requested_data is exist [00:21:02]produce_requested_data [00:21:02]requested_item fm.sn is exist - process it [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 11 00 00 [00:21:02]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 73 [00:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:21:02]wFMCommunicate OK [00:21:02]requested_item fd.num is exist - process it [00:21:02]SAM_PROTO_GetFieldsCounters [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 00 00 [00:21:02]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:02]Read from MH i2c: E2 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 62 00 [00:21:02]MH_I2C_Read... [00:21:02]Read from MH i2c: E2 62 00 AB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AF 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [00:21:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 AF 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:21:02]wFMCommunicate OK [00:21:02]SAM_PROTO_GetFieldsCounters done [00:21:02]requested_item shift.num is exist - process it [00:21:02]requested_item shift.opened is exist - process it [00:21:02]req_shift_opened [00:21:02]FM_GetShiftState [00:21:02]SAM_PROTO_GetShiftState [00:21:02]wFMCommunicate request_size=4 [00:21:02]MH_SAM_APDU [00:21:02]CAPDU: 80 13 01 00 [00:21:02]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [00:21:02]Write i2c OK [00:21:02]MH_I2C_Read... [00:21:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:03]Read from MH i2c: E2 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 [00:21:03]MH_I2C_Read... [00:21:03]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 6E [00:21:03]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:21:03]wFMCommunicate OK [00:21:03]SAM_PROTO_GetShiftState done [00:21:03]FM_GetShiftState done [00:21:03]req_shift_opened done [00:21:03]requested_item shift.open_date is exist - process it [00:21:03]req_shift_open_date [00:21:03]req_shift_open_date done [00:21:03]produce_requested_data done [00:21:03]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15791,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:21:03]process_action_free close_receipt [00:21:03]json_value_free [00:21:03]json_value_free done [00:21:03]process_json_proto returns [00:21:03]Send response to host [00:21:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15791,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:21:03]free response buf [00:21:03]execute_script done [00:21:03]execute_script returns [00:21:03]free content buf [00:21:03]Sock 6.Close socket [00:21:03]Sock 6.Thread stoped [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:11]OFD Sender: No OFD packet to send [00:23:16]OFD Sender: No OFD packet to send [00:23:21]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:26]OFD Sender: No OFD packet to send [00:24:31]OFD Sender: No OFD packet to send [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:32]accept exits with 9 [00:33:32]New connection [00:33:32]New thread 3067010404 created [00:33:32]Thread 3067153764 joined [00:33:32]Waiting for new connection... [00:33:32] Sock 9.Parse request [00:33:32]Sock 9.Check first char [00:33:32]Sock 9.First char is OK [00:33:32]request: POST /json_proto HTTP/1.0 [00:33:32]Method: POST [00:33:32]URL: /json_proto [00:33:32]Method is POST - this is cgi request [00:33:32]url: /json_proto [00:33:32]query_string will be loaded in cgi processing [00:33:32]execute_cgi json_proto POST (null) [00:33:32]execute_cgi path=json_proto method=POST [00:33:32]POST find Content-Length [00:33:32]Host: 172.17.54.195:8080 [00:33:32]Content-Length: 628 [00:33:32]Content-Type: application/json [00:33:32] [00:33:32]POST finish read [00:33:32]Found Content-Length = 628 [00:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:32]execute_script... [00:33: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)16341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:32]POST & json_proto [00:33:32]process_json_proto [00:33:32]json parsed OK: [00:33:32]protocol is kg_v1.0 [00:33:32]action value=close_receipt [00:33:32]process_action close_receipt [00:33:32]cmd_close_receipt [00:33:32]MH_GetDate [00:33:32]Write to MH i2c: F0 00 00 AD 00 9C [00:33:32]Write i2c OK [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: F0 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: F0 09 00 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: F0 09 00 AD 00 00 DD 7E 21 67 8D 90 A3 66 AE [00:33:32]GetLastDocTimeStamp 1730247659 [00:33:32]current date 1730248413 [00:33:32]FM_GetShiftState [00:33:32]SAM_PROTO_GetShiftState [00:33:32]wFMCommunicate request_size=4 [00:33:32]MH_SAM_APDU [00:33:32]CAPDU: 80 13 01 00 [00:33:32]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [00:33:32]Write i2c OK [00:33:32]MH_I2C_Read... [00:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:32]Read from MH i2c: E2 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 0E 00 [00:33:32]MH_I2C_Read... [00:33:32]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 70 [00:33:32]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:33:32]wFMCommunicate OK [00:33:32]SAM_PROTO_GetShiftState done [00:33:32]FM_GetShiftState done [00:33:32]opened in 1730247478 [00:33:32]opened+sec_in_day 1730333878 [00:33:32]quantity*price = 50000 [00:33:32]sum+1 = 50001 [00:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 2 30.10.2024 00:33 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15792 ФПД: 280536187654912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T003333&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15792&fm=280536187654912&tin=02508201610067®Number=0000000000161798&sum=50000 [00:33:33]StoreToDocumentArchive [00:33:33]shift 173 fd 15792 [00:33:33]save to /storage/0173/doc_00015792 [00:33:33]save last doc name /storage/0173/doc_00015792 to /storage/kkm_last_doc_name [00:33:33]save OK [00:33:33]Clear old archive folders... [00:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=249 [00:33:33]tlvbuf is 00241220 [00:33:33]SAM_PROTO_ClearQueue [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 09 00 00 [00:33:33]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]SAM_PROTO_ClearQueue done [00:33:33]KKMCreateOFDPacket [00:33:33]OFDProtocolAddRootSTLVToBuf [00:33:33]FM_MakeSignedData [00:33:33]FM_MakeSignedData [00:33:33]SAM_PROTO_SignData [00:33:33]wFMCommunicate request_size=4 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 01 02 [00:33:33]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:33]Read from MH i2c: E2 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 [00:33:33]MH_I2C_Read... [00:33:33]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [00:33:33]RAPDU: 90 00 [00:33:33]wFMCommunicate OK [00:33:33]wFMCommunicate request_size=255 [00:33:33]MH_SAM_APDU [00:33:33]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DD 7E 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B0 3D 00 00 35 04 06 00 FF 25 6B [00:33:33]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DD 7E 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B0 3D 00 00 35 04 06 00 FF 25 6B 00 00 87 [00:33:33]Write i2c OK [00:33:33]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 03 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [00:33:34]RAPDU: 90 00 [00:33:34]wFMCommunicate OK [00:33:34]wFMCommunicate request_size=8 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 0D 02 02 03 CF D3 00 [00:33:34]Write to MH i2c: E2 0B 00 BE 00 80 0D 02 02 03 00 CF D3 00 00 00 E0 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:34]Read from MH i2c: E2 03 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [00:33:34]RAPDU: 90 00 [00:33:34]wFMCommunicate OK [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 0D 03 02 [00:33:34]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0B 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 0B 00 BF 00 00 C1 10 AD 6D 2F 9E EB 82 90 00 60 [00:33:34]RAPDU: C1 10 AD 6D 2F 9E EB 82 90 00 [00:33:34]wFMCommunicate OK [00:33:34]SAM_PROTO_SignData done [00:33:34]FM_MakeSignedData done [00:33:34]CreateOFDProtocolMessage [00:33:34]wFMCommunicate request_size=4 [00:33:34]MH_SAM_APDU [00:33:34]CAPDU: 80 11 00 00 [00:33:34]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:34]Read from MH i2c: E2 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 17 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 89 [00:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:33:34]wFMCommunicate OK [00:33:34]CreateOFDProtocolMessage done [00:33:34]OFDSenderStorePacket 15792 [00:33:34]StoreOFDPacket docnum=15792 [00:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 60 50 05 01 CD 0C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DD 7E 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B0 3D 00 00 35 04 06 00 FF 25 6B CF D3 00 C1 10 AD 6D 2F 9E EB 82 [00:33:34]CheckFolder [00:33:34]dirname=/storage/ofd_packets [00:33:34]CheckFolder done [00:33:34]ProducePacketName [00:33:34]name=ofd_packets/00015792 [00:33:34]NVStorageSaveData ofd_packets/00015792 [00:33:34]File name is /storage/ofd_packets/00015792 [00:33:34]Write 299 bytes [00:33:34]NVStorageSaveData done [00:33:34]OFDSenderStorePacket done [00:33:34]KKMCreateOFDPacket done [00:33:34]NVStorageSaveData kkm_last_timestamp [00:33:34]File name is /storage/kkm_last_timestamp [00:33:34]Write 4 bytes [00:33:34]NVStorageSaveData done [00:33:34]ExternCall_PrintAddStr [00:33:34]wPrintStart [00:33:34]Write to MH i2c: 01 00 00 C1 00 C1 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [00:33:34]RasterBufferAndPrint [00:33:34]line Счет N : (1)16341 [00:33:34]line ИНН: 02508201610067 [00:33:34]line Контрольно-Кассовый Чек [00:33:34]line ПРОДАЖА [00:33:34]line ТРК (МРК, ГНК) : 12 [00:33:34]line Товар: 50.50.0 [00:33:34]line SUPER 92-К-5 [00:33:34]line 7.310 * 68.40 [00:33:34]line = 500.00 [00:33:34]line НДС 12% НСП 1% [00:33:34]line > о реализуемом товаре [00:33:34]line ИТОГО: 500.00 [00:33:34]line НСП 1% : 4.42 [00:33:34]line НДС 12% : 53.10 [00:33:34]line Наличными: 500.00 [00:33:34]line Безнал.: 0.00 [00:33:34]line Место: АЗС № 178 "Партнер Нефть" [00:33:34]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:33:34]line СНО: Общий режим [00:33:34]line Чек 2 30.10.2024 00:33 [00:33:34]line Смена: 173 ФФД: 1.0 [00:33:34]line ЗНМ: 0300000014 [00:33:34]line РНМ: 0000000000161798 [00:33:34]line Версия ККМ: v1.0 [00:33:34]line ФМ: 0000000000963325 [00:33:34]line ФД: 15792 [00:33:34]line ФПД: 280536187654912 [00:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T003333&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15792&fm=280536187654912&tin=02508201610067®Number=0000000000161798&sum=50000 [00:33:34]OFD Sender: Processing packet 15792 [packets to send 4, broken 3] [00:33:34]ProducePacketName [00:33:34]name=ofd_packets/00015792 [00:33:34]OFD Sender: To server: pG, [00:33:34]CommunicateWithHost lk.salyk.kg:30040 [00:33:34]ConnectInit lk.salyk.kg [00:33:34]written 0, free lines is 4095 [00:33:34]Connected sock=10 [00:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 60 50 05 01 CD 0C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 DD 7E 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B0 3D 00 00 35 04 06 00 FF 25 6B CF D3 00 C1 10 AD 6D 2F 9E EB 82 [00:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 88 6E 47 00 22 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B0 3D 00 00 F4 03 04 00 C8 29 21 67 B6 04 01 00 00 63 15 8B AF 06 89 71 44 [00:33:34]CommunicateWithHost err = 0 [00:33:34]CheckOFDResponse [00:33:34]1017 (14) - 77093643461234 [00:33:34]1041 (16) - 0000000000963325 [00:33:34]1040 (4) - 15792 [00:33:34]1012 (4) - 29.10.2024 18:30 [00:33:34]1206 (1) - 0 [00:33:34]OFD Sender: Remove packet 15792 [00:33:34]ProducePacketName [00:33:34]name=ofd_packets/00015792 [00:33:34]NVStorageDeleteData [00:33:34]Write to MH i2c: 01 00 00 E9 00 E9 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 1D 0D 1A [00:33:34]RasterBufferAndPrint [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]line [00:33:34]written 0, free lines is 3363 [00:33:34]MH_Cut [00:33:34]Write to MH i2c: D1 01 00 F0 00 01 C2 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 01 00 [00:33:34]MH_I2C_Read... [00:33:34]Read from MH i2c: D1 01 00 F0 00 00 C1 [00:33:34]Write to MH i2c: 01 00 00 F1 00 F1 [00:33:34]Write i2c OK [00:33:34]MH_I2C_Read... [00:33:35]OFD Sender: No OFD packet to send [00:33:35]*** Cut start [00:33:35]*** Partial cut [00:33:35]*** CUTSNS_PIN = 1 [00:33:35]*** CUTSNS_PIN = 0 [00:33:35]*** Brake cut motor [00:33:36]Read from MH i2c: 01 [00:33:36]MH_I2C_Read... [00:33:36]*** Stop cut motor [00:33:36]*** Cut end [00:33:36]Read from MH i2c: 01 07 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FF 0F 06 [00:33:36]process_action close_receipt done [00:33:36]requested_data is exist [00:33:36]produce_requested_data [00:33:36]requested_item fm.sn is exist - process it [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 11 00 00 [00:33:36]Write to MH i2c: E2 08 00 F2 00 80 11 00 00 00 00 00 00 6C [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 17 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 17 00 F2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 BB [00:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:33:36]wFMCommunicate OK [00:33:36]requested_item fd.num is exist - process it [00:33:36]SAM_PROTO_GetFieldsCounters [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 13 00 00 [00:33:36]Write to MH i2c: E2 08 00 F3 00 80 13 00 00 00 00 00 00 6F [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 62 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 62 00 F3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B0 3D 00 00 0E 04 04 00 AD 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 33 [00:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B0 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:36]wFMCommunicate OK [00:33:36]SAM_PROTO_GetFieldsCounters done [00:33:36]requested_item shift.num is exist - process it [00:33:36]requested_item shift.opened is exist - process it [00:33:36]req_shift_opened [00:33:36]FM_GetShiftState [00:33:36]SAM_PROTO_GetShiftState [00:33:36]wFMCommunicate request_size=4 [00:33:36]MH_SAM_APDU [00:33:36]CAPDU: 80 13 01 00 [00:33:36]Write to MH i2c: E2 08 00 F4 00 80 13 01 00 00 00 00 00 71 [00:33:36]Write i2c OK [00:33:36]MH_I2C_Read... [00:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:36]Read from MH i2c: E2 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 0E 00 [00:33:36]MH_I2C_Read... [00:33:36]Read from MH i2c: E2 0E 00 F4 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 B6 [00:33:36]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:33:36]wFMCommunicate OK [00:33:36]SAM_PROTO_GetShiftState done [00:33:36]FM_GetShiftState done [00:33:36]req_shift_opened done [00:33:36]requested_item shift.open_date is exist - process it [00:33:36]req_shift_open_date [00:33:36]req_shift_open_date done [00:33:36]produce_requested_data done [00:33:36]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15792,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:33:36]process_action_free close_receipt [00:33:36]json_value_free [00:33:36]json_value_free done [00:33:36]process_json_proto returns [00:33:36]Send response to host [00:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15792,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:33:36]free response buf [00:33:36]execute_script done [00:33:36]execute_script returns [00:33:36]free content buf [00:33:36]Sock 9.Close socket [00:33:36]Sock 9.Thread stoped [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:12]accept exits with 8 [00:41:12]New connection [00:41:12]New thread 3067153764 created [00:41:12]Thread 3067010404 joined [00:41:12]Waiting for new connection... [00:41:12] Sock 8.Parse request [00:41:12]Sock 8.Check first char [00:41:12]Sock 8.First char is OK [00:41:12]request: POST /json_proto HTTP/1.0 [00:41:12]Method: POST [00:41:12]URL: /json_proto [00:41:12]Method is POST - this is cgi request [00:41:12]url: /json_proto [00:41:12]query_string will be loaded in cgi processing [00:41:12]execute_cgi json_proto POST (null) [00:41:12]execute_cgi path=json_proto method=POST [00:41:12]POST find Content-Length [00:41:12]Host: 172.17.54.195:8080 [00:41:12]Content-Length: 684 [00:41:12]Content-Type: application/json [00:41:12] [00:41:12]POST finish read [00:41:12]Found Content-Length = 684 [00:41:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 43.710, "sum" : 1700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:12]execute_script... [00:41: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)16342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.90, "quantity" : 43.710, "sum" : 1700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:12]POST & json_proto [00:41:12]process_json_proto [00:41:12]json parsed OK: [00:41:12]protocol is kg_v1.0 [00:41:12]action value=close_receipt [00:41:12]process_action close_receipt [00:41:12]cmd_close_receipt [00:41:12]MH_GetDate [00:41:12]Write to MH i2c: F0 00 00 F5 00 E4 [00:41:12]Write i2c OK [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 09 00 [00:41:12]MH_I2C_Read... [00:41:12]Read from MH i2c: F0 09 00 F5 00 00 A9 80 21 67 8D 90 A3 66 C4 [00:41:12]GetLastDocTimeStamp 1730248413 [00:41:12]current date 1730248873 [00:41:12]FM_GetShiftState [00:41:12]SAM_PROTO_GetShiftState [00:41:12]wFMCommunicate request_size=4 [00:41:12]MH_SAM_APDU [00:41:12]CAPDU: 80 13 01 00 [00:41:12]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [00:41:12]Write i2c OK [00:41:12]MH_I2C_Read... [00:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:13]Read from MH i2c: E2 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0E 00 [00:41:13]MH_I2C_Read... [00:41:13]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 B8 [00:41:13]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:41:13]wFMCommunicate OK [00:41:13]SAM_PROTO_GetShiftState done [00:41:13]FM_GetShiftState done [00:41:13]opened in 1730247478 [00:41:13]opened+sec_in_day 1730333878 [00:41:13]quantity*price = 170031 [00:41:13]sum+1 = 170033 [00:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1700.00 Внесено: 2000.00 СДАЧА: 300.00 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 3 30.10.2024 00:41 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15793 ФПД: 232892622958268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T004113&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15793&fm=232892622958268&tin=02508201610067®Number=0000000000161798&sum=170000 [00:41:14]StoreToDocumentArchive [00:41:14]shift 173 fd 15793 [00:41:14]save to /storage/0173/doc_00015793 [00:41:14]save last doc name /storage/0173/doc_00015793 to /storage/kkm_last_doc_name [00:41:14]save OK [00:41:14]Clear old archive folders... [00:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:41:14]tlvbuf is 00229600 [00:41:14]SAM_PROTO_ClearQueue [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 09 00 00 [00:41:14]Write to MH i2c: E2 08 00 03 01 80 09 00 00 00 00 00 00 76 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 03 01 00 90 00 78 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_ClearQueue done [00:41:14]KKMCreateOFDPacket [00:41:14]OFDProtocolAddRootSTLVToBuf [00:41:14]FM_MakeSignedData [00:41:14]FM_MakeSignedData [00:41:14]SAM_PROTO_SignData [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 01 02 [00:41:14]Write to MH i2c: E2 08 00 04 01 80 0D 01 02 00 00 00 00 7E [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 04 01 00 90 00 79 [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=255 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A9 80 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B1 3D 00 00 35 04 06 00 D3 D0 [00:41:14]Write to MH i2c: E2 02 01 05 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A9 80 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B1 3D 00 00 35 04 06 00 D3 D0 00 00 9F [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=9 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 02 02 04 8A 0F EE BC [00:41:14]Write to MH i2c: E2 0C 00 06 01 80 0D 02 02 04 00 8A 0F EE BC 00 00 CC [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [00:41:14]RAPDU: 90 00 [00:41:14]wFMCommunicate OK [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 0D 03 02 [00:41:14]Write to MH i2c: E2 08 00 07 01 80 0D 03 02 00 00 00 00 83 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0B 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 0B 00 07 01 00 1A E5 22 A0 12 85 4A 6F 90 00 95 [00:41:14]RAPDU: 1A E5 22 A0 12 85 4A 6F 90 00 [00:41:14]wFMCommunicate OK [00:41:14]SAM_PROTO_SignData done [00:41:14]FM_MakeSignedData done [00:41:14]CreateOFDProtocolMessage [00:41:14]wFMCommunicate request_size=4 [00:41:14]MH_SAM_APDU [00:41:14]CAPDU: 80 11 00 00 [00:41:14]Write to MH i2c: E2 08 00 08 01 80 11 00 00 00 00 00 00 83 [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:14]Read from MH i2c: E2 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 17 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: E2 17 00 08 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 D2 [00:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:41:14]wFMCommunicate OK [00:41:14]CreateOFDProtocolMessage done [00:41:14]OFDSenderStorePacket 15793 [00:41:14]StoreOFDPacket docnum=15793 [00:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 57 D0 06 01 B2 7E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A9 80 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B1 3D 00 00 35 04 06 00 D3 D0 8A 0F EE BC 1A E5 22 A0 12 85 4A 6F [00:41:14]CheckFolder [00:41:14]dirname=/storage/ofd_packets [00:41:14]CheckFolder done [00:41:14]ProducePacketName [00:41:14]name=ofd_packets/00015793 [00:41:14]NVStorageSaveData ofd_packets/00015793 [00:41:14]File name is /storage/ofd_packets/00015793 [00:41:14]Write 300 bytes [00:41:14]NVStorageSaveData done [00:41:14]OFDSenderStorePacket done [00:41:14]KKMCreateOFDPacket done [00:41:14]NVStorageSaveData kkm_last_timestamp [00:41:14]File name is /storage/kkm_last_timestamp [00:41:14]Write 4 bytes [00:41:14]NVStorageSaveData done [00:41:14]ExternCall_PrintAddStr [00:41:14]wPrintStart [00:41:14]Write to MH i2c: 01 00 00 09 01 0A [00:41:14]Write i2c OK [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 07 00 [00:41:14]MH_I2C_Read... [00:41:14]Read from MH i2c: 01 07 00 09 01 00 00 00 00 00 FF 0F 1F [00:41:14]RasterBufferAndPrint [00:41:14]line Счет N : (1)16342 [00:41:14]line ИНН: 02508201610067 [00:41:14]line Контрольно-Кассовый Чек [00:41:14]line ПРОДАЖА [00:41:14]line ТРК (МРК, ГНК) : 41 [00:41:14]line Товар: 2711190000 [00:41:14]line ГАЗ-К-5 [00:41:14]line 43.710 * 38.90 [00:41:14]line = 1700.32 [00:41:14]line НДС 12% НСП 1% [00:41:14]line > о реализуемом товаре [00:41:14]line ОКРУГЛЕНИЕ: -0.32 [00:41:14]line ИТОГО: 1700.00 [00:41:14]line Внесено: 2000.00 [00:41:14]line СДАЧА: 300.00 [00:41:14]line НСП 1% : 15.05 [00:41:14]line НДС 12% : 180.56 [00:41:14]line Наличными: 1700.00 [00:41:14]line Безнал.: 0.00 [00:41:14]line Место: АЗС № 178 "Партнер Нефть" [00:41:14]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:41:14]line СНО: Общий режим [00:41:14]line Чек 3 30.10.2024 00:41 [00:41:14]line Смена: 173 ФФД: 1.0 [00:41:14]line ЗНМ: 0300000014 [00:41:14]line РНМ: 0000000000161798 [00:41:14]line Версия ККМ: v1.0 [00:41:14]line ФМ: 0000000000963325 [00:41:14]line ФД: 15793 [00:41:14]line ФПД: 232892622958268 [00:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T004113&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15793&fm=232892622958268&tin=02508201610067®Number=0000000000161798&sum=170000 [00:41:15]OFD Sender: Processing packet 15793 [packets to send 4, broken 3] [00:41:15]ProducePacketName [00:41:15]name=ofd_packets/00015793 [00:41:15]OFD Sender: To server: pG, [00:41:15]CommunicateWithHost lk.salyk.kg:30040 [00:41:15]ConnectInit lk.salyk.kg [00:41:15]written 0, free lines is 4095 [00:41:15]Connected sock=10 [00:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0E 01 00 00 57 D0 06 01 B2 7E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 A9 80 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B1 3D 00 00 35 04 06 00 D3 D0 8A 0F EE BC 1A E5 22 A0 12 85 4A 6F [00:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 38 A3 47 00 AD FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B1 3D 00 00 F4 03 04 00 94 2B 21 67 B6 04 01 00 00 5C 3B 05 AC D1 B7 E3 1C [00:41:15]CommunicateWithHost err = 0 [00:41:15]CheckOFDResponse [00:41:15]1017 (14) - 77093643461234 [00:41:15]1041 (16) - 0000000000963325 [00:41:15]1040 (4) - 15793 [00:41:15]1012 (4) - 29.10.2024 18:38 [00:41:15]1206 (1) - 0 [00:41:15]OFD Sender: Remove packet 15793 [00:41:15]ProducePacketName [00:41:15]name=ofd_packets/00015793 [00:41:15]NVStorageDeleteData [00:41:15]Write to MH i2c: 01 00 00 34 01 35 [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: 01 07 00 34 01 00 00 00 00 00 FA 0C 42 [00:41:15]RasterBufferAndPrint [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]line [00:41:15]written 0, free lines is 3332 [00:41:15]MH_Cut [00:41:15]Write to MH i2c: D1 01 00 3B 01 01 0E [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 01 00 [00:41:15]MH_I2C_Read... [00:41:15]Read from MH i2c: D1 01 00 3B 01 00 0D [00:41:15]Write to MH i2c: 01 00 00 3C 01 3D [00:41:15]Write i2c OK [00:41:15]MH_I2C_Read... [00:41:15]OFD Sender: No OFD packet to send [00:41:16]*** Cut start [00:41:16]*** Partial cut [00:41:16]*** CUTSNS_PIN = 1 [00:41:16]*** CUTSNS_PIN = 0 [00:41:16]*** Brake cut motor [00:41:16]Read from MH i2c: 01 [00:41:16]MH_I2C_Read... [00:41:16]*** Stop cut motor [00:41:16]*** Cut end [00:41:16]Read from MH i2c: 01 07 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [00:41:16]process_action close_receipt done [00:41:16]requested_data is exist [00:41:16]produce_requested_data [00:41:16]requested_item fm.sn is exist - process it [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 11 00 00 [00:41:16]Write to MH i2c: E2 08 00 3D 01 80 11 00 00 00 00 00 00 B8 [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:16]Read from MH i2c: E2 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 [00:41:16]MH_I2C_Read... [00:41:16]Read from MH i2c: E2 17 00 3D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 07 [00:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:41:16]wFMCommunicate OK [00:41:16]requested_item fd.num is exist - process it [00:41:16]SAM_PROTO_GetFieldsCounters [00:41:16]wFMCommunicate request_size=4 [00:41:16]MH_SAM_APDU [00:41:16]CAPDU: 80 13 00 00 [00:41:16]Write to MH i2c: E2 08 00 3E 01 80 13 00 00 00 00 00 00 BB [00:41:16]Write i2c OK [00:41:16]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 62 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 62 00 3E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B1 3D 00 00 0E 04 04 00 AD 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 83 [00:41:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B1 3D 00 00 0E 04 04 00 AD 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:17]wFMCommunicate OK [00:41:17]SAM_PROTO_GetFieldsCounters done [00:41:17]requested_item shift.num is exist - process it [00:41:17]requested_item shift.opened is exist - process it [00:41:17]req_shift_opened [00:41:17]FM_GetShiftState [00:41:17]SAM_PROTO_GetShiftState [00:41:17]wFMCommunicate request_size=4 [00:41:17]MH_SAM_APDU [00:41:17]CAPDU: 80 13 01 00 [00:41:17]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [00:41:17]Write i2c OK [00:41:17]MH_I2C_Read... [00:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:17]Read from MH i2c: E2 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 0E 00 [00:41:17]MH_I2C_Read... [00:41:17]Read from MH i2c: E2 0E 00 3F 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 02 [00:41:17]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:41:17]wFMCommunicate OK [00:41:17]SAM_PROTO_GetShiftState done [00:41:17]FM_GetShiftState done [00:41:17]req_shift_opened done [00:41:17]requested_item shift.open_date is exist - process it [00:41:17]req_shift_open_date [00:41:17]req_shift_open_date done [00:41:17]produce_requested_data done [00:41:17]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15793,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:41:17]process_action_free close_receipt [00:41:17]json_value_free [00:41:17]json_value_free done [00:41:17]process_json_proto returns [00:41:17]Send response to host [00:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15793,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:41:17]free response buf [00:41:17]execute_script done [00:41:17]execute_script returns [00:41:17]free content buf [00:41:17]Sock 8.Close socket [00:41:17]Sock 8.Thread stoped [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:02]accept exits with 9 [00:49:02]New connection [00:49:02]New thread 3067010404 created [00:49:02]Thread 3067153764 joined [00:49:02]Waiting for new connection... [00:49:02] Sock 9.Parse request [00:49:02]Sock 9.Check first char [00:49:02]Sock 9.First char is OK [00:49:02]request: POST /json_proto HTTP/1.0 [00:49:02]Method: POST [00:49:02]URL: /json_proto [00:49:02]Method is POST - this is cgi request [00:49:02]url: /json_proto [00:49:02]query_string will be loaded in cgi processing [00:49:02]execute_cgi json_proto POST (null) [00:49:02]execute_cgi path=json_proto method=POST [00:49:02]POST find Content-Length [00:49:02]Host: 172.17.54.195:8080 [00:49:02]Content-Length: 784 [00:49:02]Content-Type: application/json [00:49:02] [00:49:02]POST finish read [00:49:02]Found Content-Length = 784 [00:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:02]execute_script... [00:49: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)16343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "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: Mbank", "total" : 2000.00, "payments": [ { "type": 1, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:49:02]POST & json_proto [00:49:02]process_json_proto [00:49:02]json parsed OK: [00:49:02]protocol is kg_v1.0 [00:49:02]action value=close_receipt [00:49:02]process_action close_receipt [00:49:02]cmd_close_receipt [00:49:02]MH_GetDate [00:49:02]Write to MH i2c: F0 00 00 40 01 30 [00:49:02]Write i2c OK [00:49:02]MH_I2C_Read... [00:49:02]Read from MH i2c: F0 [00:49:02]MH_I2C_Read... [00:49:02]Read from MH i2c: F0 09 00 [00:49:02]MH_I2C_Read... [00:49:02]Read from MH i2c: F0 09 00 40 01 00 7F 82 21 67 8D 90 A3 66 E8 [00:49:02]GetLastDocTimeStamp 1730248873 [00:49:02]current date 1730249343 [00:49:02]FM_GetShiftState [00:49:02]SAM_PROTO_GetShiftState [00:49:02]wFMCommunicate request_size=4 [00:49:02]MH_SAM_APDU [00:49:02]CAPDU: 80 13 01 00 [00:49:02]Write to MH i2c: E2 08 00 41 01 80 13 01 00 00 00 00 00 BF [00:49:02]Write i2c OK [00:49:02]MH_I2C_Read... [00:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:02]Read from MH i2c: E2 [00:49:02]MH_I2C_Read... [00:49:02]Read from MH i2c: E2 0E 00 [00:49:02]MH_I2C_Read... [00:49:02]Read from MH i2c: E2 0E 00 41 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 04 [00:49:02]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:49:02]wFMCommunicate OK [00:49:02]SAM_PROTO_GetShiftState done [00:49:02]FM_GetShiftState done [00:49:02]opened in 1730247478 [00:49:02]opened+sec_in_day 1730333878 [00:49:02]quantity*price = 200025 [00:49:02]sum+1 = 200026 [00:49:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 4 30.10.2024 00:49 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 Платежная система: Mbank ФМ: 0000000000963325 ФД: 15794 ФПД: 245844251394306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T004903&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15794&fm=245844251394306&tin=02508201610067®Number=0000000000161798&sum=200000 [00:49:03]StoreToDocumentArchive [00:49:03]shift 173 fd 15794 [00:49:03]save to /storage/0173/doc_00015794 [00:49:03]save last doc name /storage/0173/doc_00015794 to /storage/kkm_last_doc_name [00:49:03]save OK [00:49:03]Clear old archive folders... [00:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:49:03]tlvbuf is 0022C130 [00:49:03]SAM_PROTO_ClearQueue [00:49:03]wFMCommunicate request_size=4 [00:49:03]MH_SAM_APDU [00:49:03]CAPDU: 80 09 00 00 [00:49:03]Write to MH i2c: E2 08 00 4E 01 80 09 00 00 00 00 00 00 C1 [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [00:49:03]RAPDU: 90 00 [00:49:03]wFMCommunicate OK [00:49:03]SAM_PROTO_ClearQueue done [00:49:03]KKMCreateOFDPacket [00:49:03]OFDProtocolAddRootSTLVToBuf [00:49:03]FM_MakeSignedData [00:49:03]FM_MakeSignedData [00:49:03]SAM_PROTO_SignData [00:49:03]wFMCommunicate request_size=4 [00:49:03]MH_SAM_APDU [00:49:03]CAPDU: 80 0D 01 02 [00:49:03]Write to MH i2c: E2 08 00 4F 01 80 0D 01 02 00 00 00 00 C9 [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [00:49:03]RAPDU: 90 00 [00:49:03]wFMCommunicate OK [00:49:03]wFMCommunicate request_size=255 [00:49:03]MH_SAM_APDU [00:49: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 35 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7F 82 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B2 3D 00 00 35 04 06 00 DF 98 13 46 [00:49:03]Write to MH i2c: E2 02 01 50 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7F 82 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B2 3D 00 00 35 04 06 00 DF 98 13 46 00 00 38 [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [00:49:03]RAPDU: 90 00 [00:49:03]wFMCommunicate OK [00:49:03]wFMCommunicate request_size=7 [00:49:03]MH_SAM_APDU [00:49:03]CAPDU: 80 0D 02 02 02 41 02 [00:49:03]Write to MH i2c: E2 0A 00 51 01 80 0D 02 02 02 00 41 02 00 00 13 [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [00:49:03]RAPDU: 90 00 [00:49:03]wFMCommunicate OK [00:49:03]wFMCommunicate request_size=4 [00:49:03]MH_SAM_APDU [00:49:03]CAPDU: 80 0D 03 02 [00:49:03]Write to MH i2c: E2 08 00 52 01 80 0D 03 02 00 00 00 00 CE [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 0B 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 0B 00 52 01 00 EE A9 CA AC 08 ED 08 7F 90 00 58 [00:49:03]RAPDU: EE A9 CA AC 08 ED 08 7F 90 00 [00:49:03]wFMCommunicate OK [00:49:03]SAM_PROTO_SignData done [00:49:03]FM_MakeSignedData done [00:49:03]CreateOFDProtocolMessage [00:49:03]wFMCommunicate request_size=4 [00:49:03]MH_SAM_APDU [00:49:03]CAPDU: 80 11 00 00 [00:49:03]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:03]Read from MH i2c: E2 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 17 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 1D [00:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:49:03]wFMCommunicate OK [00:49:03]CreateOFDProtocolMessage done [00:49:03]OFDSenderStorePacket 15794 [00:49:03]StoreOFDPacket docnum=15794 [00:49:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 E5 65 04 01 E1 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7F 82 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B2 3D 00 00 35 04 06 00 DF 98 13 46 41 02 EE A9 CA AC 08 ED 08 7F [00:49:03]CheckFolder [00:49:03]dirname=/storage/ofd_packets [00:49:03]CheckFolder done [00:49:03]ProducePacketName [00:49:03]name=ofd_packets/00015794 [00:49:03]NVStorageSaveData ofd_packets/00015794 [00:49:03]File name is /storage/ofd_packets/00015794 [00:49:03]Write 298 bytes [00:49:03]NVStorageSaveData done [00:49:03]OFDSenderStorePacket done [00:49:03]KKMCreateOFDPacket done [00:49:03]NVStorageSaveData kkm_last_timestamp [00:49:03]File name is /storage/kkm_last_timestamp [00:49:03]Write 4 bytes [00:49:03]NVStorageSaveData done [00:49:03]ExternCall_PrintAddStr [00:49:03]wPrintStart [00:49:03]Write to MH i2c: 01 00 00 54 01 55 [00:49:03]Write i2c OK [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: 01 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: 01 07 00 [00:49:03]MH_I2C_Read... [00:49:03]Read from MH i2c: 01 07 00 54 01 00 00 00 00 00 FF 0F 6A [00:49:03]RasterBufferAndPrint [00:49:03]line Счет N : (1)16343 [00:49:03]line ИНН: 02508201610067 [00:49:03]line Контрольно-Кассовый Чек [00:49:03]line ПРОДАЖА [00:49:03]line ТРК (МРК, ГНК) : 22 [00:49:03]line Товар: 2710194210 [00:49:03]line ДТ-К-5 [00:49:03]line 26.250 * 76.20 [00:49:03]line = 2000.25 [00:49:03]line НДС 12% НСП 1% [00:49:03]line > о реализуемом товаре [00:49:03]line ОКРУГЛЕНИЕ: -0.25 [00:49:03]line ИТОГО: 2000.00 [00:49:03]line НСП 1% : 17.70 [00:49:03]line НДС 12% : 212.42 [00:49:03]line Наличными: 0.00 [00:49:03]line Безнал.: 2000.00 [00:49:03]line Место: АЗС № 178 "Партнер Нефть" [00:49:03]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:49:03]line СНО: Общий режим [00:49:03]line Чек 4 30.10.2024 00:49 [00:49:03]line Смена: 173 ФФД: 1.0 [00:49:03]line ЗНМ: 0300000014 [00:49:03]line РНМ: 0000000000161798 [00:49:03]line Версия ККМ: v1.0 [00:49:03]line Платежная система: Mbank [00:49:03]line ФМ: 0000000000963325 [00:49:03]line ФД: 15794 [00:49:03]line ФПД: 245844251394306 [00:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T004903&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15794&fm=245844251394306&tin=02508201610067®Number=0000000000161798&sum=200000 [00:49:04]OFD Sender: Processing packet 15794 [packets to send 4, broken 3] [00:49:04]ProducePacketName [00:49:04]name=ofd_packets/00015794 [00:49:04]OFD Sender: To server: pG, [00:49:04]CommunicateWithHost lk.salyk.kg:30040 [00:49:04]ConnectInit lk.salyk.kg [00:49:04]written 0, free lines is 4095 [00:49:04]Connected sock=10 [00:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 E5 65 04 01 E1 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 00 00 00 00 00 00 39 04 06 00 40 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7F 82 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B2 3D 00 00 35 04 06 00 DF 98 13 46 41 02 EE A9 CA AC 08 ED 08 7F [00:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 6D 47 47 00 36 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B2 3D 00 00 F4 03 04 00 6A 2D 21 67 B6 04 01 00 00 DA 52 10 30 DD 48 C1 96 [00:49:04]CommunicateWithHost err = 0 [00:49:04]CheckOFDResponse [00:49:04]1017 (14) - 77093643461234 [00:49:04]1041 (16) - 0000000000963325 [00:49:04]1040 (4) - 15794 [00:49:04]1012 (4) - 29.10.2024 18:46 [00:49:04]1206 (1) - 0 [00:49:04]OFD Sender: Remove packet 15794 [00:49:04]ProducePacketName [00:49:04]name=ofd_packets/00015794 [00:49:04]NVStorageDeleteData [00:49:04]Write to MH i2c: 01 00 00 7E 01 7F [00:49:04]Write i2c OK [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: 01 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: 01 07 00 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 0F 0D A2 [00:49:04]RasterBufferAndPrint [00:49:04]line [00:49:04]line [00:49:04]line [00:49:04]line [00:49:04]line [00:49:04]written 0, free lines is 3350 [00:49:04]MH_Cut [00:49:04]Write to MH i2c: D1 01 00 85 01 01 58 [00:49:04]Write i2c OK [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: D1 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: D1 01 00 [00:49:04]MH_I2C_Read... [00:49:04]Read from MH i2c: D1 01 00 85 01 00 57 [00:49:04]Write to MH i2c: 01 00 00 86 01 87 [00:49:04]Write i2c OK [00:49:04]MH_I2C_Read... [00:49:05]OFD Sender: No OFD packet to send [00:49:05]*** Cut start [00:49:05]*** Partial cut [00:49:05]*** CUTSNS_PIN = 1 [00:49:05]*** CUTSNS_PIN = 0 [00:49:05]*** Brake cut motor [00:49:06]Read from MH i2c: 01 [00:49:06]MH_I2C_Read... [00:49:06]*** Stop cut motor [00:49:06]*** Cut end [00:49:06]Read from MH i2c: 01 07 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 FF 0F 9C [00:49:06]process_action close_receipt done [00:49:06]requested_data is exist [00:49:06]produce_requested_data [00:49:06]requested_item fm.sn is exist - process it [00:49:06]wFMCommunicate request_size=4 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 11 00 00 [00:49:06]Write to MH i2c: E2 08 00 87 01 80 11 00 00 00 00 00 00 02 [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 17 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 17 00 87 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 51 [00:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:49:06]wFMCommunicate OK [00:49:06]requested_item fd.num is exist - process it [00:49:06]SAM_PROTO_GetFieldsCounters [00:49:06]wFMCommunicate request_size=4 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 13 00 00 [00:49:06]Write to MH i2c: E2 08 00 88 01 80 13 00 00 00 00 00 00 05 [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 62 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 62 00 88 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B2 3D 00 00 0E 04 04 00 AD 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 D1 [00:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B2 3D 00 00 0E 04 04 00 AD 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 [00:49:06]wFMCommunicate OK [00:49:06]SAM_PROTO_GetFieldsCounters done [00:49:06]requested_item shift.num is exist - process it [00:49:06]requested_item shift.opened is exist - process it [00:49:06]req_shift_opened [00:49:06]FM_GetShiftState [00:49:06]SAM_PROTO_GetShiftState [00:49:06]wFMCommunicate request_size=4 [00:49:06]MH_SAM_APDU [00:49:06]CAPDU: 80 13 01 00 [00:49:06]Write to MH i2c: E2 08 00 89 01 80 13 01 00 00 00 00 00 07 [00:49:06]Write i2c OK [00:49:06]MH_I2C_Read... [00:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:49:06]Read from MH i2c: E2 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 0E 00 [00:49:06]MH_I2C_Read... [00:49:06]Read from MH i2c: E2 0E 00 89 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 4C [00:49:06]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:49:06]wFMCommunicate OK [00:49:06]SAM_PROTO_GetShiftState done [00:49:06]FM_GetShiftState done [00:49:06]req_shift_opened done [00:49:06]requested_item shift.open_date is exist - process it [00:49:06]req_shift_open_date [00:49:06]req_shift_open_date done [00:49:06]produce_requested_data done [00:49:06]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15794,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:49:06]process_action_free close_receipt [00:49:06]json_value_free [00:49:06]json_value_free done [00:49:06]process_json_proto returns [00:49:06]Send response to host [00:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15794,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:49:06]free response buf [00:49:06]execute_script done [00:49:06]execute_script returns [00:49:06]free content buf [00:49:06]Sock 9.Close socket [00:49:06]Sock 9.Thread stoped [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:16]accept exits with 8 [00:51:16]New connection [00:51:16]New thread 3067153764 created [00:51:16]Thread 3067010404 joined [00:51:16]Waiting for new connection... [00:51:16] Sock 8.Parse request [00:51:16]Sock 8.Check first char [00:51:16]Sock 8.First char is OK [00:51:16]request: POST /json_proto HTTP/1.0 [00:51:16]Method: POST [00:51:16]URL: /json_proto [00:51:16]Method is POST - this is cgi request [00:51:16]url: /json_proto [00:51:16]query_string will be loaded in cgi processing [00:51:16]execute_cgi json_proto POST (null) [00:51:16]execute_cgi path=json_proto method=POST [00:51:16]POST find Content-Length [00:51:16]Host: 172.17.54.195:8080 [00:51:16]Content-Length: 678 [00:51:16]Content-Type: application/json [00:51:16] [00:51:16]POST finish read [00:51:16]Found Content-Length = 678 [00:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [00:51:16]execute_script... [00:51: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)16344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "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" ] } } [00:51:16]POST & json_proto [00:51:16]process_json_proto [00:51:16]json parsed OK: [00:51:16]protocol is kg_v1.0 [00:51:16]action value=close_receipt [00:51:16]process_action close_receipt [00:51:16]cmd_close_receipt [00:51:16]MH_GetDate [00:51:16]Write to MH i2c: F0 00 00 8A 01 7A [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: F0 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: F0 09 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: F0 09 00 8A 01 00 05 83 21 67 8D 90 A3 66 B9 [00:51:16]GetLastDocTimeStamp 1730249343 [00:51:16]current date 1730249477 [00:51:16]FM_GetShiftState [00:51:16]SAM_PROTO_GetShiftState [00:51:16]wFMCommunicate request_size=4 [00:51:16]MH_SAM_APDU [00:51:16]CAPDU: 80 13 01 00 [00:51:16]Write to MH i2c: E2 08 00 8B 01 80 13 01 00 00 00 00 00 09 [00:51:16]Write i2c OK [00:51:16]MH_I2C_Read... [00:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:16]Read from MH i2c: E2 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0E 00 [00:51:16]MH_I2C_Read... [00:51:16]Read from MH i2c: E2 0E 00 8B 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 4E [00:51:16]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:51:16]wFMCommunicate OK [00:51:16]SAM_PROTO_GetShiftState done [00:51:16]FM_GetShiftState done [00:51:16]opened in 1730247478 [00:51:16]opened+sec_in_day 1730333878 [00:51:16]quantity*price = 100050 [00:51:16]sum+1 = 100052 [00:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 5 30.10.2024 00:51 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15795 ФПД: 60741386537031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T005117&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15795&fm=60741386537031&tin=02508201610067®Number=0000000000161798&sum=100000 [00:51:17]StoreToDocumentArchive [00:51:17]shift 173 fd 15795 [00:51:17]save to /storage/0173/doc_00015795 [00:51:17]save last doc name /storage/0173/doc_00015795 to /storage/kkm_last_doc_name [00:51:17]save OK [00:51:17]Clear old archive folders... [00:51:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:51:17]tlvbuf is 002271E0 [00:51:17]SAM_PROTO_ClearQueue [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 09 00 00 [00:51:17]Write to MH i2c: E2 08 00 98 01 80 09 00 00 00 00 00 00 0B [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [00:51:17]RAPDU: 90 00 [00:51:17]wFMCommunicate OK [00:51:17]SAM_PROTO_ClearQueue done [00:51:17]KKMCreateOFDPacket [00:51:17]OFDProtocolAddRootSTLVToBuf [00:51:17]FM_MakeSignedData [00:51:17]FM_MakeSignedData [00:51:17]SAM_PROTO_SignData [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 0D 01 02 [00:51:17]Write to MH i2c: E2 08 00 99 01 80 0D 01 02 00 00 00 00 13 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [00:51:17]RAPDU: 90 00 [00:51:17]wFMCommunicate OK [00:51:17]wFMCommunicate request_size=255 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 05 83 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B3 3D 00 00 35 04 06 00 37 3E 74 C4 [00:51:17]Write to MH i2c: E2 02 01 9A 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 05 83 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B3 3D 00 00 35 04 06 00 37 3E 74 C4 00 00 FA [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:18]Read from MH i2c: E2 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 03 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [00:51:18]RAPDU: 90 00 [00:51:18]wFMCommunicate OK [00:51:18]wFMCommunicate request_size=7 [00:51:18]MH_SAM_APDU [00:51:18]CAPDU: 80 0D 02 02 02 88 47 [00:51:18]Write to MH i2c: E2 0A 00 9B 01 80 0D 02 02 02 00 88 47 00 00 E9 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:18]Read from MH i2c: E2 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 03 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 03 00 9B 01 00 90 00 10 [00:51:18]RAPDU: 90 00 [00:51:18]wFMCommunicate OK [00:51:18]wFMCommunicate request_size=4 [00:51:18]MH_SAM_APDU [00:51:18]CAPDU: 80 0D 03 02 [00:51:18]Write to MH i2c: E2 08 00 9C 01 80 0D 03 02 00 00 00 00 18 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:18]Read from MH i2c: E2 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 0B 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 0B 00 9C 01 00 D3 4D 90 BF 25 C0 73 85 90 00 65 [00:51:18]RAPDU: D3 4D 90 BF 25 C0 73 85 90 00 [00:51:18]wFMCommunicate OK [00:51:18]SAM_PROTO_SignData done [00:51:18]FM_MakeSignedData done [00:51:18]CreateOFDProtocolMessage [00:51:18]wFMCommunicate request_size=4 [00:51:18]MH_SAM_APDU [00:51:18]CAPDU: 80 11 00 00 [00:51:18]Write to MH i2c: E2 08 00 9D 01 80 11 00 00 00 00 00 00 18 [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:18]Read from MH i2c: E2 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 17 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: E2 17 00 9D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 67 [00:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:51:18]wFMCommunicate OK [00:51:18]CreateOFDProtocolMessage done [00:51:18]OFDSenderStorePacket 15795 [00:51:18]StoreOFDPacket docnum=15795 [00:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 56 64 04 01 F3 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 05 83 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B3 3D 00 00 35 04 06 00 37 3E 74 C4 88 47 D3 4D 90 BF 25 C0 73 85 [00:51:18]CheckFolder [00:51:18]dirname=/storage/ofd_packets [00:51:18]CheckFolder done [00:51:18]ProducePacketName [00:51:18]name=ofd_packets/00015795 [00:51:18]NVStorageSaveData ofd_packets/00015795 [00:51:18]File name is /storage/ofd_packets/00015795 [00:51:18]Write 298 bytes [00:51:18]NVStorageSaveData done [00:51:18]OFDSenderStorePacket done [00:51:18]KKMCreateOFDPacket done [00:51:18]NVStorageSaveData kkm_last_timestamp [00:51:18]File name is /storage/kkm_last_timestamp [00:51:18]Write 4 bytes [00:51:18]NVStorageSaveData done [00:51:18]ExternCall_PrintAddStr [00:51:18]wPrintStart [00:51:18]Write to MH i2c: 01 00 00 9E 01 9F [00:51:18]Write i2c OK [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 07 00 [00:51:18]MH_I2C_Read... [00:51:18]Read from MH i2c: 01 07 00 9E 01 00 00 00 00 00 FF 0F B4 [00:51:18]RasterBufferAndPrint [00:51:18]line Счет N : (1)16344 [00:51:18]line ИНН: 02508201610067 [00:51:18]line Контрольно-Кассовый Чек [00:51:18]line ПРОДАЖА [00:51:18]line ТРК (МРК, ГНК) : 22 [00:51:18]line Товар: 2710194210 [00:51:18]line ДТ-К-5 [00:51:18]line 13.130 * 76.20 [00:51:18]line = 1000.51 [00:51:18]line НДС 12% НСП 1% [00:51:18]line > о реализуемом товаре [00:51:18]line ОКРУГЛЕНИЕ: -0.51 [00:51:18]line ИТОГО: 1000.00 [00:51:18]line Внесено: 1000.00 [00:51:18]line СДАЧА: 0.00 [00:51:18]line НСП 1% : 8.85 [00:51:18]line НДС 12% : 106.25 [00:51:18]line Наличными: 1000.00 [00:51:18]line Безнал.: 0.00 [00:51:18]line Место: АЗС № 178 "Партнер Нефть" [00:51:18]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [00:51:18]line СНО: Общий режим [00:51:18]line Чек 5 30.10.2024 00:51 [00:51:18]line Смена: 173 ФФД: 1.0 [00:51:18]line ЗНМ: 0300000014 [00:51:18]line РНМ: 0000000000161798 [00:51:18]line Версия ККМ: v1.0 [00:51:18]line ФМ: 0000000000963325 [00:51:18]line ФД: 15795 [00:51:18]line ФПД: 60741386537031 [00:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T005117&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15795&fm=60741386537031&tin=02508201610067®Number=0000000000161798&sum=100000 [00:51:18]OFD Sender: Processing packet 15795 [packets to send 4, broken 3] [00:51:18]ProducePacketName [00:51:18]name=ofd_packets/00015795 [00:51:18]OFD Sender: To server: pG, [00:51:18]CommunicateWithHost lk.salyk.kg:30040 [00:51:18]ConnectInit lk.salyk.kg [00:51:18]written 0, free lines is 4095 [00:51:18]Connected sock=10 [00:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0C 01 00 00 56 64 04 01 F3 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 05 83 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B3 3D 00 00 35 04 06 00 37 3E 74 C4 88 47 D3 4D 90 BF 25 C0 73 85 [00:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 4D CD 47 00 0A E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B3 3D 00 00 F4 03 04 00 F0 2D 21 67 B6 04 01 00 00 4F FA 4B 3F 68 0B C0 15 [00:51:18]CommunicateWithHost err = 0 [00:51:18]CheckOFDResponse [00:51:18]1017 (14) - 77093643461234 [00:51:18]1041 (16) - 0000000000963325 [00:51:18]1040 (4) - 15795 [00:51:18]1012 (4) - 29.10.2024 18:48 [00:51:18]1206 (1) - 0 [00:51:18]OFD Sender: Remove packet 15795 [00:51:18]ProducePacketName [00:51:18]name=ofd_packets/00015795 [00:51:18]NVStorageDeleteData [00:51:19]Write to MH i2c: 01 00 00 C9 01 CA [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: 01 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: 01 07 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: 01 07 00 C9 01 00 00 00 00 00 E1 0C BE [00:51:19]RasterBufferAndPrint [00:51:19]line [00:51:19]line [00:51:19]line [00:51:19]line [00:51:19]line [00:51:19]written 0, free lines is 3303 [00:51:19]MH_Cut [00:51:19]Write to MH i2c: D1 01 00 D0 01 01 A3 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: D1 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: D1 01 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: D1 01 00 D0 01 00 A2 [00:51:19]Write to MH i2c: 01 00 00 D1 01 D2 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]OFD Sender: No OFD packet to send [00:51:19]*** Cut start [00:51:19]*** Partial cut [00:51:19]*** CUTSNS_PIN = 1 [00:51:19]*** CUTSNS_PIN = 0 [00:51:20]*** Brake cut motor [00:51:20]Read from MH i2c: 01 [00:51:20]MH_I2C_Read... [00:51:20]*** Stop cut motor [00:51:20]*** Cut end [00:51:20]Read from MH i2c: 01 07 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 FF 0F E7 [00:51:20]process_action close_receipt done [00:51:20]requested_data is exist [00:51:20]produce_requested_data [00:51:20]requested_item fm.sn is exist - process it [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 11 00 00 [00:51:20]Write to MH i2c: E2 08 00 D2 01 80 11 00 00 00 00 00 00 4D [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 17 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 17 00 D2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 9C [00:51:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [00:51:20]wFMCommunicate OK [00:51:20]requested_item fd.num is exist - process it [00:51:20]SAM_PROTO_GetFieldsCounters [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 13 00 00 [00:51:20]Write to MH i2c: E2 08 00 D3 01 80 13 00 00 00 00 00 00 50 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 62 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 62 00 D3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B3 3D 00 00 0E 04 04 00 AD 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 20 [00:51:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B3 3D 00 00 0E 04 04 00 AD 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 [00:51:20]wFMCommunicate OK [00:51:20]SAM_PROTO_GetFieldsCounters done [00:51:20]requested_item shift.num is exist - process it [00:51:20]requested_item shift.opened is exist - process it [00:51:20]req_shift_opened [00:51:20]FM_GetShiftState [00:51:20]SAM_PROTO_GetShiftState [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 13 01 00 [00:51:20]Write to MH i2c: E2 08 00 D4 01 80 13 01 00 00 00 00 00 52 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 0E 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 0E 00 D4 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 97 [00:51:20]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [00:51:20]wFMCommunicate OK [00:51:20]SAM_PROTO_GetShiftState done [00:51:20]FM_GetShiftState done [00:51:20]req_shift_opened done [00:51:20]requested_item shift.open_date is exist - process it [00:51:20]req_shift_open_date [00:51:20]req_shift_open_date done [00:51:20]produce_requested_data done [00:51:20]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15795,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [00:51:20]process_action_free close_receipt [00:51:20]json_value_free [00:51:20]json_value_free done [00:51:20]process_json_proto returns [00:51:20]Send response to host [00:51:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15795,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [00:51:20]free response buf [00:51:20]execute_script done [00:51:20]execute_script returns [00:51:20]free content buf [00:51:20]Sock 8.Close socket [00:51:20]Sock 8.Thread stoped [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:55]OFD Sender: No OFD packet to send [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:01]OFD Sender: No OFD packet to send [01:34:06]OFD Sender: No OFD packet to send [01:34:11]OFD Sender: No OFD packet to send [01:34:16]OFD Sender: No OFD packet to send [01:34:21]OFD Sender: No OFD packet to send [01:34:26]OFD Sender: No OFD packet to send [01:34:31]OFD Sender: No OFD packet to send [01:34:36]OFD Sender: No OFD packet to send [01:34:41]OFD Sender: No OFD packet to send [01:34:46]OFD Sender: No OFD packet to send [01:34:51]OFD Sender: No OFD packet to send [01:34:56]OFD Sender: No OFD packet to send [01:35:01]OFD Sender: No OFD packet to send [01:35:06]OFD Sender: No OFD packet to send [01:35:11]OFD Sender: No OFD packet to send [01:35:16]OFD Sender: No OFD packet to send [01:35:21]OFD Sender: No OFD packet to send [01:35:26]OFD Sender: No OFD packet to send [01:35:31]OFD Sender: No OFD packet to send [01:35:36]OFD Sender: No OFD packet to send [01:35:41]OFD Sender: No OFD packet to send [01:35:46]OFD Sender: No OFD packet to send [01:35:51]OFD Sender: No OFD packet to send [01:35:56]OFD Sender: No OFD packet to send [01:36:01]OFD Sender: No OFD packet to send [01:36:06]OFD Sender: No OFD packet to send [01:36:11]OFD Sender: No OFD packet to send [01:36:16]OFD Sender: No OFD packet to send [01:36:21]OFD Sender: No OFD packet to send [01:36:26]OFD Sender: No OFD packet to send [01:36:31]OFD Sender: No OFD packet to send [01:36:36]OFD Sender: No OFD packet to send [01:36:41]OFD Sender: No OFD packet to send [01:36:46]OFD Sender: No OFD packet to send [01:36:51]OFD Sender: No OFD packet to send [01:36:56]OFD Sender: No OFD packet to send [01:37:01]OFD Sender: No OFD packet to send [01:37:06]OFD Sender: No OFD packet to send [01:37:11]OFD Sender: No OFD packet to send [01:37:16]OFD Sender: No OFD packet to send [01:37:21]OFD Sender: No OFD packet to send [01:37:26]OFD Sender: No OFD packet to send [01:37:31]OFD Sender: No OFD packet to send [01:37:36]OFD Sender: No OFD packet to send [01:37:41]OFD Sender: No OFD packet to send [01:37:46]OFD Sender: No OFD packet to send [01:37:51]OFD Sender: No OFD packet to send [01:37:56]OFD Sender: No OFD packet to send [01:38:01]OFD Sender: No OFD packet to send [01:38:06]OFD Sender: No OFD packet to send [01:38:11]OFD Sender: No OFD packet to send [01:38:16]OFD Sender: No OFD packet to send [01:38:21]OFD Sender: No OFD packet to send [01:38:26]OFD Sender: No OFD packet to send [01:38:31]OFD Sender: No OFD packet to send [01:38:36]OFD Sender: No OFD packet to send [01:38:41]OFD Sender: No OFD packet to send [01:38:46]OFD Sender: No OFD packet to send [01:38:51]OFD Sender: No OFD packet to send [01:38:56]OFD Sender: No OFD packet to send [01:39:01]OFD Sender: No OFD packet to send [01:39:06]OFD Sender: No OFD packet to send [01:39:11]OFD Sender: No OFD packet to send [01:39:16]OFD Sender: No OFD packet to send [01:39:21]OFD Sender: No OFD packet to send [01:39:26]OFD Sender: No OFD packet to send [01:39:31]OFD Sender: No OFD packet to send [01:39:36]OFD Sender: No OFD packet to send [01:39:41]OFD Sender: No OFD packet to send [01:39:46]OFD Sender: No OFD packet to send [01:39:51]OFD Sender: No OFD packet to send [01:39:56]OFD Sender: No OFD packet to send [01:40:01]OFD Sender: No OFD packet to send [01:40:06]OFD Sender: No OFD packet to send [01:40:11]OFD Sender: No OFD packet to send [01:40:16]OFD Sender: No OFD packet to send [01:40:21]OFD Sender: No OFD packet to send [01:40:26]OFD Sender: No OFD packet to send [01:40:31]OFD Sender: No OFD packet to send [01:40:36]OFD Sender: No OFD packet to send [01:40:41]OFD Sender: No OFD packet to send [01:40:46]OFD Sender: No OFD packet to send [01:40:51]OFD Sender: No OFD packet to send [01:40:56]OFD Sender: No OFD packet to send [01:41:01]OFD Sender: No OFD packet to send [01:41:06]OFD Sender: No OFD packet to send [01:41:11]OFD Sender: No OFD packet to send [01:41:16]OFD Sender: No OFD packet to send [01:41:21]OFD Sender: No OFD packet to send [01:41:26]OFD Sender: No OFD packet to send [01:41:31]OFD Sender: No OFD packet to send [01:41:36]OFD Sender: No OFD packet to send [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:57]OFD Sender: No OFD packet to send [01:55:02]OFD Sender: No OFD packet to send [01:55:07]OFD Sender: No OFD packet to send [01:55:12]OFD Sender: No OFD packet to send [01:55:17]OFD Sender: No OFD packet to send [01:55:22]OFD Sender: No OFD packet to send [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:38]OFD Sender: No OFD packet to send [02:21:43]OFD Sender: No OFD packet to send [02:21:48]OFD Sender: No OFD packet to send [02:21:53]OFD Sender: No OFD packet to send [02:21:58]OFD Sender: No OFD packet to send [02:22:03]OFD Sender: No OFD packet to send [02:22:08]OFD Sender: No OFD packet to send [02:22:13]OFD Sender: No OFD packet to send [02:22:18]OFD Sender: No OFD packet to send [02:22:23]OFD Sender: No OFD packet to send [02:22:28]OFD Sender: No OFD packet to send [02:22:33]OFD Sender: No OFD packet to send [02:22:38]OFD Sender: No OFD packet to send [02:22:43]OFD Sender: No OFD packet to send [02:22:48]OFD Sender: No OFD packet to send [02:22:53]OFD Sender: No OFD packet to send [02:22:58]OFD Sender: No OFD packet to send [02:23:03]OFD Sender: No OFD packet to send [02:23:08]OFD Sender: No OFD packet to send [02:23:13]OFD Sender: No OFD packet to send [02:23:18]OFD Sender: No OFD packet to send [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37:14]OFD Sender: No OFD packet to send [02:37:19]OFD Sender: No OFD packet to send [02:37:24]OFD Sender: No OFD packet to send [02:37:29]OFD Sender: No OFD packet to send [02:37:34]OFD Sender: No OFD packet to send [02:37:39]OFD Sender: No OFD packet to send [02:37:44]OFD Sender: No OFD packet to send [02:37:49]OFD Sender: No OFD packet to send [02:37:54]OFD Sender: No OFD packet to send [02:37:59]OFD Sender: No OFD packet to send [02:38:04]OFD Sender: No OFD packet to send [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:09]OFD Sender: No OFD packet to send [02:39:14]OFD Sender: No OFD packet to send [02:39:19]OFD Sender: No OFD packet to send [02:39:24]OFD Sender: No OFD packet to send [02:39:29]OFD Sender: No OFD packet to send [02:39:34]OFD Sender: No OFD packet to send [02:39:39]OFD Sender: No OFD packet to send [02:39:44]OFD Sender: No OFD packet to send [02:39:49]OFD Sender: No OFD packet to send [02:39:54]OFD Sender: No OFD packet to send [02:39:59]OFD Sender: No OFD packet to send [02:40:04]OFD Sender: No OFD packet to send [02:40:09]OFD Sender: No OFD packet to send [02:40:14]OFD Sender: No OFD packet to send [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:49]accept exits with 9 [02:57:49]New connection [02:57:49]New thread 3067010404 created [02:57:49]Thread 3067153764 joined [02:57:49]Waiting for new connection... [02:57:49] Sock 9.Parse request [02:57:49]Sock 9.Check first char [02:57:49]Sock 9.First char is OK [02:57:49]request: POST /json_proto HTTP/1.0 [02:57:49]Method: POST [02:57:49]URL: /json_proto [02:57:49]Method is POST - this is cgi request [02:57:49]url: /json_proto [02:57:49]query_string will be loaded in cgi processing [02:57:49]execute_cgi json_proto POST (null) [02:57:49]execute_cgi path=json_proto method=POST [02:57:49]POST find Content-Length [02:57:49]Host: 172.17.54.195:8080 [02:57:49]Content-Length: 671 [02:57:49]Content-Type: application/json [02:57:49] [02:57:49]POST finish read [02:57:49]Found Content-Length = 671 [02:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)16345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [02:57:49]execute_script... [02:57: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)16345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "50.50.0", "name": "SUPER 92-\u041A-5", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "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" ] } } [02:57:49]POST & json_proto [02:57:49]process_json_proto [02:57:49]json parsed OK: [02:57:49]protocol is kg_v1.0 [02:57:49]action value=close_receipt [02:57:49]process_action close_receipt [02:57:49]cmd_close_receipt [02:57:49]MH_GetDate [02:57:49]Write to MH i2c: F0 00 00 D5 01 C5 [02:57:49]Write i2c OK [02:57:49]MH_I2C_Read... [02:57:49]Read from MH i2c: F0 [02:57:49]MH_I2C_Read... [02:57:49]Read from MH i2c: F0 09 00 [02:57:49]MH_I2C_Read... [02:57:49]Read from MH i2c: F0 09 00 D5 01 00 AE A0 21 67 8D 90 A3 66 CA [02:57:49]GetLastDocTimeStamp 1730249477 [02:57:49]current date 1730257070 [02:57:49]FM_GetShiftState [02:57:49]SAM_PROTO_GetShiftState [02:57:49]wFMCommunicate request_size=4 [02:57:49]MH_SAM_APDU [02:57:49]CAPDU: 80 13 01 00 [02:57:49]Write to MH i2c: E2 08 00 D6 01 80 13 01 00 00 00 00 00 54 [02:57:49]Write i2c OK [02:57:49]MH_I2C_Read... [02:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:49]Read from MH i2c: E2 [02:57:49]MH_I2C_Read... [02:57:49]Read from MH i2c: E2 0E 00 [02:57:49]MH_I2C_Read... [02:57:49]Read from MH i2c: E2 0E 00 D6 01 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 99 [02:57:49]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [02:57:49]wFMCommunicate OK [02:57:49]SAM_PROTO_GetShiftState done [02:57:49]FM_GetShiftState done [02:57:49]opened in 1730247478 [02:57:49]opened+sec_in_day 1730333878 [02:57:49]quantity*price = 100000 [02:57:49]sum+1 = 100002 [02:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 178 "Партнер Нефть" Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 СНО: Общий режим Чек 6 30.10.2024 02:57 Смена: 173 ФФД: 1.0 ЗНМ: 0300000014 РНМ: 0000000000161798 Версия ККМ: v1.0 ФМ: 0000000000963325 ФД: 15796 ФПД: 76662969517591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T025750&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15796&fm=76662969517591&tin=02508201610067®Number=0000000000161798&sum=100000 [02:57:50]StoreToDocumentArchive [02:57:50]shift 173 fd 15796 [02:57:50]save to /storage/0173/doc_00015796 [02:57:50]save last doc name /storage/0173/doc_00015796 to /storage/kkm_last_doc_name [02:57:50]save OK [02:57:50]Clear old archive folders... [02:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=249 [02:57:50]tlvbuf is 00228E00 [02:57:50]SAM_PROTO_ClearQueue [02:57:50]wFMCommunicate request_size=4 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 09 00 00 [02:57:50]Write to MH i2c: E2 08 00 E3 01 80 09 00 00 00 00 00 00 56 [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 E3 01 00 90 00 58 [02:57:50]RAPDU: 90 00 [02:57:50]wFMCommunicate OK [02:57:50]SAM_PROTO_ClearQueue done [02:57:50]KKMCreateOFDPacket [02:57:50]OFDProtocolAddRootSTLVToBuf [02:57:50]FM_MakeSignedData [02:57:50]FM_MakeSignedData [02:57:50]SAM_PROTO_SignData [02:57:50]wFMCommunicate request_size=4 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 0D 01 02 [02:57:50]Write to MH i2c: E2 08 00 E4 01 80 0D 01 02 00 00 00 00 5E [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 E4 01 00 90 00 59 [02:57:50]RAPDU: 90 00 [02:57:50]wFMCommunicate OK [02:57:50]wFMCommunicate request_size=255 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 AE A0 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B4 3D 00 00 35 04 06 00 45 B9 7D [02:57:50]Write to MH i2c: E2 02 01 E5 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 AE A0 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B4 3D 00 00 35 04 06 00 45 B9 7D 00 00 0F [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 E5 01 00 90 00 5A [02:57:50]RAPDU: 90 00 [02:57:50]wFMCommunicate OK [02:57:50]wFMCommunicate request_size=8 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 0D 02 02 03 10 C6 17 [02:57:50]Write to MH i2c: E2 0B 00 E6 01 80 0D 02 02 03 00 10 C6 17 00 00 54 [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [02:57:50]RAPDU: 90 00 [02:57:50]wFMCommunicate OK [02:57:50]wFMCommunicate request_size=4 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 0D 03 02 [02:57:50]Write to MH i2c: E2 08 00 E7 01 80 0D 03 02 00 00 00 00 63 [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 0B 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 0B 00 E7 01 00 01 1C B0 69 2A 57 C1 C8 90 00 A4 [02:57:50]RAPDU: 01 1C B0 69 2A 57 C1 C8 90 00 [02:57:50]wFMCommunicate OK [02:57:50]SAM_PROTO_SignData done [02:57:50]FM_MakeSignedData done [02:57:50]CreateOFDProtocolMessage [02:57:50]wFMCommunicate request_size=4 [02:57:50]MH_SAM_APDU [02:57:50]CAPDU: 80 11 00 00 [02:57:50]Write to MH i2c: E2 08 00 E8 01 80 11 00 00 00 00 00 00 63 [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:50]Read from MH i2c: E2 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 17 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: E2 17 00 E8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 B2 [02:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [02:57:50]wFMCommunicate OK [02:57:50]CreateOFDProtocolMessage done [02:57:50]OFDSenderStorePacket 15796 [02:57:50]StoreOFDPacket docnum=15796 [02:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 D9 62 05 01 2F BE 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 AE A0 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B4 3D 00 00 35 04 06 00 45 B9 7D 10 C6 17 01 1C B0 69 2A 57 C1 C8 [02:57:50]CheckFolder [02:57:50]dirname=/storage/ofd_packets [02:57:50]CheckFolder done [02:57:50]ProducePacketName [02:57:50]name=ofd_packets/00015796 [02:57:50]NVStorageSaveData ofd_packets/00015796 [02:57:50]File name is /storage/ofd_packets/00015796 [02:57:50]Write 299 bytes [02:57:50]NVStorageSaveData done [02:57:50]OFDSenderStorePacket done [02:57:50]KKMCreateOFDPacket done [02:57:50]NVStorageSaveData kkm_last_timestamp [02:57:50]File name is /storage/kkm_last_timestamp [02:57:50]Write 4 bytes [02:57:50]NVStorageSaveData done [02:57:50]ExternCall_PrintAddStr [02:57:50]wPrintStart [02:57:50]Write to MH i2c: 01 00 00 E9 01 EA [02:57:50]Write i2c OK [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: 01 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: 01 07 00 [02:57:50]MH_I2C_Read... [02:57:50]Read from MH i2c: 01 07 00 E9 01 00 00 00 00 00 FF 0F FF [02:57:50]RasterBufferAndPrint [02:57:50]line Счет N : (1)16345 [02:57:50]line ИНН: 02508201610067 [02:57:50]line Контрольно-Кассовый Чек [02:57:50]line ПРОДАЖА [02:57:50]line ТРК (МРК, ГНК) : 12 [02:57:50]line Товар: 50.50.0 [02:57:50]line SUPER 92-К-5 [02:57:50]line 14.620 * 68.40 [02:57:50]line = 1000.01 [02:57:50]line НДС 12% НСП 1% [02:57:50]line > о реализуемом товаре [02:57:50]line ОКРУГЛЕНИЕ: -0.01 [02:57:50]line ИТОГО: 1000.00 [02:57:50]line Внесено: 1000.00 [02:57:50]line СДАЧА: 0.00 [02:57:50]line НСП 1% : 8.85 [02:57:50]line НДС 12% : 106.20 [02:57:50]line Наличными: 1000.00 [02:57:50]line Безнал.: 0.00 [02:57:50]line Место: АЗС № 178 "Партнер Нефть" [02:57:50]line Адрес: 720000, Джалал Абадская обл., с. Уч-Терек 41.766136,73.195838 [02:57:50]line СНО: Общий режим [02:57:50]line Чек 6 30.10.2024 02:57 [02:57:50]line Смена: 173 ФФД: 1.0 [02:57:50]line ЗНМ: 0300000014 [02:57:50]line РНМ: 0000000000161798 [02:57:50]line Версия ККМ: v1.0 [02:57:50]line ФМ: 0000000000963325 [02:57:50]line ФД: 15796 [02:57:50]line ФПД: 76662969517591 [02:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T025750&type=1&operation_type=1&fn_number=0000000000963325&fd_number=15796&fm=76662969517591&tin=02508201610067®Number=0000000000161798&sum=100000 [02:57:51]OFD Sender: Processing packet 15796 [packets to send 4, broken 3] [02:57:51]ProducePacketName [02:57:51]name=ofd_packets/00015796 [02:57:51]OFD Sender: To server: pG, [02:57:51]CommunicateWithHost lk.salyk.kg:30040 [02:57:51]ConnectInit lk.salyk.kg [02:57:51]written 0, free lines is 4095 [02:57:51]Connected sock=10 [02:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 01 00 00 D9 62 05 01 2F BE 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 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 AE A0 21 67 0E 04 04 00 AD 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B4 3D 00 00 35 04 06 00 45 B9 7D 10 C6 17 01 1C B0 69 2A 57 C1 C8 [02:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 4F 00 00 00 14 64 47 00 9E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 10 04 04 00 B4 3D 00 00 F4 03 04 00 99 4B 21 67 B6 04 01 00 00 AF F6 BE F8 60 38 DC 50 [02:57:51]CommunicateWithHost err = 0 [02:57:51]CheckOFDResponse [02:57:51]1017 (14) - 77093643461234 [02:57:51]1041 (16) - 0000000000963325 [02:57:51]1040 (4) - 15796 [02:57:51]1012 (4) - 29.10.2024 20:54 [02:57:51]1206 (1) - 0 [02:57:51]OFD Sender: Remove packet 15796 [02:57:51]ProducePacketName [02:57:51]name=ofd_packets/00015796 [02:57:51]NVStorageDeleteData [02:57:51]Write to MH i2c: 01 00 00 14 02 16 [02:57:51]Write i2c OK [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: 01 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: 01 07 00 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: 01 07 00 14 02 00 00 00 00 00 E6 0C 0F [02:57:51]RasterBufferAndPrint [02:57:51]line [02:57:51]line [02:57:51]line [02:57:51]line [02:57:51]line [02:57:51]written 0, free lines is 3309 [02:57:51]MH_Cut [02:57:51]Write to MH i2c: D1 01 00 1B 02 01 EF [02:57:51]Write i2c OK [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: D1 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: D1 01 00 [02:57:51]MH_I2C_Read... [02:57:51]Read from MH i2c: D1 01 00 1B 02 00 EE [02:57:51]Write to MH i2c: 01 00 00 1C 02 1E [02:57:51]Write i2c OK [02:57:51]MH_I2C_Read... [02:57:52]OFD Sender: No OFD packet to send [02:57:52]*** Cut start [02:57:52]*** Partial cut [02:57:52]*** CUTSNS_PIN = 1 [02:57:52]*** CUTSNS_PIN = 0 [02:57:52]*** Brake cut motor [02:57:53]Read from MH i2c: 01 [02:57:53]MH_I2C_Read... [02:57:53]*** Stop cut motor [02:57:53]*** Cut end [02:57:53]Read from MH i2c: 01 07 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 FF 0F 33 [02:57:53]process_action close_receipt done [02:57:53]requested_data is exist [02:57:53]produce_requested_data [02:57:53]requested_item fm.sn is exist - process it [02:57:53]wFMCommunicate request_size=4 [02:57:53]MH_SAM_APDU [02:57:53]CAPDU: 80 11 00 00 [02:57:53]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:57:53]Read from MH i2c: E2 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 17 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 E8 [02:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 90 00 [02:57:53]wFMCommunicate OK [02:57:53]requested_item fd.num is exist - process it [02:57:53]SAM_PROTO_GetFieldsCounters [02:57:53]wFMCommunicate request_size=4 [02:57:53]MH_SAM_APDU [02:57:53]CAPDU: 80 13 00 00 [02:57:53]Write to MH i2c: E2 08 00 1E 02 80 13 00 00 00 00 00 00 9C [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:57:53]Read from MH i2c: E2 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 62 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 62 00 1E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B4 3D 00 00 0E 04 04 00 AD 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 70 [02:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 33 32 35 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 36 31 37 39 38 10 04 04 00 B4 3D 00 00 0E 04 04 00 AD 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 [02:57:53]wFMCommunicate OK [02:57:53]SAM_PROTO_GetFieldsCounters done [02:57:53]requested_item shift.num is exist - process it [02:57:53]requested_item shift.opened is exist - process it [02:57:53]req_shift_opened [02:57:53]FM_GetShiftState [02:57:53]SAM_PROTO_GetShiftState [02:57:53]wFMCommunicate request_size=4 [02:57:53]MH_SAM_APDU [02:57:53]CAPDU: 80 13 01 00 [02:57:53]Write to MH i2c: E2 08 00 1F 02 80 13 01 00 00 00 00 00 9E [02:57:53]Write i2c OK [02:57:53]MH_I2C_Read... [02:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:57:53]Read from MH i2c: E2 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 0E 00 [02:57:53]MH_I2C_Read... [02:57:53]Read from MH i2c: E2 0E 00 1F 02 00 09 00 01 36 7B 21 67 00 00 00 00 90 00 E3 [02:57:53]RAPDU: 09 00 01 36 7B 21 67 00 00 00 00 90 00 [02:57:53]wFMCommunicate OK [02:57:53]SAM_PROTO_GetShiftState done [02:57:53]FM_GetShiftState done [02:57:53]req_shift_opened done [02:57:53]requested_item shift.open_date is exist - process it [02:57:53]req_shift_open_date [02:57:53]req_shift_open_date done [02:57:53]produce_requested_data done [02:57:53]produce_requested_data return {"fm.sn":"0000000000963325","fd.num":15796,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478} [02:57:53]process_action_free close_receipt [02:57:53]json_value_free [02:57:53]json_value_free done [02:57:53]process_json_proto returns [02:57:53]Send response to host [02:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963325","fd.num":15796,"shift.num":173,"shift.opened":1,"shift.open_date":1730247478}}} [02:57:53]free response buf [02:57:53]execute_script done [02:57:53]execute_script returns [02:57:53]free content buf [02:57:53]Sock 9.Close socket [02:57:53]Sock 9.Thread stoped [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:50]ConnectInit Can't connect to host [03:01:52]OFD Sender: No OFD packet to send