[03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14: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:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]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:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:56]accept exits with 7 [03:52:56]New connection [03:52:56]New thread 3067096420 created [03:52:56]Thread 3066953060 joined [03:52:56]Waiting for new connection... [03:52:56] Sock 7.Parse request [03:52:56]Sock 7.Check first char [03:52:56]Sock 7.First char is OK [03:52:56]request: POST /json_proto HTTP/1.0 [03:52:56]Method: POST [03:52:56]URL: /json_proto [03:52:56]Method is POST - this is cgi request [03:52:56]url: /json_proto [03:52:56]query_string will be loaded in cgi processing [03:52:56]execute_cgi json_proto POST (null) [03:52:56]execute_cgi path=json_proto method=POST [03:52:56]POST find Content-Length [03:52:56]Host: 172.17.42.132:8080 [03:52:56]Content-Length: 931 [03:52:56]Content-Type: application/json [03:52:56] [03:52:56]POST finish read [03:52:56]Found Content-Length = 931 [03:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47595", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 353.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:56]execute_script... [03:52: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 : (3)47595", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 353.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:52:56]POST & json_proto [03:52:56]process_json_proto [03:52:56]json parsed OK: [03:52:56]protocol is kg_v1.0 [03:52:56]action value=close_receipt [03:52:56]process_action close_receipt [03:52:56]cmd_close_receipt [03:52:56]MH_GetDate [03:52:56]Write to MH i2c: F0 00 00 2C 11 2C [03:52:56]Write i2c OK [03:52:56]MH_I2C_Read... [03:52:56]Read from MH i2c: F0 [03:52:56]MH_I2C_Read... [03:52:56]Read from MH i2c: F0 09 00 [03:52:56]MH_I2C_Read... [03:52:56]Read from MH i2c: F0 09 00 2C 11 00 1B 73 18 67 4C DF 56 66 29 [03:52:56]GetLastDocTimeStamp 1729651651 [03:52:56]current date 1729655579 [03:52:56]FM_GetShiftState [03:52:56]SAM_PROTO_GetShiftState [03:52:56]wFMCommunicate request_size=4 [03:52:56]MH_SAM_APDU [03:52:56]CAPDU: 80 13 01 00 [03:52:56]Write to MH i2c: E2 08 00 2D 11 80 13 01 00 00 00 00 00 BB [03:52:56]Write i2c OK [03:52:56]MH_I2C_Read... [03:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:52:56]Read from MH i2c: E2 [03:52:56]MH_I2C_Read... [03:52:56]Read from MH i2c: E2 0E 00 [03:52:56]MH_I2C_Read... [03:52:56]Read from MH i2c: E2 0E 00 2D 11 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A5 [03:52:56]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [03:52:56]wFMCommunicate OK [03:52:56]SAM_PROTO_GetShiftState done [03:52:56]FM_GetShiftState done [03:52:56]opened in 1729642527 [03:52:56]opened+sec_in_day 1729728927 [03:52:56]quantity*price = 26000 [03:52:56]sum+1 = 26001 [03:52:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 353.00 НСП 1% : 3.12 НДС 12% : 37.49 Наличными: 353.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 23.10.2024 03:52 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63285 ФПД: 28811124962321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T035259&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63285&fm=28811124962321&tin=02508201610067®Number=0000000000091619&sum=35300 0 [03:52:57]StoreToDocumentArchive [03:52:57]shift 546 fd 63285 [03:52:57]save to /storage/0546/doc_00063285 [03:52:57]save last doc name /storage/0546/doc_00063285 to /storage/kkm_last_doc_name [03:52:57]save OK [03:52:57]Clear old archive folders... [03:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=400 [03:52:57]tlvbuf is 008BA020 [03:52:57]SAM_PROTO_ClearQueue [03:52:57]wFMCommunicate request_size=4 [03:52:57]MH_SAM_APDU [03:52:57]CAPDU: 80 09 00 00 [03:52:57]Write to MH i2c: E2 08 00 3A 11 80 09 00 00 00 00 00 00 BD [03:52:57]Write i2c OK [03:52:57]MH_I2C_Read... [03:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:52:57]Read from MH i2c: E2 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 3A 11 00 90 00 BF [03:52:57]RAPDU: 90 00 [03:52:57]wFMCommunicate OK [03:52:57]SAM_PROTO_ClearQueue done [03:52:57]KKMCreateOFDPacket [03:52:57]OFDProtocolAddRootSTLVToBuf [03:52:57]FM_MakeSignedData [03:52:57]FM_MakeSignedData [03:52:57]SAM_PROTO_SignData [03:52:57]wFMCommunicate request_size=4 [03:52:57]MH_SAM_APDU [03:52:57]CAPDU: 80 0D 01 02 [03:52:57]Write to MH i2c: E2 08 00 3B 11 80 0D 01 02 00 00 00 00 C5 [03:52:57]Write i2c OK [03:52:57]MH_I2C_Read... [03:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:52:57]Read from MH i2c: E2 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 3B 11 00 90 00 C0 [03:52:57]RAPDU: 90 00 [03:52:57]wFMCommunicate OK [03:52:57]wFMCommunicate request_size=255 [03:52:57]MH_SAM_APDU [03:52:57]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB [03:52:57]Write to MH i2c: E2 02 01 3C 11 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 00 00 E3 [03:52:57]Write i2c OK [03:52:57]MH_I2C_Read... [03:52:57]OFD Sender: No OFD packet to send [03:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:57]Read from MH i2c: E2 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 03 00 3C 11 00 90 00 C1 [03:52:57]RAPDU: 90 00 [03:52:57]wFMCommunicate OK [03:52:57]wFMCommunicate request_size=159 [03:52:57]MH_SAM_APDU [03:52:57]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1B 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F7 00 00 35 04 06 00 1A 34 1C DE 74 11 [03:52:57]Write to MH i2c: E2 A2 00 3D 11 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1B 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F7 00 00 35 04 06 00 1A 34 1C DE 74 11 00 00 E6 [03:52:57]Write i2c OK [03:52:57]MH_I2C_Read... [03:52:57]Read from MH i2c: E2 [03:52:58]MH_I2C_Read... [03:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:52:58]Read from MH i2c: E2 03 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: E2 03 00 3D 11 00 90 00 C2 [03:52:58]RAPDU: 90 00 [03:52:58]wFMCommunicate OK [03:52:58]wFMCommunicate request_size=4 [03:52:58]MH_SAM_APDU [03:52:58]CAPDU: 80 0D 03 02 [03:52:58]Write to MH i2c: E2 08 00 3E 11 80 0D 03 02 00 00 00 00 CA [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:52:58]Read from MH i2c: E2 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: E2 0B 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: E2 0B 00 3E 11 00 FE 3C A2 F7 1A 76 E1 C5 90 00 D4 [03:52:58]RAPDU: FE 3C A2 F7 1A 76 E1 C5 90 00 [03:52:58]wFMCommunicate OK [03:52:58]SAM_PROTO_SignData done [03:52:58]FM_MakeSignedData done [03:52:58]CreateOFDProtocolMessage [03:52:58]wFMCommunicate request_size=4 [03:52:58]MH_SAM_APDU [03:52:58]CAPDU: 80 11 00 00 [03:52:58]Write to MH i2c: E2 08 00 3F 11 80 11 00 00 00 00 00 00 CA [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:52:58]Read from MH i2c: E2 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: E2 17 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: E2 17 00 3F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 23 [03:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:52:58]wFMCommunicate OK [03:52:58]CreateOFDProtocolMessage done [03:52:58]OFDSenderStorePacket 63285 [03:52:58]StoreOFDPacket docnum=63285 [03:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A4 01 00 00 1E 79 9C 01 3E 0F 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1B 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F7 00 00 35 04 06 00 1A 34 1C DE 74 11 FE 3C A2 F7 1A 76 E1 C5 [03:52:58]CheckFolder [03:52:58]dirname=/storage/ofd_packets [03:52:58]CheckFolder done [03:52:58]ProducePacketName [03:52:58]name=ofd_packets/00063285 [03:52:58]NVStorageSaveData ofd_packets/00063285 [03:52:58]File name is /storage/ofd_packets/00063285 [03:52:58]Write 450 bytes [03:52:58]NVStorageSaveData done [03:52:58]OFDSenderStorePacket done [03:52:58]KKMCreateOFDPacket done [03:52:58]NVStorageSaveData kkm_last_timestamp [03:52:58]File name is /storage/kkm_last_timestamp [03:52:58]Write 4 bytes [03:52:58]NVStorageSaveData done [03:52:58]ExternCall_PrintAddStr [03:52:58]wPrintStart [03:52:58]Write to MH i2c: 01 00 00 40 11 51 [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 07 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 FF 0F 66 [03:52:58]RasterBufferAndPrint [03:52:58]line Счет N : (3)47595 [03:52:58]line ИНН: 02508201610067 [03:52:58]line Контрольно-Кассовый Чек [03:52:58]line ПРОДАЖА [03:52:58]line Товар: 2000036220012 [03:52:58]line Кофе Капучино XL(GABB TRADE) [03:52:58]line 2.000 * 130.00 [03:52:58]line = 260.00 [03:52:58]line НДС 12% НСП 1% [03:52:58]line > о реализуемом товаре [03:52:58]line Товар: 4603290004879 [03:52:58]line Печ.сах.FORSITE Сэнд.кокос.вк [03:52:58]line 1.000 * 93.00 [03:52:58]line = 93.00 [03:52:58]line НДС 12% НСП 1% [03:52:58]line > о реализуемом товаре [03:52:58]line ИТОГО: 353.00 [03:52:58]line НСП 1% : 3.12 [03:52:58]line НДС 12% : 37.49 [03:52:58]line Наличными: 353.00 [03:52:58]line Безнал.: 0.00 [03:52:58]line Место: АЗС № 86 "Партнер Нефть" [03:52:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:52:58]line СНО: Общий режим [03:52:58]line Чек 14 23.10.2024 03:52 [03:52:58]line Смена: 546 ФФД: 1.0 [03:52:58]line ЗНМ: 0300000154 [03:52:58]line РНМ: 0000000000091619 [03:52:58]line Версия ККМ: 001 [03:52:58]line ФМ: 0000000000874676 [03:52:58]line ФД: 63285 [03:52:58]line ФПД: 28811124962321 [03:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T035259&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63285&fm=28811124962321&tin=02508201610067®Number=0000000000091619&sum=35300 [03:52:58]line 0 [03:52:58]OFD Sender: Processing packet 63285 [packets to send 232, broken 231] [03:52:58]ProducePacketName [03:52:58]name=ofd_packets/00063285 [03:52:58]OFD Sender: To server: pG, [03:52:58]CommunicateWithHost lk.salyk.kg:30040 [03:52:58]ConnectInit lk.salyk.kg [03:52:58]written 0, free lines is 4095 [03:52:58]Connected sock=10 [03:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A4 01 00 00 1E 79 9C 01 3E 0F 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 89 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 0E 00 00 00 00 07 04 06 00 E4 89 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 1B 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F7 00 00 35 04 06 00 1A 34 1C DE 74 11 FE 3C A2 F7 1A 76 E1 C5 [03:52:58]Write to MH i2c: 01 00 00 6F 11 80 [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 07 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: 01 07 00 6F 11 00 00 00 00 00 BC 0C 4F [03:52:58]RasterBufferAndPrint [03:52:58]line [03:52:58]line [03:52:58]line [03:52:58]line [03:52:58]line [03:52:58]written 0, free lines is 3267 [03:52:58]MH_Cut [03:52:58]Write to MH i2c: D1 01 00 76 11 01 59 [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: D1 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: D1 01 00 [03:52:58]MH_I2C_Read... [03:52:58]Read from MH i2c: D1 01 00 76 11 00 58 [03:52:58]Write to MH i2c: 01 00 00 77 11 88 [03:52:58]Write i2c OK [03:52:58]MH_I2C_Read... [03:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 DA 32 47 00 E2 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 35 F7 00 00 F4 03 04 00 14 1D 18 67 B6 04 01 00 00 CB 78 78 E6 3A 91 A0 AB [03:52:58]CommunicateWithHost err = 0 [03:52:58]CheckOFDResponse [03:52:58]1017 (14) - 77093643461234 [03:52:58]1041 (16) - 0000000000874676 [03:52:58]1040 (4) - 63285 [03:52:58]1012 (4) - 22.10.2024 21:45 [03:52:58]1206 (1) - 0 [03:52:58]OFD Sender: Remove packet 63285 [03:52:58]ProducePacketName [03:52:58]name=ofd_packets/00063285 [03:52:58]NVStorageDeleteData [03:52:59]OFD Sender: No OFD packet to send [03:52:59]*** Cut start [03:52:59]*** Partial cut [03:52:59]*** CUTSNS_PIN = 1 [03:52:59]*** CUTSNS_PIN = 0 [03:52:59]*** Brake cut motor [03:53:00]Read from MH i2c: 01 [03:53:00]MH_I2C_Read... [03:53:00]*** Stop cut motor [03:53:00]*** Cut end [03:53:00]Read from MH i2c: 01 07 00 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: 01 07 00 77 11 00 00 00 00 00 FF 0F 9D [03:53:00]process_action close_receipt done [03:53:00]requested_data is exist [03:53:00]produce_requested_data [03:53:00]requested_item fm.sn is exist - process it [03:53:00]wFMCommunicate request_size=4 [03:53:00]MH_SAM_APDU [03:53:00]CAPDU: 80 11 00 00 [03:53:00]Write to MH i2c: E2 08 00 78 11 80 11 00 00 00 00 00 00 03 [03:53:00]Write i2c OK [03:53:00]MH_I2C_Read... [03:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:53:00]Read from MH i2c: E2 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 17 00 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 17 00 78 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5C [03:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:53:00]wFMCommunicate OK [03:53:00]requested_item fd.num is exist - process it [03:53:00]SAM_PROTO_GetFieldsCounters [03:53:00]wFMCommunicate request_size=4 [03:53:00]MH_SAM_APDU [03:53:00]CAPDU: 80 13 00 00 [03:53:00]Write to MH i2c: E2 08 00 79 11 80 13 00 00 00 00 00 00 06 [03:53:00]Write i2c OK [03:53:00]MH_I2C_Read... [03:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:53:00]Read from MH i2c: E2 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 62 00 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 62 00 79 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 35 F7 00 00 0E 04 04 00 22 02 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 A8 [03:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 35 F7 00 00 0E 04 04 00 22 02 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 [03:53:00]wFMCommunicate OK [03:53:00]SAM_PROTO_GetFieldsCounters done [03:53:00]requested_item shift.num is exist - process it [03:53:00]requested_item shift.opened is exist - process it [03:53:00]req_shift_opened [03:53:00]FM_GetShiftState [03:53:00]SAM_PROTO_GetShiftState [03:53:00]wFMCommunicate request_size=4 [03:53:00]MH_SAM_APDU [03:53:00]CAPDU: 80 13 01 00 [03:53:00]Write to MH i2c: E2 08 00 7A 11 80 13 01 00 00 00 00 00 08 [03:53:00]Write i2c OK [03:53:00]MH_I2C_Read... [03:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:53:00]Read from MH i2c: E2 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 0E 00 [03:53:00]MH_I2C_Read... [03:53:00]Read from MH i2c: E2 0E 00 7A 11 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F2 [03:53:00]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [03:53:00]wFMCommunicate OK [03:53:00]SAM_PROTO_GetShiftState done [03:53:00]FM_GetShiftState done [03:53:00]req_shift_opened done [03:53:00]requested_item shift.open_date is exist - process it [03:53:00]req_shift_open_date [03:53:00]req_shift_open_date done [03:53:00]produce_requested_data done [03:53:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63285,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [03:53:00]process_action_free close_receipt [03:53:00]json_value_free [03:53:00]json_value_free done [03:53:00]process_json_proto returns [03:53:00]Send response to host [03:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63285,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [03:53:00]free response buf [03:53:00]execute_script done [03:53:00]execute_script returns [03:53:00]free content buf [03:53:00]Sock 7.Close socket [03:53:00]Sock 7.Thread stoped [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:31]accept exits with 9 [03:54:31]New connection [03:54:31]New thread 3066953060 created [03:54:31]Thread 3067096420 joined [03:54:31]Waiting for new connection... [03:54:31] Sock 9.Parse request [03:54:31]Sock 9.Check first char [03:54:31]Sock 9.First char is OK [03:54:31]request: POST /json_proto HTTP/1.0 [03:54:31]Method: POST [03:54:31]URL: /json_proto [03:54:31]Method is POST - this is cgi request [03:54:31]url: /json_proto [03:54:31]query_string will be loaded in cgi processing [03:54:31]execute_cgi json_proto POST (null) [03:54:31]execute_cgi path=json_proto method=POST [03:54:31]POST find Content-Length [03:54:31]Host: 172.17.42.132:8080 [03:54:31]Content-Length: 956 [03:54:31]Content-Type: application/json [03:54:31] [03:54:31]POST finish read [03:54:31]Found Content-Length = 956 [03:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47596", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:31]execute_script... [03:54: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 : (3)47596", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 229.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:31]POST & json_proto [03:54:31]process_json_proto [03:54:31]json parsed OK: [03:54:31]protocol is kg_v1.0 [03:54:31]action value=close_receipt [03:54:31]process_action close_receipt [03:54:31]cmd_close_receipt [03:54:31]MH_GetDate [03:54:31]Write to MH i2c: F0 00 00 7B 11 7B [03:54:31]Write i2c OK [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: F0 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: F0 09 00 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: F0 09 00 7B 11 00 7A 73 18 67 4C DF 56 66 D7 [03:54:31]GetLastDocTimeStamp 1729655579 [03:54:31]current date 1729655674 [03:54:31]FM_GetShiftState [03:54:31]SAM_PROTO_GetShiftState [03:54:31]wFMCommunicate request_size=4 [03:54:31]MH_SAM_APDU [03:54:31]CAPDU: 80 13 01 00 [03:54:31]Write to MH i2c: E2 08 00 7C 11 80 13 01 00 00 00 00 00 0A [03:54:31]Write i2c OK [03:54:31]MH_I2C_Read... [03:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:31]Read from MH i2c: E2 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: E2 0E 00 [03:54:31]MH_I2C_Read... [03:54:31]Read from MH i2c: E2 0E 00 7C 11 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F4 [03:54:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [03:54:31]wFMCommunicate OK [03:54:31]SAM_PROTO_GetShiftState done [03:54:31]FM_GetShiftState done [03:54:31]opened in 1729642527 [03:54:31]opened+sec_in_day 1729728927 [03:54:31]quantity*price = 10400 [03:54:31]sum+1 = 10401 [03:54:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 229.00 НСП 1% : 2.03 НДС 12% : 24.31 Наличными: 229.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 23.10.2024 03:54 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63286 ФПД: 171943109399417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T035434&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63286&fm=171943109399417&tin=02508201610067®Number=0000000000091619&sum=22900 0 [03:54:32]StoreToDocumentArchive [03:54:32]shift 546 fd 63286 [03:54:32]save to /storage/0546/doc_00063286 [03:54:32]save last doc name /storage/0546/doc_00063286 to /storage/kkm_last_doc_name [03:54:32]save OK [03:54:32]Clear old archive folders... [03:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=399 [03:54:32]tlvbuf is 008F7180 [03:54:32]SAM_PROTO_ClearQueue [03:54:32]wFMCommunicate request_size=4 [03:54:32]MH_SAM_APDU [03:54:32]CAPDU: 80 09 00 00 [03:54:32]Write to MH i2c: E2 08 00 89 11 80 09 00 00 00 00 00 00 0C [03:54:32]Write i2c OK [03:54:32]MH_I2C_Read... [03:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:54:32]Read from MH i2c: E2 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 89 11 00 90 00 0E [03:54:32]RAPDU: 90 00 [03:54:32]wFMCommunicate OK [03:54:32]SAM_PROTO_ClearQueue done [03:54:32]KKMCreateOFDPacket [03:54:32]OFDProtocolAddRootSTLVToBuf [03:54:32]FM_MakeSignedData [03:54:32]FM_MakeSignedData [03:54:32]SAM_PROTO_SignData [03:54:32]wFMCommunicate request_size=4 [03:54:32]MH_SAM_APDU [03:54:32]CAPDU: 80 0D 01 02 [03:54:32]Write to MH i2c: E2 08 00 8A 11 80 0D 01 02 00 00 00 00 14 [03:54:32]Write i2c OK [03:54:32]MH_I2C_Read... [03:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:54:32]Read from MH i2c: E2 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [03:54:32]RAPDU: 90 00 [03:54:32]wFMCommunicate OK [03:54:32]wFMCommunicate request_size=255 [03:54:32]MH_SAM_APDU [03:54:32]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 [03:54:32]Write to MH i2c: E2 02 01 8B 11 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 00 00 2A [03:54:32]Write i2c OK [03:54:32]MH_I2C_Read... [03:54:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:32]Read from MH i2c: E2 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 [03:54:32]MH_I2C_Read... [03:54:32]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [03:54:32]RAPDU: 90 00 [03:54:32]wFMCommunicate OK [03:54:32]wFMCommunicate request_size=158 [03:54:32]MH_SAM_APDU [03:54:32]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7A 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F7 00 00 35 04 06 00 9C 61 9F F5 13 79 [03:54:32]Write to MH i2c: E2 A1 00 8C 11 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7A 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F7 00 00 35 04 06 00 9C 61 9F F5 13 79 00 00 A8 [03:54:32]Write i2c OK [03:54:32]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 03 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [03:54:33]RAPDU: 90 00 [03:54:33]wFMCommunicate OK [03:54:33]wFMCommunicate request_size=4 [03:54:33]MH_SAM_APDU [03:54:33]CAPDU: 80 0D 03 02 [03:54:33]Write to MH i2c: E2 08 00 8D 11 80 0D 03 02 00 00 00 00 19 [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 0B 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 0B 00 8D 11 00 BA 42 A9 3C B1 F9 C1 4F 90 00 B5 [03:54:33]RAPDU: BA 42 A9 3C B1 F9 C1 4F 90 00 [03:54:33]wFMCommunicate OK [03:54:33]SAM_PROTO_SignData done [03:54:33]FM_MakeSignedData done [03:54:33]CreateOFDProtocolMessage [03:54:33]wFMCommunicate request_size=4 [03:54:33]MH_SAM_APDU [03:54:33]CAPDU: 80 11 00 00 [03:54:33]Write to MH i2c: E2 08 00 8E 11 80 11 00 00 00 00 00 00 19 [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:33]Read from MH i2c: E2 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 17 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: E2 17 00 8E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 72 [03:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:54:33]wFMCommunicate OK [03:54:33]CreateOFDProtocolMessage done [03:54:33]OFDSenderStorePacket 63286 [03:54:33]StoreOFDPacket docnum=63286 [03:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A3 01 00 00 D9 9D 9B 01 F6 37 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7A 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F7 00 00 35 04 06 00 9C 61 9F F5 13 79 BA 42 A9 3C B1 F9 C1 4F [03:54:33]CheckFolder [03:54:33]dirname=/storage/ofd_packets [03:54:33]CheckFolder done [03:54:33]ProducePacketName [03:54:33]name=ofd_packets/00063286 [03:54:33]NVStorageSaveData ofd_packets/00063286 [03:54:33]File name is /storage/ofd_packets/00063286 [03:54:33]Write 449 bytes [03:54:33]NVStorageSaveData done [03:54:33]OFDSenderStorePacket done [03:54:33]KKMCreateOFDPacket done [03:54:33]NVStorageSaveData kkm_last_timestamp [03:54:33]File name is /storage/kkm_last_timestamp [03:54:33]Write 4 bytes [03:54:33]NVStorageSaveData done [03:54:33]ExternCall_PrintAddStr [03:54:33]wPrintStart [03:54:33]Write to MH i2c: 01 00 00 8F 11 A0 [03:54:33]Write i2c OK [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: 01 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: 01 07 00 [03:54:33]MH_I2C_Read... [03:54:33]Read from MH i2c: 01 07 00 8F 11 00 00 00 00 00 FF 0F B5 [03:54:33]RasterBufferAndPrint [03:54:33]line Счет N : (3)47596 [03:54:33]line ИНН: 02508201610067 [03:54:33]line Контрольно-Кассовый Чек [03:54:33]line ПРОДАЖА [03:54:33]line Товар: 4870202522015 [03:54:33]line Напиток Maxi Чай Грушевый 1,2л [03:54:33]line 1.000 * 104.00 [03:54:33]line = 104.00 [03:54:33]line НДС 12% НСП 1% [03:54:33]line > о реализуемом товаре [03:54:33]line Товар: 5449000054227 [03:54:33]line Напиток Кока-Кола 1л [03:54:33]line 1.000 * 125.00 [03:54:33]line = 125.00 [03:54:33]line НДС 12% НСП 1% [03:54:33]line > о реализуемом товаре [03:54:33]line ИТОГО: 229.00 [03:54:33]line НСП 1% : 2.03 [03:54:33]line НДС 12% : 24.31 [03:54:33]line Наличными: 229.00 [03:54:33]line Безнал.: 0.00 [03:54:33]line Место: АЗС № 86 "Партнер Нефть" [03:54:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:54:33]line СНО: Общий режим [03:54:33]line Чек 15 23.10.2024 03:54 [03:54:33]line Смена: 546 ФФД: 1.0 [03:54:33]line ЗНМ: 0300000154 [03:54:33]line РНМ: 0000000000091619 [03:54:33]line Версия ККМ: 001 [03:54:33]line ФМ: 0000000000874676 [03:54:33]line ФД: 63286 [03:54:33]line ФПД: 171943109399417 [03:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T035434&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63286&fm=171943109399417&tin=02508201610067®Number=0000000000091619&sum=22900 [03:54:33]line 0 [03:54:33]OFD Sender: Processing packet 63286 [packets to send 232, broken 231] [03:54:33]ProducePacketName [03:54:33]name=ofd_packets/00063286 [03:54:33]OFD Sender: To server: pG, [03:54:33]CommunicateWithHost lk.salyk.kg:30040 [03:54:33]ConnectInit lk.salyk.kg [03:54:33]written 0, free lines is 4095 [03:54:33]Connected sock=11 [03:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A3 01 00 00 D9 9D 9B 01 F6 37 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 09 00 00 00 00 07 04 06 00 74 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 7A 73 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F7 00 00 35 04 06 00 9C 61 9F F5 13 79 BA 42 A9 3C B1 F9 C1 4F [03:54:34]Write to MH i2c: 01 00 00 BE 11 CF [03:54:34]Write i2c OK [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: 01 [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: 01 07 00 [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: 01 07 00 BE 11 00 00 00 00 00 B4 0C 96 [03:54:34]RasterBufferAndPrint [03:54:34]line [03:54:34]line [03:54:34]line [03:54:34]line [03:54:34]line [03:54:34]written 0, free lines is 3257 [03:54:34]MH_Cut [03:54:34]Write to MH i2c: D1 01 00 C5 11 01 A8 [03:54:34]Write i2c OK [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: D1 [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: D1 01 00 [03:54:34]MH_I2C_Read... [03:54:34]Read from MH i2c: D1 01 00 C5 11 00 A7 [03:54:34]Write to MH i2c: 01 00 00 C6 11 D7 [03:54:34]Write i2c OK [03:54:34]MH_I2C_Read... [03:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 71 B8 47 00 4D AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 36 F7 00 00 F4 03 04 00 73 1D 18 67 B6 04 01 00 00 02 4C 2C 77 4A AF E1 E5 [03:54:34]CommunicateWithHost err = 0 [03:54:34]CheckOFDResponse [03:54:34]1017 (14) - 77093643461234 [03:54:34]1041 (16) - 0000000000874676 [03:54:34]1040 (4) - 63286 [03:54:34]1012 (4) - 22.10.2024 21:47 [03:54:34]1206 (1) - 0 [03:54:34]OFD Sender: Remove packet 63286 [03:54:34]ProducePacketName [03:54:34]name=ofd_packets/00063286 [03:54:34]NVStorageDeleteData [03:54:34]OFD Sender: No OFD packet to send [03:54:34]*** Cut start [03:54:34]*** Partial cut [03:54:34]*** CUTSNS_PIN = 1 [03:54:34]*** CUTSNS_PIN = 0 [03:54:35]*** Brake cut motor [03:54:35]Read from MH i2c: 01 [03:54:35]MH_I2C_Read... [03:54:35]*** Stop cut motor [03:54:35]*** Cut end [03:54:35]Read from MH i2c: 01 07 00 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 FF 0F EC [03:54:35]process_action close_receipt done [03:54:35]requested_data is exist [03:54:35]produce_requested_data [03:54:35]requested_item fm.sn is exist - process it [03:54:35]wFMCommunicate request_size=4 [03:54:35]MH_SAM_APDU [03:54:35]CAPDU: 80 11 00 00 [03:54:35]Write to MH i2c: E2 08 00 C7 11 80 11 00 00 00 00 00 00 52 [03:54:35]Write i2c OK [03:54:35]MH_I2C_Read... [03:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:35]Read from MH i2c: E2 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 17 00 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 17 00 C7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AB [03:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [03:54:35]wFMCommunicate OK [03:54:35]requested_item fd.num is exist - process it [03:54:35]SAM_PROTO_GetFieldsCounters [03:54:35]wFMCommunicate request_size=4 [03:54:35]MH_SAM_APDU [03:54:35]CAPDU: 80 13 00 00 [03:54:35]Write to MH i2c: E2 08 00 C8 11 80 13 00 00 00 00 00 00 55 [03:54:35]Write i2c OK [03:54:35]MH_I2C_Read... [03:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:54:35]Read from MH i2c: E2 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 62 00 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 62 00 C8 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 36 F7 00 00 0E 04 04 00 22 02 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 FB [03:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 36 F7 00 00 0E 04 04 00 22 02 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 [03:54:35]wFMCommunicate OK [03:54:35]SAM_PROTO_GetFieldsCounters done [03:54:35]requested_item shift.num is exist - process it [03:54:35]requested_item shift.opened is exist - process it [03:54:35]req_shift_opened [03:54:35]FM_GetShiftState [03:54:35]SAM_PROTO_GetShiftState [03:54:35]wFMCommunicate request_size=4 [03:54:35]MH_SAM_APDU [03:54:35]CAPDU: 80 13 01 00 [03:54:35]Write to MH i2c: E2 08 00 C9 11 80 13 01 00 00 00 00 00 57 [03:54:35]Write i2c OK [03:54:35]MH_I2C_Read... [03:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:35]Read from MH i2c: E2 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 0E 00 [03:54:35]MH_I2C_Read... [03:54:35]Read from MH i2c: E2 0E 00 C9 11 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 41 [03:54:35]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [03:54:35]wFMCommunicate OK [03:54:35]SAM_PROTO_GetShiftState done [03:54:35]FM_GetShiftState done [03:54:35]req_shift_opened done [03:54:35]requested_item shift.open_date is exist - process it [03:54:35]req_shift_open_date [03:54:35]req_shift_open_date done [03:54:35]produce_requested_data done [03:54:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63286,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [03:54:35]process_action_free close_receipt [03:54:35]json_value_free [03:54:35]json_value_free done [03:54:35]process_json_proto returns [03:54:35]Send response to host [03:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63286,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [03:54:35]free response buf [03:54:35]execute_script done [03:54:35]execute_script returns [03:54:35]free content buf [03:54:35]Sock 9.Close socket [03:54:35]Sock 9.Thread stoped [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21: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:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]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:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:29]ConnectInit Can't connect to host [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37: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:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]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:02]accept exits with 7 [05:49:02]New connection [05:49:02]New thread 3067096420 created [05:49:02]Thread 3066953060 joined [05:49:02]Waiting for new connection... [05:49:02] Sock 7.Parse request [05:49:02]Sock 7.Check first char [05:49:02]Sock 7.First char is OK [05:49:02]request: POST /json_proto HTTP/1.0 [05:49:02]Method: POST [05:49:02]URL: /json_proto [05:49:02]Method is POST - this is cgi request [05:49:02]url: /json_proto [05:49:02]query_string will be loaded in cgi processing [05:49:02]execute_cgi json_proto POST (null) [05:49:02]execute_cgi path=json_proto method=POST [05:49:02]POST find Content-Length [05:49:02]Host: 172.17.42.132:8080 [05:49:02]Content-Length: 928 [05:49:02]Content-Type: application/json [05:49:02] [05:49:02]POST finish read [05:49:02]Found Content-Length = 928 [05:49:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47597", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085536", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:02]execute_script... [05: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 : (3)47597", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085536", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,46\u043B", "price" : 350.00, "quantity" : 1.000, "sum" : 350.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 480.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:02]POST & json_proto [05:49:02]process_json_proto [05:49:02]json parsed OK: [05:49:02]protocol is kg_v1.0 [05:49:02]action value=close_receipt [05:49:02]process_action close_receipt [05:49:02]cmd_close_receipt [05:49:02]MH_GetDate [05:49:02]Write to MH i2c: F0 00 00 CA 11 CA [05:49:02]Write i2c OK [05:49:02]MH_I2C_Read... [05:49:02]Read from MH i2c: F0 [05:49:02]MH_I2C_Read... [05:49:02]Read from MH i2c: F0 09 00 [05:49:02]MH_I2C_Read... [05:49:02]Read from MH i2c: F0 09 00 CA 11 00 52 8E 18 67 4C DF 56 66 19 [05:49:02]GetLastDocTimeStamp 1729655674 [05:49:02]current date 1729662546 [05:49:02]FM_GetShiftState [05:49:02]SAM_PROTO_GetShiftState [05:49:02]wFMCommunicate request_size=4 [05:49:02]MH_SAM_APDU [05:49:02]CAPDU: 80 13 01 00 [05:49:02]Write to MH i2c: E2 08 00 CB 11 80 13 01 00 00 00 00 00 59 [05:49:02]Write i2c OK [05:49:02]MH_I2C_Read... [05:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:02]Read from MH i2c: E2 [05:49:02]MH_I2C_Read... [05:49:02]Read from MH i2c: E2 0E 00 [05:49:02]MH_I2C_Read... [05:49:02]Read from MH i2c: E2 0E 00 CB 11 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 43 [05:49:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [05:49:02]wFMCommunicate OK [05:49:02]SAM_PROTO_GetShiftState done [05:49:02]FM_GetShiftState done [05:49:02]opened in 1729642527 [05:49:02]opened+sec_in_day 1729728927 [05:49:02]quantity*price = 13000 [05:49:02]sum+1 = 13001 [05:49:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002085536 Водка Белое золото 0,46л 1.000 * 350.00 = 350.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 480.00 НСП 1% : 4.25 НДС 12% : 50.97 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 23.10.2024 05:49 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63287 ФПД: 258772269911377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T054906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63287&fm=258772269911377&tin=02508201610067®Number=0000000000091619&sum=48000 0 [05:49:03]StoreToDocumentArchive [05:49:03]shift 546 fd 63287 [05:49:03]save to /storage/0546/doc_00063287 [05:49:03]save last doc name /storage/0546/doc_00063287 to /storage/kkm_last_doc_name [05:49:03]save OK [05:49:03]Clear old archive folders... [05:49:03]ProcessDocumentItem done err = 0, tmpTLVsize=395 [05:49:03]tlvbuf is 0087CD90 [05:49:03]SAM_PROTO_ClearQueue [05:49:03]wFMCommunicate request_size=4 [05:49:03]MH_SAM_APDU [05:49:03]CAPDU: 80 09 00 00 [05:49:03]Write to MH i2c: E2 08 00 D8 11 80 09 00 00 00 00 00 00 5B [05:49:03]Write i2c OK [05:49:03]MH_I2C_Read... [05:49:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:03]Read from MH i2c: E2 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [05:49:03]RAPDU: 90 00 [05:49:03]wFMCommunicate OK [05:49:03]SAM_PROTO_ClearQueue done [05:49:03]KKMCreateOFDPacket [05:49:03]OFDProtocolAddRootSTLVToBuf [05:49:03]FM_MakeSignedData [05:49:03]FM_MakeSignedData [05:49:03]SAM_PROTO_SignData [05:49:03]wFMCommunicate request_size=4 [05:49:03]MH_SAM_APDU [05:49:03]CAPDU: 80 0D 01 02 [05:49:03]Write to MH i2c: E2 08 00 D9 11 80 0D 01 02 00 00 00 00 63 [05:49:03]Write i2c OK [05:49:03]MH_I2C_Read... [05:49:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:03]Read from MH i2c: E2 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [05:49:03]RAPDU: 90 00 [05:49:03]wFMCommunicate OK [05:49:03]wFMCommunicate request_size=255 [05:49:03]MH_SAM_APDU [05:49:03]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 35 33 36 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 [05:49:03]Write to MH i2c: E2 02 01 DA 11 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 35 33 36 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 00 00 E4 [05:49:03]Write i2c OK [05:49:03]MH_I2C_Read... [05:49:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:03]Read from MH i2c: E2 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 [05:49:03]MH_I2C_Read... [05:49:03]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [05:49:03]RAPDU: 90 00 [05:49:03]wFMCommunicate OK [05:49:03]wFMCommunicate request_size=154 [05:49:03]MH_SAM_APDU [05:49:03]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 8E 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F7 00 00 35 04 06 00 EB 5A 1D 39 CD 51 [05:49:03]Write to MH i2c: E2 9D 00 DB 11 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 8E 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F7 00 00 35 04 06 00 EB 5A 1D 39 CD 51 00 00 29 [05:49:03]Write i2c OK [05:49:03]MH_I2C_Read... [05:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:04]Read from MH i2c: E2 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 03 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [05:49:04]RAPDU: 90 00 [05:49:04]wFMCommunicate OK [05:49:04]wFMCommunicate request_size=4 [05:49:04]MH_SAM_APDU [05:49:04]CAPDU: 80 0D 03 02 [05:49:04]Write to MH i2c: E2 08 00 DC 11 80 0D 03 02 00 00 00 00 68 [05:49:04]Write i2c OK [05:49:04]MH_I2C_Read... [05:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:04]Read from MH i2c: E2 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 0B 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 0B 00 DC 11 00 93 1B 1D 79 93 B0 5E 59 90 00 A7 [05:49:04]RAPDU: 93 1B 1D 79 93 B0 5E 59 90 00 [05:49:04]wFMCommunicate OK [05:49:04]SAM_PROTO_SignData done [05:49:04]FM_MakeSignedData done [05:49:04]CreateOFDProtocolMessage [05:49:04]wFMCommunicate request_size=4 [05:49:04]MH_SAM_APDU [05:49:04]CAPDU: 80 11 00 00 [05:49:04]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [05:49:04]Write i2c OK [05:49:04]MH_I2C_Read... [05:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:04]Read from MH i2c: E2 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 17 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C1 [05:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:49:04]wFMCommunicate OK [05:49:04]CreateOFDProtocolMessage done [05:49:04]OFDSenderStorePacket 63287 [05:49:04]StoreOFDPacket docnum=63287 [05:49:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9F 01 00 00 BF 7C 97 01 CB 15 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 35 33 36 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 8E 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F7 00 00 35 04 06 00 EB 5A 1D 39 CD 51 93 1B 1D 79 93 B0 5E 59 [05:49:04]CheckFolder [05:49:04]dirname=/storage/ofd_packets [05:49:04]CheckFolder done [05:49:04]ProducePacketName [05:49:04]name=ofd_packets/00063287 [05:49:04]NVStorageSaveData ofd_packets/00063287 [05:49:04]File name is /storage/ofd_packets/00063287 [05:49:04]Write 445 bytes [05:49:04]NVStorageSaveData done [05:49:04]OFDSenderStorePacket done [05:49:04]KKMCreateOFDPacket done [05:49:04]NVStorageSaveData kkm_last_timestamp [05:49:04]File name is /storage/kkm_last_timestamp [05:49:04]Write 4 bytes [05:49:04]NVStorageSaveData done [05:49:04]ExternCall_PrintAddStr [05:49:04]wPrintStart [05:49:04]Write to MH i2c: 01 00 00 DE 11 EF [05:49:04]Write i2c OK [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: 01 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: 01 07 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: 01 07 00 DE 11 00 00 00 00 00 FF 0F 04 [05:49:04]RasterBufferAndPrint [05:49:04]line Счет N : (3)47597 [05:49:04]line ИНН: 02508201610067 [05:49:04]line Контрольно-Кассовый Чек [05:49:04]line ПРОДАЖА [05:49:04]line Товар: 2000036220012 [05:49:04]line Кофе Капучино XL(GABB TRADE) [05:49:04]line 1.000 * 130.00 [05:49:04]line = 130.00 [05:49:04]line НДС 12% НСП 1% [05:49:04]line > о реализуемом товаре [05:49:04]line Товар: 4700002085536 [05:49:04]line Водка Белое золото 0,46л [05:49:04]line 1.000 * 350.00 [05:49:04]line = 350.00 [05:49:04]line НДС 12% НСП 1% [05:49:04]line > о реализуемом товаре [05:49:04]line ИТОГО: 480.00 [05:49:04]line НСП 1% : 4.25 [05:49:04]line НДС 12% : 50.97 [05:49:04]line Наличными: 480.00 [05:49:04]line Безнал.: 0.00 [05:49:04]line Место: АЗС № 86 "Партнер Нефть" [05:49:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:49:04]line СНО: Общий режим [05:49:04]line Чек 16 23.10.2024 05:49 [05:49:04]line Смена: 546 ФФД: 1.0 [05:49:04]line ЗНМ: 0300000154 [05:49:04]line РНМ: 0000000000091619 [05:49:04]line Версия ККМ: 001 [05:49:04]line ФМ: 0000000000874676 [05:49:04]line ФД: 63287 [05:49:04]line ФПД: 258772269911377 [05:49:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T054906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63287&fm=258772269911377&tin=02508201610067®Number=0000000000091619&sum=48000 [05:49:04]line 0 [05:49:04]OFD Sender: Processing packet 63287 [packets to send 232, broken 231] [05:49:04]ProducePacketName [05:49:04]name=ofd_packets/00063287 [05:49:04]OFD Sender: To server: pG, [05:49:04]CommunicateWithHost lk.salyk.kg:30040 [05:49:04]ConnectInit lk.salyk.kg [05:49:04]written 0, free lines is 4095 [05:49:04]Connected sock=10 [05:49:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9F 01 00 00 BF 7C 97 01 CB 15 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 35 33 36 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 34 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 88 00 00 00 00 13 04 06 00 B8 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 52 8E 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F7 00 00 35 04 06 00 EB 5A 1D 39 CD 51 93 1B 1D 79 93 B0 5E 59 [05:49:05]Write to MH i2c: 01 00 00 0D 12 1F [05:49:05]Write i2c OK [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: 01 [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: 01 07 00 [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: 01 07 00 0D 12 00 00 00 00 00 D5 0C 07 [05:49:05]RasterBufferAndPrint [05:49:05]line [05:49:05]line [05:49:05]line [05:49:05]line [05:49:05]line [05:49:05]written 0, free lines is 3292 [05:49:05]MH_Cut [05:49:05]Write to MH i2c: D1 01 00 14 12 01 F8 [05:49:05]Write i2c OK [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: D1 [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: D1 01 00 [05:49:05]MH_I2C_Read... [05:49:05]Read from MH i2c: D1 01 00 14 12 00 F7 [05:49:05]Write to MH i2c: 01 00 00 15 12 27 [05:49:05]Write i2c OK [05:49:05]MH_I2C_Read... [05:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CC DB 47 00 A2 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 37 F7 00 00 F4 03 04 00 4B 38 18 67 B6 04 01 00 00 C8 44 9D 41 7F 16 F8 0F [05:49:05]CommunicateWithHost err = 0 [05:49:05]CheckOFDResponse [05:49:05]1017 (14) - 77093643461234 [05:49:05]1041 (16) - 0000000000874676 [05:49:05]1040 (4) - 63287 [05:49:05]1012 (4) - 22.10.2024 23:42 [05:49:05]1206 (1) - 0 [05:49:05]OFD Sender: Remove packet 63287 [05:49:05]ProducePacketName [05:49:05]name=ofd_packets/00063287 [05:49:05]NVStorageDeleteData [05:49:05]*** Cut start [05:49:05]*** Partial cut [05:49:05]*** CUTSNS_PIN = 1 [05:49:05]OFD Sender: No OFD packet to send [05:49:05]*** CUTSNS_PIN = 0 [05:49:06]*** Brake cut motor [05:49:06]Read from MH i2c: 01 [05:49:06]MH_I2C_Read... [05:49:06]*** Stop cut motor [05:49:06]*** Cut end [05:49:06]Read from MH i2c: 01 07 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 07 00 15 12 00 00 00 00 00 FF 0F 3C [05:49:06]process_action close_receipt done [05:49:06]requested_data is exist [05:49:06]produce_requested_data [05:49:06]requested_item fm.sn is exist - process it [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 11 00 00 [05:49:06]Write to MH i2c: E2 08 00 16 12 80 11 00 00 00 00 00 00 A2 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 17 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 17 00 16 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [05:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [05:49:06]wFMCommunicate OK [05:49:06]requested_item fd.num is exist - process it [05:49:06]SAM_PROTO_GetFieldsCounters [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 13 00 00 [05:49:06]Write to MH i2c: E2 08 00 17 12 80 13 00 00 00 00 00 00 A5 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 62 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 62 00 17 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 37 F7 00 00 0E 04 04 00 22 02 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 4F [05:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 37 F7 00 00 0E 04 04 00 22 02 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 [05:49:06]wFMCommunicate OK [05:49:06]SAM_PROTO_GetFieldsCounters done [05:49:06]requested_item shift.num is exist - process it [05:49:06]requested_item shift.opened is exist - process it [05:49:06]req_shift_opened [05:49:06]FM_GetShiftState [05:49:06]SAM_PROTO_GetShiftState [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 13 01 00 [05:49:06]Write to MH i2c: E2 08 00 18 12 80 13 01 00 00 00 00 00 A7 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 0E 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 0E 00 18 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 91 [05:49:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [05:49:06]wFMCommunicate OK [05:49:06]SAM_PROTO_GetShiftState done [05:49:06]FM_GetShiftState done [05:49:06]req_shift_opened done [05:49:06]requested_item shift.open_date is exist - process it [05:49:06]req_shift_open_date [05:49:06]req_shift_open_date done [05:49:06]produce_requested_data done [05:49:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63287,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [05:49:06]process_action_free close_receipt [05:49:06]json_value_free [05:49:06]json_value_free done [05:49:06]process_json_proto returns [05:49:06]Send response to host [05:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63287,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [05:49:06]free response buf [05:49:06]execute_script done [05:49:06]execute_script returns [05:49:06]free content buf [05:49:06]Sock 7.Close socket [05:49:06]Sock 7.Thread stoped [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:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:33]accept exits with 9 [06:01:33]New connection [06:01:33]New thread 3066953060 created [06:01:33]Thread 3067096420 joined [06:01:33]Waiting for new connection... [06:01:33] Sock 9.Parse request [06:01:33]Sock 9.Check first char [06:01:33]Sock 9.First char is OK [06:01:33]request: POST /json_proto HTTP/1.0 [06:01:33]Method: POST [06:01:33]URL: /json_proto [06:01:33]Method is POST - this is cgi request [06:01:33]url: /json_proto [06:01:33]query_string will be loaded in cgi processing [06:01:33]execute_cgi json_proto POST (null) [06:01:33]execute_cgi path=json_proto method=POST [06:01:33]POST find Content-Length [06:01:33]Host: 172.17.42.132:8080 [06:01:33]Content-Length: 667 [06:01:33]Content-Type: application/json [06:01:33] [06:01:33]POST finish read [06:01:33]Found Content-Length = 667 [06:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47598", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:33]execute_script... [06:01:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47598", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 2.000, "sum" : 198.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 198.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:33]POST & json_proto [06:01:33]process_json_proto [06:01:33]json parsed OK: [06:01:33]protocol is kg_v1.0 [06:01:33]action value=close_receipt [06:01:33]process_action close_receipt [06:01:33]cmd_close_receipt [06:01:33]MH_GetDate [06:01:33]Write to MH i2c: F0 00 00 19 12 1A [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: F0 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: F0 09 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: F0 09 00 19 12 00 41 91 18 67 4C DF 56 66 5B [06:01:33]GetLastDocTimeStamp 1729662546 [06:01:33]current date 1729663297 [06:01:33]FM_GetShiftState [06:01:33]SAM_PROTO_GetShiftState [06:01:33]wFMCommunicate request_size=4 [06:01:33]MH_SAM_APDU [06:01:33]CAPDU: 80 13 01 00 [06:01:33]Write to MH i2c: E2 08 00 1A 12 80 13 01 00 00 00 00 00 A9 [06:01:33]Write i2c OK [06:01:33]MH_I2C_Read... [06:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:33]Read from MH i2c: E2 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 0E 00 [06:01:33]MH_I2C_Read... [06:01:33]Read from MH i2c: E2 0E 00 1A 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 93 [06:01:33]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [06:01:33]wFMCommunicate OK [06:01:33]SAM_PROTO_GetShiftState done [06:01:33]FM_GetShiftState done [06:01:33]opened in 1729642527 [06:01:33]opened+sec_in_day 1729728927 [06:01:33]quantity*price = 19800 [06:01:33]sum+1 = 19801 [06:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 198.00 НСП 1% : 1.75 НДС 12% : 21.03 Наличными: 198.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 23.10.2024 06:01 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63288 ФПД: 241906203567349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T060137&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63288&fm=241906203567349&tin=02508201610067®Number=0000000000091619&sum=19800 0 [06:01:34]StoreToDocumentArchive [06:01:34]shift 546 fd 63288 [06:01:34]save to /storage/0546/doc_00063288 [06:01:34]save last doc name /storage/0546/doc_00063288 to /storage/kkm_last_doc_name [06:01:34]save OK [06:01:34]Clear old archive folders... [06:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:01:34]tlvbuf is 008A4000 [06:01:34]SAM_PROTO_ClearQueue [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 09 00 00 [06:01:34]Write to MH i2c: E2 08 00 27 12 80 09 00 00 00 00 00 00 AB [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 27 12 00 90 00 AD [06:01:34]RAPDU: 90 00 [06:01:34]wFMCommunicate OK [06:01:34]SAM_PROTO_ClearQueue done [06:01:34]KKMCreateOFDPacket [06:01:34]OFDProtocolAddRootSTLVToBuf [06:01:34]FM_MakeSignedData [06:01:34]FM_MakeSignedData [06:01:34]SAM_PROTO_SignData [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 0D 01 02 [06:01:34]Write to MH i2c: E2 08 00 28 12 80 0D 01 02 00 00 00 00 B3 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 28 12 00 90 00 AE [06:01:34]RAPDU: 90 00 [06:01:34]wFMCommunicate OK [06:01:34]wFMCommunicate request_size=255 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 41 91 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:01:34]Write to MH i2c: E2 02 01 29 12 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 41 91 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 71 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 29 12 00 90 00 AF [06:01:34]RAPDU: 90 00 [06:01:34]wFMCommunicate OK [06:01:34]wFMCommunicate request_size=52 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F7 00 00 35 04 06 00 DC 03 2D 55 24 F5 [06:01:34]Write to MH i2c: E2 37 00 2A 12 80 0D 02 02 2F 00 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F7 00 00 35 04 06 00 DC 03 2D 55 24 F5 00 00 29 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [06:01:34]RAPDU: 90 00 [06:01:34]wFMCommunicate OK [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 0D 03 02 [06:01:34]Write to MH i2c: E2 08 00 2B 12 80 0D 03 02 00 00 00 00 B8 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 0B 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 0B 00 2B 12 00 36 E4 80 CE 97 56 5D 82 90 00 ED [06:01:34]RAPDU: 36 E4 80 CE 97 56 5D 82 90 00 [06:01:34]wFMCommunicate OK [06:01:34]SAM_PROTO_SignData done [06:01:34]FM_MakeSignedData done [06:01:34]CreateOFDProtocolMessage [06:01:34]wFMCommunicate request_size=4 [06:01:34]MH_SAM_APDU [06:01:34]CAPDU: 80 11 00 00 [06:01:34]Write to MH i2c: E2 08 00 2C 12 80 11 00 00 00 00 00 00 B8 [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:34]Read from MH i2c: E2 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 17 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: E2 17 00 2C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 11 [06:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:01:34]wFMCommunicate OK [06:01:34]CreateOFDProtocolMessage done [06:01:34]OFDSenderStorePacket 63288 [06:01:34]StoreOFDPacket docnum=63288 [06:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 06 81 31 01 1D 80 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 41 91 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F7 00 00 35 04 06 00 DC 03 2D 55 24 F5 36 E4 80 CE 97 56 5D 82 [06:01:34]CheckFolder [06:01:34]dirname=/storage/ofd_packets [06:01:34]CheckFolder done [06:01:34]ProducePacketName [06:01:34]name=ofd_packets/00063288 [06:01:34]NVStorageSaveData ofd_packets/00063288 [06:01:34]File name is /storage/ofd_packets/00063288 [06:01:34]Write 343 bytes [06:01:34]NVStorageSaveData done [06:01:34]OFDSenderStorePacket done [06:01:34]KKMCreateOFDPacket done [06:01:34]NVStorageSaveData kkm_last_timestamp [06:01:34]File name is /storage/kkm_last_timestamp [06:01:34]Write 4 bytes [06:01:34]NVStorageSaveData done [06:01:34]ExternCall_PrintAddStr [06:01:34]wPrintStart [06:01:34]Write to MH i2c: 01 00 00 2D 12 3F [06:01:34]Write i2c OK [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: 01 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: 01 07 00 [06:01:34]MH_I2C_Read... [06:01:34]Read from MH i2c: 01 07 00 2D 12 00 00 00 00 00 FF 0F 54 [06:01:34]RasterBufferAndPrint [06:01:34]line Счет N : (3)47598 [06:01:34]line ИНН: 02508201610067 [06:01:34]line Контрольно-Кассовый Чек [06:01:34]line ПРОДАЖА [06:01:34]line Товар: 4870022003305 [06:01:34]line Напиток Gorilla эн нат ж/б 0,5/0,45л [06:01:34]line 2.000 * 99.00 [06:01:34]line = 198.00 [06:01:34]line НДС 12% НСП 1% [06:01:34]line > о реализуемом товаре [06:01:34]line ИТОГО: 198.00 [06:01:34]line НСП 1% : 1.75 [06:01:34]line НДС 12% : 21.03 [06:01:34]line Наличными: 198.00 [06:01:34]line Безнал.: 0.00 [06:01:34]line Место: АЗС № 86 "Партнер Нефть" [06:01:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:01:34]line СНО: Общий режим [06:01:34]line Чек 17 23.10.2024 06:01 [06:01:34]line Смена: 546 ФФД: 1.0 [06:01:34]line ЗНМ: 0300000154 [06:01:34]line РНМ: 0000000000091619 [06:01:34]line Версия ККМ: 001 [06:01:34]line ФМ: 0000000000874676 [06:01:34]line ФД: 63288 [06:01:34]line ФПД: 241906203567349 [06:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T060137&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63288&fm=241906203567349&tin=02508201610067®Number=0000000000091619&sum=19800 [06:01:35]line 0 [06:01:35]OFD Sender: Processing packet 63288 [packets to send 232, broken 231] [06:01:35]ProducePacketName [06:01:35]name=ofd_packets/00063288 [06:01:35]OFD Sender: To server: pG, [06:01:35]CommunicateWithHost lk.salyk.kg:30040 [06:01:35]ConnectInit lk.salyk.kg [06:01:35]written 0, free lines is 4095 [06:01:35]Connected sock=10 [06:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 06 81 31 01 1D 80 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 58 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 08 00 00 00 00 07 04 06 00 58 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 41 91 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F7 00 00 35 04 06 00 DC 03 2D 55 24 F5 36 E4 80 CE 97 56 5D 82 [06:01:35]Write to MH i2c: 01 00 00 56 12 68 [06:01:35]Write i2c OK [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: 01 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: 01 07 00 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 07 0D 83 [06:01:35]RasterBufferAndPrint [06:01:35]line [06:01:35]line [06:01:35]line [06:01:35]line [06:01:35]line [06:01:35]written 0, free lines is 3342 [06:01:35]MH_Cut [06:01:35]Write to MH i2c: D1 01 00 5D 12 01 41 [06:01:35]Write i2c OK [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: D1 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: D1 01 00 [06:01:35]MH_I2C_Read... [06:01:35]Read from MH i2c: D1 01 00 5D 12 00 40 [06:01:35]Write to MH i2c: 01 00 00 5E 12 70 [06:01:35]Write i2c OK [06:01:35]MH_I2C_Read... [06:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 44 D4 47 00 1F 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 38 F7 00 00 F4 03 04 00 39 3B 18 67 B6 04 01 00 00 A7 0C 57 48 3B FD F5 70 [06:01:35]CommunicateWithHost err = 0 [06:01:35]CheckOFDResponse [06:01:35]1017 (14) - 77093643461234 [06:01:35]1041 (16) - 0000000000874676 [06:01:35]1040 (4) - 63288 [06:01:35]1012 (4) - 22.10.2024 23:54 [06:01:35]1206 (1) - 0 [06:01:35]OFD Sender: Remove packet 63288 [06:01:35]ProducePacketName [06:01:35]name=ofd_packets/00063288 [06:01:35]NVStorageDeleteData [06:01:36]OFD Sender: No OFD packet to send [06:01:36]*** Cut start [06:01:36]*** Partial cut [06:01:36]*** CUTSNS_PIN = 1 [06:01:36]*** CUTSNS_PIN = 0 [06:01:36]*** Brake cut motor [06:01:37]Read from MH i2c: 01 [06:01:37]MH_I2C_Read... [06:01:37]*** Stop cut motor [06:01:37]*** Cut end [06:01:37]Read from MH i2c: 01 07 00 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 FF 0F 85 [06:01:37]process_action close_receipt done [06:01:37]requested_data is exist [06:01:37]produce_requested_data [06:01:37]requested_item fm.sn is exist - process it [06:01:37]wFMCommunicate request_size=4 [06:01:37]MH_SAM_APDU [06:01:37]CAPDU: 80 11 00 00 [06:01:37]Write to MH i2c: E2 08 00 5F 12 80 11 00 00 00 00 00 00 EB [06:01:37]Write i2c OK [06:01:37]MH_I2C_Read... [06:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:37]Read from MH i2c: E2 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 17 00 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 17 00 5F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 44 [06:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [06:01:37]wFMCommunicate OK [06:01:37]requested_item fd.num is exist - process it [06:01:37]SAM_PROTO_GetFieldsCounters [06:01:37]wFMCommunicate request_size=4 [06:01:37]MH_SAM_APDU [06:01:37]CAPDU: 80 13 00 00 [06:01:37]Write to MH i2c: E2 08 00 60 12 80 13 00 00 00 00 00 00 EE [06:01:37]Write i2c OK [06:01:37]MH_I2C_Read... [06:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:01:37]Read from MH i2c: E2 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 62 00 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 62 00 60 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 38 F7 00 00 0E 04 04 00 22 02 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 9C [06:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 38 F7 00 00 0E 04 04 00 22 02 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 [06:01:37]wFMCommunicate OK [06:01:37]SAM_PROTO_GetFieldsCounters done [06:01:37]requested_item shift.num is exist - process it [06:01:37]requested_item shift.opened is exist - process it [06:01:37]req_shift_opened [06:01:37]FM_GetShiftState [06:01:37]SAM_PROTO_GetShiftState [06:01:37]wFMCommunicate request_size=4 [06:01:37]MH_SAM_APDU [06:01:37]CAPDU: 80 13 01 00 [06:01:37]Write to MH i2c: E2 08 00 61 12 80 13 01 00 00 00 00 00 F0 [06:01:37]Write i2c OK [06:01:37]MH_I2C_Read... [06:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:37]Read from MH i2c: E2 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 0E 00 [06:01:37]MH_I2C_Read... [06:01:37]Read from MH i2c: E2 0E 00 61 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DA [06:01:37]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [06:01:37]wFMCommunicate OK [06:01:37]SAM_PROTO_GetShiftState done [06:01:37]FM_GetShiftState done [06:01:37]req_shift_opened done [06:01:37]requested_item shift.open_date is exist - process it [06:01:37]req_shift_open_date [06:01:37]req_shift_open_date done [06:01:37]produce_requested_data done [06:01:37]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63288,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [06:01:37]process_action_free close_receipt [06:01:37]json_value_free [06:01:37]json_value_free done [06:01:37]process_json_proto returns [06:01:37]Send response to host [06:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63288,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [06:01:37]free response buf [06:01:37]execute_script done [06:01:37]execute_script returns [06:01:37]free content buf [06:01:37]Sock 9.Close socket [06:01:37]Sock 9.Thread stoped [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]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:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]OFD Sender: No OFD packet to send [06:09:37]OFD Sender: No OFD packet to send [06:09:42]OFD Sender: No OFD packet to send [06:09:47]OFD Sender: No OFD packet to send [06:09:52]OFD Sender: No OFD packet to send [06:09:57]OFD Sender: No OFD packet to send [06:10:02]OFD Sender: No OFD packet to send [06:10:07]OFD Sender: No OFD packet to send [06:10:12]OFD Sender: No OFD packet to send [06:10:17]OFD Sender: No OFD packet to send [06:10:22]OFD Sender: No OFD packet to send [06:10:27]OFD Sender: No OFD packet to send [06:10:32]OFD Sender: No OFD packet to send [06:10:37]OFD Sender: No OFD packet to send [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:52]OFD Sender: No OFD packet to send [06:10:57]OFD Sender: No OFD packet to send [06:11:02]OFD Sender: No OFD packet to send [06:11:07]OFD Sender: No OFD packet to send [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:22]OFD Sender: No OFD packet to send [06:15:27]OFD Sender: No OFD packet to send [06:15:32]OFD Sender: No OFD packet to send [06:15:37]OFD Sender: No OFD packet to send [06:15:42]OFD Sender: No OFD packet to send [06:15:47]OFD Sender: No OFD packet to send [06:15:52]OFD Sender: No OFD packet to send [06:15:57]OFD Sender: No OFD packet to send [06:16:02]OFD Sender: No OFD packet to send [06:16:07]OFD Sender: No OFD packet to send [06:16:12]OFD Sender: No OFD packet to send [06:16:17]OFD Sender: No OFD packet to send [06:16:22]OFD Sender: No OFD packet to send [06:16:27]OFD Sender: No OFD packet to send [06:16:32]OFD Sender: No OFD packet to send [06:16:37]OFD Sender: No OFD packet to send [06:16:42]OFD Sender: No OFD packet to send [06:16:47]OFD Sender: No OFD packet to send [06:16:52]OFD Sender: No OFD packet to send [06:16:57]OFD Sender: No OFD packet to send [06:17:02]OFD Sender: No OFD packet to send [06:17:07]OFD Sender: No OFD packet to send [06:17:12]OFD Sender: No OFD packet to send [06:17:17]OFD Sender: No OFD packet to send [06:17:22]OFD Sender: No OFD packet to send [06:17:27]OFD Sender: No OFD packet to send [06:17:32]OFD Sender: No OFD packet to send [06:17:37]OFD Sender: No OFD packet to send [06:17:42]OFD Sender: No OFD packet to send [06:17:47]OFD Sender: No OFD packet to send [06:17:52]OFD Sender: No OFD packet to send [06:17:57]OFD Sender: No OFD packet to send [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [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:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]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:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:26]accept exits with 7 [07:00:26]New connection [07:00:26]New thread 3067096420 created [07:00:26]Thread 3066953060 joined [07:00:26]Waiting for new connection... [07:00:26] Sock 7.Parse request [07:00:26]Sock 7.Check first char [07:00:26]Sock 7.First char is OK [07:00:26]request: POST /json_proto HTTP/1.0 [07:00:26]Method: POST [07:00:26]URL: /json_proto [07:00:26]Method is POST - this is cgi request [07:00:26]url: /json_proto [07:00:26]query_string will be loaded in cgi processing [07:00:26]execute_cgi json_proto POST (null) [07:00:26]execute_cgi path=json_proto method=POST [07:00:26]POST find Content-Length [07:00:26]Host: 172.17.42.132:8080 [07:00:26]Content-Length: 645 [07:00:26]Content-Type: application/json [07:00:26] [07:00:26]POST finish read [07:00:26]Found Content-Length = 645 [07:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47599", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:26]execute_script... [07:00: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 : (3)47599", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:26]POST & json_proto [07:00:26]process_json_proto [07:00:26]json parsed OK: [07:00:26]protocol is kg_v1.0 [07:00:26]action value=close_receipt [07:00:26]process_action close_receipt [07:00:26]cmd_close_receipt [07:00:26]MH_GetDate [07:00:26]Write to MH i2c: F0 00 00 62 12 63 [07:00:26]Write i2c OK [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: F0 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: F0 09 00 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: F0 09 00 62 12 00 0E 9F 18 67 4C DF 56 66 7F [07:00:26]GetLastDocTimeStamp 1729663297 [07:00:26]current date 1729666830 [07:00:26]FM_GetShiftState [07:00:26]SAM_PROTO_GetShiftState [07:00:26]wFMCommunicate request_size=4 [07:00:26]MH_SAM_APDU [07:00:26]CAPDU: 80 13 01 00 [07:00:26]Write to MH i2c: E2 08 00 63 12 80 13 01 00 00 00 00 00 F2 [07:00:26]Write i2c OK [07:00:26]MH_I2C_Read... [07:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:26]Read from MH i2c: E2 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: E2 0E 00 [07:00:26]MH_I2C_Read... [07:00:26]Read from MH i2c: E2 0E 00 63 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DC [07:00:26]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:00:26]wFMCommunicate OK [07:00:26]SAM_PROTO_GetShiftState done [07:00:26]FM_GetShiftState done [07:00:26]opened in 1729642527 [07:00:26]opened+sec_in_day 1729728927 [07:00:26]quantity*price = 26000 [07:00:26]sum+1 = 26001 [07:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 23.10.2024 07:00 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63289 ФПД: 187403958270720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070030&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63289&fm=187403958270720&tin=02508201610067®Number=0000000000091619&sum=26000 0 [07:00:27]StoreToDocumentArchive [07:00:27]shift 546 fd 63289 [07:00:27]save to /storage/0546/doc_00063289 [07:00:27]save last doc name /storage/0546/doc_00063289 to /storage/kkm_last_doc_name [07:00:27]save OK [07:00:27]Clear old archive folders... [07:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:00:27]tlvbuf is 008F3B70 [07:00:27]SAM_PROTO_ClearQueue [07:00:27]wFMCommunicate request_size=4 [07:00:27]MH_SAM_APDU [07:00:27]CAPDU: 80 09 00 00 [07:00:27]Write to MH i2c: E2 08 00 70 12 80 09 00 00 00 00 00 00 F4 [07:00:27]Write i2c OK [07:00:27]MH_I2C_Read... [07:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:27]Read from MH i2c: E2 [07:00:27]MH_I2C_Read... [07:00:27]Read from MH i2c: E2 03 00 [07:00:27]MH_I2C_Read... [07:00:27]Read from MH i2c: E2 03 00 70 12 00 90 00 F6 [07:00:27]RAPDU: 90 00 [07:00:27]wFMCommunicate OK [07:00:27]SAM_PROTO_ClearQueue done [07:00:27]KKMCreateOFDPacket [07:00:27]OFDProtocolAddRootSTLVToBuf [07:00:27]FM_MakeSignedData [07:00:27]FM_MakeSignedData [07:00:27]SAM_PROTO_SignData [07:00:27]wFMCommunicate request_size=4 [07:00:27]MH_SAM_APDU [07:00:27]CAPDU: 80 0D 01 02 [07:00:27]Write to MH i2c: E2 08 00 71 12 80 0D 01 02 00 00 00 00 FC [07:00:27]Write i2c OK [07:00:27]MH_I2C_Read... [07:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 71 12 00 90 00 F7 [07:00:28]RAPDU: 90 00 [07:00:28]wFMCommunicate OK [07:00:28]wFMCommunicate request_size=255 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 9F 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [07:00:28]Write to MH i2c: E2 02 01 72 12 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 9F 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 28 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [07:00:28]RAPDU: 90 00 [07:00:28]wFMCommunicate OK [07:00:28]wFMCommunicate request_size=41 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F7 00 00 35 04 06 00 AA 71 62 5C BB 00 [07:00:28]Write to MH i2c: E2 2C 00 73 12 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F7 00 00 35 04 06 00 AA 71 62 5C BB 00 00 00 98 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [07:00:28]RAPDU: 90 00 [07:00:28]wFMCommunicate OK [07:00:28]wFMCommunicate request_size=4 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 0D 03 02 [07:00:28]Write to MH i2c: E2 08 00 74 12 80 0D 03 02 00 00 00 00 01 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 0B 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 0B 00 74 12 00 22 C7 A6 16 10 94 CF 57 90 00 71 [07:00:28]RAPDU: 22 C7 A6 16 10 94 CF 57 90 00 [07:00:28]wFMCommunicate OK [07:00:28]SAM_PROTO_SignData done [07:00:28]FM_MakeSignedData done [07:00:28]CreateOFDProtocolMessage [07:00:28]wFMCommunicate request_size=4 [07:00:28]MH_SAM_APDU [07:00:28]CAPDU: 80 11 00 00 [07:00:28]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:28]Read from MH i2c: E2 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 17 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5A [07:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:00:28]wFMCommunicate OK [07:00:28]CreateOFDProtocolMessage done [07:00:28]OFDSenderStorePacket 63289 [07:00:28]StoreOFDPacket docnum=63289 [07:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 75 54 26 01 FF 10 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 9F 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F7 00 00 35 04 06 00 AA 71 62 5C BB 00 22 C7 A6 16 10 94 CF 57 [07:00:28]CheckFolder [07:00:28]dirname=/storage/ofd_packets [07:00:28]CheckFolder done [07:00:28]ProducePacketName [07:00:28]name=ofd_packets/00063289 [07:00:28]NVStorageSaveData ofd_packets/00063289 [07:00:28]File name is /storage/ofd_packets/00063289 [07:00:28]Write 332 bytes [07:00:28]NVStorageSaveData done [07:00:28]OFDSenderStorePacket done [07:00:28]KKMCreateOFDPacket done [07:00:28]NVStorageSaveData kkm_last_timestamp [07:00:28]File name is /storage/kkm_last_timestamp [07:00:28]Write 4 bytes [07:00:28]NVStorageSaveData done [07:00:28]ExternCall_PrintAddStr [07:00:28]wPrintStart [07:00:28]Write to MH i2c: 01 00 00 76 12 88 [07:00:28]Write i2c OK [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: 01 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: 01 07 00 [07:00:28]MH_I2C_Read... [07:00:28]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 FF 0F 9D [07:00:28]RasterBufferAndPrint [07:00:28]line Счет N : (3)47599 [07:00:28]line ИНН: 02508201610067 [07:00:28]line Контрольно-Кассовый Чек [07:00:28]line ПРОДАЖА [07:00:28]line Товар: 2000036220012 [07:00:28]line Кофе Капучино XL(GABB TRADE) [07:00:28]line 2.000 * 130.00 [07:00:28]line = 260.00 [07:00:28]line НДС 12% НСП 1% [07:00:28]line > о реализуемом товаре [07:00:28]line ИТОГО: 260.00 [07:00:28]line НСП 1% : 2.30 [07:00:28]line НДС 12% : 27.61 [07:00:28]line Наличными: 260.00 [07:00:28]line Безнал.: 0.00 [07:00:28]line Место: АЗС № 86 "Партнер Нефть" [07:00:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:00:28]line СНО: Общий режим [07:00:28]line Чек 18 23.10.2024 07:00 [07:00:28]line Смена: 546 ФФД: 1.0 [07:00:28]line ЗНМ: 0300000154 [07:00:28]line РНМ: 0000000000091619 [07:00:28]line Версия ККМ: 001 [07:00:28]line ФМ: 0000000000874676 [07:00:28]line ФД: 63289 [07:00:28]line ФПД: 187403958270720 [07:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T070030&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63289&fm=187403958270720&tin=02508201610067®Number=0000000000091619&sum=26000 [07:00:28]line 0 [07:00:28]OFD Sender: Processing packet 63289 [packets to send 232, broken 231] [07:00:28]ProducePacketName [07:00:28]name=ofd_packets/00063289 [07:00:28]OFD Sender: To server: pG, [07:00:28]CommunicateWithHost lk.salyk.kg:30040 [07:00:28]ConnectInit lk.salyk.kg [07:00:28]written 0, free lines is 4095 [07:00:29]Connected sock=10 [07:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 75 54 26 01 FF 10 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 0E 9F 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F7 00 00 35 04 06 00 AA 71 62 5C BB 00 22 C7 A6 16 10 94 CF 57 [07:00:29]Write to MH i2c: 01 00 00 9F 12 B1 [07:00:29]Write i2c OK [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: 01 [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: 01 07 00 [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 0B 0D D0 [07:00:29]RasterBufferAndPrint [07:00:29]line [07:00:29]line [07:00:29]line [07:00:29]line [07:00:29]line [07:00:29]written 0, free lines is 3345 [07:00:29]MH_Cut [07:00:29]Write to MH i2c: D1 01 00 A6 12 01 8A [07:00:29]Write i2c OK [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: D1 [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: D1 01 00 [07:00:29]MH_I2C_Read... [07:00:29]Read from MH i2c: D1 01 00 A6 12 00 89 [07:00:29]Write to MH i2c: 01 00 00 A7 12 B9 [07:00:29]Write i2c OK [07:00:29]MH_I2C_Read... [07:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 D4 C0 47 00 CF 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 39 F7 00 00 F4 03 04 00 07 49 18 67 B6 04 01 00 00 6E 8A 89 73 30 FC BD 5E [07:00:29]CommunicateWithHost err = 0 [07:00:29]CheckOFDResponse [07:00:29]1017 (14) - 77093643461234 [07:00:29]1041 (16) - 0000000000874676 [07:00:29]1040 (4) - 63289 [07:00:29]1012 (4) - 23.10.2024 00:53 [07:00:29]1206 (1) - 0 [07:00:29]OFD Sender: Remove packet 63289 [07:00:29]ProducePacketName [07:00:29]name=ofd_packets/00063289 [07:00:29]NVStorageDeleteData [07:00:29]OFD Sender: No OFD packet to send [07:00:29]*** Cut start [07:00:29]*** Partial cut [07:00:29]*** CUTSNS_PIN = 1 [07:00:29]*** CUTSNS_PIN = 0 [07:00:30]*** Brake cut motor [07:00:30]Read from MH i2c: 01 [07:00:30]MH_I2C_Read... [07:00:30]*** Stop cut motor [07:00:30]*** Cut end [07:00:30]Read from MH i2c: 01 07 00 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: 01 07 00 A7 12 00 00 00 00 00 FF 0F CE [07:00:30]process_action close_receipt done [07:00:30]requested_data is exist [07:00:30]produce_requested_data [07:00:30]requested_item fm.sn is exist - process it [07:00:30]wFMCommunicate request_size=4 [07:00:30]MH_SAM_APDU [07:00:30]CAPDU: 80 11 00 00 [07:00:30]Write to MH i2c: E2 08 00 A8 12 80 11 00 00 00 00 00 00 34 [07:00:30]Write i2c OK [07:00:30]MH_I2C_Read... [07:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:30]Read from MH i2c: E2 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 17 00 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 17 00 A8 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8D [07:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:00:30]wFMCommunicate OK [07:00:30]requested_item fd.num is exist - process it [07:00:30]SAM_PROTO_GetFieldsCounters [07:00:30]wFMCommunicate request_size=4 [07:00:30]MH_SAM_APDU [07:00:30]CAPDU: 80 13 00 00 [07:00:30]Write to MH i2c: E2 08 00 A9 12 80 13 00 00 00 00 00 00 37 [07:00:30]Write i2c OK [07:00:30]MH_I2C_Read... [07:00:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:30]Read from MH i2c: E2 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 62 00 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 62 00 A9 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 39 F7 00 00 0E 04 04 00 22 02 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 E9 [07:00:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 39 F7 00 00 0E 04 04 00 22 02 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 [07:00:30]wFMCommunicate OK [07:00:30]SAM_PROTO_GetFieldsCounters done [07:00:30]requested_item shift.num is exist - process it [07:00:30]requested_item shift.opened is exist - process it [07:00:30]req_shift_opened [07:00:30]FM_GetShiftState [07:00:30]SAM_PROTO_GetShiftState [07:00:30]wFMCommunicate request_size=4 [07:00:30]MH_SAM_APDU [07:00:30]CAPDU: 80 13 01 00 [07:00:30]Write to MH i2c: E2 08 00 AA 12 80 13 01 00 00 00 00 00 39 [07:00:30]Write i2c OK [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 [07:00:30]MH_I2C_Read... [07:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:30]Read from MH i2c: E2 0E 00 [07:00:30]MH_I2C_Read... [07:00:30]Read from MH i2c: E2 0E 00 AA 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 23 [07:00:30]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:00:30]wFMCommunicate OK [07:00:30]SAM_PROTO_GetShiftState done [07:00:30]FM_GetShiftState done [07:00:30]req_shift_opened done [07:00:30]requested_item shift.open_date is exist - process it [07:00:30]req_shift_open_date [07:00:30]req_shift_open_date done [07:00:30]produce_requested_data done [07:00:30]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63289,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:00:30]process_action_free close_receipt [07:00:30]json_value_free [07:00:30]json_value_free done [07:00:30]process_json_proto returns [07:00:30]Send response to host [07:00:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63289,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:00:30]free response buf [07:00:30]execute_script done [07:00:30]execute_script returns [07:00:30]free content buf [07:00:30]Sock 7.Close socket [07:00:30]Sock 7.Thread stoped [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:02]accept exits with 9 [07:15:02]New connection [07:15:02]New thread 3066953060 created [07:15:02]Thread 3067096420 joined [07:15:02]Waiting for new connection... [07:15:02] Sock 9.Parse request [07:15:02]Sock 9.Check first char [07:15:02]Sock 9.First char is OK [07:15:02]request: POST /json_proto HTTP/1.0 [07:15:02]Method: POST [07:15:02]URL: /json_proto [07:15:02]Method is POST - this is cgi request [07:15:02]url: /json_proto [07:15:02]query_string will be loaded in cgi processing [07:15:02]execute_cgi json_proto POST (null) [07:15:02]execute_cgi path=json_proto method=POST [07:15:02]POST find Content-Length [07:15:02]Host: 172.17.42.132:8080 [07:15:02]Content-Length: 749 [07:15:02]Content-Type: application/json [07:15:02] [07:15:02]POST finish read [07:15:02]Found Content-Length = 749 [07:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47600", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:02]execute_script... [07: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 : (3)47600", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:02]POST & json_proto [07:15:02]process_json_proto [07:15:02]json parsed OK: [07:15:02]protocol is kg_v1.0 [07:15:02]action value=close_receipt [07:15:02]process_action close_receipt [07:15:02]cmd_close_receipt [07:15:02]MH_GetDate [07:15:02]Write to MH i2c: F0 00 00 AB 12 AC [07:15:02]Write i2c OK [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: F0 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: F0 09 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: F0 09 00 AB 12 00 7A A2 18 67 4C DF 56 66 37 [07:15:02]GetLastDocTimeStamp 1729666830 [07:15:02]current date 1729667706 [07:15:02]FM_GetShiftState [07:15:02]SAM_PROTO_GetShiftState [07:15:02]wFMCommunicate request_size=4 [07:15:02]MH_SAM_APDU [07:15:02]CAPDU: 80 13 01 00 [07:15:02]Write to MH i2c: E2 08 00 AC 12 80 13 01 00 00 00 00 00 3B [07:15:02]Write i2c OK [07:15:02]MH_I2C_Read... [07:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:02]Read from MH i2c: E2 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 0E 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 0E 00 AC 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 25 [07:15:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:15:02]wFMCommunicate OK [07:15:02]SAM_PROTO_GetShiftState done [07:15:02]FM_GetShiftState done [07:15:02]opened in 1729642527 [07:15:02]opened+sec_in_day 1729728927 [07:15:02]quantity*price = 14273 [07:15:02]sum+1 = 14274 [07:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 19 23.10.2024 07:15 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63290 ФПД: 187921475706802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071507&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63290&fm=187921475706802&tin=02508201610067®Number=0000000000091619&sum=14273 0 [07:15:03]StoreToDocumentArchive [07:15:03]shift 546 fd 63290 [07:15:03]save to /storage/0546/doc_00063290 [07:15:03]save last doc name /storage/0546/doc_00063290 to /storage/kkm_last_doc_name [07:15:03]save OK [07:15:03]Clear old archive folders... [07:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:15:03]tlvbuf is 008A4520 [07:15:03]SAM_PROTO_ClearQueue [07:15:03]wFMCommunicate request_size=4 [07:15:03]MH_SAM_APDU [07:15:03]CAPDU: 80 09 00 00 [07:15:03]Write to MH i2c: E2 08 00 B9 12 80 09 00 00 00 00 00 00 3D [07:15:03]Write i2c OK [07:15:03]MH_I2C_Read... [07:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:03]Read from MH i2c: E2 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 03 00 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 03 00 B9 12 00 90 00 3F [07:15:03]RAPDU: 90 00 [07:15:03]wFMCommunicate OK [07:15:03]SAM_PROTO_ClearQueue done [07:15:03]KKMCreateOFDPacket [07:15:03]OFDProtocolAddRootSTLVToBuf [07:15:03]FM_MakeSignedData [07:15:03]FM_MakeSignedData [07:15:03]SAM_PROTO_SignData [07:15:03]wFMCommunicate request_size=4 [07:15:03]MH_SAM_APDU [07:15:03]CAPDU: 80 0D 01 02 [07:15:03]Write to MH i2c: E2 08 00 BA 12 80 0D 01 02 00 00 00 00 45 [07:15:03]Write i2c OK [07:15:03]MH_I2C_Read... [07:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:03]Read from MH i2c: E2 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 03 00 [07:15:03]MH_I2C_Read... [07:15:03]Read from MH i2c: E2 03 00 BA 12 00 90 00 40 [07:15:03]RAPDU: 90 00 [07:15:03]wFMCommunicate OK [07:15:03]wFMCommunicate request_size=255 [07:15:03]MH_SAM_APDU [07:15:03]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7B A2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [07:15:03]Write to MH i2c: E2 02 01 BB 12 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7B A2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 10 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 BB 12 00 90 00 41 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]wFMCommunicate request_size=34 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F7 00 00 35 04 06 00 AA E9 E0 CE 1F B2 [07:15:04]Write to MH i2c: E2 25 00 BC 12 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F7 00 00 35 04 06 00 AA E9 E0 CE 1F B2 00 00 52 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [07:15:04]RAPDU: 90 00 [07:15:04]wFMCommunicate OK [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 0D 03 02 [07:15:04]Write to MH i2c: E2 08 00 BD 12 80 0D 03 02 00 00 00 00 4A [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 0B 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 0B 00 BD 12 00 5A E7 49 81 E1 EF A9 08 90 00 D7 [07:15:04]RAPDU: 5A E7 49 81 E1 EF A9 08 90 00 [07:15:04]wFMCommunicate OK [07:15:04]SAM_PROTO_SignData done [07:15:04]FM_MakeSignedData done [07:15:04]CreateOFDProtocolMessage [07:15:04]wFMCommunicate request_size=4 [07:15:04]MH_SAM_APDU [07:15:04]CAPDU: 80 11 00 00 [07:15:04]Write to MH i2c: E2 08 00 BE 12 80 11 00 00 00 00 00 00 4A [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:04]Read from MH i2c: E2 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 17 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: E2 17 00 BE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A3 [07:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:15:04]wFMCommunicate OK [07:15:04]CreateOFDProtocolMessage done [07:15:04]OFDSenderStorePacket 63290 [07:15:04]StoreOFDPacket docnum=63290 [07:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 F2 91 1F 01 1A 8D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7B A2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F7 00 00 35 04 06 00 AA E9 E0 CE 1F B2 5A E7 49 81 E1 EF A9 08 [07:15:04]CheckFolder [07:15:04]dirname=/storage/ofd_packets [07:15:04]CheckFolder done [07:15:04]ProducePacketName [07:15:04]name=ofd_packets/00063290 [07:15:04]NVStorageSaveData ofd_packets/00063290 [07:15:04]File name is /storage/ofd_packets/00063290 [07:15:04]Write 325 bytes [07:15:04]NVStorageSaveData done [07:15:04]OFDSenderStorePacket done [07:15:04]KKMCreateOFDPacket done [07:15:04]NVStorageSaveData kkm_last_timestamp [07:15:04]File name is /storage/kkm_last_timestamp [07:15:04]Write 4 bytes [07:15:04]NVStorageSaveData done [07:15:04]ExternCall_PrintAddStr [07:15:04]wPrintStart [07:15:04]Write to MH i2c: 01 00 00 BF 12 D1 [07:15:04]Write i2c OK [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 07 00 [07:15:04]MH_I2C_Read... [07:15:04]Read from MH i2c: 01 07 00 BF 12 00 00 00 00 00 FF 0F E6 [07:15:04]RasterBufferAndPrint [07:15:04]line Счет N : (3)47600 [07:15:04]line ИНН: 02508201610067 [07:15:04]line Контрольно-Кассовый Чек [07:15:04]line ПРОДАЖА [07:15:04]line Товар: 48743587 [07:15:04]line Сигареты Winston XStyle Silver [07:15:04]line 1.000 * 142.73 [07:15:04]line = 142.73 [07:15:04]line НДС 12% НСП 1% [07:15:04]line > о реализуемом товаре [07:15:04]line ИТОГО: 142.73 [07:15:04]line НСП 1% : 1.26 [07:15:04]line НДС 12% : 15.16 [07:15:04]line Наличными: 0.00 [07:15:04]line Безнал.: 142.73 [07:15:04]line Место: АЗС № 86 "Партнер Нефть" [07:15:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:15:04]line СНО: Общий режим [07:15:04]line Чек 19 23.10.2024 07:15 [07:15:04]line Смена: 546 ФФД: 1.0 [07:15:04]line ЗНМ: 0300000154 [07:15:04]line РНМ: 0000000000091619 [07:15:04]line Версия ККМ: 001 [07:15:04]line Платежная система: Mbank [07:15:04]line ФМ: 0000000000874676 [07:15:04]line ФД: 63290 [07:15:04]line ФПД: 187921475706802 [07:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T071507&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63290&fm=187921475706802&tin=02508201610067®Number=0000000000091619&sum=14273 [07:15:04]OFD Sender: Processing packet 63290 [packets to send 232, broken 231] [07:15:04]ProducePacketName [07:15:04]name=ofd_packets/00063290 [07:15:04]OFD Sender: To server: pG, [07:15:04]CommunicateWithHost lk.salyk.kg:30040 [07:15:04]ConnectInit lk.salyk.kg [07:15:04]line 0 [07:15:04]written 0, free lines is 4095 [07:15:04]Connected sock=10 [07:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 F2 91 1F 01 1A 8D 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 7B A2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3A F7 00 00 35 04 06 00 AA E9 E0 CE 1F B2 5A E7 49 81 E1 EF A9 08 [07:15:05]Write to MH i2c: 01 00 00 E9 12 FB [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 07 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: 01 07 00 E9 12 00 00 00 00 00 FE 0C 0C [07:15:05]RasterBufferAndPrint [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]line [07:15:05]written 0, free lines is 3332 [07:15:05]MH_Cut [07:15:05]Write to MH i2c: D1 01 00 F0 12 01 D4 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: D1 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: D1 01 00 [07:15:05]MH_I2C_Read... [07:15:05]Read from MH i2c: D1 01 00 F0 12 00 D3 [07:15:05]Write to MH i2c: 01 00 00 F1 12 03 [07:15:05]Write i2c OK [07:15:05]MH_I2C_Read... [07:15:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 2D BD 47 00 65 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 38 37 34 36 37 36 10 04 04 00 3A F7 00 00 F4 03 04 00 73 4C 18 67 B6 04 01 00 00 DB C4 4D 75 D6 76 DD C9 [07:15:05]CommunicateWithHost err = 0 [07:15:05]CheckOFDResponse [07:15:05]1017 (14) - 77093643461234 [07:15:05]1041 (16) - 0000000000874676 [07:15:05]1040 (4) - 63290 [07:15:05]1012 (4) - 23.10.2024 01:08 [07:15:05]1206 (1) - 0 [07:15:05]OFD Sender: Remove packet 63290 [07:15:05]ProducePacketName [07:15:05]name=ofd_packets/00063290 [07:15:05]NVStorageDeleteData [07:15:05]OFD Sender: No OFD packet to send [07:15:05]*** Cut start [07:15:05]*** Partial cut [07:15:05]*** CUTSNS_PIN = 1 [07:15:05]*** CUTSNS_PIN = 0 [07:15:06]*** Brake cut motor [07:15:06]Read from MH i2c: 01 [07:15:06]MH_I2C_Read... [07:15:06]*** Stop cut motor [07:15:06]*** Cut end [07:15:06]Read from MH i2c: 01 07 00 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: 01 07 00 F1 12 00 00 00 00 00 FF 0F 18 [07:15:06]process_action close_receipt done [07:15:06]requested_data is exist [07:15:06]produce_requested_data [07:15:06]requested_item fm.sn is exist - process it [07:15:06]wFMCommunicate request_size=4 [07:15:06]MH_SAM_APDU [07:15:06]CAPDU: 80 11 00 00 [07:15:06]Write to MH i2c: E2 08 00 F2 12 80 11 00 00 00 00 00 00 7E [07:15:06]Write i2c OK [07:15:06]MH_I2C_Read... [07:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:06]Read from MH i2c: E2 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 17 00 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 17 00 F2 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D7 [07:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:15:06]wFMCommunicate OK [07:15:06]requested_item fd.num is exist - process it [07:15:06]SAM_PROTO_GetFieldsCounters [07:15:06]wFMCommunicate request_size=4 [07:15:06]MH_SAM_APDU [07:15:06]CAPDU: 80 13 00 00 [07:15:06]Write to MH i2c: E2 08 00 F3 12 80 13 00 00 00 00 00 00 81 [07:15:06]Write i2c OK [07:15:06]MH_I2C_Read... [07:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:06]Read from MH i2c: E2 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 62 00 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 62 00 F3 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3A F7 00 00 0E 04 04 00 22 02 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 37 [07:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3A F7 00 00 0E 04 04 00 22 02 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 [07:15:06]wFMCommunicate OK [07:15:06]SAM_PROTO_GetFieldsCounters done [07:15:06]requested_item shift.num is exist - process it [07:15:06]requested_item shift.opened is exist - process it [07:15:06]req_shift_opened [07:15:06]FM_GetShiftState [07:15:06]SAM_PROTO_GetShiftState [07:15:06]wFMCommunicate request_size=4 [07:15:06]MH_SAM_APDU [07:15:06]CAPDU: 80 13 01 00 [07:15:06]Write to MH i2c: E2 08 00 F4 12 80 13 01 00 00 00 00 00 83 [07:15:06]Write i2c OK [07:15:06]MH_I2C_Read... [07:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:06]Read from MH i2c: E2 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 0E 00 [07:15:06]MH_I2C_Read... [07:15:06]Read from MH i2c: E2 0E 00 F4 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 6D [07:15:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:15:06]wFMCommunicate OK [07:15:06]SAM_PROTO_GetShiftState done [07:15:06]FM_GetShiftState done [07:15:06]req_shift_opened done [07:15:06]requested_item shift.open_date is exist - process it [07:15:06]req_shift_open_date [07:15:06]req_shift_open_date done [07:15:06]produce_requested_data done [07:15:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63290,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:15:06]process_action_free close_receipt [07:15:06]json_value_free [07:15:06]json_value_free done [07:15:06]process_json_proto returns [07:15:06]Send response to host [07:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63290,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:15:06]free response buf [07:15:06]execute_script done [07:15:06]execute_script returns [07:15:06]free content buf [07:15:06]Sock 9.Close socket [07:15:06]Sock 9.Thread stoped [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]accept exits with 7 [07:24:46]New connection [07:24:46]New thread 3067096420 created [07:24:46]Thread 3066953060 joined [07:24:46]Waiting for new connection... [07:24:46] Sock 7.Parse request [07:24:46]Sock 7.Check first char [07:24:46]Sock 7.First char is OK [07:24:46]request: POST /json_proto HTTP/1.0 [07:24:46]Method: POST [07:24:46]URL: /json_proto [07:24:46]Method is POST - this is cgi request [07:24:46]url: /json_proto [07:24:46]query_string will be loaded in cgi processing [07:24:46]execute_cgi json_proto POST (null) [07:24:46]execute_cgi path=json_proto method=POST [07:24:46]POST find Content-Length [07:24:46]Host: 172.17.42.132:8080 [07:24:46]Content-Length: 619 [07:24:46]Content-Type: application/json [07:24:46] [07:24:46]POST finish read [07:24:46]Found Content-Length = 619 [07:24:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47601", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:46]execute_script... [07:24: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 : (3)47601", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:46]POST & json_proto [07:24:46]process_json_proto [07:24:46]json parsed OK: [07:24:46]protocol is kg_v1.0 [07:24:46]action value=close_receipt [07:24:46]process_action close_receipt [07:24:46]cmd_close_receipt [07:24:46]MH_GetDate [07:24:46]Write to MH i2c: F0 00 00 F5 12 F6 [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: F0 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: F0 09 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: F0 09 00 F5 12 00 C2 A4 18 67 4C DF 56 66 CB [07:24:46]GetLastDocTimeStamp 1729667707 [07:24:46]current date 1729668290 [07:24:46]FM_GetShiftState [07:24:46]SAM_PROTO_GetShiftState [07:24:46]wFMCommunicate request_size=4 [07:24:46]MH_SAM_APDU [07:24:46]CAPDU: 80 13 01 00 [07:24:46]Write to MH i2c: E2 08 00 F6 12 80 13 01 00 00 00 00 00 85 [07:24:46]Write i2c OK [07:24:46]MH_I2C_Read... [07:24:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:46]Read from MH i2c: E2 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: E2 0E 00 [07:24:46]MH_I2C_Read... [07:24:46]Read from MH i2c: E2 0E 00 F6 12 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 6F [07:24:46]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:24:46]wFMCommunicate OK [07:24:46]SAM_PROTO_GetShiftState done [07:24:46]FM_GetShiftState done [07:24:46]opened in 1729642527 [07:24:46]opened+sec_in_day 1729728927 [07:24:46]quantity*price = 13900 [07:24:46]sum+1 = 13901 [07:24:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 23.10.2024 07:24 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63291 ФПД: 233856694243482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072450&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63291&fm=233856694243482&tin=02508201610067®Number=0000000000091619&sum=13900 0 [07:24:47]StoreToDocumentArchive [07:24:47]shift 546 fd 63291 [07:24:47]save to /storage/0546/doc_00063291 [07:24:47]save last doc name /storage/0546/doc_00063291 to /storage/kkm_last_doc_name [07:24:47]save OK [07:24:47]Clear old archive folders... [07:24:47]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:24:47]tlvbuf is B6EE4870 [07:24:47]SAM_PROTO_ClearQueue [07:24:47]wFMCommunicate request_size=4 [07:24:47]MH_SAM_APDU [07:24:47]CAPDU: 80 09 00 00 [07:24:47]Write to MH i2c: E2 08 00 03 13 80 09 00 00 00 00 00 00 88 [07:24:47]Write i2c OK [07:24:47]MH_I2C_Read... [07:24:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:47]Read from MH i2c: E2 [07:24:47]MH_I2C_Read... [07:24:47]Read from MH i2c: E2 03 00 [07:24:47]MH_I2C_Read... [07:24:47]Read from MH i2c: E2 03 00 03 13 00 90 00 8A [07:24:47]RAPDU: 90 00 [07:24:47]wFMCommunicate OK [07:24:47]SAM_PROTO_ClearQueue done [07:24:47]KKMCreateOFDPacket [07:24:47]OFDProtocolAddRootSTLVToBuf [07:24:47]FM_MakeSignedData [07:24:47]FM_MakeSignedData [07:24:47]SAM_PROTO_SignData [07:24:47]wFMCommunicate request_size=4 [07:24:47]MH_SAM_APDU [07:24:47]CAPDU: 80 0D 01 02 [07:24:47]Write to MH i2c: E2 08 00 04 13 80 0D 01 02 00 00 00 00 90 [07:24:47]Write i2c OK [07:24:47]MH_I2C_Read... [07:24:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:47]Read from MH i2c: E2 [07:24:47]MH_I2C_Read... [07:24:47]Read from MH i2c: E2 03 00 [07:24:47]MH_I2C_Read... [07:24:47]Read from MH i2c: E2 03 00 04 13 00 90 00 8B [07:24:47]RAPDU: 90 00 [07:24:47]wFMCommunicate OK [07:24:47]wFMCommunicate request_size=255 [07:24:47]MH_SAM_APDU [07:24:47]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 14 00 00 00 F4 03 04 00 C2 A4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [07:24:47]Write to MH i2c: E2 02 01 05 13 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 14 00 00 00 F4 03 04 00 C2 A4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 DF [07:24:47]Write i2c OK [07:24:47]MH_I2C_Read... [07:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:48]Read from MH i2c: E2 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 03 00 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [07:24:48]RAPDU: 90 00 [07:24:48]wFMCommunicate OK [07:24:48]wFMCommunicate request_size=31 [07:24:48]MH_SAM_APDU [07:24:48]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 3B F7 00 00 35 04 06 00 D4 B1 01 30 50 9A [07:24:48]Write to MH i2c: E2 22 00 06 13 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 3B F7 00 00 35 04 06 00 D4 B1 01 30 50 9A 00 00 96 [07:24:48]Write i2c OK [07:24:48]MH_I2C_Read... [07:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:48]Read from MH i2c: E2 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 03 00 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [07:24:48]RAPDU: 90 00 [07:24:48]wFMCommunicate OK [07:24:48]wFMCommunicate request_size=4 [07:24:48]MH_SAM_APDU [07:24:48]CAPDU: 80 0D 03 02 [07:24:48]Write to MH i2c: E2 08 00 07 13 80 0D 03 02 00 00 00 00 95 [07:24:48]Write i2c OK [07:24:48]MH_I2C_Read... [07:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:48]Read from MH i2c: E2 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 0B 00 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 0B 00 07 13 00 56 8C 51 91 00 82 F2 93 90 00 61 [07:24:48]RAPDU: 56 8C 51 91 00 82 F2 93 90 00 [07:24:48]wFMCommunicate OK [07:24:48]SAM_PROTO_SignData done [07:24:48]FM_MakeSignedData done [07:24:48]CreateOFDProtocolMessage [07:24:48]wFMCommunicate request_size=4 [07:24:48]MH_SAM_APDU [07:24:48]CAPDU: 80 11 00 00 [07:24:48]Write to MH i2c: E2 08 00 08 13 80 11 00 00 00 00 00 00 95 [07:24:48]Write i2c OK [07:24:48]MH_I2C_Read... [07:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:48]Read from MH i2c: E2 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 17 00 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: E2 17 00 08 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EE [07:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:24:48]wFMCommunicate OK [07:24:48]CreateOFDProtocolMessage done [07:24:48]OFDSenderStorePacket 63291 [07:24:48]StoreOFDPacket docnum=63291 [07:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 E6 2C 1C 01 38 10 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 14 00 00 00 F4 03 04 00 C2 A4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F7 00 00 35 04 06 00 D4 B1 01 30 50 9A 56 8C 51 91 00 82 F2 93 [07:24:48]CheckFolder [07:24:48]dirname=/storage/ofd_packets [07:24:48]CheckFolder done [07:24:48]ProducePacketName [07:24:48]name=ofd_packets/00063291 [07:24:48]NVStorageSaveData ofd_packets/00063291 [07:24:48]File name is /storage/ofd_packets/00063291 [07:24:48]Write 322 bytes [07:24:48]NVStorageSaveData done [07:24:48]OFDSenderStorePacket done [07:24:48]KKMCreateOFDPacket done [07:24:48]NVStorageSaveData kkm_last_timestamp [07:24:48]File name is /storage/kkm_last_timestamp [07:24:48]Write 4 bytes [07:24:48]NVStorageSaveData done [07:24:48]ExternCall_PrintAddStr [07:24:48]wPrintStart [07:24:48]Write to MH i2c: 01 00 00 09 13 1C [07:24:48]Write i2c OK [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: 01 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: 01 07 00 [07:24:48]MH_I2C_Read... [07:24:48]Read from MH i2c: 01 07 00 09 13 00 00 00 00 00 FF 0F 31 [07:24:48]RasterBufferAndPrint [07:24:48]line Счет N : (3)47601 [07:24:48]line ИНН: 02508201610067 [07:24:48]line Контрольно-Кассовый Чек [07:24:48]line ПРОДАЖА [07:24:48]line Товар: 48745000 [07:24:48]line Сигареты Winston Purple Mix [07:24:48]line 1.000 * 139.00 [07:24:48]line = 139.00 [07:24:48]line НДС 12% НСП 1% [07:24:48]line > о реализуемом товаре [07:24:48]line ИТОГО: 139.00 [07:24:48]line НСП 1% : 1.23 [07:24:48]line НДС 12% : 14.76 [07:24:48]line Наличными: 139.00 [07:24:48]line Безнал.: 0.00 [07:24:48]line Место: АЗС № 86 "Партнер Нефть" [07:24:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:24:48]line СНО: Общий режим [07:24:48]line Чек 20 23.10.2024 07:24 [07:24:48]line Смена: 546 ФФД: 1.0 [07:24:48]line ЗНМ: 0300000154 [07:24:48]line РНМ: 0000000000091619 [07:24:48]line Версия ККМ: 001 [07:24:48]line ФМ: 0000000000874676 [07:24:48]line ФД: 63291 [07:24:48]line ФПД: 233856694243482 [07:24:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072450&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63291&fm=233856694243482&tin=02508201610067®Number=0000000000091619&sum=13900 [07:24:48]OFD Sender: Processing packet 63291 [packets to send 232, broken 231] [07:24:48]ProducePacketName [07:24:48]name=ofd_packets/00063291 [07:24:48]OFD Sender: To server: pG, [07:24:48]CommunicateWithHost lk.salyk.kg:30040 [07:24:48]ConnectInit lk.salyk.kg [07:24:48]line 0 [07:24:48]written 0, free lines is 4095 [07:24:48]Connected sock=9 [07:24:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 E6 2C 1C 01 38 10 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 14 00 00 00 F4 03 04 00 C2 A4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F7 00 00 35 04 06 00 D4 B1 01 30 50 9A 56 8C 51 91 00 82 F2 93 [07:24:49]Write to MH i2c: 01 00 00 31 13 44 [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: 01 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: 01 07 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 14 0D 6C [07:24:49]RasterBufferAndPrint [07:24:49]line [07:24:49]line [07:24:49]line [07:24:49]line [07:24:49]line [07:24:49]written 0, free lines is 3354 [07:24:49]MH_Cut [07:24:49]Write to MH i2c: D1 01 00 38 13 01 1D [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: D1 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: D1 01 00 [07:24:49]MH_I2C_Read... [07:24:49]Read from MH i2c: D1 01 00 38 13 00 1C [07:24:49]Write to MH i2c: 01 00 00 39 13 4C [07:24:49]Write i2c OK [07:24:49]MH_I2C_Read... [07:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 63 42 47 00 14 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3B F7 00 00 F4 03 04 00 BB 4E 18 67 B6 04 01 00 00 8B FD 53 33 CF 94 A2 59 [07:24:49]CommunicateWithHost err = 0 [07:24:49]CheckOFDResponse [07:24:49]1017 (14) - 77093643461234 [07:24:49]1041 (16) - 0000000000874676 [07:24:49]1040 (4) - 63291 [07:24:49]1012 (4) - 23.10.2024 01:17 [07:24:49]1206 (1) - 0 [07:24:49]OFD Sender: Remove packet 63291 [07:24:49]ProducePacketName [07:24:49]name=ofd_packets/00063291 [07:24:49]NVStorageDeleteData [07:24:49]OFD Sender: No OFD packet to send [07:24:49]*** Cut start [07:24:49]*** Partial cut [07:24:49]*** CUTSNS_PIN = 1 [07:24:49]*** CUTSNS_PIN = 0 [07:24:50]*** Brake cut motor [07:24:50]Read from MH i2c: 01 [07:24:50]MH_I2C_Read... [07:24:50]*** Stop cut motor [07:24:50]*** Cut end [07:24:50]Read from MH i2c: 01 07 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: 01 07 00 39 13 00 00 00 00 00 FF 0F 61 [07:24:50]process_action close_receipt done [07:24:50]requested_data is exist [07:24:50]produce_requested_data [07:24:50]requested_item fm.sn is exist - process it [07:24:50]wFMCommunicate request_size=4 [07:24:50]MH_SAM_APDU [07:24:50]CAPDU: 80 11 00 00 [07:24:50]Write to MH i2c: E2 08 00 3A 13 80 11 00 00 00 00 00 00 C7 [07:24:50]Write i2c OK [07:24:50]MH_I2C_Read... [07:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:50]Read from MH i2c: E2 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 17 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 17 00 3A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 20 [07:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:24:50]wFMCommunicate OK [07:24:50]requested_item fd.num is exist - process it [07:24:50]SAM_PROTO_GetFieldsCounters [07:24:50]wFMCommunicate request_size=4 [07:24:50]MH_SAM_APDU [07:24:50]CAPDU: 80 13 00 00 [07:24:50]Write to MH i2c: E2 08 00 3B 13 80 13 00 00 00 00 00 00 CA [07:24:50]Write i2c OK [07:24:50]MH_I2C_Read... [07:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:50]Read from MH i2c: E2 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 62 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 62 00 3B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3B F7 00 00 0E 04 04 00 22 02 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 84 [07:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3B F7 00 00 0E 04 04 00 22 02 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 [07:24:50]wFMCommunicate OK [07:24:50]SAM_PROTO_GetFieldsCounters done [07:24:50]requested_item shift.num is exist - process it [07:24:50]requested_item shift.opened is exist - process it [07:24:50]req_shift_opened [07:24:50]FM_GetShiftState [07:24:50]SAM_PROTO_GetShiftState [07:24:50]wFMCommunicate request_size=4 [07:24:50]MH_SAM_APDU [07:24:50]CAPDU: 80 13 01 00 [07:24:50]Write to MH i2c: E2 08 00 3C 13 80 13 01 00 00 00 00 00 CC [07:24:50]Write i2c OK [07:24:50]MH_I2C_Read... [07:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:50]Read from MH i2c: E2 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 0E 00 [07:24:50]MH_I2C_Read... [07:24:50]Read from MH i2c: E2 0E 00 3C 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B6 [07:24:50]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:24:50]wFMCommunicate OK [07:24:50]SAM_PROTO_GetShiftState done [07:24:50]FM_GetShiftState done [07:24:50]req_shift_opened done [07:24:50]requested_item shift.open_date is exist - process it [07:24:50]req_shift_open_date [07:24:50]req_shift_open_date done [07:24:50]produce_requested_data done [07:24:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63291,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:24:50]process_action_free close_receipt [07:24:50]json_value_free [07:24:50]json_value_free done [07:24:50]process_json_proto returns [07:24:50]Send response to host [07:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63291,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:24:50]free response buf [07:24:50]execute_script done [07:24:50]execute_script returns [07:24:50]free content buf [07:24:50]Sock 7.Close socket [07:24:50]Sock 7.Thread stoped [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:06]accept exits with 10 [07:28:06]New connection [07:28:06]New thread 3066953060 created [07:28:06]Thread 3067096420 joined [07:28:06]Waiting for new connection... [07:28:06] Sock 10.Parse request [07:28:06]Sock 10.Check first char [07:28:06]Sock 10.First char is OK [07:28:06]request: POST /json_proto HTTP/1.0 [07:28:06]Method: POST [07:28:06]URL: /json_proto [07:28:06]Method is POST - this is cgi request [07:28:06]url: /json_proto [07:28:06]query_string will be loaded in cgi processing [07:28:06]execute_cgi json_proto POST (null) [07:28:06]execute_cgi path=json_proto method=POST [07:28:06]POST find Content-Length [07:28:06]Host: 172.17.42.132:8080 [07:28:06]Content-Length: 619 [07:28:06]Content-Type: application/json [07:28:06] [07:28:06]POST finish read [07:28:06]Found Content-Length = 619 [07:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47602", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:06]execute_script... [07:28:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47602", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:06]POST & json_proto [07:28:06]process_json_proto [07:28:06]json parsed OK: [07:28:06]protocol is kg_v1.0 [07:28:06]action value=close_receipt [07:28:06]process_action close_receipt [07:28:06]cmd_close_receipt [07:28:06]MH_GetDate [07:28:06]Write to MH i2c: F0 00 00 3D 13 3F [07:28:06]Write i2c OK [07:28:06]MH_I2C_Read... [07:28:06]Read from MH i2c: F0 [07:28:06]MH_I2C_Read... [07:28:06]Read from MH i2c: F0 09 00 [07:28:06]MH_I2C_Read... [07:28:06]Read from MH i2c: F0 09 00 3D 13 00 8B A5 18 67 4C DF 56 66 DE [07:28:06]GetLastDocTimeStamp 1729668290 [07:28:06]current date 1729668491 [07:28:06]FM_GetShiftState [07:28:06]SAM_PROTO_GetShiftState [07:28:06]wFMCommunicate request_size=4 [07:28:06]MH_SAM_APDU [07:28:06]CAPDU: 80 13 01 00 [07:28:06]Write to MH i2c: E2 08 00 3E 13 80 13 01 00 00 00 00 00 CE [07:28:06]Write i2c OK [07:28:06]MH_I2C_Read... [07:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:06]Read from MH i2c: E2 [07:28:06]MH_I2C_Read... [07:28:06]Read from MH i2c: E2 0E 00 [07:28:06]MH_I2C_Read... [07:28:06]Read from MH i2c: E2 0E 00 3E 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B8 [07:28:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:28:06]wFMCommunicate OK [07:28:06]SAM_PROTO_GetShiftState done [07:28:06]FM_GetShiftState done [07:28:06]opened in 1729642527 [07:28:06]opened+sec_in_day 1729728927 [07:28:06]quantity*price = 13900 [07:28:06]sum+1 = 13901 [07:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 21 23.10.2024 07:28 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63292 ФПД: 95303317837990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63292&fm=95303317837990&tin=02508201610067®Number=0000000000091619&sum=13900 0 [07:28:07]StoreToDocumentArchive [07:28:07]shift 546 fd 63292 [07:28:07]save to /storage/0546/doc_00063292 [07:28:07]save last doc name /storage/0546/doc_00063292 to /storage/kkm_last_doc_name [07:28:07]save OK [07:28:07]Clear old archive folders... [07:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:28:07]tlvbuf is 008B9FF0 [07:28:07]SAM_PROTO_ClearQueue [07:28:07]wFMCommunicate request_size=4 [07:28:07]MH_SAM_APDU [07:28:07]CAPDU: 80 09 00 00 [07:28:07]Write to MH i2c: E2 08 00 4B 13 80 09 00 00 00 00 00 00 D0 [07:28:07]Write i2c OK [07:28:07]MH_I2C_Read... [07:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:07]Read from MH i2c: E2 [07:28:07]MH_I2C_Read... [07:28:07]Read from MH i2c: E2 03 00 [07:28:07]MH_I2C_Read... [07:28:07]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [07:28:07]RAPDU: 90 00 [07:28:07]wFMCommunicate OK [07:28:07]SAM_PROTO_ClearQueue done [07:28:07]KKMCreateOFDPacket [07:28:07]OFDProtocolAddRootSTLVToBuf [07:28:07]FM_MakeSignedData [07:28:07]FM_MakeSignedData [07:28:07]SAM_PROTO_SignData [07:28:07]wFMCommunicate request_size=4 [07:28:07]MH_SAM_APDU [07:28:07]CAPDU: 80 0D 01 02 [07:28:07]Write to MH i2c: E2 08 00 4C 13 80 0D 01 02 00 00 00 00 D8 [07:28:07]Write i2c OK [07:28:07]MH_I2C_Read... [07:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:07]Read from MH i2c: E2 [07:28:07]MH_I2C_Read... [07:28:07]Read from MH i2c: E2 03 00 [07:28:07]MH_I2C_Read... [07:28:07]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [07:28:07]RAPDU: 90 00 [07:28:07]wFMCommunicate OK [07:28:07]wFMCommunicate request_size=255 [07:28:07]MH_SAM_APDU [07:28:07]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 15 00 00 00 F4 03 04 00 8B A5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [07:28:07]Write to MH i2c: E2 02 01 4D 13 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 15 00 00 00 F4 03 04 00 8B A5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F2 [07:28:07]Write i2c OK [07:28:07]MH_I2C_Read... [07:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:08]Read from MH i2c: E2 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 03 00 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [07:28:08]RAPDU: 90 00 [07:28:08]wFMCommunicate OK [07:28:08]wFMCommunicate request_size=31 [07:28:08]MH_SAM_APDU [07:28:08]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 3C F7 00 00 35 04 06 00 56 AD 88 67 D8 A6 [07:28:08]Write to MH i2c: E2 22 00 4E 13 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 3C F7 00 00 35 04 06 00 56 AD 88 67 D8 A6 00 00 AF [07:28:08]Write i2c OK [07:28:08]MH_I2C_Read... [07:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:08]Read from MH i2c: E2 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 03 00 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [07:28:08]RAPDU: 90 00 [07:28:08]wFMCommunicate OK [07:28:08]wFMCommunicate request_size=4 [07:28:08]MH_SAM_APDU [07:28:08]CAPDU: 80 0D 03 02 [07:28:08]Write to MH i2c: E2 08 00 4F 13 80 0D 03 02 00 00 00 00 DD [07:28:08]Write i2c OK [07:28:08]MH_I2C_Read... [07:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:08]Read from MH i2c: E2 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 0B 00 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 0B 00 4F 13 00 56 70 A6 FC 4D 2B 42 5B 90 00 5B [07:28:08]RAPDU: 56 70 A6 FC 4D 2B 42 5B 90 00 [07:28:08]wFMCommunicate OK [07:28:08]SAM_PROTO_SignData done [07:28:08]FM_MakeSignedData done [07:28:08]CreateOFDProtocolMessage [07:28:08]wFMCommunicate request_size=4 [07:28:08]MH_SAM_APDU [07:28:08]CAPDU: 80 11 00 00 [07:28:08]Write to MH i2c: E2 08 00 50 13 80 11 00 00 00 00 00 00 DD [07:28:08]Write i2c OK [07:28:08]MH_I2C_Read... [07:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:08]Read from MH i2c: E2 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 17 00 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: E2 17 00 50 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 36 [07:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:28:08]wFMCommunicate OK [07:28:08]CreateOFDProtocolMessage done [07:28:08]OFDSenderStorePacket 63292 [07:28:08]StoreOFDPacket docnum=63292 [07:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 02 B5 1C 01 59 51 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 15 00 00 00 F4 03 04 00 8B A5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F7 00 00 35 04 06 00 56 AD 88 67 D8 A6 56 70 A6 FC 4D 2B 42 5B [07:28:08]CheckFolder [07:28:08]dirname=/storage/ofd_packets [07:28:08]CheckFolder done [07:28:08]ProducePacketName [07:28:08]name=ofd_packets/00063292 [07:28:08]NVStorageSaveData ofd_packets/00063292 [07:28:08]File name is /storage/ofd_packets/00063292 [07:28:08]Write 322 bytes [07:28:08]NVStorageSaveData done [07:28:08]OFDSenderStorePacket done [07:28:08]KKMCreateOFDPacket done [07:28:08]NVStorageSaveData kkm_last_timestamp [07:28:08]File name is /storage/kkm_last_timestamp [07:28:08]Write 4 bytes [07:28:08]NVStorageSaveData done [07:28:08]ExternCall_PrintAddStr [07:28:08]wPrintStart [07:28:08]Write to MH i2c: 01 00 00 51 13 64 [07:28:08]Write i2c OK [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: 01 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: 01 07 00 [07:28:08]MH_I2C_Read... [07:28:08]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [07:28:08]RasterBufferAndPrint [07:28:08]line Счет N : (3)47602 [07:28:08]line ИНН: 02508201610067 [07:28:08]line Контрольно-Кассовый Чек [07:28:08]line ПРОДАЖА [07:28:08]line Товар: 48745000 [07:28:08]line Сигареты Winston Purple Mix [07:28:08]line 1.000 * 139.00 [07:28:08]line = 139.00 [07:28:08]line НДС 12% НСП 1% [07:28:08]line > о реализуемом товаре [07:28:08]line ИТОГО: 139.00 [07:28:08]line НСП 1% : 1.23 [07:28:08]line НДС 12% : 14.76 [07:28:08]line Наличными: 139.00 [07:28:08]line Безнал.: 0.00 [07:28:08]line Место: АЗС № 86 "Партнер Нефть" [07:28:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:28:08]line СНО: Общий режим [07:28:08]line Чек 21 23.10.2024 07:28 [07:28:08]line Смена: 546 ФФД: 1.0 [07:28:08]line ЗНМ: 0300000154 [07:28:08]line РНМ: 0000000000091619 [07:28:08]line Версия ККМ: 001 [07:28:08]line ФМ: 0000000000874676 [07:28:08]line ФД: 63292 [07:28:08]line ФПД: 95303317837990 [07:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T072811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63292&fm=95303317837990&tin=02508201610067®Number=0000000000091619&sum=13900 [07:28:08]OFD Sender: Processing packet 63292 [packets to send 232, broken 231] [07:28:08]ProducePacketName [07:28:08]name=ofd_packets/00063292 [07:28:08]OFD Sender: To server: pG, [07:28:08]CommunicateWithHost lk.salyk.kg:30040 [07:28:08]ConnectInit lk.salyk.kg [07:28:08]line 0 [07:28:08]written 0, free lines is 4095 [07:28:08]Connected sock=9 [07:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 02 B5 1C 01 59 51 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 15 00 00 00 F4 03 04 00 8B A5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F7 00 00 35 04 06 00 56 AD 88 67 D8 A6 56 70 A6 FC 4D 2B 42 5B [07:28:09]Write to MH i2c: 01 00 00 79 13 8C [07:28:09]Write i2c OK [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: 01 [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: 01 07 00 [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: 01 07 00 79 13 00 00 00 00 00 14 0D B4 [07:28:09]RasterBufferAndPrint [07:28:09]line [07:28:09]line [07:28:09]line [07:28:09]line [07:28:09]line [07:28:09]written 0, free lines is 3358 [07:28:09]MH_Cut [07:28:09]Write to MH i2c: D1 01 00 80 13 01 65 [07:28:09]Write i2c OK [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: D1 [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: D1 01 00 [07:28:09]MH_I2C_Read... [07:28:09]Read from MH i2c: D1 01 00 80 13 00 64 [07:28:09]Write to MH i2c: 01 00 00 81 13 94 [07:28:09]Write i2c OK [07:28:09]MH_I2C_Read... [07:28:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B6 32 47 00 CE BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3C F7 00 00 F4 03 04 00 83 4F 18 67 B6 04 01 00 00 77 FD 9B 1A 88 30 22 C5 [07:28:09]CommunicateWithHost err = 0 [07:28:09]CheckOFDResponse [07:28:09]1017 (14) - 77093643461234 [07:28:09]1041 (16) - 0000000000874676 [07:28:09]1040 (4) - 63292 [07:28:09]1012 (4) - 23.10.2024 01:21 [07:28:09]1206 (1) - 0 [07:28:09]OFD Sender: Remove packet 63292 [07:28:09]ProducePacketName [07:28:09]name=ofd_packets/00063292 [07:28:09]NVStorageDeleteData [07:28:09]*** Cut start [07:28:09]*** Partial cut [07:28:09]*** CUTSNS_PIN = 1 [07:28:09]*** CUTSNS_PIN = 0 [07:28:09]OFD Sender: No OFD packet to send [07:28:10]*** Brake cut motor [07:28:10]Read from MH i2c: 01 [07:28:10]MH_I2C_Read... [07:28:10]*** Stop cut motor [07:28:10]*** Cut end [07:28:10]Read from MH i2c: 01 07 00 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [07:28:10]process_action close_receipt done [07:28:10]requested_data is exist [07:28:10]produce_requested_data [07:28:10]requested_item fm.sn is exist - process it [07:28:10]wFMCommunicate request_size=4 [07:28:10]MH_SAM_APDU [07:28:10]CAPDU: 80 11 00 00 [07:28:10]Write to MH i2c: E2 08 00 82 13 80 11 00 00 00 00 00 00 0F [07:28:10]Write i2c OK [07:28:10]MH_I2C_Read... [07:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:10]Read from MH i2c: E2 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 17 00 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 17 00 82 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 68 [07:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:28:10]wFMCommunicate OK [07:28:10]requested_item fd.num is exist - process it [07:28:10]SAM_PROTO_GetFieldsCounters [07:28:10]wFMCommunicate request_size=4 [07:28:10]MH_SAM_APDU [07:28:10]CAPDU: 80 13 00 00 [07:28:10]Write to MH i2c: E2 08 00 83 13 80 13 00 00 00 00 00 00 12 [07:28:10]Write i2c OK [07:28:10]MH_I2C_Read... [07:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:10]Read from MH i2c: E2 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 62 00 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 62 00 83 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3C F7 00 00 0E 04 04 00 22 02 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 D0 [07:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3C F7 00 00 0E 04 04 00 22 02 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 [07:28:10]wFMCommunicate OK [07:28:10]SAM_PROTO_GetFieldsCounters done [07:28:10]requested_item shift.num is exist - process it [07:28:10]requested_item shift.opened is exist - process it [07:28:10]req_shift_opened [07:28:10]FM_GetShiftState [07:28:10]SAM_PROTO_GetShiftState [07:28:10]wFMCommunicate request_size=4 [07:28:10]MH_SAM_APDU [07:28:10]CAPDU: 80 13 01 00 [07:28:10]Write to MH i2c: E2 08 00 84 13 80 13 01 00 00 00 00 00 14 [07:28:10]Write i2c OK [07:28:10]MH_I2C_Read... [07:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:10]Read from MH i2c: E2 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 0E 00 [07:28:10]MH_I2C_Read... [07:28:10]Read from MH i2c: E2 0E 00 84 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 FE [07:28:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:28:10]wFMCommunicate OK [07:28:10]SAM_PROTO_GetShiftState done [07:28:10]FM_GetShiftState done [07:28:10]req_shift_opened done [07:28:10]requested_item shift.open_date is exist - process it [07:28:10]req_shift_open_date [07:28:10]req_shift_open_date done [07:28:10]produce_requested_data done [07:28:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63292,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:28:10]process_action_free close_receipt [07:28:10]json_value_free [07:28:10]json_value_free done [07:28:10]process_json_proto returns [07:28:10]Send response to host [07:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63292,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:28:10]free response buf [07:28:10]execute_script done [07:28:10]execute_script returns [07:28:10]free content buf [07:28:10]Sock 10.Close socket [07:28:10]Sock 10.Thread stoped [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:50]OFD Sender: No OFD packet to send [07:29:55]OFD Sender: No OFD packet to send [07:30:00]OFD Sender: No OFD packet to send [07:30:05]OFD Sender: No OFD packet to send [07:30:10]OFD Sender: No OFD packet to send [07:30:15]OFD Sender: No OFD packet to send [07:30:20]OFD Sender: No OFD packet to send [07:30:25]OFD Sender: No OFD packet to send [07:30:30]OFD Sender: No OFD packet to send [07:30:35]OFD Sender: No OFD packet to send [07:30:40]OFD Sender: No OFD packet to send [07:30:45]OFD Sender: No OFD packet to send [07:30:50]OFD Sender: No OFD packet to send [07:30:55]OFD Sender: No OFD packet to send [07:31:00]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:38]accept exits with 7 [07:50:38]New connection [07:50:38]New thread 3067096420 created [07:50:38]Thread 3066953060 joined [07:50:38]Waiting for new connection... [07:50:38] Sock 7.Parse request [07:50:38]Sock 7.Check first char [07:50:38]Sock 7.First char is OK [07:50:38]request: POST /json_proto HTTP/1.0 [07:50:38]Method: POST [07:50:38]URL: /json_proto [07:50:38]Method is POST - this is cgi request [07:50:38]url: /json_proto [07:50:38]query_string will be loaded in cgi processing [07:50:38]execute_cgi json_proto POST (null) [07:50:38]execute_cgi path=json_proto method=POST [07:50:38]POST find Content-Length [07:50:38]Host: 172.17.42.132:8080 [07:50:38]Content-Length: 710 [07:50:38]Content-Type: application/json [07:50:38] [07:50:38]POST finish read [07:50:38]Found Content-Length = 710 [07:50:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47603", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:38]execute_script... [07:50:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47603", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:38]POST & json_proto [07:50:38]process_json_proto [07:50:38]json parsed OK: [07:50:38]protocol is kg_v1.0 [07:50:38]action value=close_receipt [07:50:38]process_action close_receipt [07:50:38]cmd_close_receipt [07:50:38]MH_GetDate [07:50:38]Write to MH i2c: F0 00 00 85 13 87 [07:50:38]Write i2c OK [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: F0 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: F0 09 00 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: F0 09 00 85 13 00 D2 AA 18 67 4C DF 56 66 72 [07:50:38]GetLastDocTimeStamp 1729668491 [07:50:38]current date 1729669842 [07:50:38]FM_GetShiftState [07:50:38]SAM_PROTO_GetShiftState [07:50:38]wFMCommunicate request_size=4 [07:50:38]MH_SAM_APDU [07:50:38]CAPDU: 80 13 01 00 [07:50:38]Write to MH i2c: E2 08 00 86 13 80 13 01 00 00 00 00 00 16 [07:50:38]Write i2c OK [07:50:38]MH_I2C_Read... [07:50:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:38]Read from MH i2c: E2 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: E2 0E 00 [07:50:38]MH_I2C_Read... [07:50:38]Read from MH i2c: E2 0E 00 86 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 00 [07:50:38]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:50:38]wFMCommunicate OK [07:50:38]SAM_PROTO_GetShiftState done [07:50:38]FM_GetShiftState done [07:50:38]opened in 1729642527 [07:50:38]opened+sec_in_day 1729728927 [07:50:38]quantity*price = 10400 [07:50:38]sum+1 = 10401 [07:50:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 23.10.2024 07:50 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63293 ФПД: 212161440333294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075042&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63293&fm=212161440333294&tin=02508201610067®Number=0000000000091619&sum=10400 0 [07:50:39]StoreToDocumentArchive [07:50:39]shift 546 fd 63293 [07:50:39]save to /storage/0546/doc_00063293 [07:50:39]save last doc name /storage/0546/doc_00063293 to /storage/kkm_last_doc_name [07:50:39]save OK [07:50:39]Clear old archive folders... [07:50:39]ProcessDocumentItem done err = 0, tmpTLVsize=303 [07:50:39]tlvbuf is 008D5160 [07:50:39]SAM_PROTO_ClearQueue [07:50:39]wFMCommunicate request_size=4 [07:50:39]MH_SAM_APDU [07:50:39]CAPDU: 80 09 00 00 [07:50:39]Write to MH i2c: E2 08 00 93 13 80 09 00 00 00 00 00 00 18 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:39]Read from MH i2c: E2 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [07:50:39]RAPDU: 90 00 [07:50:39]wFMCommunicate OK [07:50:39]SAM_PROTO_ClearQueue done [07:50:39]KKMCreateOFDPacket [07:50:39]OFDProtocolAddRootSTLVToBuf [07:50:39]FM_MakeSignedData [07:50:39]FM_MakeSignedData [07:50:39]SAM_PROTO_SignData [07:50:39]wFMCommunicate request_size=4 [07:50:39]MH_SAM_APDU [07:50:39]CAPDU: 80 0D 01 02 [07:50:39]Write to MH i2c: E2 08 00 94 13 80 0D 01 02 00 00 00 00 20 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:39]Read from MH i2c: E2 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [07:50:39]RAPDU: 90 00 [07:50:39]wFMCommunicate OK [07:50:39]wFMCommunicate request_size=255 [07:50:39]MH_SAM_APDU [07:50:39]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 D2 AA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D [07:50:39]Write to MH i2c: E2 02 01 95 13 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 D2 AA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 00 00 98 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:39]Read from MH i2c: E2 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 [07:50:39]MH_I2C_Read... [07:50:39]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [07:50:39]RAPDU: 90 00 [07:50:39]wFMCommunicate OK [07:50:39]wFMCommunicate request_size=62 [07:50:39]MH_SAM_APDU [07:50:39]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F7 00 00 35 04 06 00 C0 F5 AF 49 3D EE [07:50:39]Write to MH i2c: E2 41 00 96 13 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F7 00 00 35 04 06 00 C0 F5 AF 49 3D EE 00 00 71 [07:50:39]Write i2c OK [07:50:39]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [07:50:40]RAPDU: 90 00 [07:50:40]wFMCommunicate OK [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 0D 03 02 [07:50:40]Write to MH i2c: E2 08 00 97 13 80 0D 03 02 00 00 00 00 25 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 0B 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 0B 00 97 13 00 88 46 89 62 10 07 60 8A 90 00 E0 [07:50:40]RAPDU: 88 46 89 62 10 07 60 8A 90 00 [07:50:40]wFMCommunicate OK [07:50:40]SAM_PROTO_SignData done [07:50:40]FM_MakeSignedData done [07:50:40]CreateOFDProtocolMessage [07:50:40]wFMCommunicate request_size=4 [07:50:40]MH_SAM_APDU [07:50:40]CAPDU: 80 11 00 00 [07:50:40]Write to MH i2c: E2 08 00 98 13 80 11 00 00 00 00 00 00 25 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:40]Read from MH i2c: E2 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 17 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: E2 17 00 98 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7E [07:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:50:40]wFMCommunicate OK [07:50:40]CreateOFDProtocolMessage done [07:50:40]OFDSenderStorePacket 63293 [07:50:40]StoreOFDPacket docnum=63293 [07:50:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 43 01 00 00 4F 28 3B 01 88 BC 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 D2 AA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F7 00 00 35 04 06 00 C0 F5 AF 49 3D EE 88 46 89 62 10 07 60 8A [07:50:40]CheckFolder [07:50:40]dirname=/storage/ofd_packets [07:50:40]CheckFolder done [07:50:40]ProducePacketName [07:50:40]name=ofd_packets/00063293 [07:50:40]NVStorageSaveData ofd_packets/00063293 [07:50:40]File name is /storage/ofd_packets/00063293 [07:50:40]Write 353 bytes [07:50:40]NVStorageSaveData done [07:50:40]OFDSenderStorePacket done [07:50:40]KKMCreateOFDPacket done [07:50:40]NVStorageSaveData kkm_last_timestamp [07:50:40]File name is /storage/kkm_last_timestamp [07:50:40]Write 4 bytes [07:50:40]NVStorageSaveData done [07:50:40]ExternCall_PrintAddStr [07:50:40]wPrintStart [07:50:40]Write to MH i2c: 01 00 00 99 13 AC [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 07 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [07:50:40]RasterBufferAndPrint [07:50:40]line Счет N : (3)47603 [07:50:40]line ИНН: 02508201610067 [07:50:40]line Контрольно-Кассовый Чек [07:50:40]line ПРОДАЖА [07:50:40]line Товар: 4870202521216 [07:50:40]line Напиток MAXI чай 1,2 зел.лимон (новый) [07:50:40]line 1.000 * 104.00 [07:50:40]line = 104.00 [07:50:40]line НДС 12% НСП 1% [07:50:40]line > о реализуемом товаре [07:50:40]line ИТОГО: 104.00 [07:50:40]line НСП 1% : 0.92 [07:50:40]line НДС 12% : 11.04 [07:50:40]line Наличными: 104.00 [07:50:40]line Безнал.: 0.00 [07:50:40]line Место: АЗС № 86 "Партнер Нефть" [07:50:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:50:40]line СНО: Общий режим [07:50:40]line Чек 22 23.10.2024 07:50 [07:50:40]line Смена: 546 ФФД: 1.0 [07:50:40]line ЗНМ: 0300000154 [07:50:40]line РНМ: 0000000000091619 [07:50:40]line Версия ККМ: 001 [07:50:40]line ФМ: 0000000000874676 [07:50:40]line ФД: 63293 [07:50:40]line ФПД: 212161440333294 [07:50:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075042&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63293&fm=212161440333294&tin=02508201610067®Number=0000000000091619&sum=10400 [07:50:40]line 0 [07:50:40]OFD Sender: Processing packet 63293 [packets to send 232, broken 231] [07:50:40]ProducePacketName [07:50:40]name=ofd_packets/00063293 [07:50:40]OFD Sender: To server: pG, [07:50:40]CommunicateWithHost lk.salyk.kg:30040 [07:50:40]ConnectInit lk.salyk.kg [07:50:40]written 0, free lines is 4095 [07:50:40]Write to MH i2c: 01 00 00 C2 13 D5 [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 07 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: 01 07 00 C2 13 00 00 00 00 00 03 0D EC [07:50:40]RasterBufferAndPrint [07:50:40]line [07:50:40]line [07:50:40]line [07:50:40]line [07:50:40]line [07:50:40]written 0, free lines is 3337 [07:50:40]MH_Cut [07:50:40]Write to MH i2c: D1 01 00 C9 13 01 AE [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: D1 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: D1 01 00 [07:50:40]MH_I2C_Read... [07:50:40]Read from MH i2c: D1 01 00 C9 13 00 AD [07:50:40]Write to MH i2c: 01 00 00 CA 13 DD [07:50:40]Write i2c OK [07:50:40]MH_I2C_Read... [07:50:41]*** Cut start [07:50:41]*** Partial cut [07:50:41]*** CUTSNS_PIN = 1 [07:50:41]*** CUTSNS_PIN = 0 [07:50:41]*** Brake cut motor [07:50:42]Read from MH i2c: 01 [07:50:42]MH_I2C_Read... [07:50:42]*** Stop cut motor [07:50:42]*** Cut end [07:50:42]Read from MH i2c: 01 07 00 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: 01 07 00 CA 13 00 00 00 00 00 FF 0F F2 [07:50:42]process_action close_receipt done [07:50:42]requested_data is exist [07:50:42]produce_requested_data [07:50:42]requested_item fm.sn is exist - process it [07:50:42]wFMCommunicate request_size=4 [07:50:42]MH_SAM_APDU [07:50:42]CAPDU: 80 11 00 00 [07:50:42]Write to MH i2c: E2 08 00 CB 13 80 11 00 00 00 00 00 00 58 [07:50:42]Write i2c OK [07:50:42]MH_I2C_Read... [07:50:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:42]Read from MH i2c: E2 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 17 00 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 17 00 CB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B1 [07:50:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:50:42]wFMCommunicate OK [07:50:42]requested_item fd.num is exist - process it [07:50:42]SAM_PROTO_GetFieldsCounters [07:50:42]wFMCommunicate request_size=4 [07:50:42]MH_SAM_APDU [07:50:42]CAPDU: 80 13 00 00 [07:50:42]Write to MH i2c: E2 08 00 CC 13 80 13 00 00 00 00 00 00 5B [07:50:42]Write i2c OK [07:50:42]MH_I2C_Read... [07:50:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:42]Read from MH i2c: E2 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 62 00 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 62 00 CC 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3D F7 00 00 0E 04 04 00 22 02 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 1D [07:50:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3D F7 00 00 0E 04 04 00 22 02 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 [07:50:42]wFMCommunicate OK [07:50:42]SAM_PROTO_GetFieldsCounters done [07:50:42]requested_item shift.num is exist - process it [07:50:42]requested_item shift.opened is exist - process it [07:50:42]req_shift_opened [07:50:42]FM_GetShiftState [07:50:42]SAM_PROTO_GetShiftState [07:50:42]wFMCommunicate request_size=4 [07:50:42]MH_SAM_APDU [07:50:42]CAPDU: 80 13 01 00 [07:50:42]Write to MH i2c: E2 08 00 CD 13 80 13 01 00 00 00 00 00 5D [07:50:42]Write i2c OK [07:50:42]MH_I2C_Read... [07:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:42]Read from MH i2c: E2 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 0E 00 [07:50:42]MH_I2C_Read... [07:50:42]Read from MH i2c: E2 0E 00 CD 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 47 [07:50:42]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:50:42]wFMCommunicate OK [07:50:42]SAM_PROTO_GetShiftState done [07:50:42]FM_GetShiftState done [07:50:42]req_shift_opened done [07:50:42]requested_item shift.open_date is exist - process it [07:50:42]req_shift_open_date [07:50:42]req_shift_open_date done [07:50:42]produce_requested_data done [07:50:42]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63293,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:50:42]process_action_free close_receipt [07:50:42]json_value_free [07:50:42]json_value_free done [07:50:42]process_json_proto returns [07:50:42]Send response to host [07:50:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63293,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:50:42]free response buf [07:50:42]execute_script done [07:50:42]execute_script returns [07:50:42]free content buf [07:50:42]Sock 7.Close socket [07:50:42]Sock 7.Thread stoped [07:52:54]ConnectInit Can't connect to host [07:52:54]CommunicateWithHost connect error [07:52:54]CommunicateWithHost err = -1 [07:52:54]OFD Sender: Server communicate error [07:52:59]OFD Sender: Processing packet 63293 [packets to send 232, broken 231] [07:52:59]ProducePacketName [07:52:59]name=ofd_packets/00063293 [07:52:59]OFD Sender: To server: pG, [07:52:59]CommunicateWithHost lk.salyk.kg:30040 [07:52:59]ConnectInit lk.salyk.kg [07:52:59]Connected sock=7 [07:52:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 43 01 00 00 4F 28 3B 01 88 BC 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 D2 AA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F7 00 00 35 04 06 00 C0 F5 AF 49 3D EE 88 46 89 62 10 07 60 8A [07:53:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 BB 7E 47 00 94 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3D F7 00 00 F4 03 04 00 56 55 18 67 B6 04 01 00 00 5E C8 E0 38 98 4E 57 06 [07:53:00]CommunicateWithHost err = 0 [07:53:00]CheckOFDResponse [07:53:00]1017 (14) - 77093643461234 [07:53:00]1041 (16) - 0000000000874676 [07:53:00]1040 (4) - 63293 [07:53:00]1012 (4) - 23.10.2024 01:45 [07:53:00]1206 (1) - 0 [07:53:00]OFD Sender: Remove packet 63293 [07:53:00]ProducePacketName [07:53:00]name=ofd_packets/00063293 [07:53:00]NVStorageDeleteData [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:52]accept exits with 9 [07:53:52]New connection [07:53:52]New thread 3066953060 created [07:53:52]Thread 3067096420 joined [07:53:52]Waiting for new connection... [07:53:52] Sock 9.Parse request [07:53:52]Sock 9.Check first char [07:53:52]Sock 9.First char is OK [07:53:52]request: POST /json_proto HTTP/1.0 [07:53:52]Method: POST [07:53:52]URL: /json_proto [07:53:52]Method is POST - this is cgi request [07:53:52]url: /json_proto [07:53:52]query_string will be loaded in cgi processing [07:53:52]execute_cgi json_proto POST (null) [07:53:52]execute_cgi path=json_proto method=POST [07:53:52]POST find Content-Length [07:53:52]Host: 172.17.42.132:8080 [07:53:52]Content-Length: 621 [07:53:52]Content-Type: application/json [07:53:52] [07:53:52]POST finish read [07:53:52]Found Content-Length = 621 [07:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47604", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:52]execute_script... [07:53: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 : (3)47604", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:53:52]POST & json_proto [07:53:52]process_json_proto [07:53:52]json parsed OK: [07:53:52]protocol is kg_v1.0 [07:53:52]action value=close_receipt [07:53:52]process_action close_receipt [07:53:52]cmd_close_receipt [07:53:52]MH_GetDate [07:53:52]Write to MH i2c: F0 00 00 CE 13 D0 [07:53:52]Write i2c OK [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: F0 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: F0 09 00 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: F0 09 00 CE 13 00 94 AB 18 67 4C DF 56 66 7E [07:53:52]GetLastDocTimeStamp 1729669842 [07:53:52]current date 1729670036 [07:53:52]FM_GetShiftState [07:53:52]SAM_PROTO_GetShiftState [07:53:52]wFMCommunicate request_size=4 [07:53:52]MH_SAM_APDU [07:53:52]CAPDU: 80 13 01 00 [07:53:52]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [07:53:52]Write i2c OK [07:53:52]MH_I2C_Read... [07:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:52]Read from MH i2c: E2 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 0E 00 [07:53:52]MH_I2C_Read... [07:53:52]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 49 [07:53:52]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:53:52]wFMCommunicate OK [07:53:52]SAM_PROTO_GetShiftState done [07:53:52]FM_GetShiftState done [07:53:52]opened in 1729642527 [07:53:52]opened+sec_in_day 1729728927 [07:53:52]quantity*price = 16000 [07:53:52]sum+1 = 16001 [07:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 23 23.10.2024 07:53 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63294 ФПД: 190565827288944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075356&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63294&fm=190565827288944&tin=02508201610067®Number=0000000000091619&sum=16000 0 [07:53:53]StoreToDocumentArchive [07:53:53]shift 546 fd 63294 [07:53:53]save to /storage/0546/doc_00063294 [07:53:53]save last doc name /storage/0546/doc_00063294 to /storage/kkm_last_doc_name [07:53:53]save OK [07:53:53]Clear old archive folders... [07:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=274 [07:53:53]tlvbuf is 008D4F10 [07:53:53]SAM_PROTO_ClearQueue [07:53:53]wFMCommunicate request_size=4 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 09 00 00 [07:53:53]Write to MH i2c: E2 08 00 DC 13 80 09 00 00 00 00 00 00 61 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 DC 13 00 90 00 63 [07:53:53]RAPDU: 90 00 [07:53:53]wFMCommunicate OK [07:53:53]SAM_PROTO_ClearQueue done [07:53:53]KKMCreateOFDPacket [07:53:53]OFDProtocolAddRootSTLVToBuf [07:53:53]FM_MakeSignedData [07:53:53]FM_MakeSignedData [07:53:53]SAM_PROTO_SignData [07:53:53]wFMCommunicate request_size=4 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 0D 01 02 [07:53:53]Write to MH i2c: E2 08 00 DD 13 80 0D 01 02 00 00 00 00 69 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [07:53:53]RAPDU: 90 00 [07:53:53]wFMCommunicate OK [07:53:53]wFMCommunicate request_size=255 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 AB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [07:53:53]Write to MH i2c: E2 02 01 DE 13 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 AB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 B4 [07:53:53]Write i2c OK [07:53:53]MH_I2C_Read... [07:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:53]Read from MH i2c: E2 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 [07:53:53]MH_I2C_Read... [07:53:53]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [07:53:53]RAPDU: 90 00 [07:53:53]wFMCommunicate OK [07:53:53]wFMCommunicate request_size=33 [07:53:53]MH_SAM_APDU [07:53:53]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F7 00 00 35 04 06 00 AD 51 90 71 1F 70 [07:53:54]Write to MH i2c: E2 24 00 DF 13 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F7 00 00 35 04 06 00 AD 51 90 71 1F 70 00 00 C4 [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:53:54]Read from MH i2c: E2 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 03 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [07:53:54]RAPDU: 90 00 [07:53:54]wFMCommunicate OK [07:53:54]wFMCommunicate request_size=4 [07:53:54]MH_SAM_APDU [07:53:54]CAPDU: 80 0D 03 02 [07:53:54]Write to MH i2c: E2 08 00 E0 13 80 0D 03 02 00 00 00 00 6E [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:53:54]Read from MH i2c: E2 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 0B 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 0B 00 E0 13 00 F3 17 9F 8C BD D1 C4 13 90 00 09 [07:53:54]RAPDU: F3 17 9F 8C BD D1 C4 13 90 00 [07:53:54]wFMCommunicate OK [07:53:54]SAM_PROTO_SignData done [07:53:54]FM_MakeSignedData done [07:53:54]CreateOFDProtocolMessage [07:53:54]wFMCommunicate request_size=4 [07:53:54]MH_SAM_APDU [07:53:54]CAPDU: 80 11 00 00 [07:53:54]Write to MH i2c: E2 08 00 E1 13 80 11 00 00 00 00 00 00 6E [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:54]Read from MH i2c: E2 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 17 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: E2 17 00 E1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C7 [07:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:53:54]wFMCommunicate OK [07:53:54]CreateOFDProtocolMessage done [07:53:54]OFDSenderStorePacket 63294 [07:53:54]StoreOFDPacket docnum=63294 [07:53:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 06 9D 1E 01 8B C9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 AB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F7 00 00 35 04 06 00 AD 51 90 71 1F 70 F3 17 9F 8C BD D1 C4 13 [07:53:54]CheckFolder [07:53:54]dirname=/storage/ofd_packets [07:53:54]CheckFolder done [07:53:54]ProducePacketName [07:53:54]name=ofd_packets/00063294 [07:53:54]NVStorageSaveData ofd_packets/00063294 [07:53:54]File name is /storage/ofd_packets/00063294 [07:53:54]Write 324 bytes [07:53:54]NVStorageSaveData done [07:53:54]OFDSenderStorePacket done [07:53:54]KKMCreateOFDPacket done [07:53:54]NVStorageSaveData kkm_last_timestamp [07:53:54]File name is /storage/kkm_last_timestamp [07:53:54]Write 4 bytes [07:53:54]NVStorageSaveData done [07:53:54]ExternCall_PrintAddStr [07:53:54]wPrintStart [07:53:54]Write to MH i2c: 01 00 00 E2 13 F5 [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 07 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 07 00 E2 13 00 00 00 00 00 FF 0F 0A [07:53:54]RasterBufferAndPrint [07:53:54]line Счет N : (3)47604 [07:53:54]line ИНН: 02508201610067 [07:53:54]line Контрольно-Кассовый Чек [07:53:54]line ПРОДАЖА [07:53:54]line Товар: 48741958 [07:53:54]line Сигареты Parliament Aqua Blue [07:53:54]line 1.000 * 160.00 [07:53:54]line = 160.00 [07:53:54]line НДС 12% НСП 1% [07:53:54]line > о реализуемом товаре [07:53:54]line ИТОГО: 160.00 [07:53:54]line НСП 1% : 1.42 [07:53:54]line НДС 12% : 16.99 [07:53:54]line Наличными: 160.00 [07:53:54]line Безнал.: 0.00 [07:53:54]line Место: АЗС № 86 "Партнер Нефть" [07:53:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:53:54]line СНО: Общий режим [07:53:54]line Чек 23 23.10.2024 07:53 [07:53:54]line Смена: 546 ФФД: 1.0 [07:53:54]line ЗНМ: 0300000154 [07:53:54]line РНМ: 0000000000091619 [07:53:54]line Версия ККМ: 001 [07:53:54]line ФМ: 0000000000874676 [07:53:54]line ФД: 63294 [07:53:54]line ФПД: 190565827288944 [07:53:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075356&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63294&fm=190565827288944&tin=02508201610067®Number=0000000000091619&sum=16000 [07:53:54]OFD Sender: Processing packet 63294 [packets to send 232, broken 231] [07:53:54]ProducePacketName [07:53:54]name=ofd_packets/00063294 [07:53:54]OFD Sender: To server: pG, [07:53:54]CommunicateWithHost lk.salyk.kg:30040 [07:53:54]ConnectInit lk.salyk.kg [07:53:54]line 0 [07:53:54]written 0, free lines is 4095 [07:53:54]Connected sock=7 [07:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 06 9D 1E 01 8B C9 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 94 AB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F7 00 00 35 04 06 00 AD 51 90 71 1F 70 F3 17 9F 8C BD D1 C4 13 [07:53:54]Write to MH i2c: 01 00 00 0B 14 1F [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 07 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: 01 07 00 0B 14 00 00 00 00 00 04 0D 37 [07:53:54]RasterBufferAndPrint [07:53:54]line [07:53:54]line [07:53:54]line [07:53:54]line [07:53:54]line [07:53:54]written 0, free lines is 3341 [07:53:54]MH_Cut [07:53:54]Write to MH i2c: D1 01 00 12 14 01 F8 [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 01 00 [07:53:54]MH_I2C_Read... [07:53:54]Read from MH i2c: D1 01 00 12 14 00 F7 [07:53:54]Write to MH i2c: 01 00 00 13 14 27 [07:53:54]Write i2c OK [07:53:54]MH_I2C_Read... [07:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 E9 6B 47 00 AB FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3E F7 00 00 F4 03 04 00 8C 55 18 67 B6 04 01 00 00 6D 8A 9B E0 27 9A DA 8C [07:53:55]CommunicateWithHost err = 0 [07:53:55]CheckOFDResponse [07:53:55]1017 (14) - 77093643461234 [07:53:55]1041 (16) - 0000000000874676 [07:53:55]1040 (4) - 63294 [07:53:55]1012 (4) - 23.10.2024 01:46 [07:53:55]1206 (1) - 0 [07:53:55]OFD Sender: Remove packet 63294 [07:53:55]ProducePacketName [07:53:55]name=ofd_packets/00063294 [07:53:55]NVStorageDeleteData [07:53:55]OFD Sender: No OFD packet to send [07:53:55]*** Cut start [07:53:55]*** Partial cut [07:53:55]*** CUTSNS_PIN = 1 [07:53:55]*** CUTSNS_PIN = 0 [07:53:55]*** Brake cut motor [07:53:56]Read from MH i2c: 01 [07:53:56]MH_I2C_Read... [07:53:56]*** Stop cut motor [07:53:56]*** Cut end [07:53:56]Read from MH i2c: 01 07 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: 01 07 00 13 14 00 00 00 00 00 FF 0F 3C [07:53:56]process_action close_receipt done [07:53:56]requested_data is exist [07:53:56]produce_requested_data [07:53:56]requested_item fm.sn is exist - process it [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 11 00 00 [07:53:56]Write to MH i2c: E2 08 00 14 14 80 11 00 00 00 00 00 00 A2 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 17 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 17 00 14 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FB [07:53:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:53:56]wFMCommunicate OK [07:53:56]requested_item fd.num is exist - process it [07:53:56]SAM_PROTO_GetFieldsCounters [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 13 00 00 [07:53:56]Write to MH i2c: E2 08 00 15 14 80 13 00 00 00 00 00 00 A5 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 62 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 62 00 15 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3E F7 00 00 0E 04 04 00 22 02 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 6B [07:53:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3E F7 00 00 0E 04 04 00 22 02 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 [07:53:56]wFMCommunicate OK [07:53:56]SAM_PROTO_GetFieldsCounters done [07:53:56]requested_item shift.num is exist - process it [07:53:56]requested_item shift.opened is exist - process it [07:53:56]req_shift_opened [07:53:56]FM_GetShiftState [07:53:56]SAM_PROTO_GetShiftState [07:53:56]wFMCommunicate request_size=4 [07:53:56]MH_SAM_APDU [07:53:56]CAPDU: 80 13 01 00 [07:53:56]Write to MH i2c: E2 08 00 16 14 80 13 01 00 00 00 00 00 A7 [07:53:56]Write i2c OK [07:53:56]MH_I2C_Read... [07:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:53:56]Read from MH i2c: E2 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 0E 00 [07:53:56]MH_I2C_Read... [07:53:56]Read from MH i2c: E2 0E 00 16 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 91 [07:53:56]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:53:56]wFMCommunicate OK [07:53:56]SAM_PROTO_GetShiftState done [07:53:56]FM_GetShiftState done [07:53:56]req_shift_opened done [07:53:56]requested_item shift.open_date is exist - process it [07:53:56]req_shift_open_date [07:53:56]req_shift_open_date done [07:53:56]produce_requested_data done [07:53:56]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63294,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:53:56]process_action_free close_receipt [07:53:56]json_value_free [07:53:56]json_value_free done [07:53:56]process_json_proto returns [07:53:56]Send response to host [07:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63294,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:53:56]free response buf [07:53:56]execute_script done [07:53:56]execute_script returns [07:53:56]free content buf [07:53:56]Sock 9.Close socket [07:53:56]Sock 9.Thread stoped [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:46]accept exits with 10 [07:56:46]New connection [07:56:46]New thread 3067096420 created [07:56:46]Thread 3066953060 joined [07:56:46]Waiting for new connection... [07:56:46] Sock 10.Parse request [07:56:46]Sock 10.Check first char [07:56:46]Sock 10.First char is OK [07:56:46]request: POST /json_proto HTTP/1.0 [07:56:46]Method: POST [07:56:46]URL: /json_proto [07:56:46]Method is POST - this is cgi request [07:56:46]url: /json_proto [07:56:46]query_string will be loaded in cgi processing [07:56:46]execute_cgi json_proto POST (null) [07:56:46]execute_cgi path=json_proto method=POST [07:56:46]POST find Content-Length [07:56:46]Host: 172.17.42.132:8080 [07:56:46]Content-Length: 645 [07:56:46]Content-Type: application/json [07:56:46] [07:56:46]POST finish read [07:56:46]Found Content-Length = 645 [07:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47605", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:46]execute_script... [07:56: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 : (3)47605", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:56:46]POST & json_proto [07:56:46]process_json_proto [07:56:46]json parsed OK: [07:56:46]protocol is kg_v1.0 [07:56:46]action value=close_receipt [07:56:46]process_action close_receipt [07:56:46]cmd_close_receipt [07:56:46]MH_GetDate [07:56:46]Write to MH i2c: F0 00 00 17 14 1A [07:56:46]Write i2c OK [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: F0 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: F0 09 00 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: F0 09 00 17 14 00 42 AC 18 67 4C DF 56 66 77 [07:56:46]GetLastDocTimeStamp 1729670036 [07:56:46]current date 1729670210 [07:56:46]FM_GetShiftState [07:56:46]SAM_PROTO_GetShiftState [07:56:46]wFMCommunicate request_size=4 [07:56:46]MH_SAM_APDU [07:56:46]CAPDU: 80 13 01 00 [07:56:46]Write to MH i2c: E2 08 00 18 14 80 13 01 00 00 00 00 00 A9 [07:56:46]Write i2c OK [07:56:46]MH_I2C_Read... [07:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:46]Read from MH i2c: E2 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 0E 00 [07:56:46]MH_I2C_Read... [07:56:46]Read from MH i2c: E2 0E 00 18 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 93 [07:56:46]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:56:46]wFMCommunicate OK [07:56:46]SAM_PROTO_GetShiftState done [07:56:46]FM_GetShiftState done [07:56:46]opened in 1729642527 [07:56:46]opened+sec_in_day 1729728927 [07:56:46]quantity*price = 13000 [07:56:46]sum+1 = 13001 [07:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 24 23.10.2024 07:56 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63295 ФПД: 16186627415331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63295&fm=16186627415331&tin=02508201610067®Number=0000000000091619&sum=13000 0 [07:56:47]StoreToDocumentArchive [07:56:47]shift 546 fd 63295 [07:56:47]save to /storage/0546/doc_00063295 [07:56:47]save last doc name /storage/0546/doc_00063295 to /storage/kkm_last_doc_name [07:56:47]save OK [07:56:47]Clear old archive folders... [07:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:56:47]tlvbuf is B6ECB230 [07:56:47]SAM_PROTO_ClearQueue [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 09 00 00 [07:56:47]Write to MH i2c: E2 08 00 25 14 80 09 00 00 00 00 00 00 AB [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 25 14 00 90 00 AD [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]SAM_PROTO_ClearQueue done [07:56:47]KKMCreateOFDPacket [07:56:47]OFDProtocolAddRootSTLVToBuf [07:56:47]FM_MakeSignedData [07:56:47]FM_MakeSignedData [07:56:47]SAM_PROTO_SignData [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 01 02 [07:56:47]Write to MH i2c: E2 08 00 26 14 80 0D 01 02 00 00 00 00 B3 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 26 14 00 90 00 AE [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]wFMCommunicate request_size=255 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 42 AC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [07:56:47]Write to MH i2c: E2 02 01 27 14 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 42 AC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 6C [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 27 14 00 90 00 AF [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]wFMCommunicate request_size=41 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F7 00 00 35 04 06 00 0E B8 BE 2D 5D 23 [07:56:47]Write to MH i2c: E2 2C 00 28 14 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F7 00 00 35 04 06 00 0E B8 BE 2D 5D 23 00 00 F2 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 03 00 28 14 00 90 00 B0 [07:56:47]RAPDU: 90 00 [07:56:47]wFMCommunicate OK [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 0D 03 02 [07:56:47]Write to MH i2c: E2 08 00 29 14 80 0D 03 02 00 00 00 00 B8 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:56:47]Read from MH i2c: E2 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 0B 00 [07:56:47]MH_I2C_Read... [07:56:47]Read from MH i2c: E2 0B 00 29 14 00 83 F4 91 FB 2A 30 BE 96 90 00 6A [07:56:47]RAPDU: 83 F4 91 FB 2A 30 BE 96 90 00 [07:56:47]wFMCommunicate OK [07:56:47]SAM_PROTO_SignData done [07:56:47]FM_MakeSignedData done [07:56:47]CreateOFDProtocolMessage [07:56:47]wFMCommunicate request_size=4 [07:56:47]MH_SAM_APDU [07:56:47]CAPDU: 80 11 00 00 [07:56:47]Write to MH i2c: E2 08 00 2A 14 80 11 00 00 00 00 00 00 B8 [07:56:47]Write i2c OK [07:56:47]MH_I2C_Read... [07:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:48]Read from MH i2c: E2 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 17 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: E2 17 00 2A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 11 [07:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:56:48]wFMCommunicate OK [07:56:48]CreateOFDProtocolMessage done [07:56:48]OFDSenderStorePacket 63295 [07:56:48]StoreOFDPacket docnum=63295 [07:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 85 EC 26 01 4D F2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 42 AC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F7 00 00 35 04 06 00 0E B8 BE 2D 5D 23 83 F4 91 FB 2A 30 BE 96 [07:56:48]CheckFolder [07:56:48]dirname=/storage/ofd_packets [07:56:48]CheckFolder done [07:56:48]ProducePacketName [07:56:48]name=ofd_packets/00063295 [07:56:48]NVStorageSaveData ofd_packets/00063295 [07:56:48]File name is /storage/ofd_packets/00063295 [07:56:48]Write 332 bytes [07:56:48]NVStorageSaveData done [07:56:48]OFDSenderStorePacket done [07:56:48]KKMCreateOFDPacket done [07:56:48]NVStorageSaveData kkm_last_timestamp [07:56:48]File name is /storage/kkm_last_timestamp [07:56:48]Write 4 bytes [07:56:48]NVStorageSaveData done [07:56:48]ExternCall_PrintAddStr [07:56:48]wPrintStart [07:56:48]Write to MH i2c: 01 00 00 2B 14 3F [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 2B 14 00 00 00 00 00 FF 0F 54 [07:56:48]RasterBufferAndPrint [07:56:48]line Счет N : (3)47605 [07:56:48]line ИНН: 02508201610067 [07:56:48]line Контрольно-Кассовый Чек [07:56:48]line ПРОДАЖА [07:56:48]line Товар: 2000036220012 [07:56:48]line Кофе Капучино XL(GABB TRADE) [07:56:48]line 1.000 * 130.00 [07:56:48]line = 130.00 [07:56:48]line НДС 12% НСП 1% [07:56:48]line > о реализуемом товаре [07:56:48]line ИТОГО: 130.00 [07:56:48]line НСП 1% : 1.15 [07:56:48]line НДС 12% : 13.80 [07:56:48]line Наличными: 130.00 [07:56:48]line Безнал.: 0.00 [07:56:48]line Место: АЗС № 86 "Партнер Нефть" [07:56:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:56:48]line СНО: Общий режим [07:56:48]line Чек 24 23.10.2024 07:56 [07:56:48]line Смена: 546 ФФД: 1.0 [07:56:48]line ЗНМ: 0300000154 [07:56:48]line РНМ: 0000000000091619 [07:56:48]line Версия ККМ: 001 [07:56:48]line ФМ: 0000000000874676 [07:56:48]line ФД: 63295 [07:56:48]line ФПД: 16186627415331 [07:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T075650&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63295&fm=16186627415331&tin=02508201610067®Number=0000000000091619&sum=13000 [07:56:48]line 0 [07:56:48]OFD Sender: Processing packet 63295 [packets to send 232, broken 231] [07:56:48]ProducePacketName [07:56:48]name=ofd_packets/00063295 [07:56:48]OFD Sender: To server: pG, [07:56:48]CommunicateWithHost lk.salyk.kg:30040 [07:56:48]ConnectInit lk.salyk.kg [07:56:48]written 0, free lines is 4095 [07:56:48]Connected sock=11 [07:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 85 EC 26 01 4D F2 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 42 AC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F7 00 00 35 04 06 00 0E B8 BE 2D 5D 23 83 F4 91 FB 2A 30 BE 96 [07:56:48]Write to MH i2c: 01 00 00 54 14 68 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: 01 07 00 54 14 00 00 00 00 00 0C 0D 88 [07:56:48]RasterBufferAndPrint [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]line [07:56:48]written 0, free lines is 3346 [07:56:48]MH_Cut [07:56:48]Write to MH i2c: D1 01 00 5B 14 01 41 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 01 00 [07:56:48]MH_I2C_Read... [07:56:48]Read from MH i2c: D1 01 00 5B 14 00 40 [07:56:48]Write to MH i2c: 01 00 00 5C 14 70 [07:56:48]Write i2c OK [07:56:48]MH_I2C_Read... [07:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 FB C1 47 00 23 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 3F F7 00 00 F4 03 04 00 3B 56 18 67 B6 04 01 00 00 17 3F 3D F8 39 0F 17 DC [07:56:49]CommunicateWithHost err = 0 [07:56:49]CheckOFDResponse [07:56:49]1017 (14) - 77093643461234 [07:56:49]1041 (16) - 0000000000874676 [07:56:49]1040 (4) - 63295 [07:56:49]1012 (4) - 23.10.2024 01:49 [07:56:49]1206 (1) - 0 [07:56:49]OFD Sender: Remove packet 63295 [07:56:49]ProducePacketName [07:56:49]name=ofd_packets/00063295 [07:56:49]NVStorageDeleteData [07:56:49]*** Cut start [07:56:49]*** Partial cut [07:56:49]*** CUTSNS_PIN = 1 [07:56:49]*** CUTSNS_PIN = 0 [07:56:49]OFD Sender: No OFD packet to send [07:56:49]*** Brake cut motor [07:56:50]Read from MH i2c: 01 [07:56:50]MH_I2C_Read... [07:56:50]*** Stop cut motor [07:56:50]*** Cut end [07:56:50]Read from MH i2c: 01 07 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: 01 07 00 5C 14 00 00 00 00 00 FF 0F 85 [07:56:50]process_action close_receipt done [07:56:50]requested_data is exist [07:56:50]produce_requested_data [07:56:50]requested_item fm.sn is exist - process it [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 11 00 00 [07:56:50]Write to MH i2c: E2 08 00 5D 14 80 11 00 00 00 00 00 00 EB [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 17 00 5D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 44 [07:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [07:56:50]wFMCommunicate OK [07:56:50]requested_item fd.num is exist - process it [07:56:50]SAM_PROTO_GetFieldsCounters [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 13 00 00 [07:56:50]Write to MH i2c: E2 08 00 5E 14 80 13 00 00 00 00 00 00 EE [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 62 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 62 00 5E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3F F7 00 00 0E 04 04 00 22 02 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 B8 [07:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 3F F7 00 00 0E 04 04 00 22 02 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 [07:56:50]wFMCommunicate OK [07:56:50]SAM_PROTO_GetFieldsCounters done [07:56:50]requested_item shift.num is exist - process it [07:56:50]requested_item shift.opened is exist - process it [07:56:50]req_shift_opened [07:56:50]FM_GetShiftState [07:56:50]SAM_PROTO_GetShiftState [07:56:50]wFMCommunicate request_size=4 [07:56:50]MH_SAM_APDU [07:56:50]CAPDU: 80 13 01 00 [07:56:50]Write to MH i2c: E2 08 00 5F 14 80 13 01 00 00 00 00 00 F0 [07:56:50]Write i2c OK [07:56:50]MH_I2C_Read... [07:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:56:50]Read from MH i2c: E2 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0E 00 [07:56:50]MH_I2C_Read... [07:56:50]Read from MH i2c: E2 0E 00 5F 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DA [07:56:50]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [07:56:50]wFMCommunicate OK [07:56:50]SAM_PROTO_GetShiftState done [07:56:50]FM_GetShiftState done [07:56:50]req_shift_opened done [07:56:50]requested_item shift.open_date is exist - process it [07:56:50]req_shift_open_date [07:56:50]req_shift_open_date done [07:56:50]produce_requested_data done [07:56:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63295,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [07:56:50]process_action_free close_receipt [07:56:50]json_value_free [07:56:50]json_value_free done [07:56:50]process_json_proto returns [07:56:50]Send response to host [07:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63295,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [07:56:50]free response buf [07:56:50]execute_script done [07:56:50]execute_script returns [07:56:50]free content buf [07:56:50]Sock 10.Close socket [07:56:50]Sock 10.Thread stoped [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:01]accept exits with 7 [08:00:01]New connection [08:00:01]New thread 3066953060 created [08:00:01]Thread 3067096420 joined [08:00:01]Waiting for new connection... [08:00:01] Sock 7.Parse request [08:00:01]Sock 7.Check first char [08:00:01]Sock 7.First char is OK [08:00:01]request: POST /json_proto HTTP/1.0 [08:00:01]Method: POST [08:00:01]URL: /json_proto [08:00:01]Method is POST - this is cgi request [08:00:01]url: /json_proto [08:00:01]query_string will be loaded in cgi processing [08:00:01]execute_cgi json_proto POST (null) [08:00:01]execute_cgi path=json_proto method=POST [08:00:01]POST find Content-Length [08:00:01]Host: 172.17.42.132:8080 [08:00:01]Content-Length: 1202 [08:00:01]Content-Type: application/json [08:00:01] [08:00:01]POST finish read [08:00:01]Found Content-Length = 1202 [08:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47606", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:01]execute_script... [08:00:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47606", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:01]POST & json_proto [08:00:01]process_json_proto [08:00:01]json parsed OK: [08:00:01]protocol is kg_v1.0 [08:00:01]action value=close_receipt [08:00:01]process_action close_receipt [08:00:01]cmd_close_receipt [08:00:01]MH_GetDate [08:00:01]Write to MH i2c: F0 00 00 60 14 63 [08:00:01]Write i2c OK [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 09 00 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: F0 09 00 60 14 00 06 AD 18 67 4C DF 56 66 85 [08:00:01]GetLastDocTimeStamp 1729670210 [08:00:01]current date 1729670406 [08:00:01]FM_GetShiftState [08:00:01]SAM_PROTO_GetShiftState [08:00:01]wFMCommunicate request_size=4 [08:00:01]MH_SAM_APDU [08:00:01]CAPDU: 80 13 01 00 [08:00:01]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [08:00:01]Write i2c OK [08:00:01]MH_I2C_Read... [08:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:01]Read from MH i2c: E2 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 [08:00:01]MH_I2C_Read... [08:00:01]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DC [08:00:01]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:00:01]wFMCommunicate OK [08:00:01]SAM_PROTO_GetShiftState done [08:00:01]FM_GetShiftState done [08:00:01]opened in 1729642527 [08:00:01]opened+sec_in_day 1729728927 [08:00:01]quantity*price = 6500 [08:00:01]sum+1 = 6501 [08:00:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010346 Напиток Let`s Go! с/с груша ПЭТ 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.44 НДС 12% : 17.41 Наличными: 164.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 25 23.10.2024 08:00 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63296 ФПД: 155021248632589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080006&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63296&fm=155021248632589&tin=02508201610067®Number=0000000000091619&sum=16400 0 [08:00:02]StoreToDocumentArchive [08:00:02]shift 546 fd 63296 [08:00:02]save to /storage/0546/doc_00063296 [08:00:02]save last doc name /storage/0546/doc_00063296 to /storage/kkm_last_doc_name [08:00:02]save OK [08:00:02]Clear old archive folders... [08:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=509 [08:00:02]tlvbuf is 008D4600 [08:00:02]SAM_PROTO_ClearQueue [08:00:02]wFMCommunicate request_size=4 [08:00:02]MH_SAM_APDU [08:00:02]CAPDU: 80 09 00 00 [08:00:02]Write to MH i2c: E2 08 00 6E 14 80 09 00 00 00 00 00 00 F4 [08:00:02]Write i2c OK [08:00:02]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]SAM_PROTO_ClearQueue done [08:00:03]KKMCreateOFDPacket [08:00:03]OFDProtocolAddRootSTLVToBuf [08:00:03]FM_MakeSignedData [08:00:03]FM_MakeSignedData [08:00:03]SAM_PROTO_SignData [08:00:03]wFMCommunicate request_size=4 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 0D 01 02 [08:00:03]Write to MH i2c: E2 08 00 6F 14 80 0D 01 02 00 00 00 00 FC [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 6F 14 00 90 00 F7 [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]wFMCommunicate request_size=255 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 0D 02 02 FA 03 00 FD 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 [08:00:03]Write to MH i2c: E2 02 01 70 14 80 0D 02 02 FA 00 03 00 FD 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 00 00 ED [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]wFMCommunicate request_size=255 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 0D 02 02 FA 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 06 AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 [08:00:03]Write to MH i2c: E2 02 01 71 14 80 0D 02 02 FA 00 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 06 AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 00 00 1E [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [08:00:03]RAPDU: 90 00 [08:00:03]wFMCommunicate OK [08:00:03]wFMCommunicate request_size=18 [08:00:03]MH_SAM_APDU [08:00:03]CAPDU: 80 0D 02 02 0D F7 00 00 35 04 06 00 8C FD B2 75 17 0D [08:00:03]Write to MH i2c: E2 15 00 72 14 80 0D 02 02 0D 00 F7 00 00 35 04 06 00 8C FD B2 75 17 0D 00 00 24 [08:00:03]Write i2c OK [08:00:03]MH_I2C_Read... [08:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:03]Read from MH i2c: E2 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 [08:00:03]MH_I2C_Read... [08:00:03]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [08:00:04]RAPDU: 90 00 [08:00:04]wFMCommunicate OK [08:00:04]wFMCommunicate request_size=4 [08:00:04]MH_SAM_APDU [08:00:04]CAPDU: 80 0D 03 02 [08:00:04]Write to MH i2c: E2 08 00 73 14 80 0D 03 02 00 00 00 00 02 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 0B 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 0B 00 73 14 00 12 B0 77 0E B6 58 D6 C0 90 00 EE [08:00:04]RAPDU: 12 B0 77 0E B6 58 D6 C0 90 00 [08:00:04]wFMCommunicate OK [08:00:04]SAM_PROTO_SignData done [08:00:04]FM_MakeSignedData done [08:00:04]CreateOFDProtocolMessage [08:00:04]wFMCommunicate request_size=4 [08:00:04]MH_SAM_APDU [08:00:04]CAPDU: 80 11 00 00 [08:00:04]Write to MH i2c: E2 08 00 74 14 80 11 00 00 00 00 00 00 02 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:04]Read from MH i2c: E2 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 17 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: E2 17 00 74 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5B [08:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:00:04]wFMCommunicate OK [08:00:04]CreateOFDProtocolMessage done [08:00:04]OFDSenderStorePacket 63296 [08:00:04]StoreOFDPacket docnum=63296 [08:00:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 11 02 00 00 23 51 09 02 BD F1 5A 03 01 00 03 00 FD 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 06 AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F7 00 00 35 04 06 00 8C FD B2 75 17 0D 12 B0 77 0E B6 58 D6 C0 [08:00:04]CheckFolder [08:00:04]dirname=/storage/ofd_packets [08:00:04]CheckFolder done [08:00:04]ProducePacketName [08:00:04]name=ofd_packets/00063296 [08:00:04]NVStorageSaveData ofd_packets/00063296 [08:00:04]File name is /storage/ofd_packets/00063296 [08:00:04]Write 559 bytes [08:00:04]NVStorageSaveData done [08:00:04]OFDSenderStorePacket done [08:00:04]KKMCreateOFDPacket done [08:00:04]NVStorageSaveData kkm_last_timestamp [08:00:04]File name is /storage/kkm_last_timestamp [08:00:04]Write 4 bytes [08:00:04]NVStorageSaveData done [08:00:04]ExternCall_PrintAddStr [08:00:04]wPrintStart [08:00:04]Write to MH i2c: 01 00 00 75 14 89 [08:00:04]Write i2c OK [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 07 00 [08:00:04]MH_I2C_Read... [08:00:04]Read from MH i2c: 01 07 00 75 14 00 00 00 00 00 FF 0F 9E [08:00:04]RasterBufferAndPrint [08:00:04]line Счет N : (3)47606 [08:00:04]line ИНН: 02508201610067 [08:00:04]line Контрольно-Кассовый Чек [08:00:04]line ПРОДАЖА [08:00:04]line Товар: 47011656 [08:00:04]line Водка Пшеничная 0,1л [08:00:04]line 1.000 * 65.00 [08:00:04]line = 65.00 [08:00:04]line НДС 12% НСП 1% [08:00:04]line > о реализуемом товаре [08:00:04]line Товар: 4700003010346 [08:00:04]line Напиток Let`s Go! с/с груша ПЭТ 0,5л [08:00:04]line 1.000 * 40.00 [08:00:04]line = 40.00 [08:00:04]line НДС 12% НСП 1% [08:00:04]line > о реализуемом товаре [08:00:04]line Товар: 4607065001445 [08:00:04]line Шок батончик Snickers 50,5г [08:00:04]line 1.000 * 59.00 [08:00:04]line = 59.00 [08:00:04]line НДС 12% НСП 1% [08:00:04]line > о реализуемом товаре [08:00:04]line ИТОГО: 164.00 [08:00:04]line НСП 1% : 1.44 [08:00:04]line НДС 12% : 17.41 [08:00:04]line Наличными: 164.00 [08:00:04]line Безнал.: 0.00 [08:00:04]line Место: АЗС № 86 "Партнер Нефть" [08:00:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:00:04]line СНО: Общий режим [08:00:04]line Чек 25 23.10.2024 08:00 [08:00:04]line Смена: 546 ФФД: 1.0 [08:00:04]line ЗНМ: 0300000154 [08:00:04]line РНМ: 0000000000091619 [08:00:04]line Версия ККМ: 001 [08:00:04]line ФМ: 0000000000874676 [08:00:04]line ФД: 63296 [08:00:04]line ФПД: 155021248632589 [08:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080006&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63296&fm=155021248632589&tin=02508201610067®Number=0000000000091619&sum=16400 [08:00:04]line 0 [08:00:04]written 0, free lines is 4095 [08:00:04]OFD Sender: Processing packet 63296 [packets to send 232, broken 231] [08:00:04]ProducePacketName [08:00:04]name=ofd_packets/00063296 [08:00:04]OFD Sender: To server: pG, [08:00:04]CommunicateWithHost lk.salyk.kg:30040 [08:00:04]ConnectInit lk.salyk.kg [08:00:04]Connected sock=10 [08:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 11 02 00 00 23 51 09 02 BD F1 5A 03 01 00 03 00 FD 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 90 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 10 40 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 06 AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F7 00 00 35 04 06 00 8C FD B2 75 17 0D 12 B0 77 0E B6 58 D6 C0 [08:00:05]Write to MH i2c: 01 00 00 AA 14 BE [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 07 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 79 0C 4A [08:00:05]RasterBufferAndPrint [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]line [08:00:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 99 77 47 00 DE A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 40 F7 00 00 F4 03 04 00 FE 56 18 67 B6 04 01 00 00 B0 E7 9B D5 A2 F9 FD 25 [08:00:05]CommunicateWithHost err = 0 [08:00:05]CheckOFDResponse [08:00:05]1017 (14) - 77093643461234 [08:00:05]1041 (16) - 0000000000874676 [08:00:05]1040 (4) - 63296 [08:00:05]1012 (4) - 23.10.2024 01:53 [08:00:05]1206 (1) - 0 [08:00:05]OFD Sender: Remove packet 63296 [08:00:05]ProducePacketName [08:00:05]name=ofd_packets/00063296 [08:00:05]NVStorageDeleteData [08:00:05]written 0, free lines is 3202 [08:00:05]MH_Cut [08:00:05]Write to MH i2c: D1 01 00 B1 14 01 97 [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 01 00 [08:00:05]MH_I2C_Read... [08:00:05]Read from MH i2c: D1 01 00 B1 14 00 96 [08:00:05]Write to MH i2c: 01 00 00 B2 14 C6 [08:00:05]Write i2c OK [08:00:05]MH_I2C_Read... [08:00:05]OFD Sender: No OFD packet to send [08:00:05]*** Cut start [08:00:05]*** Partial cut [08:00:05]*** CUTSNS_PIN = 1 [08:00:05]*** CUTSNS_PIN = 0 [08:00:06]*** Brake cut motor [08:00:06]Read from MH i2c: 01 [08:00:06]MH_I2C_Read... [08:00:06]*** Stop cut motor [08:00:06]*** Cut end [08:00:06]Read from MH i2c: 01 07 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [08:00:06]process_action close_receipt done [08:00:06]requested_data is exist [08:00:06]produce_requested_data [08:00:06]requested_item fm.sn is exist - process it [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 11 00 00 [08:00:06]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9A [08:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:00:06]wFMCommunicate OK [08:00:06]requested_item fd.num is exist - process it [08:00:06]SAM_PROTO_GetFieldsCounters [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 00 00 [08:00:06]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 62 00 B4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 40 F7 00 00 0E 04 04 00 22 02 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 12 [08:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 40 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetFieldsCounters done [08:00:06]requested_item shift.num is exist - process it [08:00:06]requested_item shift.opened is exist - process it [08:00:06]req_shift_opened [08:00:06]FM_GetShiftState [08:00:06]SAM_PROTO_GetShiftState [08:00:06]wFMCommunicate request_size=4 [08:00:06]MH_SAM_APDU [08:00:06]CAPDU: 80 13 01 00 [08:00:06]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [08:00:06]Write i2c OK [08:00:06]MH_I2C_Read... [08:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:06]Read from MH i2c: E2 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 [08:00:06]MH_I2C_Read... [08:00:06]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 30 [08:00:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:00:06]wFMCommunicate OK [08:00:06]SAM_PROTO_GetShiftState done [08:00:06]FM_GetShiftState done [08:00:06]req_shift_opened done [08:00:06]requested_item shift.open_date is exist - process it [08:00:06]req_shift_open_date [08:00:06]req_shift_open_date done [08:00:06]produce_requested_data done [08:00:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63296,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:00:06]process_action_free close_receipt [08:00:06]json_value_free [08:00:06]json_value_free done [08:00:06]process_json_proto returns [08:00:06]Send response to host [08:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63296,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:00:06]free response buf [08:00:06]execute_script done [08:00:06]execute_script returns [08:00:06]free content buf [08:00:06]Sock 7.Close socket [08:00:06]Sock 7.Thread stoped [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:49]accept exits with 9 [08:02:49]New connection [08:02:49]New thread 3067096420 created [08:02:49]Thread 3066953060 joined [08:02:49]Waiting for new connection... [08:02:49] Sock 9.Parse request [08:02:49]Sock 9.Check first char [08:02:49]Sock 9.First char is OK [08:02:49]request: POST /json_proto HTTP/1.0 [08:02:49]Method: POST [08:02:49]URL: /json_proto [08:02:49]Method is POST - this is cgi request [08:02:49]url: /json_proto [08:02:49]query_string will be loaded in cgi processing [08:02:49]execute_cgi json_proto POST (null) [08:02:49]execute_cgi path=json_proto method=POST [08:02:49]POST find Content-Length [08:02:49]Host: 172.17.42.132:8080 [08:02:49]Content-Length: 965 [08:02:49]Content-Type: application/json [08:02:49] [08:02:49]POST finish read [08:02:49]Found Content-Length = 965 [08:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47607", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]execute_script... [08:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47607", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]POST & json_proto [08:02:49]process_json_proto [08:02:49]json parsed OK: [08:02:49]protocol is kg_v1.0 [08:02:49]action value=close_receipt [08:02:49]process_action close_receipt [08:02:49]cmd_close_receipt [08:02:49]MH_GetDate [08:02:49]Write to MH i2c: F0 00 00 B6 14 B9 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 B6 14 00 AD AD 18 67 4C DF 56 66 82 [08:02:49]GetLastDocTimeStamp 1729670406 [08:02:49]current date 1729670573 [08:02:49]FM_GetShiftState [08:02:49]SAM_PROTO_GetShiftState [08:02:49]wFMCommunicate request_size=4 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 13 01 00 [08:02:49]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 32 [08:02:49]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:02:49]wFMCommunicate OK [08:02:49]SAM_PROTO_GetShiftState done [08:02:49]FM_GetShiftState done [08:02:49]opened in 1729642527 [08:02:49]opened+sec_in_day 1729728927 [08:02:49]quantity*price = 13400 [08:02:49]sum+1 = 13401 [08:02:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.72 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 26 23.10.2024 08:02 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63297 ФПД: 255116670785616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63297&fm=255116670785616&tin=02508201610067®Number=0000000000091619&sum=19400 0 [08:02:50]StoreToDocumentArchive [08:02:50]shift 546 fd 63297 [08:02:50]save to /storage/0546/doc_00063297 [08:02:50]save last doc name /storage/0546/doc_00063297 to /storage/kkm_last_doc_name [08:02:50]save OK [08:02:50]Clear old archive folders... [08:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=406 [08:02:50]tlvbuf is 008B5C60 [08:02:50]SAM_PROTO_ClearQueue [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 09 00 00 [08:02:50]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]SAM_PROTO_ClearQueue done [08:02:50]KKMCreateOFDPacket [08:02:50]OFDProtocolAddRootSTLVToBuf [08:02:50]FM_MakeSignedData [08:02:50]FM_MakeSignedData [08:02:50]SAM_PROTO_SignData [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 01 02 [08:02:50]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]OFD Sender: No OFD packet to send [08:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=255 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 [08:02:50]Write to MH i2c: E2 02 01 C6 14 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 00 00 2E [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [08:02:51]RAPDU: 90 00 [08:02:51]wFMCommunicate OK [08:02:51]wFMCommunicate request_size=165 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 0D 02 02 A0 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 41 F7 00 00 35 04 06 00 E8 06 FA 89 D8 50 [08:02:51]Write to MH i2c: E2 A8 00 C7 14 80 0D 02 02 A0 00 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 41 F7 00 00 35 04 06 00 E8 06 FA 89 D8 50 00 00 E0 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [08:02:51]RAPDU: 90 00 [08:02:51]wFMCommunicate OK [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 0D 03 02 [08:02:51]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0B 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0B 00 C8 14 00 5D B9 6F EE 52 04 17 25 90 00 5D [08:02:51]RAPDU: 5D B9 6F EE 52 04 17 25 90 00 [08:02:51]wFMCommunicate OK [08:02:51]SAM_PROTO_SignData done [08:02:51]FM_MakeSignedData done [08:02:51]CreateOFDProtocolMessage [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 11 00 00 [08:02:51]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B0 [08:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:02:51]wFMCommunicate OK [08:02:51]CreateOFDProtocolMessage done [08:02:51]OFDSenderStorePacket 63297 [08:02:51]StoreOFDPacket docnum=63297 [08:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AA 01 00 00 2F 3B A2 01 DD 43 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 41 F7 00 00 35 04 06 00 E8 06 FA 89 D8 50 5D B9 6F EE 52 04 17 25 [08:02:51]CheckFolder [08:02:51]dirname=/storage/ofd_packets [08:02:51]CheckFolder done [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00063297 [08:02:51]NVStorageSaveData ofd_packets/00063297 [08:02:51]File name is /storage/ofd_packets/00063297 [08:02:51]Write 456 bytes [08:02:51]NVStorageSaveData done [08:02:51]OFDSenderStorePacket done [08:02:51]KKMCreateOFDPacket done [08:02:51]NVStorageSaveData kkm_last_timestamp [08:02:51]File name is /storage/kkm_last_timestamp [08:02:51]Write 4 bytes [08:02:51]NVStorageSaveData done [08:02:51]ExternCall_PrintAddStr [08:02:51]wPrintStart [08:02:51]Write to MH i2c: 01 00 00 CA 14 DE [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [08:02:51]RasterBufferAndPrint [08:02:51]line Счет N : (3)47607 [08:02:51]line ИНН: 02508201610067 [08:02:51]line Контрольно-Кассовый Чек [08:02:51]line ПРОДАЖА [08:02:51]line Товар: 4780014240406 [08:02:51]line Сигареты Sovereign Blue [08:02:51]line 1.000 * 134.00 [08:02:51]line = 134.00 [08:02:51]line НДС 12% НСП 1% [08:02:51]line > о реализуемом товаре [08:02:51]line Товар: 4700000160792 [08:02:51]line Снек Курут классический (круглый) [08:02:51]line 1.000 * 60.00 [08:02:51]line = 60.00 [08:02:51]line НДС 12% НСП 1% [08:02:51]line > о реализуемом товаре [08:02:51]line ИТОГО: 194.00 [08:02:51]line НСП 1% : 1.72 [08:02:51]line НДС 12% : 20.60 [08:02:51]line Наличными: 194.00 [08:02:51]line Безнал.: 0.00 [08:02:51]line Место: АЗС № 86 "Партнер Нефть" [08:02:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:02:51]line СНО: Общий режим [08:02:51]line Чек 26 23.10.2024 08:02 [08:02:51]line Смена: 546 ФФД: 1.0 [08:02:51]line ЗНМ: 0300000154 [08:02:51]line РНМ: 0000000000091619 [08:02:51]line Версия ККМ: 001 [08:02:51]line ФМ: 0000000000874676 [08:02:51]line ФД: 63297 [08:02:51]line ФПД: 255116670785616 [08:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T080254&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63297&fm=255116670785616&tin=02508201610067®Number=0000000000091619&sum=19400 [08:02:51]line 0 [08:02:51]OFD Sender: Processing packet 63297 [packets to send 232, broken 231] [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00063297 [08:02:51]OFD Sender: To server: pG, [08:02:51]CommunicateWithHost lk.salyk.kg:30040 [08:02:51]ConnectInit lk.salyk.kg [08:02:51]written 0, free lines is 4095 [08:02:52]Connected sock=10 [08:02:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AA 01 00 00 2F 3B A2 01 DD 43 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 AE AD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 41 F7 00 00 35 04 06 00 E8 06 FA 89 D8 50 5D B9 6F EE 52 04 17 25 [08:02:52]Write to MH i2c: 01 00 00 F9 14 0D [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 07 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 07 00 F9 14 00 00 00 00 00 C8 0C E8 [08:02:52]RasterBufferAndPrint [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]written 0, free lines is 3277 [08:02:52]MH_Cut [08:02:52]Write to MH i2c: D1 01 00 00 15 01 E7 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 01 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 01 00 00 15 00 E6 [08:02:52]Write to MH i2c: 01 00 00 01 15 16 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 9C C3 47 00 31 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 38 37 34 36 37 36 10 04 04 00 41 F7 00 00 F4 03 04 00 A6 57 18 67 B6 04 01 00 00 B8 C0 C6 87 80 F5 A2 C9 [08:02:52]CommunicateWithHost err = 0 [08:02:52]CheckOFDResponse [08:02:52]1017 (14) - 77093643461234 [08:02:52]1041 (16) - 0000000000874676 [08:02:52]1040 (4) - 63297 [08:02:52]1012 (4) - 23.10.2024 01:55 [08:02:52]1206 (1) - 0 [08:02:52]OFD Sender: Remove packet 63297 [08:02:52]ProducePacketName [08:02:52]name=ofd_packets/00063297 [08:02:52]NVStorageDeleteData [08:02:52]OFD Sender: No OFD packet to send [08:02:52]*** Cut start [08:02:52]*** Partial cut [08:02:52]*** CUTSNS_PIN = 1 [08:02:53]*** CUTSNS_PIN = 0 [08:02:53]*** Brake cut motor [08:02:53]Read from MH i2c: 01 [08:02:53]MH_I2C_Read... [08:02:53]*** Stop cut motor [08:02:53]*** Cut end [08:02:53]Read from MH i2c: 01 07 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [08:02:53]process_action close_receipt done [08:02:53]requested_data is exist [08:02:53]produce_requested_data [08:02:53]requested_item fm.sn is exist - process it [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 11 00 00 [08:02:53]Write to MH i2c: E2 08 00 02 15 80 11 00 00 00 00 00 00 91 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 02 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EA [08:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:02:53]wFMCommunicate OK [08:02:53]requested_item fd.num is exist - process it [08:02:53]SAM_PROTO_GetFieldsCounters [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 00 00 [08:02:53]Write to MH i2c: E2 08 00 03 15 80 13 00 00 00 00 00 00 94 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 03 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 41 F7 00 00 0E 04 04 00 22 02 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 66 [08:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 41 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetFieldsCounters done [08:02:53]requested_item shift.num is exist - process it [08:02:53]requested_item shift.opened is exist - process it [08:02:53]req_shift_opened [08:02:53]FM_GetShiftState [08:02:53]SAM_PROTO_GetShiftState [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 01 00 [08:02:53]Write to MH i2c: E2 08 00 04 15 80 13 01 00 00 00 00 00 96 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 04 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 80 [08:02:53]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetShiftState done [08:02:53]FM_GetShiftState done [08:02:53]req_shift_opened done [08:02:53]requested_item shift.open_date is exist - process it [08:02:53]req_shift_open_date [08:02:53]req_shift_open_date done [08:02:53]produce_requested_data done [08:02:53]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63297,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:02:53]process_action_free close_receipt [08:02:53]json_value_free [08:02:53]json_value_free done [08:02:53]process_json_proto returns [08:02:53]Send response to host [08:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63297,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:02:53]free response buf [08:02:53]execute_script done [08:02:53]execute_script returns [08:02:53]free content buf [08:02:53]Sock 9.Close socket [08:02:53]Sock 9.Thread stoped [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:08]OFD Sender: No OFD packet to send [08:04:13]OFD Sender: No OFD packet to send [08:04:18]OFD Sender: No OFD packet to send [08:04:23]OFD Sender: No OFD packet to send [08:04:28]OFD Sender: No OFD packet to send [08:04:33]OFD Sender: No OFD packet to send [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:13]OFD Sender: No OFD packet to send [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:53]OFD Sender: No OFD packet to send [08:13:58]OFD Sender: No OFD packet to send [08:14:03]OFD Sender: No OFD packet to send [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:34]OFD Sender: No OFD packet to send [08:15:39]OFD Sender: No OFD packet to send [08:15:44]OFD Sender: No OFD packet to send [08:15:49]OFD Sender: No OFD packet to send [08:15:54]OFD Sender: No OFD packet to send [08:15:59]OFD Sender: No OFD packet to send [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:08]accept exits with 7 [08:33:08]New connection [08:33:08]New thread 3066953060 created [08:33:08]Thread 3067096420 joined [08:33:08]Waiting for new connection... [08:33:08] Sock 7.Parse request [08:33:08]Sock 7.Check first char [08:33:08]Sock 7.First char is OK [08:33:08]request: POST /json_proto HTTP/1.0 [08:33:08]Method: POST [08:33:08]URL: /json_proto [08:33:08]Method is POST - this is cgi request [08:33:08]url: /json_proto [08:33:08]query_string will be loaded in cgi processing [08:33:08]execute_cgi json_proto POST (null) [08:33:08]execute_cgi path=json_proto method=POST [08:33:08]POST find Content-Length [08:33:08]Host: 172.17.42.132:8080 [08:33:08]Content-Length: 792 [08:33:08]Content-Type: application/json [08:33:08] [08:33:08]POST finish read [08:33:08]Found Content-Length = 792 [08:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47608", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 98.12, "quantity" : 1.000, "sum" : 98.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", "payments": [ { "type": 1, "sum" : 98.12 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]execute_script... [08:33: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 : (3)47608", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 98.12, "quantity" : 1.000, "sum" : 98.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", "payments": [ { "type": 1, "sum" : 98.12 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:08]POST & json_proto [08:33:08]process_json_proto [08:33:08]json parsed OK: [08:33:08]protocol is kg_v1.0 [08:33:08]action value=close_receipt [08:33:08]process_action close_receipt [08:33:08]cmd_close_receipt [08:33:08]MH_GetDate [08:33:08]Write to MH i2c: F0 00 00 05 15 09 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: F0 09 00 05 15 00 C8 B4 18 67 4C DF 56 66 F4 [08:33:08]GetLastDocTimeStamp 1729670574 [08:33:08]current date 1729672392 [08:33:08]FM_GetShiftState [08:33:08]SAM_PROTO_GetShiftState [08:33:08]wFMCommunicate request_size=4 [08:33:08]MH_SAM_APDU [08:33:08]CAPDU: 80 13 01 00 [08:33:08]Write to MH i2c: E2 08 00 06 15 80 13 01 00 00 00 00 00 98 [08:33:08]Write i2c OK [08:33:08]MH_I2C_Read... [08:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:08]Read from MH i2c: E2 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 [08:33:08]MH_I2C_Read... [08:33:08]Read from MH i2c: E2 0E 00 06 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 82 [08:33:08]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:33:08]wFMCommunicate OK [08:33:08]SAM_PROTO_GetShiftState done [08:33:08]FM_GetShiftState done [08:33:08]opened in 1729642527 [08:33:08]opened+sec_in_day 1729728927 [08:33:08]quantity*price = 9812 [08:33:08]sum+1 = 9813 [08:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 98.12 НСП 1% : 0.87 НДС 12% : 10.42 Наличными: 0.00 Безнал.: 98.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 27 23.10.2024 08:33 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63298 ФПД: 198260907984660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083312&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63298&fm=198260907984660&tin=02508201610067®Number=0000000000091619&sum=9812 0 [08:33:09]StoreToDocumentArchive [08:33:09]shift 546 fd 63298 [08:33:09]save to /storage/0546/doc_00063298 [08:33:09]save last doc name /storage/0546/doc_00063298 to /storage/kkm_last_doc_name [08:33:09]save OK [08:33:09]Clear old archive folders... [08:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=293 [08:33:09]tlvbuf is 0089DA30 [08:33:09]SAM_PROTO_ClearQueue [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 09 00 00 [08:33:09]Write to MH i2c: E2 08 00 13 15 80 09 00 00 00 00 00 00 9A [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 13 15 00 90 00 9C [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_ClearQueue done [08:33:09]KKMCreateOFDPacket [08:33:09]OFDProtocolAddRootSTLVToBuf [08:33:09]FM_MakeSignedData [08:33:09]FM_MakeSignedData [08:33:09]SAM_PROTO_SignData [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 01 02 [08:33:09]Write to MH i2c: E2 08 00 14 15 80 0D 01 02 00 00 00 00 A2 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 14 15 00 90 00 9D [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=255 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 26 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C8 B4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [08:33:09]Write to MH i2c: E2 02 01 15 15 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 26 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C8 B4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 CE [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 15 15 00 90 00 9E [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=52 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 42 F7 00 00 35 04 06 00 B4 51 36 FE 47 14 [08:33:09]Write to MH i2c: E2 37 00 16 15 80 0D 02 02 2F 00 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 42 F7 00 00 35 04 06 00 B4 51 36 FE 47 14 00 00 3C [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 03 00 16 15 00 90 00 9F [08:33:09]RAPDU: 90 00 [08:33:09]wFMCommunicate OK [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 0D 03 02 [08:33:09]Write to MH i2c: E2 08 00 17 15 80 0D 03 02 00 00 00 00 A7 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:09]Read from MH i2c: E2 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0B 00 [08:33:09]MH_I2C_Read... [08:33:09]Read from MH i2c: E2 0B 00 17 15 00 A8 19 D5 84 48 42 19 F3 90 00 58 [08:33:09]RAPDU: A8 19 D5 84 48 42 19 F3 90 00 [08:33:09]wFMCommunicate OK [08:33:09]SAM_PROTO_SignData done [08:33:09]FM_MakeSignedData done [08:33:09]CreateOFDProtocolMessage [08:33:09]wFMCommunicate request_size=4 [08:33:09]MH_SAM_APDU [08:33:09]CAPDU: 80 11 00 00 [08:33:09]Write to MH i2c: E2 08 00 18 15 80 11 00 00 00 00 00 00 A7 [08:33:09]Write i2c OK [08:33:09]MH_I2C_Read... [08:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:10]Read from MH i2c: E2 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: E2 17 00 18 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 00 [08:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:33:10]wFMCommunicate OK [08:33:10]CreateOFDProtocolMessage done [08:33:10]OFDSenderStorePacket 63298 [08:33:10]StoreOFDPacket docnum=63298 [08:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 01 23 31 01 76 84 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 26 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C8 B4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 42 F7 00 00 35 04 06 00 B4 51 36 FE 47 14 A8 19 D5 84 48 42 19 F3 [08:33:10]CheckFolder [08:33:10]dirname=/storage/ofd_packets [08:33:10]CheckFolder done [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00063298 [08:33:10]NVStorageSaveData ofd_packets/00063298 [08:33:10]File name is /storage/ofd_packets/00063298 [08:33:10]Write 343 bytes [08:33:10]NVStorageSaveData done [08:33:10]OFDSenderStorePacket done [08:33:10]KKMCreateOFDPacket done [08:33:10]NVStorageSaveData kkm_last_timestamp [08:33:10]File name is /storage/kkm_last_timestamp [08:33:10]Write 4 bytes [08:33:10]NVStorageSaveData done [08:33:10]ExternCall_PrintAddStr [08:33:10]wPrintStart [08:33:10]Write to MH i2c: 01 00 00 19 15 2E [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 19 15 00 00 00 00 00 FF 0F 43 [08:33:10]RasterBufferAndPrint [08:33:10]line Счет N : (3)47608 [08:33:10]line ИНН: 02508201610067 [08:33:10]line Контрольно-Кассовый Чек [08:33:10]line ПРОДАЖА [08:33:10]line Товар: 4870022003305 [08:33:10]line Напиток Gorilla эн нат ж/б 0,5/0,45л [08:33:10]line 1.000 * 98.12 [08:33:10]line = 98.12 [08:33:10]line НДС 12% НСП 1% [08:33:10]line > о реализуемом товаре [08:33:10]line ИТОГО: 98.12 [08:33:10]line НСП 1% : 0.87 [08:33:10]line НДС 12% : 10.42 [08:33:10]line Наличными: 0.00 [08:33:10]line Безнал.: 98.12 [08:33:10]line Место: АЗС № 86 "Партнер Нефть" [08:33:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:33:10]line СНО: Общий режим [08:33:10]line Чек 27 23.10.2024 08:33 [08:33:10]line Смена: 546 ФФД: 1.0 [08:33:10]line ЗНМ: 0300000154 [08:33:10]line РНМ: 0000000000091619 [08:33:10]line Версия ККМ: 001 [08:33:10]line Платежная система: Mbank [08:33:10]line ФМ: 0000000000874676 [08:33:10]line ФД: 63298 [08:33:10]line ФПД: 198260907984660 [08:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083312&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63298&fm=198260907984660&tin=02508201610067®Number=0000000000091619&sum=9812 [08:33:10]OFD Sender: Processing packet 63298 [packets to send 232, broken 231] [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00063298 [08:33:10]OFD Sender: To server: pG, [08:33:10]CommunicateWithHost lk.salyk.kg:30040 [08:33:10]ConnectInit lk.salyk.kg [08:33:10]line 0 [08:33:10]written 0, free lines is 4095 [08:33:10]Connected sock=9 [08:33:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 39 01 00 00 01 23 31 01 76 84 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 26 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C8 B4 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 42 F7 00 00 35 04 06 00 B4 51 36 FE 47 14 A8 19 D5 84 48 42 19 F3 [08:33:10]Write to MH i2c: 01 00 00 43 15 58 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: 01 07 00 43 15 00 00 00 00 00 06 0D 72 [08:33:10]RasterBufferAndPrint [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]line [08:33:10]written 0, free lines is 3340 [08:33:10]MH_Cut [08:33:10]Write to MH i2c: D1 01 00 4A 15 01 31 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 01 00 [08:33:10]MH_I2C_Read... [08:33:10]Read from MH i2c: D1 01 00 4A 15 00 30 [08:33:10]Write to MH i2c: 01 00 00 4B 15 60 [08:33:10]Write i2c OK [08:33:10]MH_I2C_Read... [08:33:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 75 5D 47 00 05 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 38 37 34 36 37 36 10 04 04 00 42 F7 00 00 F4 03 04 00 C0 5E 18 67 B6 04 01 00 00 69 39 95 3F 57 22 E2 27 [08:33:10]CommunicateWithHost err = 0 [08:33:10]CheckOFDResponse [08:33:10]1017 (14) - 77093643461234 [08:33:10]1041 (16) - 0000000000874676 [08:33:10]1040 (4) - 63298 [08:33:10]1012 (4) - 23.10.2024 02:26 [08:33:10]1206 (1) - 0 [08:33:10]OFD Sender: Remove packet 63298 [08:33:10]ProducePacketName [08:33:10]name=ofd_packets/00063298 [08:33:10]NVStorageDeleteData [08:33:11]OFD Sender: No OFD packet to send [08:33:11]*** Cut start [08:33:11]*** Partial cut [08:33:11]*** CUTSNS_PIN = 1 [08:33:11]*** CUTSNS_PIN = 0 [08:33:11]*** Brake cut motor [08:33:12]Read from MH i2c: 01 [08:33:12]MH_I2C_Read... [08:33:12]*** Stop cut motor [08:33:12]*** Cut end [08:33:12]Read from MH i2c: 01 07 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: 01 07 00 4B 15 00 00 00 00 00 FF 0F 75 [08:33:12]process_action close_receipt done [08:33:12]requested_data is exist [08:33:12]produce_requested_data [08:33:12]requested_item fm.sn is exist - process it [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 11 00 00 [08:33:12]Write to MH i2c: E2 08 00 4C 15 80 11 00 00 00 00 00 00 DB [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 17 00 4C 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 34 [08:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:33:12]wFMCommunicate OK [08:33:12]requested_item fd.num is exist - process it [08:33:12]SAM_PROTO_GetFieldsCounters [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 00 00 [08:33:12]Write to MH i2c: E2 08 00 4D 15 80 13 00 00 00 00 00 00 DE [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 62 00 4D 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 42 F7 00 00 0E 04 04 00 22 02 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 B4 [08:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 42 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetFieldsCounters done [08:33:12]requested_item shift.num is exist - process it [08:33:12]requested_item shift.opened is exist - process it [08:33:12]req_shift_opened [08:33:12]FM_GetShiftState [08:33:12]SAM_PROTO_GetShiftState [08:33:12]wFMCommunicate request_size=4 [08:33:12]MH_SAM_APDU [08:33:12]CAPDU: 80 13 01 00 [08:33:12]Write to MH i2c: E2 08 00 4E 15 80 13 01 00 00 00 00 00 E0 [08:33:12]Write i2c OK [08:33:12]MH_I2C_Read... [08:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:12]Read from MH i2c: E2 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 [08:33:12]MH_I2C_Read... [08:33:12]Read from MH i2c: E2 0E 00 4E 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CA [08:33:12]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:33:12]wFMCommunicate OK [08:33:12]SAM_PROTO_GetShiftState done [08:33:12]FM_GetShiftState done [08:33:12]req_shift_opened done [08:33:12]requested_item shift.open_date is exist - process it [08:33:12]req_shift_open_date [08:33:12]req_shift_open_date done [08:33:12]produce_requested_data done [08:33:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63298,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:33:12]process_action_free close_receipt [08:33:12]json_value_free [08:33:12]json_value_free done [08:33:12]process_json_proto returns [08:33:12]Send response to host [08:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63298,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:33:12]free response buf [08:33:12]execute_script done [08:33:12]execute_script returns [08:33:12]free content buf [08:33:12]Sock 7.Close socket [08:33:12]Sock 7.Thread stoped [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]accept exits with 10 [08:35:21]New connection [08:35:21]New thread 3067096420 created [08:35:21]Thread 3066953060 joined [08:35:21]Waiting for new connection... [08:35:21] Sock 10.Parse request [08:35:21]Sock 10.Check first char [08:35:21]Sock 10.First char is OK [08:35:21]request: POST /json_proto HTTP/1.0 [08:35:21]Method: POST [08:35:21]URL: /json_proto [08:35:21]Method is POST - this is cgi request [08:35:21]url: /json_proto [08:35:21]query_string will be loaded in cgi processing [08:35:21]execute_cgi json_proto POST (null) [08:35:21]execute_cgi path=json_proto method=POST [08:35:21]POST find Content-Length [08:35:21]Host: 172.17.42.132:8080 [08:35:21]Content-Length: 655 [08:35:21]Content-Type: application/json [08:35:21] [08:35:21]POST finish read [08:35:21]Found Content-Length = 655 [08:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47609", "tax_sys" : 0, "items" : [ { "code": "2587136579566", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:21]execute_script... [08:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47609", "tax_sys" : 0, "items" : [ { "code": "2587136579566", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:21]POST & json_proto [08:35:21]process_json_proto [08:35:21]json parsed OK: [08:35:21]protocol is kg_v1.0 [08:35:21]action value=close_receipt [08:35:21]process_action close_receipt [08:35:21]cmd_close_receipt [08:35:21]MH_GetDate [08:35:21]Write to MH i2c: F0 00 00 4F 15 53 [08:35:21]Write i2c OK [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: F0 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: F0 09 00 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: F0 09 00 4F 15 00 4D B5 18 67 4C DF 56 66 C4 [08:35:21]GetLastDocTimeStamp 1729672392 [08:35:21]current date 1729672525 [08:35:21]FM_GetShiftState [08:35:21]SAM_PROTO_GetShiftState [08:35:21]wFMCommunicate request_size=4 [08:35:21]MH_SAM_APDU [08:35:21]CAPDU: 80 13 01 00 [08:35:21]Write to MH i2c: E2 08 00 50 15 80 13 01 00 00 00 00 00 E2 [08:35:21]Write i2c OK [08:35:21]MH_I2C_Read... [08:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:21]Read from MH i2c: E2 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: E2 0E 00 [08:35:21]MH_I2C_Read... [08:35:21]Read from MH i2c: E2 0E 00 50 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CC [08:35:21]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:35:21]wFMCommunicate OK [08:35:21]SAM_PROTO_GetShiftState done [08:35:21]FM_GetShiftState done [08:35:21]opened in 1729642527 [08:35:21]opened+sec_in_day 1729728927 [08:35:21]quantity*price = 400 [08:35:21]sum+1 = 401 [08:35:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 28 23.10.2024 08:35 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63299 ФПД: 18758844612578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083525&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63299&fm=18758844612578&tin=02508201610067®Number=0000000000091619&sum=400 0 [08:35:22]StoreToDocumentArchive [08:35:22]shift 546 fd 63299 [08:35:22]save to /storage/0546/doc_00063299 [08:35:22]save last doc name /storage/0546/doc_00063299 to /storage/kkm_last_doc_name [08:35:22]save OK [08:35:22]Clear old archive folders... [08:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:35:22]tlvbuf is B6EE4260 [08:35:22]SAM_PROTO_ClearQueue [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 09 00 00 [08:35:22]Write to MH i2c: E2 08 00 5D 15 80 09 00 00 00 00 00 00 E4 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 5D 15 00 90 00 E6 [08:35:22]RAPDU: 90 00 [08:35:22]wFMCommunicate OK [08:35:22]SAM_PROTO_ClearQueue done [08:35:22]KKMCreateOFDPacket [08:35:22]OFDProtocolAddRootSTLVToBuf [08:35:22]FM_MakeSignedData [08:35:22]FM_MakeSignedData [08:35:22]SAM_PROTO_SignData [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 0D 01 02 [08:35:22]Write to MH i2c: E2 08 00 5E 15 80 0D 01 02 00 00 00 00 EC [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 5E 15 00 90 00 E7 [08:35:22]RAPDU: 90 00 [08:35:22]wFMCommunicate OK [08:35:22]wFMCommunicate request_size=255 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D B5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [08:35:22]Write to MH i2c: E2 02 01 5F 15 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D B5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 15 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 5F 15 00 90 00 E8 [08:35:22]RAPDU: 90 00 [08:35:22]wFMCommunicate OK [08:35:22]wFMCommunicate request_size=37 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F7 00 00 35 04 06 00 11 0F A2 44 FF E2 [08:35:22]Write to MH i2c: E2 28 00 60 15 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F7 00 00 35 04 06 00 11 0F A2 44 FF E2 00 00 6D [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 03 00 60 15 00 90 00 E9 [08:35:22]RAPDU: 90 00 [08:35:22]wFMCommunicate OK [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 0D 03 02 [08:35:22]Write to MH i2c: E2 08 00 61 15 80 0D 03 02 00 00 00 00 F1 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 0B 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 0B 00 61 15 00 FC 0A 36 A9 A1 CD BB B0 90 00 B0 [08:35:22]RAPDU: FC 0A 36 A9 A1 CD BB B0 90 00 [08:35:22]wFMCommunicate OK [08:35:22]SAM_PROTO_SignData done [08:35:22]FM_MakeSignedData done [08:35:22]CreateOFDProtocolMessage [08:35:22]wFMCommunicate request_size=4 [08:35:22]MH_SAM_APDU [08:35:22]CAPDU: 80 11 00 00 [08:35:22]Write to MH i2c: E2 08 00 62 15 80 11 00 00 00 00 00 00 F1 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:22]Read from MH i2c: E2 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 17 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: E2 17 00 62 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4A [08:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:35:22]wFMCommunicate OK [08:35:22]CreateOFDProtocolMessage done [08:35:22]OFDSenderStorePacket 63299 [08:35:22]StoreOFDPacket docnum=63299 [08:35:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 E7 EF 22 01 27 E9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D B5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F7 00 00 35 04 06 00 11 0F A2 44 FF E2 FC 0A 36 A9 A1 CD BB B0 [08:35:22]CheckFolder [08:35:22]dirname=/storage/ofd_packets [08:35:22]CheckFolder done [08:35:22]ProducePacketName [08:35:22]name=ofd_packets/00063299 [08:35:22]NVStorageSaveData ofd_packets/00063299 [08:35:22]File name is /storage/ofd_packets/00063299 [08:35:22]Write 328 bytes [08:35:22]NVStorageSaveData done [08:35:22]OFDSenderStorePacket done [08:35:22]KKMCreateOFDPacket done [08:35:22]NVStorageSaveData kkm_last_timestamp [08:35:22]File name is /storage/kkm_last_timestamp [08:35:22]Write 4 bytes [08:35:22]NVStorageSaveData done [08:35:22]ExternCall_PrintAddStr [08:35:22]wPrintStart [08:35:22]Write to MH i2c: 01 00 00 63 15 78 [08:35:22]Write i2c OK [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: 01 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: 01 07 00 [08:35:22]MH_I2C_Read... [08:35:22]Read from MH i2c: 01 07 00 63 15 00 00 00 00 00 FF 0F 8D [08:35:22]RasterBufferAndPrint [08:35:22]line Счет N : (3)47609 [08:35:22]line ИНН: 02508201610067 [08:35:22]line Контрольно-Кассовый Чек [08:35:22]line ПРОДАЖА [08:35:22]line Товар: 2587136579566 [08:35:22]line Пакет Партнер Нефть [08:35:22]line 1.000 * 4.00 [08:35:22]line = 4.00 [08:35:22]line НДС 12% НСП 1% [08:35:22]line > о реализуемом товаре [08:35:22]line ИТОГО: 4.00 [08:35:22]line НСП 1% : 0.03 [08:35:22]line НДС 12% : 0.42 [08:35:22]line Наличными: 4.00 [08:35:22]line Безнал.: 0.00 [08:35:22]line Место: АЗС № 86 "Партнер Нефть" [08:35:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:35:22]line СНО: Общий режим [08:35:22]line Чек 28 23.10.2024 08:35 [08:35:22]line Смена: 546 ФФД: 1.0 [08:35:22]line ЗНМ: 0300000154 [08:35:22]line РНМ: 0000000000091619 [08:35:22]line Версия ККМ: 001 [08:35:22]line ФМ: 0000000000874676 [08:35:22]line ФД: 63299 [08:35:22]line ФПД: 18758844612578 [08:35:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083525&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63299&fm=18758844612578&tin=02508201610067®Number=0000000000091619&sum=400 [08:35:23]OFD Sender: Processing packet 63299 [packets to send 232, broken 231] [08:35:23]ProducePacketName [08:35:23]name=ofd_packets/00063299 [08:35:23]OFD Sender: To server: pG, [08:35:23]CommunicateWithHost lk.salyk.kg:30040 [08:35:23]ConnectInit lk.salyk.kg [08:35:23]line 0 [08:35:23]written 0, free lines is 4095 [08:35:23]Connected sock=9 [08:35:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 E7 EF 22 01 27 E9 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 35 38 37 31 33 36 35 37 39 35 36 36 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 4D B5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F7 00 00 35 04 06 00 11 0F A2 44 FF E2 FC 0A 36 A9 A1 CD BB B0 [08:35:23]Write to MH i2c: 01 00 00 8B 15 A0 [08:35:23]Write i2c OK [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 07 00 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: 01 07 00 8B 15 00 00 00 00 00 14 0D C8 [08:35:23]RasterBufferAndPrint [08:35:23]line [08:35:23]line [08:35:23]line [08:35:23]line [08:35:23]line [08:35:23]written 0, free lines is 3354 [08:35:23]MH_Cut [08:35:23]Write to MH i2c: D1 01 00 92 15 01 79 [08:35:23]Write i2c OK [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: D1 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: D1 01 00 [08:35:23]MH_I2C_Read... [08:35:23]Read from MH i2c: D1 01 00 92 15 00 78 [08:35:23]Write to MH i2c: 01 00 00 93 15 A8 [08:35:23]Write i2c OK [08:35:23]MH_I2C_Read... [08:35:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 48 D2 47 00 20 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 43 F7 00 00 F4 03 04 00 45 5F 18 67 B6 04 01 00 00 3C 32 17 1D C1 CB 25 36 [08:35:23]CommunicateWithHost err = 0 [08:35:23]CheckOFDResponse [08:35:23]1017 (14) - 77093643461234 [08:35:23]1041 (16) - 0000000000874676 [08:35:23]1040 (4) - 63299 [08:35:23]1012 (4) - 23.10.2024 02:28 [08:35:23]1206 (1) - 0 [08:35:23]OFD Sender: Remove packet 63299 [08:35:23]ProducePacketName [08:35:23]name=ofd_packets/00063299 [08:35:23]NVStorageDeleteData [08:35:24]OFD Sender: No OFD packet to send [08:35:24]*** Cut start [08:35:24]*** Partial cut [08:35:24]*** CUTSNS_PIN = 1 [08:35:24]*** CUTSNS_PIN = 0 [08:35:24]*** Brake cut motor [08:35:24]Read from MH i2c: 01 [08:35:24]MH_I2C_Read... [08:35:24]*** Stop cut motor [08:35:24]*** Cut end [08:35:24]Read from MH i2c: 01 07 00 [08:35:24]MH_I2C_Read... [08:35:24]Read from MH i2c: 01 07 00 93 15 00 00 00 00 00 FF 0F BD [08:35:24]process_action close_receipt done [08:35:24]requested_data is exist [08:35:24]produce_requested_data [08:35:24]requested_item fm.sn is exist - process it [08:35:24]wFMCommunicate request_size=4 [08:35:24]MH_SAM_APDU [08:35:24]CAPDU: 80 11 00 00 [08:35:24]Write to MH i2c: E2 08 00 94 15 80 11 00 00 00 00 00 00 23 [08:35:24]Write i2c OK [08:35:24]MH_I2C_Read... [08:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:25]Read from MH i2c: E2 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 17 00 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 17 00 94 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7C [08:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:35:25]wFMCommunicate OK [08:35:25]requested_item fd.num is exist - process it [08:35:25]SAM_PROTO_GetFieldsCounters [08:35:25]wFMCommunicate request_size=4 [08:35:25]MH_SAM_APDU [08:35:25]CAPDU: 80 13 00 00 [08:35:25]Write to MH i2c: E2 08 00 95 15 80 13 00 00 00 00 00 00 26 [08:35:25]Write i2c OK [08:35:25]MH_I2C_Read... [08:35:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:25]Read from MH i2c: E2 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 62 00 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 62 00 95 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 43 F7 00 00 0E 04 04 00 22 02 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 00 [08:35:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 43 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:25]wFMCommunicate OK [08:35:25]SAM_PROTO_GetFieldsCounters done [08:35:25]requested_item shift.num is exist - process it [08:35:25]requested_item shift.opened is exist - process it [08:35:25]req_shift_opened [08:35:25]FM_GetShiftState [08:35:25]SAM_PROTO_GetShiftState [08:35:25]wFMCommunicate request_size=4 [08:35:25]MH_SAM_APDU [08:35:25]CAPDU: 80 13 01 00 [08:35:25]Write to MH i2c: E2 08 00 96 15 80 13 01 00 00 00 00 00 28 [08:35:25]Write i2c OK [08:35:25]MH_I2C_Read... [08:35:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:25]Read from MH i2c: E2 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 0E 00 [08:35:25]MH_I2C_Read... [08:35:25]Read from MH i2c: E2 0E 00 96 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 12 [08:35:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:35:25]wFMCommunicate OK [08:35:25]SAM_PROTO_GetShiftState done [08:35:25]FM_GetShiftState done [08:35:25]req_shift_opened done [08:35:25]requested_item shift.open_date is exist - process it [08:35:25]req_shift_open_date [08:35:25]req_shift_open_date done [08:35:25]produce_requested_data done [08:35:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63299,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:35:25]process_action_free close_receipt [08:35:25]json_value_free [08:35:25]json_value_free done [08:35:25]process_json_proto returns [08:35:25]Send response to host [08:35:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63299,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:35:25]free response buf [08:35:25]execute_script done [08:35:25]execute_script returns [08:35:25]free content buf [08:35:25]Sock 10.Close socket [08:35:25]Sock 10.Thread stoped [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:25]accept exits with 7 [08:38:25]New connection [08:38:25]New thread 3066953060 created [08:38:25]Thread 3067096420 joined [08:38:25]Waiting for new connection... [08:38:25] Sock 7.Parse request [08:38:25]Sock 7.Check first char [08:38:25]Sock 7.First char is OK [08:38:25]request: POST /json_proto HTTP/1.0 [08:38:25]Method: POST [08:38:25]URL: /json_proto [08:38:25]Method is POST - this is cgi request [08:38:25]url: /json_proto [08:38:25]query_string will be loaded in cgi processing [08:38:25]execute_cgi json_proto POST (null) [08:38:25]execute_cgi path=json_proto method=POST [08:38:25]POST find Content-Length [08:38:25]Host: 172.17.42.132:8080 [08:38:25]Content-Length: 967 [08:38:25]Content-Type: application/json [08:38:25] [08:38:25]POST finish read [08:38:25]Found Content-Length = 967 [08:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47610", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:25]execute_script... [08:38: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 : (3)47610", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:25]POST & json_proto [08:38:25]process_json_proto [08:38:25]json parsed OK: [08:38:25]protocol is kg_v1.0 [08:38:25]action value=close_receipt [08:38:25]process_action close_receipt [08:38:25]cmd_close_receipt [08:38:25]MH_GetDate [08:38:25]Write to MH i2c: F0 00 00 97 15 9B [08:38:25]Write i2c OK [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: F0 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: F0 09 00 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: F0 09 00 97 15 00 05 B6 18 67 4C DF 56 66 C5 [08:38:25]GetLastDocTimeStamp 1729672525 [08:38:25]current date 1729672709 [08:38:25]FM_GetShiftState [08:38:25]SAM_PROTO_GetShiftState [08:38:25]wFMCommunicate request_size=4 [08:38:25]MH_SAM_APDU [08:38:25]CAPDU: 80 13 01 00 [08:38:25]Write to MH i2c: E2 08 00 98 15 80 13 01 00 00 00 00 00 2A [08:38:25]Write i2c OK [08:38:25]MH_I2C_Read... [08:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:25]Read from MH i2c: E2 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 0E 00 [08:38:25]MH_I2C_Read... [08:38:25]Read from MH i2c: E2 0E 00 98 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 14 [08:38:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:38:25]wFMCommunicate OK [08:38:25]SAM_PROTO_GetShiftState done [08:38:25]FM_GetShiftState done [08:38:25]opened in 1729642527 [08:38:25]opened+sec_in_day 1729728927 [08:38:25]quantity*price = 7500 [08:38:25]sum+1 = 7501 [08:38:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700002085444 Водка Белое золото 0,24л 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 29 23.10.2024 08:38 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63300 ФПД: 69596147354905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083829&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63300&fm=69596147354905&tin=02508201610067®Number=0000000000091619&sum=27500 0 [08:38:26]StoreToDocumentArchive [08:38:26]shift 546 fd 63300 [08:38:26]save to /storage/0546/doc_00063300 [08:38:26]save last doc name /storage/0546/doc_00063300 to /storage/kkm_last_doc_name [08:38:26]save OK [08:38:26]Clear old archive folders... [08:38:26]ProcessDocumentItem done err = 0, tmpTLVsize=408 [08:38:26]tlvbuf is 008F44D0 [08:38:26]SAM_PROTO_ClearQueue [08:38:26]wFMCommunicate request_size=4 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 09 00 00 [08:38:26]Write to MH i2c: E2 08 00 A5 15 80 09 00 00 00 00 00 00 2C [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [08:38:26]RAPDU: 90 00 [08:38:26]wFMCommunicate OK [08:38:26]SAM_PROTO_ClearQueue done [08:38:26]KKMCreateOFDPacket [08:38:26]OFDProtocolAddRootSTLVToBuf [08:38:26]FM_MakeSignedData [08:38:26]FM_MakeSignedData [08:38:26]SAM_PROTO_SignData [08:38:26]wFMCommunicate request_size=4 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 0D 01 02 [08:38:26]Write to MH i2c: E2 08 00 A6 15 80 0D 01 02 00 00 00 00 34 [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [08:38:26]RAPDU: 90 00 [08:38:26]wFMCommunicate OK [08:38:26]wFMCommunicate request_size=255 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [08:38:26]Write to MH i2c: E2 02 01 A7 15 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 DB [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:26]Read from MH i2c: E2 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 [08:38:26]MH_I2C_Read... [08:38:26]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [08:38:26]RAPDU: 90 00 [08:38:26]wFMCommunicate OK [08:38:26]wFMCommunicate request_size=167 [08:38:26]MH_SAM_APDU [08:38:26]CAPDU: 80 0D 02 02 A2 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 05 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F7 00 00 35 04 06 00 3F 4C 1D A4 0D 19 [08:38:26]Write to MH i2c: E2 AA 00 A8 15 80 0D 02 02 A2 00 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 05 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F7 00 00 35 04 06 00 3F 4C 1D A4 0D 19 00 00 FB [08:38:26]Write i2c OK [08:38:26]MH_I2C_Read... [08:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:27]Read from MH i2c: E2 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 03 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 03 00 A8 15 00 90 00 31 [08:38:27]RAPDU: 90 00 [08:38:27]wFMCommunicate OK [08:38:27]wFMCommunicate request_size=4 [08:38:27]MH_SAM_APDU [08:38:27]CAPDU: 80 0D 03 02 [08:38:27]Write to MH i2c: E2 08 00 A9 15 80 0D 03 02 00 00 00 00 39 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:27]Read from MH i2c: E2 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 0B 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 0B 00 A9 15 00 79 D6 05 5A 2A E8 1A 33 90 00 47 [08:38:27]RAPDU: 79 D6 05 5A 2A E8 1A 33 90 00 [08:38:27]wFMCommunicate OK [08:38:27]SAM_PROTO_SignData done [08:38:27]FM_MakeSignedData done [08:38:27]CreateOFDProtocolMessage [08:38:27]wFMCommunicate request_size=4 [08:38:27]MH_SAM_APDU [08:38:27]CAPDU: 80 11 00 00 [08:38:27]Write to MH i2c: E2 08 00 AA 15 80 11 00 00 00 00 00 00 39 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:27]Read from MH i2c: E2 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 17 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: E2 17 00 AA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 92 [08:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:38:27]wFMCommunicate OK [08:38:27]CreateOFDProtocolMessage done [08:38:27]OFDSenderStorePacket 63300 [08:38:27]StoreOFDPacket docnum=63300 [08:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AC 01 00 00 BF FD A4 01 85 0D 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 05 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F7 00 00 35 04 06 00 3F 4C 1D A4 0D 19 79 D6 05 5A 2A E8 1A 33 [08:38:27]CheckFolder [08:38:27]dirname=/storage/ofd_packets [08:38:27]CheckFolder done [08:38:27]ProducePacketName [08:38:27]name=ofd_packets/00063300 [08:38:27]NVStorageSaveData ofd_packets/00063300 [08:38:27]File name is /storage/ofd_packets/00063300 [08:38:27]Write 458 bytes [08:38:27]NVStorageSaveData done [08:38:27]OFDSenderStorePacket done [08:38:27]KKMCreateOFDPacket done [08:38:27]NVStorageSaveData kkm_last_timestamp [08:38:27]File name is /storage/kkm_last_timestamp [08:38:27]Write 4 bytes [08:38:27]NVStorageSaveData done [08:38:27]ExternCall_PrintAddStr [08:38:27]wPrintStart [08:38:27]Write to MH i2c: 01 00 00 AB 15 C0 [08:38:27]Write i2c OK [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 [08:38:27]MH_I2C_Read... [08:38:27]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 FF 0F D5 [08:38:27]RasterBufferAndPrint [08:38:27]line Счет N : (3)47610 [08:38:27]line ИНН: 02508201610067 [08:38:27]line Контрольно-Кассовый Чек [08:38:27]line ПРОДАЖА [08:38:27]line Товар: 5449000027450 [08:38:27]line Напиток FuzeTea чай манго,ром 0,5л [08:38:27]line 1.000 * 75.00 [08:38:27]line = 75.00 [08:38:27]line НДС 12% НСП 1% [08:38:27]line > о реализуемом товаре [08:38:27]line Товар: 4700002085444 [08:38:27]line Водка Белое золото 0,24л [08:38:27]line 1.000 * 200.00 [08:38:27]line = 200.00 [08:38:27]line НДС 12% НСП 1% [08:38:27]line > о реализуемом товаре [08:38:27]line ИТОГО: 275.00 [08:38:27]line НСП 1% : 2.43 [08:38:27]line НДС 12% : 29.20 [08:38:27]line Наличными: 275.00 [08:38:27]line Безнал.: 0.00 [08:38:27]line Место: АЗС № 86 "Партнер Нефть" [08:38:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:38:27]line СНО: Общий режим [08:38:27]line Чек 29 23.10.2024 08:38 [08:38:27]line Смена: 546 ФФД: 1.0 [08:38:27]line ЗНМ: 0300000154 [08:38:27]line РНМ: 0000000000091619 [08:38:27]line Версия ККМ: 001 [08:38:27]line ФМ: 0000000000874676 [08:38:27]line ФД: 63300 [08:38:27]line ФПД: 69596147354905 [08:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T083829&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63300&fm=69596147354905&tin=02508201610067®Number=0000000000091619&sum=27500 [08:38:27]line 0 [08:38:27]OFD Sender: Processing packet 63300 [packets to send 232, broken 231] [08:38:27]ProducePacketName [08:38:27]name=ofd_packets/00063300 [08:38:27]OFD Sender: To server: pG, [08:38:27]CommunicateWithHost lk.salyk.kg:30040 [08:38:27]ConnectInit lk.salyk.kg [08:38:27]written 0, free lines is 4095 [08:38:27]Connected sock=10 [08:38:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AC 01 00 00 BF FD A4 01 85 0D 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 05 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F7 00 00 35 04 06 00 3F 4C 1D A4 0D 19 79 D6 05 5A 2A E8 1A 33 [08:38:28]Write to MH i2c: 01 00 00 DA 15 EF [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: 01 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: 01 07 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 CB 0C CD [08:38:28]RasterBufferAndPrint [08:38:28]line [08:38:28]line [08:38:28]line [08:38:28]line [08:38:28]line [08:38:28]written 0, free lines is 3282 [08:38:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A1 89 47 00 9B 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 44 F7 00 00 F4 03 04 00 FE 5F 18 67 B6 04 01 00 00 C9 66 87 EF 55 ED 58 22 [08:38:28]CommunicateWithHost err = 0 [08:38:28]CheckOFDResponse [08:38:28]1017 (14) - 77093643461234 [08:38:28]1041 (16) - 0000000000874676 [08:38:28]1040 (4) - 63300 [08:38:28]1012 (4) - 23.10.2024 02:31 [08:38:28]1206 (1) - 0 [08:38:28]OFD Sender: Remove packet 63300 [08:38:28]ProducePacketName [08:38:28]name=ofd_packets/00063300 [08:38:28]NVStorageDeleteData [08:38:28]MH_Cut [08:38:28]Write to MH i2c: D1 01 00 E1 15 01 C8 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: D1 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: D1 01 00 [08:38:28]MH_I2C_Read... [08:38:28]Read from MH i2c: D1 01 00 E1 15 00 C7 [08:38:28]Write to MH i2c: 01 00 00 E2 15 F7 [08:38:28]Write i2c OK [08:38:28]MH_I2C_Read... [08:38:28]OFD Sender: No OFD packet to send [08:38:28]*** Cut start [08:38:28]*** Partial cut [08:38:28]*** CUTSNS_PIN = 1 [08:38:28]*** CUTSNS_PIN = 0 [08:38:29]*** Brake cut motor [08:38:29]Read from MH i2c: 01 [08:38:29]MH_I2C_Read... [08:38:29]*** Stop cut motor [08:38:29]*** Cut end [08:38:29]Read from MH i2c: 01 07 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: 01 07 00 E2 15 00 00 00 00 00 FF 0F 0C [08:38:29]process_action close_receipt done [08:38:29]requested_data is exist [08:38:29]produce_requested_data [08:38:29]requested_item fm.sn is exist - process it [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 11 00 00 [08:38:29]Write to MH i2c: E2 08 00 E3 15 80 11 00 00 00 00 00 00 72 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 17 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 17 00 E3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CB [08:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:38:29]wFMCommunicate OK [08:38:29]requested_item fd.num is exist - process it [08:38:29]SAM_PROTO_GetFieldsCounters [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 13 00 00 [08:38:29]Write to MH i2c: E2 08 00 E4 15 80 13 00 00 00 00 00 00 75 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 62 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 62 00 E4 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 44 F7 00 00 0E 04 04 00 22 02 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 53 [08:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 44 F7 00 00 0E 04 04 00 22 02 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 [08:38:29]wFMCommunicate OK [08:38:29]SAM_PROTO_GetFieldsCounters done [08:38:29]requested_item shift.num is exist - process it [08:38:29]requested_item shift.opened is exist - process it [08:38:29]req_shift_opened [08:38:29]FM_GetShiftState [08:38:29]SAM_PROTO_GetShiftState [08:38:29]wFMCommunicate request_size=4 [08:38:29]MH_SAM_APDU [08:38:29]CAPDU: 80 13 01 00 [08:38:29]Write to MH i2c: E2 08 00 E5 15 80 13 01 00 00 00 00 00 77 [08:38:29]Write i2c OK [08:38:29]MH_I2C_Read... [08:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:29]Read from MH i2c: E2 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 0E 00 [08:38:29]MH_I2C_Read... [08:38:29]Read from MH i2c: E2 0E 00 E5 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 61 [08:38:29]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:38:29]wFMCommunicate OK [08:38:29]SAM_PROTO_GetShiftState done [08:38:29]FM_GetShiftState done [08:38:29]req_shift_opened done [08:38:29]requested_item shift.open_date is exist - process it [08:38:29]req_shift_open_date [08:38:29]req_shift_open_date done [08:38:29]produce_requested_data done [08:38:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63300,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:38:29]process_action_free close_receipt [08:38:29]json_value_free [08:38:29]json_value_free done [08:38:29]process_json_proto returns [08:38:29]Send response to host [08:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63300,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:38:29]free response buf [08:38:29]execute_script done [08:38:29]execute_script returns [08:38:29]free content buf [08:38:29]Sock 7.Close socket [08:38:29]Sock 7.Thread stoped [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:58]OFD Sender: No OFD packet to send [08:39:03]OFD Sender: No OFD packet to send [08:39:08]OFD Sender: No OFD packet to send [08:39:13]OFD Sender: No OFD packet to send [08:39:18]OFD Sender: No OFD packet to send [08:39:23]OFD Sender: No OFD packet to send [08:39:28]OFD Sender: No OFD packet to send [08:39:33]OFD Sender: No OFD packet to send [08:39:38]OFD Sender: No OFD packet to send [08:39:43]OFD Sender: No OFD packet to send [08:39:48]OFD Sender: No OFD packet to send [08:39:53]OFD Sender: No OFD packet to send [08:39:58]OFD Sender: No OFD packet to send [08:40:02]accept exits with 9 [08:40:02]New connection [08:40:02]New thread 3067096420 created [08:40:02]Thread 3066953060 joined [08:40:02]Waiting for new connection... [08:40:02] Sock 9.Parse request [08:40:02]Sock 9.Check first char [08:40:02]Sock 9.First char is OK [08:40:02]request: POST /json_proto HTTP/1.0 [08:40:02]Method: POST [08:40:02]URL: /json_proto [08:40:02]Method is POST - this is cgi request [08:40:02]url: /json_proto [08:40:02]query_string will be loaded in cgi processing [08:40:02]execute_cgi json_proto POST (null) [08:40:02]execute_cgi path=json_proto method=POST [08:40:02]POST find Content-Length [08:40:02]Host: 172.17.42.132:8080 [08:40:02]Content-Length: 654 [08:40:02]Content-Type: application/json [08:40:02] [08:40:02]POST finish read [08:40:02]Found Content-Length = 654 [08:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47611", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:02]execute_script... [08:40:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47611", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:02]POST & json_proto [08:40:02]process_json_proto [08:40:02]json parsed OK: [08:40:02]protocol is kg_v1.0 [08:40:02]action value=close_receipt [08:40:02]process_action close_receipt [08:40:02]cmd_close_receipt [08:40:02]MH_GetDate [08:40:02]Write to MH i2c: F0 00 00 E6 15 EA [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: F0 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: F0 09 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: F0 09 00 E6 15 00 66 B6 18 67 4C DF 56 66 75 [08:40:02]GetLastDocTimeStamp 1729672709 [08:40:02]current date 1729672806 [08:40:02]FM_GetShiftState [08:40:02]SAM_PROTO_GetShiftState [08:40:02]wFMCommunicate request_size=4 [08:40:02]MH_SAM_APDU [08:40:02]CAPDU: 80 13 01 00 [08:40:02]Write to MH i2c: E2 08 00 E7 15 80 13 01 00 00 00 00 00 79 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:02]Read from MH i2c: E2 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 0E 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: E2 0E 00 E7 15 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 63 [08:40:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:40:02]wFMCommunicate OK [08:40:02]SAM_PROTO_GetShiftState done [08:40:02]FM_GetShiftState done [08:40:02]opened in 1729642527 [08:40:02]opened+sec_in_day 1729728927 [08:40:02]quantity*price = 6900 [08:40:02]sum+1 = 6901 [08:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 30 23.10.2024 08:40 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63301 ФПД: 42658439567429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084006&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63301&fm=42658439567429&tin=02508201610067®Number=0000000000091619&sum=6900 0 [08:40:03]StoreToDocumentArchive [08:40:03]shift 546 fd 63301 [08:40:03]save to /storage/0546/doc_00063301 [08:40:03]save last doc name /storage/0546/doc_00063301 to /storage/kkm_last_doc_name [08:40:03]save OK [08:40:03]Clear old archive folders... [08:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=294 [08:40:03]tlvbuf is 0087AA40 [08:40:03]SAM_PROTO_ClearQueue [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 09 00 00 [08:40:03]Write to MH i2c: E2 08 00 F4 15 80 09 00 00 00 00 00 00 7B [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 F4 15 00 90 00 7D [08:40:03]RAPDU: 90 00 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_ClearQueue done [08:40:03]KKMCreateOFDPacket [08:40:03]OFDProtocolAddRootSTLVToBuf [08:40:03]FM_MakeSignedData [08:40:03]FM_MakeSignedData [08:40:03]SAM_PROTO_SignData [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 0D 01 02 [08:40:03]Write to MH i2c: E2 08 00 F5 15 80 0D 01 02 00 00 00 00 83 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 F5 15 00 90 00 7E [08:40:03]RAPDU: 90 00 [08:40:03]wFMCommunicate OK [08:40:03]wFMCommunicate request_size=255 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 66 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [08:40:03]Write to MH i2c: E2 02 01 F6 15 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 66 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 6F [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 F6 15 00 90 00 7F [08:40:03]RAPDU: 90 00 [08:40:03]wFMCommunicate OK [08:40:03]wFMCommunicate request_size=53 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F7 00 00 35 04 06 00 26 CC 31 23 18 45 [08:40:03]Write to MH i2c: E2 38 00 F7 15 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F7 00 00 35 04 06 00 26 CC 31 23 18 45 00 00 61 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]OFD Sender: No OFD packet to send [08:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 03 00 F7 15 00 90 00 80 [08:40:03]RAPDU: 90 00 [08:40:03]wFMCommunicate OK [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 0D 03 02 [08:40:03]Write to MH i2c: E2 08 00 F8 15 80 0D 03 02 00 00 00 00 88 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0B 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 0B 00 F8 15 00 AB AB B4 A6 F9 E5 60 18 90 00 8F [08:40:03]RAPDU: AB AB B4 A6 F9 E5 60 18 90 00 [08:40:03]wFMCommunicate OK [08:40:03]SAM_PROTO_SignData done [08:40:03]FM_MakeSignedData done [08:40:03]CreateOFDProtocolMessage [08:40:03]wFMCommunicate request_size=4 [08:40:03]MH_SAM_APDU [08:40:03]CAPDU: 80 11 00 00 [08:40:03]Write to MH i2c: E2 08 00 F9 15 80 11 00 00 00 00 00 00 88 [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:03]Read from MH i2c: E2 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 17 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: E2 17 00 F9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E1 [08:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:40:03]wFMCommunicate OK [08:40:03]CreateOFDProtocolMessage done [08:40:03]OFDSenderStorePacket 63301 [08:40:03]StoreOFDPacket docnum=63301 [08:40:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 59 FC 32 01 22 85 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 66 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F7 00 00 35 04 06 00 26 CC 31 23 18 45 AB AB B4 A6 F9 E5 60 18 [08:40:03]CheckFolder [08:40:03]dirname=/storage/ofd_packets [08:40:03]CheckFolder done [08:40:03]ProducePacketName [08:40:03]name=ofd_packets/00063301 [08:40:03]NVStorageSaveData ofd_packets/00063301 [08:40:03]File name is /storage/ofd_packets/00063301 [08:40:03]Write 344 bytes [08:40:03]NVStorageSaveData done [08:40:03]OFDSenderStorePacket done [08:40:03]KKMCreateOFDPacket done [08:40:03]NVStorageSaveData kkm_last_timestamp [08:40:03]File name is /storage/kkm_last_timestamp [08:40:03]Write 4 bytes [08:40:03]NVStorageSaveData done [08:40:03]ExternCall_PrintAddStr [08:40:03]wPrintStart [08:40:03]Write to MH i2c: 01 00 00 FA 15 0F [08:40:03]Write i2c OK [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: 01 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: 01 07 00 [08:40:03]MH_I2C_Read... [08:40:03]Read from MH i2c: 01 07 00 FA 15 00 00 00 00 00 FF 0F 24 [08:40:03]RasterBufferAndPrint [08:40:03]line Счет N : (3)47611 [08:40:03]line ИНН: 02508201610067 [08:40:03]line Контрольно-Кассовый Чек [08:40:03]line ПРОДАЖА [08:40:03]line Товар: 4600682557456 [08:40:03]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:40:03]line 1.000 * 69.00 [08:40:03]line = 69.00 [08:40:03]line НДС 12% НСП 1% [08:40:03]line > о реализуемом товаре [08:40:03]line ИТОГО: 69.00 [08:40:03]line НСП 1% : 0.61 [08:40:03]line НДС 12% : 7.33 [08:40:03]line Наличными: 69.00 [08:40:03]line Безнал.: 0.00 [08:40:03]line Место: АЗС № 86 "Партнер Нефть" [08:40:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:40:03]line СНО: Общий режим [08:40:03]line Чек 30 23.10.2024 08:40 [08:40:03]line Смена: 546 ФФД: 1.0 [08:40:03]line ЗНМ: 0300000154 [08:40:03]line РНМ: 0000000000091619 [08:40:03]line Версия ККМ: 001 [08:40:03]line ФМ: 0000000000874676 [08:40:03]line ФД: 63301 [08:40:03]line ФПД: 42658439567429 [08:40:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084006&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63301&fm=42658439567429&tin=02508201610067®Number=0000000000091619&sum=6900 [08:40:04]OFD Sender: Processing packet 63301 [packets to send 232, broken 231] [08:40:04]ProducePacketName [08:40:04]name=ofd_packets/00063301 [08:40:04]OFD Sender: To server: pG, [08:40:04]CommunicateWithHost lk.salyk.kg:30040 [08:40:04]ConnectInit lk.salyk.kg [08:40:04]line 0 [08:40:04]written 0, free lines is 4095 [08:40:04]Connected sock=10 [08:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 59 FC 32 01 22 85 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 66 B6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F7 00 00 35 04 06 00 26 CC 31 23 18 45 AB AB B4 A6 F9 E5 60 18 [08:40:04]Write to MH i2c: 01 00 00 23 16 39 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 07 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 08 0D 55 [08:40:04]RasterBufferAndPrint [08:40:04]line [08:40:04]line [08:40:04]line [08:40:04]line [08:40:04]line [08:40:04]written 0, free lines is 3345 [08:40:04]MH_Cut [08:40:04]Write to MH i2c: D1 01 00 2A 16 01 12 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: D1 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: D1 01 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: D1 01 00 2A 16 00 11 [08:40:04]Write to MH i2c: 01 00 00 2B 16 41 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 5D 40 47 00 DE CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 45 F7 00 00 F4 03 04 00 5E 60 18 67 B6 04 01 00 00 1F 10 48 DF 7A 8C B4 C0 [08:40:04]CommunicateWithHost err = 0 [08:40:04]CheckOFDResponse [08:40:04]1017 (14) - 77093643461234 [08:40:04]1041 (16) - 0000000000874676 [08:40:04]1040 (4) - 63301 [08:40:04]1012 (4) - 23.10.2024 02:33 [08:40:04]1206 (1) - 0 [08:40:04]OFD Sender: Remove packet 63301 [08:40:04]ProducePacketName [08:40:04]name=ofd_packets/00063301 [08:40:04]NVStorageDeleteData [08:40:05]OFD Sender: No OFD packet to send [08:40:05]*** Cut start [08:40:05]*** Partial cut [08:40:05]*** CUTSNS_PIN = 1 [08:40:05]*** CUTSNS_PIN = 0 [08:40:05]*** Brake cut motor [08:40:05]Read from MH i2c: 01 [08:40:05]MH_I2C_Read... [08:40:05]*** Stop cut motor [08:40:05]*** Cut end [08:40:05]Read from MH i2c: 01 07 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: 01 07 00 2B 16 00 00 00 00 00 FF 0F 56 [08:40:05]process_action close_receipt done [08:40:05]requested_data is exist [08:40:05]produce_requested_data [08:40:05]requested_item fm.sn is exist - process it [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 11 00 00 [08:40:05]Write to MH i2c: E2 08 00 2C 16 80 11 00 00 00 00 00 00 BC [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 17 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 17 00 2C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 15 [08:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:40:06]wFMCommunicate OK [08:40:06]requested_item fd.num is exist - process it [08:40:06]SAM_PROTO_GetFieldsCounters [08:40:06]wFMCommunicate request_size=4 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 13 00 00 [08:40:06]Write to MH i2c: E2 08 00 2D 16 80 13 00 00 00 00 00 00 BF [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 62 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 62 00 2D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 45 F7 00 00 0E 04 04 00 22 02 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 A1 [08:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 45 F7 00 00 0E 04 04 00 22 02 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 [08:40:06]wFMCommunicate OK [08:40:06]SAM_PROTO_GetFieldsCounters done [08:40:06]requested_item shift.num is exist - process it [08:40:06]requested_item shift.opened is exist - process it [08:40:06]req_shift_opened [08:40:06]FM_GetShiftState [08:40:06]SAM_PROTO_GetShiftState [08:40:06]wFMCommunicate request_size=4 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 13 01 00 [08:40:06]Write to MH i2c: E2 08 00 2E 16 80 13 01 00 00 00 00 00 C1 [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 0E 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 0E 00 2E 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 AB [08:40:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:40:06]wFMCommunicate OK [08:40:06]SAM_PROTO_GetShiftState done [08:40:06]FM_GetShiftState done [08:40:06]req_shift_opened done [08:40:06]requested_item shift.open_date is exist - process it [08:40:06]req_shift_open_date [08:40:06]req_shift_open_date done [08:40:06]produce_requested_data done [08:40:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63301,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:40:06]process_action_free close_receipt [08:40:06]json_value_free [08:40:06]json_value_free done [08:40:06]process_json_proto returns [08:40:06]Send response to host [08:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63301,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:40:06]free response buf [08:40:06]execute_script done [08:40:06]execute_script returns [08:40:06]free content buf [08:40:06]Sock 9.Close socket [08:40:06]Sock 9.Thread stoped [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:02]accept exits with 7 [08:45:02]New connection [08:45:02]New thread 3066953060 created [08:45:02]Thread 3067096420 joined [08:45:02]Waiting for new connection... [08:45:02] Sock 7.Parse request [08:45:02]Sock 7.Check first char [08:45:02]Sock 7.First char is OK [08:45:02]request: POST /json_proto HTTP/1.0 [08:45:02]Method: POST [08:45:02]URL: /json_proto [08:45:02]Method is POST - this is cgi request [08:45:02]url: /json_proto [08:45:02]query_string will be loaded in cgi processing [08:45:02]execute_cgi json_proto POST (null) [08:45:02]execute_cgi path=json_proto method=POST [08:45:02]POST find Content-Length [08:45:02]Host: 172.17.42.132:8080 [08:45:02]Content-Length: 627 [08:45:02]Content-Type: application/json [08:45:02] [08:45:02]POST finish read [08:45:02]Found Content-Length = 627 [08:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47612", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]execute_script... [08:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47612", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]POST & json_proto [08:45:02]process_json_proto [08:45:02]json parsed OK: [08:45:02]protocol is kg_v1.0 [08:45:02]action value=close_receipt [08:45:02]process_action close_receipt [08:45:02]cmd_close_receipt [08:45:02]MH_GetDate [08:45:02]Write to MH i2c: F0 00 00 2F 16 34 [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 2F 16 00 92 B7 18 67 4C DF 56 66 EC [08:45:02]GetLastDocTimeStamp 1729672806 [08:45:02]current date 1729673106 [08:45:02]FM_GetShiftState [08:45:02]SAM_PROTO_GetShiftState [08:45:02]wFMCommunicate request_size=4 [08:45:02]MH_SAM_APDU [08:45:02]CAPDU: 80 13 01 00 [08:45:02]Write to MH i2c: E2 08 00 30 16 80 13 01 00 00 00 00 00 C3 [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:02]Read from MH i2c: E2 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 30 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 AD [08:45:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:45:02]wFMCommunicate OK [08:45:02]SAM_PROTO_GetShiftState done [08:45:02]FM_GetShiftState done [08:45:02]opened in 1729642527 [08:45:02]opened+sec_in_day 1729728927 [08:45:02]quantity*price = 13000 [08:45:02]sum+1 = 13001 [08:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 31 23.10.2024 08:45 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63302 ФПД: 252597577811043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084506&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63302&fm=252597577811043&tin=02508201610067®Number=0000000000091619&sum=13000 0 [08:45:03]StoreToDocumentArchive [08:45:03]shift 546 fd 63302 [08:45:03]save to /storage/0546/doc_00063302 [08:45:03]save last doc name /storage/0546/doc_00063302 to /storage/kkm_last_doc_name [08:45:03]save OK [08:45:03]Clear old archive folders... [08:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:45:03]tlvbuf is 008B9AA0 [08:45:03]SAM_PROTO_ClearQueue [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 09 00 00 [08:45:03]Write to MH i2c: E2 08 00 3D 16 80 09 00 00 00 00 00 00 C5 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_ClearQueue done [08:45:03]KKMCreateOFDPacket [08:45:03]OFDProtocolAddRootSTLVToBuf [08:45:03]FM_MakeSignedData [08:45:03]FM_MakeSignedData [08:45:03]SAM_PROTO_SignData [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 01 02 [08:45:03]Write to MH i2c: E2 08 00 3E 16 80 0D 01 02 00 00 00 00 CD [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 3E 16 00 90 00 C8 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=255 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 92 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [08:45:03]Write to MH i2c: E2 02 01 3F 16 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 92 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 00 00 F4 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 3F 16 00 90 00 C9 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=35 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F7 00 00 35 04 06 00 E5 BC 74 E5 84 63 [08:45:03]Write to MH i2c: E2 26 00 40 16 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F7 00 00 35 04 06 00 E5 BC 74 E5 84 63 00 00 E7 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 40 16 00 90 00 CA [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 03 02 [08:45:03]Write to MH i2c: E2 08 00 41 16 80 0D 03 02 00 00 00 00 D2 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0B 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0B 00 41 16 00 B2 52 22 CE 96 F9 9B DF 90 00 D0 [08:45:03]RAPDU: B2 52 22 CE 96 F9 9B DF 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_SignData done [08:45:03]FM_MakeSignedData done [08:45:03]CreateOFDProtocolMessage [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 11 00 00 [08:45:03]Write to MH i2c: E2 08 00 42 16 80 11 00 00 00 00 00 00 D2 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 17 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 17 00 42 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2B [08:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:45:03]wFMCommunicate OK [08:45:03]CreateOFDProtocolMessage done [08:45:03]OFDSenderStorePacket 63302 [08:45:03]StoreOFDPacket docnum=63302 [08:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 DB 05 20 01 6D 5B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 92 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F7 00 00 35 04 06 00 E5 BC 74 E5 84 63 B2 52 22 CE 96 F9 9B DF [08:45:03]CheckFolder [08:45:03]dirname=/storage/ofd_packets [08:45:03]CheckFolder done [08:45:03]ProducePacketName [08:45:03]name=ofd_packets/00063302 [08:45:03]NVStorageSaveData ofd_packets/00063302 [08:45:03]File name is /storage/ofd_packets/00063302 [08:45:03]Write 326 bytes [08:45:03]NVStorageSaveData done [08:45:03]OFDSenderStorePacket done [08:45:03]KKMCreateOFDPacket done [08:45:03]NVStorageSaveData kkm_last_timestamp [08:45:03]File name is /storage/kkm_last_timestamp [08:45:03]Write 4 bytes [08:45:03]NVStorageSaveData done [08:45:03]ExternCall_PrintAddStr [08:45:03]wPrintStart [08:45:03]Write to MH i2c: 01 00 00 43 16 59 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 43 16 00 00 00 00 00 FF 0F 6E [08:45:03]RasterBufferAndPrint [08:45:03]line Счет N : (3)47612 [08:45:03]line ИНН: 02508201610067 [08:45:03]line Контрольно-Кассовый Чек [08:45:03]line ПРОДАЖА [08:45:03]line Товар: 2000036230011 [08:45:03]line Кофе Латте XL(GABB TRADE) [08:45:03]line 1.000 * 130.00 [08:45:03]line = 130.00 [08:45:03]line НДС 12% НСП 1% [08:45:03]line > о реализуемом товаре [08:45:03]line ИТОГО: 130.00 [08:45:03]line НСП 1% : 1.15 [08:45:03]line НДС 12% : 13.80 [08:45:03]line Наличными: 130.00 [08:45:03]line Безнал.: 0.00 [08:45:03]line Место: АЗС № 86 "Партнер Нефть" [08:45:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:45:03]line СНО: Общий режим [08:45:03]line Чек 31 23.10.2024 08:45 [08:45:03]line Смена: 546 ФФД: 1.0 [08:45:03]line ЗНМ: 0300000154 [08:45:03]line РНМ: 0000000000091619 [08:45:03]line Версия ККМ: 001 [08:45:03]line ФМ: 0000000000874676 [08:45:03]line ФД: 63302 [08:45:03]line ФПД: 252597577811043 [08:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084506&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63302&fm=252597577811043&tin=02508201610067®Number=0000000000091619&sum=13000 [08:45:04]OFD Sender: Processing packet 63302 [packets to send 232, broken 231] [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00063302 [08:45:04]OFD Sender: To server: pG, [08:45:04]CommunicateWithHost lk.salyk.kg:30040 [08:45:04]ConnectInit lk.salyk.kg [08:45:04]line 0 [08:45:04]written 0, free lines is 4095 [08:45:04]Connected sock=10 [08:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 DB 05 20 01 6D 5B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 92 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 46 F7 00 00 35 04 06 00 E5 BC 74 E5 84 63 B2 52 22 CE 96 F9 9B DF [08:45:04]Write to MH i2c: 01 00 00 6B 16 81 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 17 0D AC [08:45:04]RasterBufferAndPrint [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]written 0, free lines is 3360 [08:45:04]MH_Cut [08:45:04]Write to MH i2c: D1 01 00 72 16 01 5A [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 01 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: D1 01 00 72 16 00 59 [08:45:04]Write to MH i2c: 01 00 00 73 16 89 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 67 80 47 00 8C 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 38 37 34 36 37 36 10 04 04 00 46 F7 00 00 F4 03 04 00 8A 61 18 67 B6 04 01 00 00 09 09 CA AF 82 FE C0 F9 [08:45:04]CommunicateWithHost err = 0 [08:45:04]CheckOFDResponse [08:45:04]1017 (14) - 77093643461234 [08:45:04]1041 (16) - 0000000000874676 [08:45:04]1040 (4) - 63302 [08:45:04]1012 (4) - 23.10.2024 02:38 [08:45:04]1206 (1) - 0 [08:45:04]OFD Sender: Remove packet 63302 [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00063302 [08:45:04]NVStorageDeleteData [08:45:05]OFD Sender: No OFD packet to send [08:45:05]*** Cut start [08:45:05]*** Partial cut [08:45:05]*** CUTSNS_PIN = 1 [08:45:05]*** CUTSNS_PIN = 0 [08:45:05]*** Brake cut motor [08:45:05]Read from MH i2c: 01 [08:45:05]MH_I2C_Read... [08:45:05]*** Stop cut motor [08:45:05]*** Cut end [08:45:05]Read from MH i2c: 01 07 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 FF 0F 9E [08:45:05]process_action close_receipt done [08:45:05]requested_data is exist [08:45:05]produce_requested_data [08:45:05]requested_item fm.sn is exist - process it [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 11 00 00 [08:45:05]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5D [08:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:45:06]wFMCommunicate OK [08:45:06]requested_item fd.num is exist - process it [08:45:06]SAM_PROTO_GetFieldsCounters [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 13 00 00 [08:45:06]Write to MH i2c: E2 08 00 75 16 80 13 00 00 00 00 00 00 07 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 62 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 62 00 75 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 46 F7 00 00 0E 04 04 00 22 02 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 ED [08:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 46 F7 00 00 0E 04 04 00 22 02 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 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_GetFieldsCounters done [08:45:06]requested_item shift.num is exist - process it [08:45:06]requested_item shift.opened is exist - process it [08:45:06]req_shift_opened [08:45:06]FM_GetShiftState [08:45:06]SAM_PROTO_GetShiftState [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 13 01 00 [08:45:06]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0E 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F3 [08:45:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_GetShiftState done [08:45:06]FM_GetShiftState done [08:45:06]req_shift_opened done [08:45:06]requested_item shift.open_date is exist - process it [08:45:06]req_shift_open_date [08:45:06]req_shift_open_date done [08:45:06]produce_requested_data done [08:45:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63302,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:45:06]process_action_free close_receipt [08:45:06]json_value_free [08:45:06]json_value_free done [08:45:06]process_json_proto returns [08:45:06]Send response to host [08:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63302,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:45:06]free response buf [08:45:06]execute_script done [08:45:06]execute_script returns [08:45:06]free content buf [08:45:06]Sock 7.Close socket [08:45:06]Sock 7.Thread stoped [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:20]OFD Sender: No OFD packet to send [08:45:25]OFD Sender: No OFD packet to send [08:45:30]OFD Sender: No OFD packet to send [08:45:35]OFD Sender: No OFD packet to send [08:45:40]OFD Sender: No OFD packet to send [08:45:45]OFD Sender: No OFD packet to send [08:45:50]OFD Sender: No OFD packet to send [08:45:55]OFD Sender: No OFD packet to send [08:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:08]accept exits with 9 [08:46:08]New connection [08:46:08]New thread 3067096420 created [08:46:08]Thread 3066953060 joined [08:46:08]Waiting for new connection... [08:46:08] Sock 9.Parse request [08:46:08]Sock 9.Check first char [08:46:08]Sock 9.First char is OK [08:46:08]request: POST /json_proto HTTP/1.0 [08:46:08]Method: POST [08:46:08]URL: /json_proto [08:46:08]Method is POST - this is cgi request [08:46:08]url: /json_proto [08:46:08]query_string will be loaded in cgi processing [08:46:08]execute_cgi json_proto POST (null) [08:46:08]execute_cgi path=json_proto method=POST [08:46:08]POST find Content-Length [08:46:08]Host: 172.17.42.132:8080 [08:46:08]Content-Length: 622 [08:46:08]Content-Type: application/json [08:46:08] [08:46:08]POST finish read [08:46:08]Found Content-Length = 622 [08:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47613", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:08]execute_script... [08:46: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 : (3)47613", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:08]POST & json_proto [08:46:08]process_json_proto [08:46:08]json parsed OK: [08:46:08]protocol is kg_v1.0 [08:46:08]action value=close_receipt [08:46:08]process_action close_receipt [08:46:08]cmd_close_receipt [08:46:08]MH_GetDate [08:46:08]Write to MH i2c: F0 00 00 77 16 7C [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 09 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: F0 09 00 77 16 00 D4 B7 18 67 4C DF 56 66 76 [08:46:08]GetLastDocTimeStamp 1729673106 [08:46:08]current date 1729673172 [08:46:08]FM_GetShiftState [08:46:08]SAM_PROTO_GetShiftState [08:46:08]wFMCommunicate request_size=4 [08:46:08]MH_SAM_APDU [08:46:08]CAPDU: 80 13 01 00 [08:46:08]Write to MH i2c: E2 08 00 78 16 80 13 01 00 00 00 00 00 0B [08:46:08]Write i2c OK [08:46:08]MH_I2C_Read... [08:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:08]Read from MH i2c: E2 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0E 00 [08:46:08]MH_I2C_Read... [08:46:08]Read from MH i2c: E2 0E 00 78 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F5 [08:46:08]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:46:08]wFMCommunicate OK [08:46:08]SAM_PROTO_GetShiftState done [08:46:08]FM_GetShiftState done [08:46:08]opened in 1729642527 [08:46:08]opened+sec_in_day 1729728927 [08:46:08]quantity*price = 14400 [08:46:08]sum+1 = 14401 [08:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 32 23.10.2024 08:46 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63303 ФПД: 205218082295463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084612&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63303&fm=205218082295463&tin=02508201610067®Number=0000000000091619&sum=14400 0 [08:46:09]StoreToDocumentArchive [08:46:09]shift 546 fd 63303 [08:46:09]save to /storage/0546/doc_00063303 [08:46:09]save last doc name /storage/0546/doc_00063303 to /storage/kkm_last_doc_name [08:46:09]save OK [08:46:09]Clear old archive folders... [08:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:46:09]tlvbuf is 0087A250 [08:46:09]SAM_PROTO_ClearQueue [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 09 00 00 [08:46:09]Write to MH i2c: E2 08 00 85 16 80 09 00 00 00 00 00 00 0D [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_ClearQueue done [08:46:09]KKMCreateOFDPacket [08:46:09]OFDProtocolAddRootSTLVToBuf [08:46:09]FM_MakeSignedData [08:46:09]FM_MakeSignedData [08:46:09]SAM_PROTO_SignData [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 01 02 [08:46:09]Write to MH i2c: E2 08 00 86 16 80 0D 01 02 00 00 00 00 15 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=255 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D4 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [08:46:09]Write to MH i2c: E2 02 01 87 16 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D4 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 69 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=34 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F7 00 00 35 04 06 00 BA A5 0E E5 8E A7 [08:46:09]Write to MH i2c: E2 25 00 88 16 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F7 00 00 35 04 06 00 BA A5 0E E5 8E A7 00 00 A4 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [08:46:09]RAPDU: 90 00 [08:46:09]wFMCommunicate OK [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 0D 03 02 [08:46:09]Write to MH i2c: E2 08 00 89 16 80 0D 03 02 00 00 00 00 1A [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 0B 00 89 16 00 1A 7A CB 14 DF 18 FE FD 90 00 80 [08:46:09]RAPDU: 1A 7A CB 14 DF 18 FE FD 90 00 [08:46:09]wFMCommunicate OK [08:46:09]SAM_PROTO_SignData done [08:46:09]FM_MakeSignedData done [08:46:09]CreateOFDProtocolMessage [08:46:09]wFMCommunicate request_size=4 [08:46:09]MH_SAM_APDU [08:46:09]CAPDU: 80 11 00 00 [08:46:09]Write to MH i2c: E2 08 00 8A 16 80 11 00 00 00 00 00 00 1A [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:09]Read from MH i2c: E2 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: E2 17 00 8A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [08:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:46:09]wFMCommunicate OK [08:46:09]CreateOFDProtocolMessage done [08:46:09]OFDSenderStorePacket 63303 [08:46:09]StoreOFDPacket docnum=63303 [08:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 89 97 1F 01 7D 89 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D4 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F7 00 00 35 04 06 00 BA A5 0E E5 8E A7 1A 7A CB 14 DF 18 FE FD [08:46:09]CheckFolder [08:46:09]dirname=/storage/ofd_packets [08:46:09]CheckFolder done [08:46:09]ProducePacketName [08:46:09]name=ofd_packets/00063303 [08:46:09]NVStorageSaveData ofd_packets/00063303 [08:46:09]File name is /storage/ofd_packets/00063303 [08:46:09]Write 325 bytes [08:46:09]NVStorageSaveData done [08:46:09]OFDSenderStorePacket done [08:46:09]KKMCreateOFDPacket done [08:46:09]NVStorageSaveData kkm_last_timestamp [08:46:09]File name is /storage/kkm_last_timestamp [08:46:09]Write 4 bytes [08:46:09]NVStorageSaveData done [08:46:09]ExternCall_PrintAddStr [08:46:09]wPrintStart [08:46:09]Write to MH i2c: 01 00 00 8B 16 A1 [08:46:09]Write i2c OK [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 [08:46:09]MH_I2C_Read... [08:46:09]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [08:46:09]RasterBufferAndPrint [08:46:09]line Счет N : (3)47613 [08:46:09]line ИНН: 02508201610067 [08:46:09]line Контрольно-Кассовый Чек [08:46:09]line ПРОДАЖА [08:46:09]line Товар: 48743587 [08:46:09]line Сигареты Winston XStyle Silver [08:46:09]line 1.000 * 144.00 [08:46:09]line = 144.00 [08:46:09]line НДС 12% НСП 1% [08:46:09]line > о реализуемом товаре [08:46:09]line ИТОГО: 144.00 [08:46:09]line НСП 1% : 1.27 [08:46:09]line НДС 12% : 15.29 [08:46:09]line Наличными: 144.00 [08:46:09]line Безнал.: 0.00 [08:46:09]line Место: АЗС № 86 "Партнер Нефть" [08:46:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:46:09]line СНО: Общий режим [08:46:09]line Чек 32 23.10.2024 08:46 [08:46:09]line Смена: 546 ФФД: 1.0 [08:46:09]line ЗНМ: 0300000154 [08:46:09]line РНМ: 0000000000091619 [08:46:09]line Версия ККМ: 001 [08:46:09]line ФМ: 0000000000874676 [08:46:09]line ФД: 63303 [08:46:09]line ФПД: 205218082295463 [08:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084612&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63303&fm=205218082295463&tin=02508201610067®Number=0000000000091619&sum=14400 [08:46:10]OFD Sender: Processing packet 63303 [packets to send 232, broken 231] [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00063303 [08:46:10]OFD Sender: To server: pG, [08:46:10]CommunicateWithHost lk.salyk.kg:30040 [08:46:10]ConnectInit lk.salyk.kg [08:46:10]line 0 [08:46:10]written 0, free lines is 4095 [08:46:10]Connected sock=10 [08:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 89 97 1F 01 7D 89 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 D4 B7 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F7 00 00 35 04 06 00 BA A5 0E E5 8E A7 1A 7A CB 14 DF 18 FE FD [08:46:10]Write to MH i2c: 01 00 00 B4 16 CA [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: 01 07 00 B4 16 00 00 00 00 00 0B 0D E9 [08:46:10]RasterBufferAndPrint [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]line [08:46:10]written 0, free lines is 3348 [08:46:10]MH_Cut [08:46:10]Write to MH i2c: D1 01 00 BB 16 01 A3 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 [08:46:10]MH_I2C_Read... [08:46:10]Read from MH i2c: D1 01 00 BB 16 00 A2 [08:46:10]Write to MH i2c: 01 00 00 BC 16 D2 [08:46:10]Write i2c OK [08:46:10]MH_I2C_Read... [08:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8F 07 47 00 DB 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 47 F7 00 00 F4 03 04 00 CC 61 18 67 B6 04 01 00 00 CE 8A 81 C4 65 FE CC 15 [08:46:10]CommunicateWithHost err = 0 [08:46:10]CheckOFDResponse [08:46:10]1017 (14) - 77093643461234 [08:46:10]1041 (16) - 0000000000874676 [08:46:10]1040 (4) - 63303 [08:46:10]1012 (4) - 23.10.2024 02:39 [08:46:10]1206 (1) - 0 [08:46:10]OFD Sender: Remove packet 63303 [08:46:10]ProducePacketName [08:46:10]name=ofd_packets/00063303 [08:46:10]NVStorageDeleteData [08:46:11]OFD Sender: No OFD packet to send [08:46:11]*** Cut start [08:46:11]*** Partial cut [08:46:11]*** CUTSNS_PIN = 1 [08:46:11]*** CUTSNS_PIN = 0 [08:46:11]*** Brake cut motor [08:46:11]Read from MH i2c: 01 [08:46:11]MH_I2C_Read... [08:46:11]*** Stop cut motor [08:46:11]*** Cut end [08:46:11]Read from MH i2c: 01 07 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: 01 07 00 BC 16 00 00 00 00 00 FF 0F E7 [08:46:11]process_action close_receipt done [08:46:11]requested_data is exist [08:46:11]produce_requested_data [08:46:11]requested_item fm.sn is exist - process it [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 11 00 00 [08:46:11]Write to MH i2c: E2 08 00 BD 16 80 11 00 00 00 00 00 00 4D [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:11]Read from MH i2c: E2 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 17 00 [08:46:11]MH_I2C_Read... [08:46:11]Read from MH i2c: E2 17 00 BD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A6 [08:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:46:11]wFMCommunicate OK [08:46:11]requested_item fd.num is exist - process it [08:46:11]SAM_PROTO_GetFieldsCounters [08:46:11]wFMCommunicate request_size=4 [08:46:11]MH_SAM_APDU [08:46:11]CAPDU: 80 13 00 00 [08:46:11]Write to MH i2c: E2 08 00 BE 16 80 13 00 00 00 00 00 00 50 [08:46:11]Write i2c OK [08:46:11]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 62 00 BE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 47 F7 00 00 0E 04 04 00 22 02 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 3A [08:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 47 F7 00 00 0E 04 04 00 22 02 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:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetFieldsCounters done [08:46:12]requested_item shift.num is exist - process it [08:46:12]requested_item shift.opened is exist - process it [08:46:12]req_shift_opened [08:46:12]FM_GetShiftState [08:46:12]SAM_PROTO_GetShiftState [08:46:12]wFMCommunicate request_size=4 [08:46:12]MH_SAM_APDU [08:46:12]CAPDU: 80 13 01 00 [08:46:12]Write to MH i2c: E2 08 00 BF 16 80 13 01 00 00 00 00 00 52 [08:46:12]Write i2c OK [08:46:12]MH_I2C_Read... [08:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:12]Read from MH i2c: E2 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 [08:46:12]MH_I2C_Read... [08:46:12]Read from MH i2c: E2 0E 00 BF 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3C [08:46:12]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:46:12]wFMCommunicate OK [08:46:12]SAM_PROTO_GetShiftState done [08:46:12]FM_GetShiftState done [08:46:12]req_shift_opened done [08:46:12]requested_item shift.open_date is exist - process it [08:46:12]req_shift_open_date [08:46:12]req_shift_open_date done [08:46:12]produce_requested_data done [08:46:12]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63303,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:46:12]process_action_free close_receipt [08:46:12]json_value_free [08:46:12]json_value_free done [08:46:12]process_json_proto returns [08:46:12]Send response to host [08:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63303,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:46:12]free response buf [08:46:12]execute_script done [08:46:12]execute_script returns [08:46:12]free content buf [08:46:12]Sock 9.Close socket [08:46:12]Sock 9.Thread stoped [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:48]accept exits with 7 [08:48:48]New connection [08:48:48]New thread 3066953060 created [08:48:48]Thread 3067096420 joined [08:48:48]Waiting for new connection... [08:48:48] Sock 7.Parse request [08:48:48]Sock 7.Check first char [08:48:48]Sock 7.First char is OK [08:48:48]request: POST /json_proto HTTP/1.0 [08:48:48]Method: POST [08:48:48]URL: /json_proto [08:48:48]Method is POST - this is cgi request [08:48:48]url: /json_proto [08:48:48]query_string will be loaded in cgi processing [08:48:48]execute_cgi json_proto POST (null) [08:48:48]execute_cgi path=json_proto method=POST [08:48:48]POST find Content-Length [08:48:48]Host: 172.17.42.132:8080 [08:48:48]Content-Length: 645 [08:48:48]Content-Type: application/json [08:48:48] [08:48:48]POST finish read [08:48:48]Found Content-Length = 645 [08:48:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47614", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:48]execute_script... [08:48:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47614", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:48]POST & json_proto [08:48:48]process_json_proto [08:48:48]json parsed OK: [08:48:48]protocol is kg_v1.0 [08:48:48]action value=close_receipt [08:48:48]process_action close_receipt [08:48:48]cmd_close_receipt [08:48:48]MH_GetDate [08:48:48]Write to MH i2c: F0 00 00 C0 16 C5 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: F0 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: F0 09 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: F0 09 00 C0 16 00 74 B8 18 67 4C DF 56 66 60 [08:48:48]GetLastDocTimeStamp 1729673172 [08:48:48]current date 1729673332 [08:48:48]FM_GetShiftState [08:48:48]SAM_PROTO_GetShiftState [08:48:48]wFMCommunicate request_size=4 [08:48:48]MH_SAM_APDU [08:48:48]CAPDU: 80 13 01 00 [08:48:48]Write to MH i2c: E2 08 00 C1 16 80 13 01 00 00 00 00 00 54 [08:48:48]Write i2c OK [08:48:48]MH_I2C_Read... [08:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:48]Read from MH i2c: E2 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0E 00 [08:48:48]MH_I2C_Read... [08:48:48]Read from MH i2c: E2 0E 00 C1 16 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3E [08:48:48]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:48:48]wFMCommunicate OK [08:48:48]SAM_PROTO_GetShiftState done [08:48:48]FM_GetShiftState done [08:48:48]opened in 1729642527 [08:48:48]opened+sec_in_day 1729728927 [08:48:48]quantity*price = 13000 [08:48:48]sum+1 = 13001 [08:48:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 33 23.10.2024 08:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63304 ФПД: 73955164405755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084852&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63304&fm=73955164405755&tin=02508201610067®Number=0000000000091619&sum=13000 0 [08:48:49]StoreToDocumentArchive [08:48:49]shift 546 fd 63304 [08:48:49]save to /storage/0546/doc_00063304 [08:48:49]save last doc name /storage/0546/doc_00063304 to /storage/kkm_last_doc_name [08:48:49]save OK [08:48:49]Clear old archive folders... [08:48:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:48:49]tlvbuf is 008FFBE0 [08:48:49]SAM_PROTO_ClearQueue [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 09 00 00 [08:48:49]Write to MH i2c: E2 08 00 CE 16 80 09 00 00 00 00 00 00 56 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]SAM_PROTO_ClearQueue done [08:48:49]KKMCreateOFDPacket [08:48:49]OFDProtocolAddRootSTLVToBuf [08:48:49]FM_MakeSignedData [08:48:49]FM_MakeSignedData [08:48:49]SAM_PROTO_SignData [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 01 02 [08:48:49]Write to MH i2c: E2 08 00 CF 16 80 0D 01 02 00 00 00 00 5E [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 CF 16 00 90 00 59 [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=255 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 74 B8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [08:48:49]Write to MH i2c: E2 02 01 D0 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 74 B8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 5E [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 D0 16 00 90 00 5A [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=41 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F7 00 00 35 04 06 00 43 43 07 4D BF FB [08:48:49]Write to MH i2c: E2 2C 00 D1 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F7 00 00 35 04 06 00 43 43 07 4D BF FB 00 00 09 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 03 00 D1 16 00 90 00 5B [08:48:49]RAPDU: 90 00 [08:48:49]wFMCommunicate OK [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 0D 03 02 [08:48:49]Write to MH i2c: E2 08 00 D2 16 80 0D 03 02 00 00 00 00 63 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 0B 00 D2 16 00 51 E1 11 F3 AA 2C 02 3B 90 00 AD [08:48:49]RAPDU: 51 E1 11 F3 AA 2C 02 3B 90 00 [08:48:49]wFMCommunicate OK [08:48:49]SAM_PROTO_SignData done [08:48:49]FM_MakeSignedData done [08:48:49]CreateOFDProtocolMessage [08:48:49]wFMCommunicate request_size=4 [08:48:49]MH_SAM_APDU [08:48:49]CAPDU: 80 11 00 00 [08:48:49]Write to MH i2c: E2 08 00 D3 16 80 11 00 00 00 00 00 00 63 [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:49]Read from MH i2c: E2 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: E2 17 00 D3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BC [08:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:48:49]wFMCommunicate OK [08:48:49]CreateOFDProtocolMessage done [08:48:49]OFDSenderStorePacket 63304 [08:48:49]StoreOFDPacket docnum=63304 [08:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 81 93 26 01 DB 81 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 74 B8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F7 00 00 35 04 06 00 43 43 07 4D BF FB 51 E1 11 F3 AA 2C 02 3B [08:48:49]CheckFolder [08:48:49]dirname=/storage/ofd_packets [08:48:49]CheckFolder done [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00063304 [08:48:49]NVStorageSaveData ofd_packets/00063304 [08:48:49]File name is /storage/ofd_packets/00063304 [08:48:49]Write 332 bytes [08:48:49]NVStorageSaveData done [08:48:49]OFDSenderStorePacket done [08:48:49]KKMCreateOFDPacket done [08:48:49]NVStorageSaveData kkm_last_timestamp [08:48:49]File name is /storage/kkm_last_timestamp [08:48:49]Write 4 bytes [08:48:49]NVStorageSaveData done [08:48:49]ExternCall_PrintAddStr [08:48:49]wPrintStart [08:48:49]Write to MH i2c: 01 00 00 D4 16 EA [08:48:49]Write i2c OK [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 [08:48:49]MH_I2C_Read... [08:48:49]Read from MH i2c: 01 07 00 D4 16 00 00 00 00 00 FF 0F FF [08:48:49]RasterBufferAndPrint [08:48:49]line Счет N : (3)47614 [08:48:49]line ИНН: 02508201610067 [08:48:49]line Контрольно-Кассовый Чек [08:48:49]line ПРОДАЖА [08:48:49]line Товар: 2000036220012 [08:48:49]line Кофе Капучино XL(GABB TRADE) [08:48:49]line 1.000 * 130.00 [08:48:49]line = 130.00 [08:48:49]line НДС 12% НСП 1% [08:48:49]line > о реализуемом товаре [08:48:49]line ИТОГО: 130.00 [08:48:49]line НСП 1% : 1.15 [08:48:49]line НДС 12% : 13.80 [08:48:49]line Наличными: 130.00 [08:48:49]line Безнал.: 0.00 [08:48:49]line Место: АЗС № 86 "Партнер Нефть" [08:48:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:48:49]line СНО: Общий режим [08:48:49]line Чек 33 23.10.2024 08:48 [08:48:49]line Смена: 546 ФФД: 1.0 [08:48:49]line ЗНМ: 0300000154 [08:48:49]line РНМ: 0000000000091619 [08:48:49]line Версия ККМ: 001 [08:48:49]line ФМ: 0000000000874676 [08:48:49]line ФД: 63304 [08:48:49]line ФПД: 73955164405755 [08:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T084852&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63304&fm=73955164405755&tin=02508201610067®Number=0000000000091619&sum=13000 [08:48:49]line 0 [08:48:49]written 0, free lines is 4095 [08:48:49]OFD Sender: Processing packet 63304 [packets to send 232, broken 231] [08:48:49]ProducePacketName [08:48:49]name=ofd_packets/00063304 [08:48:49]OFD Sender: To server: pG, [08:48:49]CommunicateWithHost lk.salyk.kg:30040 [08:48:49]ConnectInit lk.salyk.kg [08:48:50]Connected sock=10 [08:48:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 81 93 26 01 DB 81 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 74 B8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F7 00 00 35 04 06 00 43 43 07 4D BF FB 51 E1 11 F3 AA 2C 02 3B [08:48:50]Write to MH i2c: 01 00 00 FD 16 13 [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: 01 07 00 FD 16 00 00 00 00 00 FD 0C 23 [08:48:50]RasterBufferAndPrint [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]line [08:48:50]written 0, free lines is 3331 [08:48:50]MH_Cut [08:48:50]Write to MH i2c: D1 01 00 04 17 01 ED [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 [08:48:50]MH_I2C_Read... [08:48:50]Read from MH i2c: D1 01 00 04 17 00 EC [08:48:50]Write to MH i2c: 01 00 00 05 17 1C [08:48:50]Write i2c OK [08:48:50]MH_I2C_Read... [08:48:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 72 2E 47 00 60 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 48 F7 00 00 F4 03 04 00 6C 62 18 67 B6 04 01 00 00 DE 6E 40 63 69 F3 AE 94 [08:48:50]CommunicateWithHost err = 0 [08:48:50]CheckOFDResponse [08:48:50]1017 (14) - 77093643461234 [08:48:50]1041 (16) - 0000000000874676 [08:48:50]1040 (4) - 63304 [08:48:50]1012 (4) - 23.10.2024 02:41 [08:48:50]1206 (1) - 0 [08:48:50]OFD Sender: Remove packet 63304 [08:48:50]ProducePacketName [08:48:50]name=ofd_packets/00063304 [08:48:50]NVStorageDeleteData [08:48:50]OFD Sender: No OFD packet to send [08:48:50]*** Cut start [08:48:50]*** Partial cut [08:48:50]*** CUTSNS_PIN = 1 [08:48:50]*** CUTSNS_PIN = 0 [08:48:51]*** Brake cut motor [08:48:51]Read from MH i2c: 01 [08:48:51]MH_I2C_Read... [08:48:51]*** Stop cut motor [08:48:51]*** Cut end [08:48:51]Read from MH i2c: 01 07 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: 01 07 00 05 17 00 00 00 00 00 FF 0F 31 [08:48:51]process_action close_receipt done [08:48:51]requested_data is exist [08:48:51]produce_requested_data [08:48:51]requested_item fm.sn is exist - process it [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 11 00 00 [08:48:51]Write to MH i2c: E2 08 00 06 17 80 11 00 00 00 00 00 00 97 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 17 00 06 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F0 [08:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:48:51]wFMCommunicate OK [08:48:51]requested_item fd.num is exist - process it [08:48:51]SAM_PROTO_GetFieldsCounters [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 00 00 [08:48:51]Write to MH i2c: E2 08 00 07 17 80 13 00 00 00 00 00 00 9A [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 62 00 07 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 48 F7 00 00 0E 04 04 00 22 02 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 88 [08:48:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 48 F7 00 00 0E 04 04 00 22 02 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 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetFieldsCounters done [08:48:51]requested_item shift.num is exist - process it [08:48:51]requested_item shift.opened is exist - process it [08:48:51]req_shift_opened [08:48:51]FM_GetShiftState [08:48:51]SAM_PROTO_GetShiftState [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 01 00 [08:48:51]Write to MH i2c: E2 08 00 08 17 80 13 01 00 00 00 00 00 9C [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 08 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 86 [08:48:51]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetShiftState done [08:48:51]FM_GetShiftState done [08:48:51]req_shift_opened done [08:48:51]requested_item shift.open_date is exist - process it [08:48:51]req_shift_open_date [08:48:51]req_shift_open_date done [08:48:51]produce_requested_data done [08:48:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63304,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:48:51]process_action_free close_receipt [08:48:51]json_value_free [08:48:51]json_value_free done [08:48:51]process_json_proto returns [08:48:51]Send response to host [08:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63304,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:48:51]free response buf [08:48:51]execute_script done [08:48:51]execute_script returns [08:48:51]free content buf [08:48:51]Sock 7.Close socket [08:48:51]Sock 7.Thread stoped [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:06]accept exits with 9 [08:52:06]New connection [08:52:06]New thread 3067096420 created [08:52:06]Thread 3066953060 joined [08:52:06]Waiting for new connection... [08:52:06] Sock 9.Parse request [08:52:06]Sock 9.Check first char [08:52:06]Sock 9.First char is OK [08:52:06]request: POST /json_proto HTTP/1.0 [08:52:06]Method: POST [08:52:06]URL: /json_proto [08:52:06]Method is POST - this is cgi request [08:52:06]url: /json_proto [08:52:06]query_string will be loaded in cgi processing [08:52:06]execute_cgi json_proto POST (null) [08:52:06]execute_cgi path=json_proto method=POST [08:52:06]POST find Content-Length [08:52:06]Host: 172.17.42.132:8080 [08:52:06]Content-Length: 1089 [08:52:06]Content-Type: application/json [08:52:06] [08:52:06]POST finish read [08:52:06]Found Content-Length = 1089 [08:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47615", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:06]execute_script... [08:52:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47615", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 98.12, "quantity" : 1.000, "sum" : 98.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 240.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:06]POST & json_proto [08:52:06]process_json_proto [08:52:06]json parsed OK: [08:52:06]protocol is kg_v1.0 [08:52:06]action value=close_receipt [08:52:06]process_action close_receipt [08:52:06]cmd_close_receipt [08:52:06]MH_GetDate [08:52:06]Write to MH i2c: F0 00 00 09 17 0F [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: F0 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: F0 09 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: F0 09 00 09 17 00 3A B9 18 67 4C DF 56 66 71 [08:52:06]GetLastDocTimeStamp 1729673332 [08:52:06]current date 1729673530 [08:52:06]FM_GetShiftState [08:52:06]SAM_PROTO_GetShiftState [08:52:06]wFMCommunicate request_size=4 [08:52:06]MH_SAM_APDU [08:52:06]CAPDU: 80 13 01 00 [08:52:06]Write to MH i2c: E2 08 00 0A 17 80 13 01 00 00 00 00 00 9E [08:52:06]Write i2c OK [08:52:06]MH_I2C_Read... [08:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:06]Read from MH i2c: E2 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 0E 00 [08:52:06]MH_I2C_Read... [08:52:06]Read from MH i2c: E2 0E 00 0A 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 88 [08:52:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:52:06]wFMCommunicate OK [08:52:06]SAM_PROTO_GetShiftState done [08:52:06]FM_GetShiftState done [08:52:06]opened in 1729642527 [08:52:06]opened+sec_in_day 1729728927 [08:52:06]quantity*price = 9812 [08:52:06]sum+1 = 9813 [08:52:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 142.73 = 142.73 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.85 НСП 1% : 2.13 НДС 12% : 25.58 Наличными: 0.00 Безнал.: 240.85 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 34 23.10.2024 08:52 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63305 ФПД: 47449282215282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085210&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63305&fm=47449282215282&tin=02508201610067®Number=0000000000091619&sum=24085 0 [08:52:07]StoreToDocumentArchive [08:52:07]shift 546 fd 63305 [08:52:07]save to /storage/0546/doc_00063305 [08:52:07]save last doc name /storage/0546/doc_00063305 to /storage/kkm_last_doc_name [08:52:07]save OK [08:52:07]Clear old archive folders... [08:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=397 [08:52:07]tlvbuf is B6EE4220 [08:52:07]SAM_PROTO_ClearQueue [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 09 00 00 [08:52:07]Write to MH i2c: E2 08 00 17 17 80 09 00 00 00 00 00 00 A0 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [08:52:07]RAPDU: 90 00 [08:52:07]wFMCommunicate OK [08:52:07]SAM_PROTO_ClearQueue done [08:52:07]KKMCreateOFDPacket [08:52:07]OFDProtocolAddRootSTLVToBuf [08:52:07]FM_MakeSignedData [08:52:07]FM_MakeSignedData [08:52:07]SAM_PROTO_SignData [08:52:07]wFMCommunicate request_size=4 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 0D 01 02 [08:52:07]Write to MH i2c: E2 08 00 18 17 80 0D 01 02 00 00 00 00 A8 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [08:52:07]RAPDU: 90 00 [08:52:07]wFMCommunicate OK [08:52:07]wFMCommunicate request_size=255 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 5E 00 00 00 00 EB 03 26 00 [08:52:07]Write to MH i2c: E2 02 01 19 17 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 5E 00 00 00 00 EB 03 26 00 00 00 DD [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:07]Read from MH i2c: E2 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 [08:52:07]MH_I2C_Read... [08:52:07]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [08:52:07]RAPDU: 90 00 [08:52:07]wFMCommunicate OK [08:52:07]wFMCommunicate request_size=156 [08:52:07]MH_SAM_APDU [08:52:07]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3A B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F7 00 00 35 04 06 00 2B 27 A5 9C 7D 72 [08:52:07]Write to MH i2c: E2 9F 00 1A 17 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3A B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F7 00 00 35 04 06 00 2B 27 A5 9C 7D 72 00 00 D2 [08:52:07]Write i2c OK [08:52:07]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 03 00 1A 17 00 90 00 A5 [08:52:08]RAPDU: 90 00 [08:52:08]wFMCommunicate OK [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 0D 03 02 [08:52:08]Write to MH i2c: E2 08 00 1B 17 80 0D 03 02 00 00 00 00 AD [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0B 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 0B 00 1B 17 00 FD 49 32 26 51 FA 84 EE 90 00 09 [08:52:08]RAPDU: FD 49 32 26 51 FA 84 EE 90 00 [08:52:08]wFMCommunicate OK [08:52:08]SAM_PROTO_SignData done [08:52:08]FM_MakeSignedData done [08:52:08]CreateOFDProtocolMessage [08:52:08]wFMCommunicate request_size=4 [08:52:08]MH_SAM_APDU [08:52:08]CAPDU: 80 11 00 00 [08:52:08]Write to MH i2c: E2 08 00 1C 17 80 11 00 00 00 00 00 00 AD [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:08]Read from MH i2c: E2 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 17 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: E2 17 00 1C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 06 [08:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:52:08]wFMCommunicate OK [08:52:08]CreateOFDProtocolMessage done [08:52:08]OFDSenderStorePacket 63305 [08:52:08]StoreOFDPacket docnum=63305 [08:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 13 2E 99 01 96 D2 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3A B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F7 00 00 35 04 06 00 2B 27 A5 9C 7D 72 FD 49 32 26 51 FA 84 EE [08:52:08]CheckFolder [08:52:08]dirname=/storage/ofd_packets [08:52:08]CheckFolder done [08:52:08]ProducePacketName [08:52:08]name=ofd_packets/00063305 [08:52:08]NVStorageSaveData ofd_packets/00063305 [08:52:08]File name is /storage/ofd_packets/00063305 [08:52:08]Write 447 bytes [08:52:08]NVStorageSaveData done [08:52:08]OFDSenderStorePacket done [08:52:08]KKMCreateOFDPacket done [08:52:08]NVStorageSaveData kkm_last_timestamp [08:52:08]File name is /storage/kkm_last_timestamp [08:52:08]Write 4 bytes [08:52:08]NVStorageSaveData done [08:52:08]ExternCall_PrintAddStr [08:52:08]wPrintStart [08:52:08]Write to MH i2c: 01 00 00 1D 17 34 [08:52:08]OFD Sender: Processing packet 63305 [packets to send 232, broken 231] [08:52:08]ProducePacketName [08:52:08]name=ofd_packets/00063305 [08:52:08]OFD Sender: To server: pG, [08:52:08]CommunicateWithHost lk.salyk.kg:30040 [08:52:08]ConnectInit lk.salyk.kg [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 1D 17 00 00 00 00 00 FF 0F 49 [08:52:08]RasterBufferAndPrint [08:52:08]line Счет N : (3)47615 [08:52:08]line ИНН: 02508201610067 [08:52:08]line Контрольно-Кассовый Чек [08:52:08]line ПРОДАЖА [08:52:08]line Товар: 4870022003312 [08:52:08]line Gorilla эн нап манго-кокос 0,45 ж/б [08:52:08]line 1.000 * 98.12 [08:52:08]line = 98.12 [08:52:08]line НДС 12% НСП 1% [08:52:08]line > о реализуемом товаре [08:52:08]line Товар: 48743570 [08:52:08]line Сигареты Winston XStyle Blue [08:52:08]line 1.000 * 142.73 [08:52:08]line = 142.73 [08:52:08]line НДС 12% НСП 1% [08:52:08]line > о реализуемом товаре [08:52:08]line ИТОГО: 240.85 [08:52:08]line НСП 1% : 2.13 [08:52:08]line НДС 12% : 25.58 [08:52:08]line Наличными: 0.00 [08:52:08]line Безнал.: 240.85 [08:52:08]line Место: АЗС № 86 "Партнер Нефть" [08:52:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:52:08]line СНО: Общий режим [08:52:08]line Чек 34 23.10.2024 08:52 [08:52:08]line Смена: 546 ФФД: 1.0 [08:52:08]line ЗНМ: 0300000154 [08:52:08]line РНМ: 0000000000091619 [08:52:08]line Версия ККМ: 001 [08:52:08]line Платежная система: Бакай Банк [08:52:08]line ФМ: 0000000000874676 [08:52:08]line ФД: 63305 [08:52:08]line ФПД: 47449282215282 [08:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085210&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63305&fm=47449282215282&tin=02508201610067®Number=0000000000091619&sum=24085 [08:52:08]line 0 [08:52:08]written 0, free lines is 4095 [08:52:08]Connected sock=10 [08:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A1 01 00 00 13 2E 99 01 96 D2 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 26 00 00 00 00 13 04 06 00 54 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 15 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3A B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F7 00 00 35 04 06 00 2B 27 A5 9C 7D 72 FD 49 32 26 51 FA 84 EE [08:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 FC A6 47 00 2D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 49 F7 00 00 F4 03 04 00 32 63 18 67 B6 04 01 00 00 15 F1 A6 E6 FD D9 25 5C [08:52:08]CommunicateWithHost err = 0 [08:52:08]CheckOFDResponse [08:52:08]1017 (14) - 77093643461234 [08:52:08]1041 (16) - 0000000000874676 [08:52:08]1040 (4) - 63305 [08:52:08]1012 (4) - 23.10.2024 02:45 [08:52:08]1206 (1) - 0 [08:52:08]OFD Sender: Remove packet 63305 [08:52:08]ProducePacketName [08:52:08]name=ofd_packets/00063305 [08:52:08]NVStorageDeleteData [08:52:08]Write to MH i2c: 01 00 00 4E 17 65 [08:52:08]Write i2c OK [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 [08:52:08]MH_I2C_Read... [08:52:08]Read from MH i2c: 01 07 00 [08:52:08]MH_I2C_Read... [08:52:09]Read from MH i2c: 01 07 00 4E 17 00 00 00 00 00 B4 0C 2C [08:52:09]RasterBufferAndPrint [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]line [08:52:09]written 0, free lines is 3259 [08:52:09]MH_Cut [08:52:09]Write to MH i2c: D1 01 00 55 17 01 3E [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 01 00 [08:52:09]MH_I2C_Read... [08:52:09]Read from MH i2c: D1 01 00 55 17 00 3D [08:52:09]Write to MH i2c: 01 00 00 56 17 6D [08:52:09]Write i2c OK [08:52:09]MH_I2C_Read... [08:52:09]OFD Sender: No OFD packet to send [08:52:09]*** Cut start [08:52:09]*** Partial cut [08:52:09]*** CUTSNS_PIN = 1 [08:52:09]*** CUTSNS_PIN = 0 [08:52:10]*** Brake cut motor [08:52:10]Read from MH i2c: 01 [08:52:10]MH_I2C_Read... [08:52:10]*** Stop cut motor [08:52:10]*** Cut end [08:52:10]Read from MH i2c: 01 07 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [08:52:10]process_action close_receipt done [08:52:10]requested_data is exist [08:52:10]produce_requested_data [08:52:10]requested_item fm.sn is exist - process it [08:52:10]wFMCommunicate request_size=4 [08:52:10]MH_SAM_APDU [08:52:10]CAPDU: 80 11 00 00 [08:52:10]Write to MH i2c: E2 08 00 57 17 80 11 00 00 00 00 00 00 E8 [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:10]Read from MH i2c: E2 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 17 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 17 00 57 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 41 [08:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:52:10]wFMCommunicate OK [08:52:10]requested_item fd.num is exist - process it [08:52:10]SAM_PROTO_GetFieldsCounters [08:52:10]wFMCommunicate request_size=4 [08:52:10]MH_SAM_APDU [08:52:10]CAPDU: 80 13 00 00 [08:52:10]Write to MH i2c: E2 08 00 58 17 80 13 00 00 00 00 00 00 EB [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:10]Read from MH i2c: E2 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 62 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 62 00 58 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 49 F7 00 00 0E 04 04 00 22 02 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 DD [08:52:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 49 F7 00 00 0E 04 04 00 22 02 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 [08:52:10]wFMCommunicate OK [08:52:10]SAM_PROTO_GetFieldsCounters done [08:52:10]requested_item shift.num is exist - process it [08:52:10]requested_item shift.opened is exist - process it [08:52:10]req_shift_opened [08:52:10]FM_GetShiftState [08:52:10]SAM_PROTO_GetShiftState [08:52:10]wFMCommunicate request_size=4 [08:52:10]MH_SAM_APDU [08:52:10]CAPDU: 80 13 01 00 [08:52:10]Write to MH i2c: E2 08 00 59 17 80 13 01 00 00 00 00 00 ED [08:52:10]Write i2c OK [08:52:10]MH_I2C_Read... [08:52:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:10]Read from MH i2c: E2 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 0E 00 [08:52:10]MH_I2C_Read... [08:52:10]Read from MH i2c: E2 0E 00 59 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D7 [08:52:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:52:10]wFMCommunicate OK [08:52:10]SAM_PROTO_GetShiftState done [08:52:10]FM_GetShiftState done [08:52:10]req_shift_opened done [08:52:10]requested_item shift.open_date is exist - process it [08:52:10]req_shift_open_date [08:52:10]req_shift_open_date done [08:52:10]produce_requested_data done [08:52:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63305,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:52:10]process_action_free close_receipt [08:52:10]json_value_free [08:52:10]json_value_free done [08:52:10]process_json_proto returns [08:52:10]Send response to host [08:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63305,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:52:10]free response buf [08:52:10]execute_script done [08:52:10]execute_script returns [08:52:10]free content buf [08:52:10]Sock 9.Close socket [08:52:10]Sock 9.Thread stoped [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:27]accept exits with 7 [08:52:27]New connection [08:52:27]New thread 3066953060 created [08:52:27]Thread 3067096420 joined [08:52:27]Waiting for new connection... [08:52:27] Sock 7.Parse request [08:52:27]Sock 7.Check first char [08:52:27]Sock 7.First char is OK [08:52:27]request: POST /json_proto HTTP/1.0 [08:52:27]Method: POST [08:52:27]URL: /json_proto [08:52:27]Method is POST - this is cgi request [08:52:27]url: /json_proto [08:52:27]query_string will be loaded in cgi processing [08:52:27]execute_cgi json_proto POST (null) [08:52:27]execute_cgi path=json_proto method=POST [08:52:27]POST find Content-Length [08:52:27]Host: 172.17.42.132:8080 [08:52:27]Content-Length: 643 [08:52:27]Content-Type: application/json [08:52:27] [08:52:27]POST finish read [08:52:27]Found Content-Length = 643 [08:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47616", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:27]execute_script... [08:52: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 : (3)47616", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:27]POST & json_proto [08:52:27]process_json_proto [08:52:27]json parsed OK: [08:52:27]protocol is kg_v1.0 [08:52:27]action value=close_receipt [08:52:27]process_action close_receipt [08:52:27]cmd_close_receipt [08:52:27]MH_GetDate [08:52:27]Write to MH i2c: F0 00 00 5A 17 60 [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: F0 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: F0 09 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: F0 09 00 5A 17 00 4F B9 18 67 4C DF 56 66 D7 [08:52:27]GetLastDocTimeStamp 1729673530 [08:52:27]current date 1729673551 [08:52:27]FM_GetShiftState [08:52:27]SAM_PROTO_GetShiftState [08:52:27]wFMCommunicate request_size=4 [08:52:27]MH_SAM_APDU [08:52:27]CAPDU: 80 13 01 00 [08:52:27]Write to MH i2c: E2 08 00 5B 17 80 13 01 00 00 00 00 00 EF [08:52:27]Write i2c OK [08:52:27]MH_I2C_Read... [08:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:27]Read from MH i2c: E2 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0E 00 [08:52:27]MH_I2C_Read... [08:52:27]Read from MH i2c: E2 0E 00 5B 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D9 [08:52:27]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:52:27]wFMCommunicate OK [08:52:27]SAM_PROTO_GetShiftState done [08:52:27]FM_GetShiftState done [08:52:27]opened in 1729642527 [08:52:27]opened+sec_in_day 1729728927 [08:52:27]quantity*price = 11500 [08:52:27]sum+1 = 11501 [08:52:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 35 23.10.2024 08:52 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63306 ФПД: 97150895544013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085231&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63306&fm=97150895544013&tin=02508201610067®Number=0000000000091619&sum=11500 0 [08:52:28]StoreToDocumentArchive [08:52:28]shift 546 fd 63306 [08:52:28]save to /storage/0546/doc_00063306 [08:52:28]save last doc name /storage/0546/doc_00063306 to /storage/kkm_last_doc_name [08:52:28]save OK [08:52:28]Clear old archive folders... [08:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:52:28]tlvbuf is 008F3A30 [08:52:28]SAM_PROTO_ClearQueue [08:52:28]wFMCommunicate request_size=4 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 09 00 00 [08:52:28]Write to MH i2c: E2 08 00 68 17 80 09 00 00 00 00 00 00 F1 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [08:52:28]RAPDU: 90 00 [08:52:28]wFMCommunicate OK [08:52:28]SAM_PROTO_ClearQueue done [08:52:28]KKMCreateOFDPacket [08:52:28]OFDProtocolAddRootSTLVToBuf [08:52:28]FM_MakeSignedData [08:52:28]FM_MakeSignedData [08:52:28]SAM_PROTO_SignData [08:52:28]wFMCommunicate request_size=4 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 0D 01 02 [08:52:28]Write to MH i2c: E2 08 00 69 17 80 0D 01 02 00 00 00 00 F9 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [08:52:28]RAPDU: 90 00 [08:52:28]wFMCommunicate OK [08:52:28]wFMCommunicate request_size=255 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4F B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [08:52:28]Write to MH i2c: E2 02 01 6A 17 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4F B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 00 00 08 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 6A 17 00 90 00 F5 [08:52:28]RAPDU: 90 00 [08:52:28]wFMCommunicate OK [08:52:28]wFMCommunicate request_size=39 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4A F7 00 00 35 04 06 00 58 5B B4 9E 56 CD [08:52:28]Write to MH i2c: E2 2A 00 6B 17 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4A F7 00 00 35 04 06 00 58 5B B4 9E 56 CD 00 00 26 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 03 00 6B 17 00 90 00 F6 [08:52:28]RAPDU: 90 00 [08:52:28]wFMCommunicate OK [08:52:28]wFMCommunicate request_size=4 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 0D 03 02 [08:52:28]Write to MH i2c: E2 08 00 6C 17 80 0D 03 02 00 00 00 00 FE [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 0B 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 0B 00 6C 17 00 07 E5 E6 E8 F5 1D 18 E2 90 00 C5 [08:52:28]RAPDU: 07 E5 E6 E8 F5 1D 18 E2 90 00 [08:52:28]wFMCommunicate OK [08:52:28]SAM_PROTO_SignData done [08:52:28]FM_MakeSignedData done [08:52:28]CreateOFDProtocolMessage [08:52:28]wFMCommunicate request_size=4 [08:52:28]MH_SAM_APDU [08:52:28]CAPDU: 80 11 00 00 [08:52:28]Write to MH i2c: E2 08 00 6D 17 80 11 00 00 00 00 00 00 FE [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:28]Read from MH i2c: E2 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 17 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: E2 17 00 6D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 57 [08:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:52:28]wFMCommunicate OK [08:52:28]CreateOFDProtocolMessage done [08:52:28]OFDSenderStorePacket 63306 [08:52:28]StoreOFDPacket docnum=63306 [08:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2C 01 00 00 83 53 24 01 83 6A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4F B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4A F7 00 00 35 04 06 00 58 5B B4 9E 56 CD 07 E5 E6 E8 F5 1D 18 E2 [08:52:28]CheckFolder [08:52:28]dirname=/storage/ofd_packets [08:52:28]CheckFolder done [08:52:28]ProducePacketName [08:52:28]name=ofd_packets/00063306 [08:52:28]NVStorageSaveData ofd_packets/00063306 [08:52:28]File name is /storage/ofd_packets/00063306 [08:52:28]Write 330 bytes [08:52:28]NVStorageSaveData done [08:52:28]OFDSenderStorePacket done [08:52:28]KKMCreateOFDPacket done [08:52:28]NVStorageSaveData kkm_last_timestamp [08:52:28]File name is /storage/kkm_last_timestamp [08:52:28]Write 4 bytes [08:52:28]NVStorageSaveData done [08:52:28]ExternCall_PrintAddStr [08:52:28]wPrintStart [08:52:28]Write to MH i2c: 01 00 00 6E 17 85 [08:52:28]Write i2c OK [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 07 00 [08:52:28]MH_I2C_Read... [08:52:28]Read from MH i2c: 01 07 00 6E 17 00 00 00 00 00 FF 0F 9A [08:52:28]RasterBufferAndPrint [08:52:28]line Счет N : (3)47616 [08:52:28]line ИНН: 02508201610067 [08:52:28]line Контрольно-Кассовый Чек [08:52:28]line ПРОДАЖА [08:52:28]line Товар: 2000036210013 [08:52:28]line Кофе Капучино (GABB TRADE) [08:52:28]line 1.000 * 115.00 [08:52:28]line = 115.00 [08:52:28]line НДС 12% НСП 1% [08:52:28]line > о реализуемом товаре [08:52:28]line ИТОГО: 115.00 [08:52:28]line НСП 1% : 1.02 [08:52:28]line НДС 12% : 12.21 [08:52:28]line Наличными: 115.00 [08:52:28]line Безнал.: 0.00 [08:52:28]line Место: АЗС № 86 "Партнер Нефть" [08:52:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:52:28]line СНО: Общий режим [08:52:28]line Чек 35 23.10.2024 08:52 [08:52:28]line Смена: 546 ФФД: 1.0 [08:52:28]line ЗНМ: 0300000154 [08:52:28]line РНМ: 0000000000091619 [08:52:28]line Версия ККМ: 001 [08:52:28]line ФМ: 0000000000874676 [08:52:28]line ФД: 63306 [08:52:28]line ФПД: 97150895544013 [08:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085231&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63306&fm=97150895544013&tin=02508201610067®Number=0000000000091619&sum=11500 [08:52:29]line 0 [08:52:29]OFD Sender: Processing packet 63306 [packets to send 232, broken 231] [08:52:29]ProducePacketName [08:52:29]name=ofd_packets/00063306 [08:52:29]OFD Sender: To server: pG, [08:52:29]CommunicateWithHost lk.salyk.kg:30040 [08:52:29]ConnectInit lk.salyk.kg [08:52:29]written 0, free lines is 4095 [08:52:29]Connected sock=10 [08:52:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2C 01 00 00 83 53 24 01 83 6A 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 4F B9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4A F7 00 00 35 04 06 00 58 5B B4 9E 56 CD 07 E5 E6 E8 F5 1D 18 E2 [08:52:29]Write to MH i2c: 01 00 00 96 17 AD [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: 01 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: 01 07 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: 01 07 00 96 17 00 00 00 00 00 1D 0D DE [08:52:29]RasterBufferAndPrint [08:52:29]line [08:52:29]line [08:52:29]line [08:52:29]line [08:52:29]line [08:52:29]written 0, free lines is 3363 [08:52:29]MH_Cut [08:52:29]Write to MH i2c: D1 01 00 9D 17 01 86 [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: D1 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: D1 01 00 [08:52:29]MH_I2C_Read... [08:52:29]Read from MH i2c: D1 01 00 9D 17 00 85 [08:52:29]Write to MH i2c: 01 00 00 9E 17 B5 [08:52:29]Write i2c OK [08:52:29]MH_I2C_Read... [08:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 DD 9F 47 00 8C 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4A F7 00 00 F4 03 04 00 47 63 18 67 B6 04 01 00 00 8B DB C5 39 24 1C 64 91 [08:52:29]CommunicateWithHost err = 0 [08:52:29]CheckOFDResponse [08:52:29]1017 (14) - 77093643461234 [08:52:29]1041 (16) - 0000000000874676 [08:52:29]1040 (4) - 63306 [08:52:29]1012 (4) - 23.10.2024 02:45 [08:52:29]1206 (1) - 0 [08:52:29]OFD Sender: Remove packet 63306 [08:52:29]ProducePacketName [08:52:29]name=ofd_packets/00063306 [08:52:29]NVStorageDeleteData [08:52:30]OFD Sender: No OFD packet to send [08:52:30]*** Cut start [08:52:30]*** Partial cut [08:52:30]*** CUTSNS_PIN = 1 [08:52:30]*** CUTSNS_PIN = 0 [08:52:30]*** Brake cut motor [08:52:30]Read from MH i2c: 01 [08:52:30]MH_I2C_Read... [08:52:30]*** Stop cut motor [08:52:30]*** Cut end [08:52:30]Read from MH i2c: 01 07 00 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: 01 07 00 9E 17 00 00 00 00 00 FF 0F CA [08:52:30]process_action close_receipt done [08:52:30]requested_data is exist [08:52:30]produce_requested_data [08:52:30]requested_item fm.sn is exist - process it [08:52:30]wFMCommunicate request_size=4 [08:52:30]MH_SAM_APDU [08:52:30]CAPDU: 80 11 00 00 [08:52:30]Write to MH i2c: E2 08 00 9F 17 80 11 00 00 00 00 00 00 30 [08:52:30]Write i2c OK [08:52:30]MH_I2C_Read... [08:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:30]Read from MH i2c: E2 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 17 00 [08:52:30]MH_I2C_Read... [08:52:30]Read from MH i2c: E2 17 00 9F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 89 [08:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:52:30]wFMCommunicate OK [08:52:30]requested_item fd.num is exist - process it [08:52:30]SAM_PROTO_GetFieldsCounters [08:52:30]wFMCommunicate request_size=4 [08:52:30]MH_SAM_APDU [08:52:30]CAPDU: 80 13 00 00 [08:52:30]Write to MH i2c: E2 08 00 A0 17 80 13 00 00 00 00 00 00 33 [08:52:30]Write i2c OK [08:52:30]MH_I2C_Read... [08:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:31]Read from MH i2c: E2 [08:52:31]MH_I2C_Read... [08:52:31]Read from MH i2c: E2 62 00 [08:52:31]MH_I2C_Read... [08:52:31]Read from MH i2c: E2 62 00 A0 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4A F7 00 00 0E 04 04 00 22 02 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 29 [08:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4A F7 00 00 0E 04 04 00 22 02 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 [08:52:31]wFMCommunicate OK [08:52:31]SAM_PROTO_GetFieldsCounters done [08:52:31]requested_item shift.num is exist - process it [08:52:31]requested_item shift.opened is exist - process it [08:52:31]req_shift_opened [08:52:31]FM_GetShiftState [08:52:31]SAM_PROTO_GetShiftState [08:52:31]wFMCommunicate request_size=4 [08:52:31]MH_SAM_APDU [08:52:31]CAPDU: 80 13 01 00 [08:52:31]Write to MH i2c: E2 08 00 A1 17 80 13 01 00 00 00 00 00 35 [08:52:31]Write i2c OK [08:52:31]MH_I2C_Read... [08:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:31]Read from MH i2c: E2 [08:52:31]MH_I2C_Read... [08:52:31]Read from MH i2c: E2 0E 00 [08:52:31]MH_I2C_Read... [08:52:31]Read from MH i2c: E2 0E 00 A1 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 1F [08:52:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:52:31]wFMCommunicate OK [08:52:31]SAM_PROTO_GetShiftState done [08:52:31]FM_GetShiftState done [08:52:31]req_shift_opened done [08:52:31]requested_item shift.open_date is exist - process it [08:52:31]req_shift_open_date [08:52:31]req_shift_open_date done [08:52:31]produce_requested_data done [08:52:31]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63306,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:52:31]process_action_free close_receipt [08:52:31]json_value_free [08:52:31]json_value_free done [08:52:31]process_json_proto returns [08:52:31]Send response to host [08:52:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63306,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:52:31]free response buf [08:52:31]execute_script done [08:52:31]execute_script returns [08:52:31]free content buf [08:52:31]Sock 7.Close socket [08:52:31]Sock 7.Thread stoped [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:10]OFD Sender: No OFD packet to send [08:56:15]OFD Sender: No OFD packet to send [08:56:20]OFD Sender: No OFD packet to send [08:56:25]OFD Sender: No OFD packet to send [08:56:30]OFD Sender: No OFD packet to send [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:29]accept exits with 9 [08:58:29]New connection [08:58:29]New thread 3067096420 created [08:58:29]Thread 3066953060 joined [08:58:29]Waiting for new connection... [08:58:29] Sock 9.Parse request [08:58:29]Sock 9.Check first char [08:58:29]Sock 9.First char is OK [08:58:29]request: POST /json_proto HTTP/1.0 [08:58:29]Method: POST [08:58:29]URL: /json_proto [08:58:29]Method is POST - this is cgi request [08:58:29]url: /json_proto [08:58:29]query_string will be loaded in cgi processing [08:58:29]execute_cgi json_proto POST (null) [08:58:29]execute_cgi path=json_proto method=POST [08:58:29]POST find Content-Length [08:58:29]Host: 172.17.42.132:8080 [08:58:29]Content-Length: 772 [08:58:29]Content-Type: application/json [08:58:29] [08:58:29]POST finish read [08:58:29]Found Content-Length = 772 [08:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47617", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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", "payments": [ { "type": 1, "sum" : 257.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:29]execute_script... [08:58: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 : (3)47617", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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", "payments": [ { "type": 1, "sum" : 257.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:29]POST & json_proto [08:58:29]process_json_proto [08:58:29]json parsed OK: [08:58:29]protocol is kg_v1.0 [08:58:29]action value=close_receipt [08:58:29]process_action close_receipt [08:58:29]cmd_close_receipt [08:58:29]MH_GetDate [08:58:29]Write to MH i2c: F0 00 00 A2 17 A8 [08:58:29]Write i2c OK [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: F0 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: F0 09 00 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: F0 09 00 A2 17 00 B9 BA 18 67 4C DF 56 66 8A [08:58:29]GetLastDocTimeStamp 1729673551 [08:58:29]current date 1729673913 [08:58:29]FM_GetShiftState [08:58:29]SAM_PROTO_GetShiftState [08:58:29]wFMCommunicate request_size=4 [08:58:29]MH_SAM_APDU [08:58:29]CAPDU: 80 13 01 00 [08:58:29]Write to MH i2c: E2 08 00 A3 17 80 13 01 00 00 00 00 00 37 [08:58:29]Write i2c OK [08:58:29]MH_I2C_Read... [08:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:29]Read from MH i2c: E2 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 0E 00 [08:58:29]MH_I2C_Read... [08:58:29]Read from MH i2c: E2 0E 00 A3 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 21 [08:58:29]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:58:29]wFMCommunicate OK [08:58:29]SAM_PROTO_GetShiftState done [08:58:29]FM_GetShiftState done [08:58:29]opened in 1729642527 [08:58:29]opened+sec_in_day 1729728927 [08:58:29]quantity*price = 25770 [08:58:29]sum+1 = 25771 [08:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.70 НСП 1% : 2.28 НДС 12% : 27.37 Наличными: 0.00 Безнал.: 257.70 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 36 23.10.2024 08:58 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63307 ФПД: 190433208221574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085833&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63307&fm=190433208221574&tin=02508201610067®Number=0000000000091619&sum=25770 0 [08:58:30]StoreToDocumentArchive [08:58:30]shift 546 fd 63307 [08:58:30]save to /storage/0546/doc_00063307 [08:58:30]save last doc name /storage/0546/doc_00063307 to /storage/kkm_last_doc_name [08:58:30]save OK [08:58:30]Clear old archive folders... [08:58:30]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:58:30]tlvbuf is B6ECB700 [08:58:30]SAM_PROTO_ClearQueue [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 09 00 00 [08:58:30]Write to MH i2c: E2 08 00 B0 17 80 09 00 00 00 00 00 00 39 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]SAM_PROTO_ClearQueue done [08:58:30]KKMCreateOFDPacket [08:58:30]OFDProtocolAddRootSTLVToBuf [08:58:30]FM_MakeSignedData [08:58:30]FM_MakeSignedData [08:58:30]SAM_PROTO_SignData [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 01 02 [08:58:30]Write to MH i2c: E2 08 00 B1 17 80 0D 01 02 00 00 00 00 41 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]wFMCommunicate request_size=255 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B9 BA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [08:58:30]Write to MH i2c: E2 02 01 B2 17 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B9 BA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 03 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]wFMCommunicate request_size=41 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4B F7 00 00 35 04 06 00 AD 32 AF BA BF 86 [08:58:30]Write to MH i2c: E2 2C 00 B3 17 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4B F7 00 00 35 04 06 00 AD 32 AF BA BF 86 00 00 E8 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [08:58:30]RAPDU: 90 00 [08:58:30]wFMCommunicate OK [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 0D 03 02 [08:58:30]Write to MH i2c: E2 08 00 B4 17 80 0D 03 02 00 00 00 00 46 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]OFD Sender: No OFD packet to send [08:58:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 0B 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 0B 00 B4 17 00 2B 70 39 9E A1 07 C6 2B 90 00 52 [08:58:30]RAPDU: 2B 70 39 9E A1 07 C6 2B 90 00 [08:58:30]wFMCommunicate OK [08:58:30]SAM_PROTO_SignData done [08:58:30]FM_MakeSignedData done [08:58:30]CreateOFDProtocolMessage [08:58:30]wFMCommunicate request_size=4 [08:58:30]MH_SAM_APDU [08:58:30]CAPDU: 80 11 00 00 [08:58:30]Write to MH i2c: E2 08 00 B5 17 80 11 00 00 00 00 00 00 46 [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:30]Read from MH i2c: E2 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 17 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: E2 17 00 B5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9F [08:58:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:58:30]wFMCommunicate OK [08:58:30]CreateOFDProtocolMessage done [08:58:30]OFDSenderStorePacket 63307 [08:58:30]StoreOFDPacket docnum=63307 [08:58:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 AC 69 26 01 33 55 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B9 BA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4B F7 00 00 35 04 06 00 AD 32 AF BA BF 86 2B 70 39 9E A1 07 C6 2B [08:58:30]CheckFolder [08:58:30]dirname=/storage/ofd_packets [08:58:30]CheckFolder done [08:58:30]ProducePacketName [08:58:30]name=ofd_packets/00063307 [08:58:30]NVStorageSaveData ofd_packets/00063307 [08:58:30]File name is /storage/ofd_packets/00063307 [08:58:30]Write 332 bytes [08:58:30]NVStorageSaveData done [08:58:30]OFDSenderStorePacket done [08:58:30]KKMCreateOFDPacket done [08:58:30]NVStorageSaveData kkm_last_timestamp [08:58:30]File name is /storage/kkm_last_timestamp [08:58:30]Write 4 bytes [08:58:30]NVStorageSaveData done [08:58:30]ExternCall_PrintAddStr [08:58:30]wPrintStart [08:58:30]Write to MH i2c: 01 00 00 B6 17 CD [08:58:30]Write i2c OK [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 07 00 [08:58:30]MH_I2C_Read... [08:58:30]Read from MH i2c: 01 07 00 B6 17 00 00 00 00 00 FF 0F E2 [08:58:30]RasterBufferAndPrint [08:58:30]line Счет N : (3)47617 [08:58:30]line ИНН: 02508201610067 [08:58:30]line Контрольно-Кассовый Чек [08:58:30]line ПРОДАЖА [08:58:30]line Товар: 2000036220012 [08:58:30]line Кофе Капучино XL(GABB TRADE) [08:58:30]line 2.000 * 128.85 [08:58:30]line = 257.70 [08:58:30]line НДС 12% НСП 1% [08:58:30]line > о реализуемом товаре [08:58:30]line ИТОГО: 257.70 [08:58:30]line НСП 1% : 2.28 [08:58:30]line НДС 12% : 27.37 [08:58:30]line Наличными: 0.00 [08:58:30]line Безнал.: 257.70 [08:58:30]line Место: АЗС № 86 "Партнер Нефть" [08:58:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:58:30]line СНО: Общий режим [08:58:30]line Чек 36 23.10.2024 08:58 [08:58:30]line Смена: 546 ФФД: 1.0 [08:58:30]line ЗНМ: 0300000154 [08:58:30]line РНМ: 0000000000091619 [08:58:30]line Версия ККМ: 001 [08:58:30]line Платежная система: Mbank [08:58:30]line ФМ: 0000000000874676 [08:58:30]line ФД: 63307 [08:58:30]line ФПД: 190433208221574 [08:58:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T085833&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63307&fm=190433208221574&tin=02508201610067®Number=0000000000091619&sum=25770 [08:58:31]OFD Sender: Processing packet 63307 [packets to send 232, broken 231] [08:58:31]ProducePacketName [08:58:31]name=ofd_packets/00063307 [08:58:31]OFD Sender: To server: pG, [08:58:31]CommunicateWithHost lk.salyk.kg:30040 [08:58:31]ConnectInit lk.salyk.kg [08:58:31]line 0 [08:58:31]written 0, free lines is 4095 [08:58:31]Connected sock=10 [08:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 AC 69 26 01 33 55 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 B9 BA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4B F7 00 00 35 04 06 00 AD 32 AF BA BF 86 2B 70 39 9E A1 07 C6 2B [08:58:31]Write to MH i2c: 01 00 00 E0 17 F7 [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 07 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 0D 0D 18 [08:58:31]RasterBufferAndPrint [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]line [08:58:31]written 0, free lines is 3348 [08:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 50 E2 47 00 C0 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 38 37 34 36 37 36 10 04 04 00 4B F7 00 00 F4 03 04 00 B1 64 18 67 B6 04 01 00 00 46 2E 01 5D 1A C7 18 F0 [08:58:31]CommunicateWithHost err = 0 [08:58:31]CheckOFDResponse [08:58:31]1017 (14) - 77093643461234 [08:58:31]1041 (16) - 0000000000874676 [08:58:31]1040 (4) - 63307 [08:58:31]1012 (4) - 23.10.2024 02:51 [08:58:31]1206 (1) - 0 [08:58:31]OFD Sender: Remove packet 63307 [08:58:31]ProducePacketName [08:58:31]name=ofd_packets/00063307 [08:58:31]NVStorageDeleteData [08:58:31]MH_Cut [08:58:31]Write to MH i2c: D1 01 00 E7 17 01 D0 [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 01 00 [08:58:31]MH_I2C_Read... [08:58:31]Read from MH i2c: D1 01 00 E7 17 00 CF [08:58:31]Write to MH i2c: 01 00 00 E8 17 FF [08:58:31]Write i2c OK [08:58:31]MH_I2C_Read... [08:58:32]OFD Sender: No OFD packet to send [08:58:32]*** Cut start [08:58:32]*** Partial cut [08:58:32]*** CUTSNS_PIN = 1 [08:58:32]*** CUTSNS_PIN = 0 [08:58:32]*** Brake cut motor [08:58:32]Read from MH i2c: 01 [08:58:32]MH_I2C_Read... [08:58:32]*** Stop cut motor [08:58:32]*** Cut end [08:58:32]Read from MH i2c: 01 07 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 FF 0F 14 [08:58:32]process_action close_receipt done [08:58:32]requested_data is exist [08:58:32]produce_requested_data [08:58:32]requested_item fm.sn is exist - process it [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 11 00 00 [08:58:32]Write to MH i2c: E2 08 00 E9 17 80 11 00 00 00 00 00 00 7A [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 17 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 17 00 E9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D3 [08:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [08:58:32]wFMCommunicate OK [08:58:32]requested_item fd.num is exist - process it [08:58:32]SAM_PROTO_GetFieldsCounters [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 13 00 00 [08:58:32]Write to MH i2c: E2 08 00 EA 17 80 13 00 00 00 00 00 00 7D [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 62 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 62 00 EA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4B F7 00 00 0E 04 04 00 22 02 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 77 [08:58:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4B F7 00 00 0E 04 04 00 22 02 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 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_GetFieldsCounters done [08:58:33]requested_item shift.num is exist - process it [08:58:33]requested_item shift.opened is exist - process it [08:58:33]req_shift_opened [08:58:33]FM_GetShiftState [08:58:33]SAM_PROTO_GetShiftState [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 13 01 00 [08:58:33]Write to MH i2c: E2 08 00 EB 17 80 13 01 00 00 00 00 00 7F [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0E 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0E 00 EB 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 69 [08:58:33]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_GetShiftState done [08:58:33]FM_GetShiftState done [08:58:33]req_shift_opened done [08:58:33]requested_item shift.open_date is exist - process it [08:58:33]req_shift_open_date [08:58:33]req_shift_open_date done [08:58:33]produce_requested_data done [08:58:33]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63307,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [08:58:33]process_action_free close_receipt [08:58:33]json_value_free [08:58:33]json_value_free done [08:58:33]process_json_proto returns [08:58:33]Send response to host [08:58:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63307,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [08:58:33]free response buf [08:58:33]execute_script done [08:58:33]execute_script returns [08:58:33]free content buf [08:58:33]Sock 9.Close socket [08:58:33]Sock 9.Thread stoped [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:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12: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:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:39]OFD Sender: No OFD packet to send [09:24:44]OFD Sender: No OFD packet to send [09:24:49]OFD Sender: No OFD packet to send [09:24:54]OFD Sender: No OFD packet to send [09:24:59]OFD Sender: No OFD packet to send [09:25:04]OFD Sender: No OFD packet to send [09:25:09]OFD Sender: No OFD packet to send [09:25:14]OFD Sender: No OFD packet to send [09:25:19]OFD Sender: No OFD packet to send [09:25:24]OFD Sender: No OFD packet to send [09:25:29]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:25]accept exits with 7 [09:59:25]New connection [09:59:25]New thread 3066953060 created [09:59:25]Thread 3067096420 joined [09:59:25]Waiting for new connection... [09:59:25] Sock 7.Parse request [09:59:25]Sock 7.Check first char [09:59:25]Sock 7.First char is OK [09:59:25]request: POST /json_proto HTTP/1.0 [09:59:25]Method: POST [09:59:25]URL: /json_proto [09:59:25]Method is POST - this is cgi request [09:59:25]url: /json_proto [09:59:25]query_string will be loaded in cgi processing [09:59:25]execute_cgi json_proto POST (null) [09:59:25]execute_cgi path=json_proto method=POST [09:59:25]POST find Content-Length [09:59:25]Host: 172.17.42.132:8080 [09:59:25]Content-Length: 613 [09:59:25]Content-Type: application/json [09:59:25] [09:59:25]POST finish read [09:59:25]Found Content-Length = 613 [09:59:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47618", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 2.000, "sum" : 238.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:25]execute_script... [09:59: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 : (3)47618", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 2.000, "sum" : 238.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:25]POST & json_proto [09:59:25]process_json_proto [09:59:25]json parsed OK: [09:59:25]protocol is kg_v1.0 [09:59:25]action value=close_receipt [09:59:25]process_action close_receipt [09:59:25]cmd_close_receipt [09:59:25]MH_GetDate [09:59:25]Write to MH i2c: F0 00 00 EC 17 F2 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: F0 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: F0 09 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: F0 09 00 EC 17 00 02 C9 18 67 4C DF 56 66 2C [09:59:25]GetLastDocTimeStamp 1729673913 [09:59:25]current date 1729677570 [09:59:25]FM_GetShiftState [09:59:25]SAM_PROTO_GetShiftState [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 13 01 00 [09:59:25]Write to MH i2c: E2 08 00 ED 17 80 13 01 00 00 00 00 00 81 [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 ED 17 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 6B [09:59:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [09:59:25]wFMCommunicate OK [09:59:25]SAM_PROTO_GetShiftState done [09:59:25]FM_GetShiftState done [09:59:25]opened in 1729642527 [09:59:25]opened+sec_in_day 1729728927 [09:59:25]quantity*price = 23800 [09:59:25]sum+1 = 23801 [09:59:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 238.00 НСП 1% : 2.11 НДС 12% : 25.27 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 37 23.10.2024 09:59 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63308 ФПД: 89021232783910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095930&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63308&fm=89021232783910&tin=02508201610067®Number=0000000000091619&sum=23800 0 [09:59:26]StoreToDocumentArchive [09:59:26]shift 546 fd 63308 [09:59:26]save to /storage/0546/doc_00063308 [09:59:26]save last doc name /storage/0546/doc_00063308 to /storage/kkm_last_doc_name [09:59:26]save OK [09:59:26]Clear old archive folders... [09:59:26]ProcessDocumentItem done err = 0, tmpTLVsize=266 [09:59:26]tlvbuf is 008A39D0 [09:59:26]SAM_PROTO_ClearQueue [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 09 00 00 [09:59:26]Write to MH i2c: E2 08 00 FA 17 80 09 00 00 00 00 00 00 83 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]SAM_PROTO_ClearQueue done [09:59:26]KKMCreateOFDPacket [09:59:26]OFDProtocolAddRootSTLVToBuf [09:59:26]FM_MakeSignedData [09:59:26]FM_MakeSignedData [09:59:26]SAM_PROTO_SignData [09:59:26]wFMCommunicate request_size=4 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 01 02 [09:59:26]Write to MH i2c: E2 08 00 FB 17 80 0D 01 02 00 00 00 00 8B [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:26]Read from MH i2c: E2 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 [09:59:26]MH_I2C_Read... [09:59:26]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [09:59:26]RAPDU: 90 00 [09:59:26]wFMCommunicate OK [09:59:26]wFMCommunicate request_size=255 [09:59:26]MH_SAM_APDU [09:59:26]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 F8 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 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 02 C9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [09:59:26]Write to MH i2c: E2 02 01 FC 17 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 F8 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 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 02 C9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 67 [09:59:26]Write i2c OK [09:59:26]MH_I2C_Read... [09:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:27]Read from MH i2c: E2 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 03 00 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [09:59:27]RAPDU: 90 00 [09:59:27]wFMCommunicate OK [09:59:27]wFMCommunicate request_size=25 [09:59:27]MH_SAM_APDU [09:59:27]CAPDU: 80 0D 02 02 14 37 36 10 04 04 00 4C F7 00 00 35 04 06 00 50 F6 DE F5 22 26 [09:59:27]Write to MH i2c: E2 1C 00 FD 17 80 0D 02 02 14 00 37 36 10 04 04 00 4C F7 00 00 35 04 06 00 50 F6 DE F5 22 26 00 00 1E [09:59:27]Write i2c OK [09:59:27]MH_I2C_Read... [09:59:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:27]Read from MH i2c: E2 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 03 00 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [09:59:27]RAPDU: 90 00 [09:59:27]wFMCommunicate OK [09:59:27]wFMCommunicate request_size=4 [09:59:27]MH_SAM_APDU [09:59:27]CAPDU: 80 0D 03 02 [09:59:27]Write to MH i2c: E2 08 00 FE 17 80 0D 03 02 00 00 00 00 90 [09:59:27]Write i2c OK [09:59:27]MH_I2C_Read... [09:59:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:27]Read from MH i2c: E2 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 0B 00 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 0B 00 FE 17 00 59 F0 18 15 37 2D 0B 29 90 00 9F [09:59:27]RAPDU: 59 F0 18 15 37 2D 0B 29 90 00 [09:59:27]wFMCommunicate OK [09:59:27]SAM_PROTO_SignData done [09:59:27]FM_MakeSignedData done [09:59:27]CreateOFDProtocolMessage [09:59:27]wFMCommunicate request_size=4 [09:59:27]MH_SAM_APDU [09:59:27]CAPDU: 80 11 00 00 [09:59:27]Write to MH i2c: E2 08 00 FF 17 80 11 00 00 00 00 00 00 90 [09:59:27]Write i2c OK [09:59:27]MH_I2C_Read... [09:59:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:27]Read from MH i2c: E2 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 17 00 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: E2 17 00 FF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E9 [09:59:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:59:27]wFMCommunicate OK [09:59:27]CreateOFDProtocolMessage done [09:59:27]OFDSenderStorePacket 63308 [09:59:27]StoreOFDPacket docnum=63308 [09:59:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1E 01 00 00 6D FB 16 01 FC A5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 F8 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 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 02 C9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4C F7 00 00 35 04 06 00 50 F6 DE F5 22 26 59 F0 18 15 37 2D 0B 29 [09:59:27]CheckFolder [09:59:27]dirname=/storage/ofd_packets [09:59:27]CheckFolder done [09:59:27]ProducePacketName [09:59:27]name=ofd_packets/00063308 [09:59:27]NVStorageSaveData ofd_packets/00063308 [09:59:27]File name is /storage/ofd_packets/00063308 [09:59:27]Write 316 bytes [09:59:27]NVStorageSaveData done [09:59:27]OFDSenderStorePacket done [09:59:27]KKMCreateOFDPacket done [09:59:27]NVStorageSaveData kkm_last_timestamp [09:59:27]File name is /storage/kkm_last_timestamp [09:59:27]Write 4 bytes [09:59:27]NVStorageSaveData done [09:59:27]ExternCall_PrintAddStr [09:59:27]wPrintStart [09:59:27]Write to MH i2c: 01 00 00 00 18 18 [09:59:27]Write i2c OK [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: 01 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: 01 07 00 [09:59:27]MH_I2C_Read... [09:59:27]Read from MH i2c: 01 07 00 00 18 00 00 00 00 00 FF 0F 2D [09:59:27]RasterBufferAndPrint [09:59:27]line Счет N : (3)47618 [09:59:27]line ИНН: 02508201610067 [09:59:27]line Контрольно-Кассовый Чек [09:59:27]line ПРОДАЖА [09:59:27]line Товар: 4870001570071 [09:59:27]line Напиток Pepsi 1л [09:59:27]line 2.000 * 119.00 [09:59:27]line = 238.00 [09:59:27]line НДС 12% НСП 1% [09:59:27]line > о реализуемом товаре [09:59:27]line ИТОГО: 238.00 [09:59:27]line НСП 1% : 2.11 [09:59:27]line НДС 12% : 25.27 [09:59:27]line Наличными: 238.00 [09:59:27]line Безнал.: 0.00 [09:59:27]line Место: АЗС № 86 "Партнер Нефть" [09:59:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:59:27]line СНО: Общий режим [09:59:27]line Чек 37 23.10.2024 09:59 [09:59:27]line Смена: 546 ФФД: 1.0 [09:59:27]line ЗНМ: 0300000154 [09:59:27]line РНМ: 0000000000091619 [09:59:27]line Версия ККМ: 001 [09:59:27]line ФМ: 0000000000874676 [09:59:27]line ФД: 63308 [09:59:27]line ФПД: 89021232783910 [09:59:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T095930&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63308&fm=89021232783910&tin=02508201610067®Number=0000000000091619&sum=23800 [09:59:27]OFD Sender: Processing packet 63308 [packets to send 232, broken 231] [09:59:27]ProducePacketName [09:59:27]name=ofd_packets/00063308 [09:59:27]OFD Sender: To server: pG, [09:59:27]CommunicateWithHost lk.salyk.kg:30040 [09:59:27]ConnectInit lk.salyk.kg [09:59:27]line 0 [09:59:27]written 0, free lines is 4095 [09:59:28]Write to MH i2c: 01 00 00 28 18 40 [09:59:28]Write i2c OK [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: 01 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: 01 07 00 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 09 0D 5D [09:59:28]RasterBufferAndPrint [09:59:28]line [09:59:28]line [09:59:28]line [09:59:28]line [09:59:28]line [09:59:28]written 0, free lines is 3340 [09:59:28]MH_Cut [09:59:28]Write to MH i2c: D1 01 00 2F 18 01 19 [09:59:28]Write i2c OK [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: D1 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: D1 01 00 [09:59:28]MH_I2C_Read... [09:59:28]Read from MH i2c: D1 01 00 2F 18 00 18 [09:59:28]Write to MH i2c: 01 00 00 30 18 48 [09:59:28]Write i2c OK [09:59:28]MH_I2C_Read... [09:59:28]*** Cut start [09:59:28]*** Partial cut [09:59:28]*** CUTSNS_PIN = 1 [09:59:28]*** CUTSNS_PIN = 0 [09:59:28]*** Brake cut motor [09:59:29]Read from MH i2c: 01 [09:59:29]MH_I2C_Read... [09:59:29]*** Stop cut motor [09:59:29]*** Cut end [09:59:29]Read from MH i2c: 01 07 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: 01 07 00 30 18 00 00 00 00 00 FF 0F 5D [09:59:29]process_action close_receipt done [09:59:29]requested_data is exist [09:59:29]produce_requested_data [09:59:29]requested_item fm.sn is exist - process it [09:59:29]wFMCommunicate request_size=4 [09:59:29]MH_SAM_APDU [09:59:29]CAPDU: 80 11 00 00 [09:59:29]Write to MH i2c: E2 08 00 31 18 80 11 00 00 00 00 00 00 C3 [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 17 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 17 00 31 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1C [09:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [09:59:29]wFMCommunicate OK [09:59:29]requested_item fd.num is exist - process it [09:59:29]SAM_PROTO_GetFieldsCounters [09:59:29]wFMCommunicate request_size=4 [09:59:29]MH_SAM_APDU [09:59:29]CAPDU: 80 13 00 00 [09:59:29]Write to MH i2c: E2 08 00 32 18 80 13 00 00 00 00 00 00 C6 [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 62 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 62 00 32 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4C F7 00 00 0E 04 04 00 22 02 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 C4 [09:59:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4C F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:29]wFMCommunicate OK [09:59:29]SAM_PROTO_GetFieldsCounters done [09:59:29]requested_item shift.num is exist - process it [09:59:29]requested_item shift.opened is exist - process it [09:59:29]req_shift_opened [09:59:29]FM_GetShiftState [09:59:29]SAM_PROTO_GetShiftState [09:59:29]wFMCommunicate request_size=4 [09:59:29]MH_SAM_APDU [09:59:29]CAPDU: 80 13 01 00 [09:59:29]Write to MH i2c: E2 08 00 33 18 80 13 01 00 00 00 00 00 C8 [09:59:29]Write i2c OK [09:59:29]MH_I2C_Read... [09:59:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:29]Read from MH i2c: E2 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 [09:59:29]MH_I2C_Read... [09:59:29]Read from MH i2c: E2 0E 00 33 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B2 [09:59:29]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [09:59:29]wFMCommunicate OK [09:59:29]SAM_PROTO_GetShiftState done [09:59:29]FM_GetShiftState done [09:59:29]req_shift_opened done [09:59:29]requested_item shift.open_date is exist - process it [09:59:29]req_shift_open_date [09:59:29]req_shift_open_date done [09:59:29]produce_requested_data done [09:59:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63308,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [09:59:29]process_action_free close_receipt [09:59:29]json_value_free [09:59:29]json_value_free done [09:59:29]process_json_proto returns [09:59:29]Send response to host [09:59:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63308,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [09:59:29]free response buf [09:59:29]execute_script done [09:59:29]execute_script returns [09:59:29]free content buf [09:59:29]Sock 7.Close socket [09:59:29]Sock 7.Thread stoped [10:01:40]ConnectInit Can't connect to host [10:01:40]CommunicateWithHost connect error [10:01:40]CommunicateWithHost err = -1 [10:01:40]OFD Sender: Server communicate error [10:01:45]OFD Sender: Processing packet 63308 [packets to send 232, broken 231] [10:01:45]ProducePacketName [10:01:45]name=ofd_packets/00063308 [10:01:45]OFD Sender: To server: pG, [10:01:45]CommunicateWithHost lk.salyk.kg:30040 [10:01:45]ConnectInit lk.salyk.kg [10:01:45]Connected sock=7 [10:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 1E 01 00 00 6D FB 16 01 FC A5 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 F8 5C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 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 02 C9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4C F7 00 00 35 04 06 00 50 F6 DE F5 22 26 59 F0 18 15 37 2D 0B 29 [10:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 77 14 47 00 55 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4C F7 00 00 F4 03 04 00 84 73 18 67 B6 04 01 00 00 DD BB 3C 6D 8A 96 2F 60 [10:01:46]CommunicateWithHost err = 0 [10:01:46]CheckOFDResponse [10:01:46]1017 (14) - 77093643461234 [10:01:46]1041 (16) - 0000000000874676 [10:01:46]1040 (4) - 63308 [10:01:46]1012 (4) - 23.10.2024 03:54 [10:01:46]1206 (1) - 0 [10:01:46]OFD Sender: Remove packet 63308 [10:01:46]ProducePacketName [10:01:46]name=ofd_packets/00063308 [10:01:46]NVStorageDeleteData [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:07]accept exits with 9 [10:05:07]New connection [10:05:07]New thread 3067096420 created [10:05:07]Thread 3066953060 joined [10:05:07]Waiting for new connection... [10:05:07] Sock 9.Parse request [10:05:07]Sock 9.Check first char [10:05:07]Sock 9.First char is OK [10:05:07]request: POST /json_proto HTTP/1.0 [10:05:07]Method: POST [10:05:07]URL: /json_proto [10:05:07]Method is POST - this is cgi request [10:05:07]url: /json_proto [10:05:07]query_string will be loaded in cgi processing [10:05:07]execute_cgi json_proto POST (null) [10:05:07]execute_cgi path=json_proto method=POST [10:05:07]POST find Content-Length [10:05:07]Host: 172.17.42.132:8080 [10:05:07]Content-Length: 657 [10:05:07]Content-Type: application/json [10:05:07] [10:05:07]POST finish read [10:05:07]Found Content-Length = 657 [10:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47619", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:07]execute_script... [10:05: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 : (3)47619", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:07]POST & json_proto [10:05:07]process_json_proto [10:05:07]json parsed OK: [10:05:07]protocol is kg_v1.0 [10:05:07]action value=close_receipt [10:05:07]process_action close_receipt [10:05:07]cmd_close_receipt [10:05:07]MH_GetDate [10:05:07]Write to MH i2c: F0 00 00 34 18 3B [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: F0 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: F0 09 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: F0 09 00 34 18 00 58 CA 18 67 4C DF 56 66 CC [10:05:07]GetLastDocTimeStamp 1729677570 [10:05:07]current date 1729677912 [10:05:07]FM_GetShiftState [10:05:07]SAM_PROTO_GetShiftState [10:05:07]wFMCommunicate request_size=4 [10:05:07]MH_SAM_APDU [10:05:07]CAPDU: 80 13 01 00 [10:05:07]Write to MH i2c: E2 08 00 35 18 80 13 01 00 00 00 00 00 CA [10:05:07]Write i2c OK [10:05:07]MH_I2C_Read... [10:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:07]Read from MH i2c: E2 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: E2 0E 00 [10:05:07]MH_I2C_Read... [10:05:07]Read from MH i2c: E2 0E 00 35 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B4 [10:05:07]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:05:07]wFMCommunicate OK [10:05:07]SAM_PROTO_GetShiftState done [10:05:07]FM_GetShiftState done [10:05:07]opened in 1729642527 [10:05:07]opened+sec_in_day 1729728927 [10:05:07]quantity*price = 12500 [10:05:07]sum+1 = 12501 [10:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 38 23.10.2024 10:05 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63309 ФПД: 149902152579014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100512&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63309&fm=149902152579014&tin=02508201610067®Number=0000000000091619&sum=12500 0 [10:05:08]StoreToDocumentArchive [10:05:08]shift 546 fd 63309 [10:05:08]save to /storage/0546/doc_00063309 [10:05:08]save last doc name /storage/0546/doc_00063309 to /storage/kkm_last_doc_name [10:05:08]save OK [10:05:08]Clear old archive folders... [10:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=278 [10:05:08]tlvbuf is 008D4420 [10:05:08]SAM_PROTO_ClearQueue [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 09 00 00 [10:05:08]Write to MH i2c: E2 08 00 42 18 80 09 00 00 00 00 00 00 CC [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [10:05:08]RAPDU: 90 00 [10:05:08]wFMCommunicate OK [10:05:08]SAM_PROTO_ClearQueue done [10:05:08]KKMCreateOFDPacket [10:05:08]OFDProtocolAddRootSTLVToBuf [10:05:08]FM_MakeSignedData [10:05:08]FM_MakeSignedData [10:05:08]SAM_PROTO_SignData [10:05:08]wFMCommunicate request_size=4 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 0D 01 02 [10:05:08]Write to MH i2c: E2 08 00 43 18 80 0D 01 02 00 00 00 00 D4 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [10:05:08]RAPDU: 90 00 [10:05:08]wFMCommunicate OK [10:05:08]wFMCommunicate request_size=255 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 58 CA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 [10:05:08]Write to MH i2c: E2 02 01 44 18 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 58 CA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 00 00 6C [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:08]Read from MH i2c: E2 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 [10:05:08]MH_I2C_Read... [10:05:08]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [10:05:08]RAPDU: 90 00 [10:05:08]wFMCommunicate OK [10:05:08]wFMCommunicate request_size=37 [10:05:08]MH_SAM_APDU [10:05:08]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F7 00 00 35 04 06 00 88 55 D0 8E 37 C6 [10:05:08]Write to MH i2c: E2 28 00 45 18 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F7 00 00 35 04 06 00 88 55 D0 8E 37 C6 00 00 B0 [10:05:08]Write i2c OK [10:05:08]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [10:05:09]RAPDU: 90 00 [10:05:09]wFMCommunicate OK [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 0D 03 02 [10:05:09]Write to MH i2c: E2 08 00 46 18 80 0D 03 02 00 00 00 00 D9 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0B 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 0B 00 46 18 00 71 E2 83 F3 84 C6 C8 72 90 00 27 [10:05:09]RAPDU: 71 E2 83 F3 84 C6 C8 72 90 00 [10:05:09]wFMCommunicate OK [10:05:09]SAM_PROTO_SignData done [10:05:09]FM_MakeSignedData done [10:05:09]CreateOFDProtocolMessage [10:05:09]wFMCommunicate request_size=4 [10:05:09]MH_SAM_APDU [10:05:09]CAPDU: 80 11 00 00 [10:05:09]Write to MH i2c: E2 08 00 47 18 80 11 00 00 00 00 00 00 D9 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:09]Read from MH i2c: E2 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: E2 17 00 47 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 32 [10:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:05:09]wFMCommunicate OK [10:05:09]CreateOFDProtocolMessage done [10:05:09]OFDSenderStorePacket 63309 [10:05:09]StoreOFDPacket docnum=63309 [10:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 18 F7 22 01 B5 7F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 58 CA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F7 00 00 35 04 06 00 88 55 D0 8E 37 C6 71 E2 83 F3 84 C6 C8 72 [10:05:09]CheckFolder [10:05:09]dirname=/storage/ofd_packets [10:05:09]CheckFolder done [10:05:09]ProducePacketName [10:05:09]name=ofd_packets/00063309 [10:05:09]NVStorageSaveData ofd_packets/00063309 [10:05:09]File name is /storage/ofd_packets/00063309 [10:05:09]Write 328 bytes [10:05:09]NVStorageSaveData done [10:05:09]OFDSenderStorePacket done [10:05:09]KKMCreateOFDPacket done [10:05:09]NVStorageSaveData kkm_last_timestamp [10:05:09]File name is /storage/kkm_last_timestamp [10:05:09]Write 4 bytes [10:05:09]NVStorageSaveData done [10:05:09]ExternCall_PrintAddStr [10:05:09]wPrintStart [10:05:09]Write to MH i2c: 01 00 00 48 18 60 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 48 18 00 00 00 00 00 FF 0F 75 [10:05:09]RasterBufferAndPrint [10:05:09]line Счет N : (3)47619 [10:05:09]line ИНН: 02508201610067 [10:05:09]line Контрольно-Кассовый Чек [10:05:09]line ПРОДАЖА [10:05:09]line Товар: 5449000054227 [10:05:09]line Напиток Кока-Кола 1л [10:05:09]line 1.000 * 125.00 [10:05:09]line = 125.00 [10:05:09]line НДС 12% НСП 1% [10:05:09]line > о реализуемом товаре [10:05:09]line ИТОГО: 125.00 [10:05:09]line НСП 1% : 1.11 [10:05:09]line НДС 12% : 13.27 [10:05:09]line Наличными: 125.00 [10:05:09]line Безнал.: 0.00 [10:05:09]line Место: АЗС № 86 "Партнер Нефть" [10:05:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:05:09]line СНО: Общий режим [10:05:09]line Чек 38 23.10.2024 10:05 [10:05:09]line Смена: 546 ФФД: 1.0 [10:05:09]line ЗНМ: 0300000154 [10:05:09]line РНМ: 0000000000091619 [10:05:09]line Версия ККМ: 001 [10:05:09]line ФМ: 0000000000874676 [10:05:09]line ФД: 63309 [10:05:09]line ФПД: 149902152579014 [10:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T100512&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63309&fm=149902152579014&tin=02508201610067®Number=0000000000091619&sum=12500 [10:05:09]line 0 [10:05:09]OFD Sender: Processing packet 63309 [packets to send 232, broken 231] [10:05:09]ProducePacketName [10:05:09]name=ofd_packets/00063309 [10:05:09]OFD Sender: To server: pG, [10:05:09]CommunicateWithHost lk.salyk.kg:30040 [10:05:09]ConnectInit lk.salyk.kg [10:05:09]written 0, free lines is 4095 [10:05:09]Connected sock=7 [10:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2A 01 00 00 18 F7 22 01 B5 7F 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 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 58 CA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F7 00 00 35 04 06 00 88 55 D0 8E 37 C6 71 E2 83 F3 84 C6 C8 72 [10:05:09]Write to MH i2c: 01 00 00 70 18 88 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 17 0D B3 [10:05:09]RasterBufferAndPrint [10:05:09]line [10:05:09]line [10:05:09]line [10:05:09]line [10:05:09]line [10:05:09]written 0, free lines is 3358 [10:05:09]MH_Cut [10:05:09]Write to MH i2c: D1 01 00 77 18 01 61 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: D1 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: D1 01 00 [10:05:09]MH_I2C_Read... [10:05:09]Read from MH i2c: D1 01 00 77 18 00 60 [10:05:09]Write to MH i2c: 01 00 00 78 18 90 [10:05:09]Write i2c OK [10:05:09]MH_I2C_Read... [10:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 D9 31 47 00 F4 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4D F7 00 00 F4 03 04 00 50 74 18 67 B6 04 01 00 00 21 3C AD 0D 96 A1 F5 F5 [10:05:10]CommunicateWithHost err = 0 [10:05:10]CheckOFDResponse [10:05:10]1017 (14) - 77093643461234 [10:05:10]1041 (16) - 0000000000874676 [10:05:10]1040 (4) - 63309 [10:05:10]1012 (4) - 23.10.2024 03:58 [10:05:10]1206 (1) - 0 [10:05:10]OFD Sender: Remove packet 63309 [10:05:10]ProducePacketName [10:05:10]name=ofd_packets/00063309 [10:05:10]NVStorageDeleteData [10:05:10]*** Cut start [10:05:10]*** Partial cut [10:05:10]*** CUTSNS_PIN = 1 [10:05:10]*** CUTSNS_PIN = 0 [10:05:10]OFD Sender: No OFD packet to send [10:05:10]*** Brake cut motor [10:05:11]Read from MH i2c: 01 [10:05:11]MH_I2C_Read... [10:05:11]*** Stop cut motor [10:05:11]*** Cut end [10:05:11]Read from MH i2c: 01 07 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [10:05:11]process_action close_receipt done [10:05:11]requested_data is exist [10:05:11]produce_requested_data [10:05:11]requested_item fm.sn is exist - process it [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 11 00 00 [10:05:11]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 64 [10:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:05:11]wFMCommunicate OK [10:05:11]requested_item fd.num is exist - process it [10:05:11]SAM_PROTO_GetFieldsCounters [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 13 00 00 [10:05:11]Write to MH i2c: E2 08 00 7A 18 80 13 00 00 00 00 00 00 0E [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 62 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 62 00 7A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4D F7 00 00 0E 04 04 00 22 02 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 [10:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4D F7 00 00 0E 04 04 00 22 02 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:05:11]wFMCommunicate OK [10:05:11]SAM_PROTO_GetFieldsCounters done [10:05:11]requested_item shift.num is exist - process it [10:05:11]requested_item shift.opened is exist - process it [10:05:11]req_shift_opened [10:05:11]FM_GetShiftState [10:05:11]SAM_PROTO_GetShiftState [10:05:11]wFMCommunicate request_size=4 [10:05:11]MH_SAM_APDU [10:05:11]CAPDU: 80 13 01 00 [10:05:11]Write to MH i2c: E2 08 00 7B 18 80 13 01 00 00 00 00 00 10 [10:05:11]Write i2c OK [10:05:11]MH_I2C_Read... [10:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:11]Read from MH i2c: E2 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0E 00 [10:05:11]MH_I2C_Read... [10:05:11]Read from MH i2c: E2 0E 00 7B 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 FA [10:05:11]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:05:11]wFMCommunicate OK [10:05:11]SAM_PROTO_GetShiftState done [10:05:11]FM_GetShiftState done [10:05:11]req_shift_opened done [10:05:11]requested_item shift.open_date is exist - process it [10:05:11]req_shift_open_date [10:05:11]req_shift_open_date done [10:05:11]produce_requested_data done [10:05:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63309,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [10:05:11]process_action_free close_receipt [10:05:11]json_value_free [10:05:11]json_value_free done [10:05:11]process_json_proto returns [10:05:11]Send response to host [10:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63309,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [10:05:11]free response buf [10:05:11]execute_script done [10:05:11]execute_script returns [10:05:11]free content buf [10:05:11]Sock 9.Close socket [10:05:11]Sock 9.Thread stoped [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:50]OFD Sender: No OFD packet to send [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08: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:11]accept exits with 10 [10:12:11]New connection [10:12:11]New thread 3066953060 created [10:12:11]Thread 3067096420 joined [10:12:11]Waiting for new connection... [10:12:11] Sock 10.Parse request [10:12:11]Sock 10.Check first char [10:12:11]Sock 10.First char is OK [10:12:11]request: POST /json_proto HTTP/1.0 [10:12:11]Method: POST [10:12:11]URL: /json_proto [10:12:11]Method is POST - this is cgi request [10:12:11]url: /json_proto [10:12:11]query_string will be loaded in cgi processing [10:12:11]execute_cgi json_proto POST (null) [10:12:11]execute_cgi path=json_proto method=POST [10:12:11]POST find Content-Length [10:12:11]Host: 172.17.42.132:8080 [10:12:11]Content-Length: 826 [10:12:11]Content-Type: application/json [10:12:11] [10:12:11]POST finish read [10:12:11]Found Content-Length = 826 [10:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47620", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "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", "payments": [ { "type": 1, "sum" : 89.20 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]execute_script... [10:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47620", "tax_sys" : 0, "items" : [ { "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 89.20, "quantity" : 1.000, "sum" : 89.20, "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", "payments": [ { "type": 1, "sum" : 89.20 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]POST & json_proto [10:12:11]process_json_proto [10:12:11]json parsed OK: [10:12:11]protocol is kg_v1.0 [10:12:11]action value=close_receipt [10:12:11]process_action close_receipt [10:12:11]cmd_close_receipt [10:12:11]MH_GetDate [10:12:11]Write to MH i2c: F0 00 00 7C 18 83 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 7C 18 00 00 CC 18 67 4C DF 56 66 BE [10:12:11]GetLastDocTimeStamp 1729677912 [10:12:11]current date 1729678336 [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 FC [10:12:11]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]opened in 1729642527 [10:12:11]opened+sec_in_day 1729728927 [10:12:11]quantity*price = 8920 [10:12:11]sum+1 = 8921 [10:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.20 НСП 1% : 0.79 НДС 12% : 9.47 Наличными: 0.00 Безнал.: 89.20 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 39 23.10.2024 10:12 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63310 ФПД: 30293206714589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101216&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63310&fm=30293206714589&tin=02508201610067®Number=0000000000091619&sum=8920 0 [10:12:12]StoreToDocumentArchive [10:12:12]shift 546 fd 63310 [10:12:12]save to /storage/0546/doc_00063310 [10:12:12]save last doc name /storage/0546/doc_00063310 to /storage/kkm_last_doc_name [10:12:12]save OK [10:12:12]Clear old archive folders... [10:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=299 [10:12:12]tlvbuf is 00879FE0 [10:12:12]SAM_PROTO_ClearQueue [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 09 00 00 [10:12:12]Write to MH i2c: E2 08 00 8A 18 80 09 00 00 00 00 00 00 14 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_ClearQueue done [10:12:13]KKMCreateOFDPacket [10:12:13]OFDProtocolAddRootSTLVToBuf [10:12:13]FM_MakeSignedData [10:12:13]FM_MakeSignedData [10:12:13]SAM_PROTO_SignData [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 01 02 [10:12:13]Write to MH i2c: E2 08 00 8B 18 80 0D 01 02 00 00 00 00 1C [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=255 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 00 CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [10:12:13]Write to MH i2c: E2 02 01 8C 18 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 00 CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 1B [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=58 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4E F7 00 00 35 04 06 00 1B 8D 2F D3 48 DD [10:12:13]Write to MH i2c: E2 3D 00 8D 18 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4E F7 00 00 35 04 06 00 1B 8D 2F D3 48 DD 00 00 29 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 03 02 [10:12:13]Write to MH i2c: E2 08 00 8E 18 80 0D 03 02 00 00 00 00 21 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 8E 18 00 16 9A 7C 5B 96 EF 96 11 90 00 D5 [10:12:13]RAPDU: 16 9A 7C 5B 96 EF 96 11 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_SignData done [10:12:13]FM_MakeSignedData done [10:12:13]CreateOFDProtocolMessage [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 11 00 00 [10:12:13]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7A [10:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:12:13]wFMCommunicate OK [10:12:13]CreateOFDProtocolMessage done [10:12:13]OFDSenderStorePacket 63310 [10:12:13]StoreOFDPacket docnum=63310 [10:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3F 01 00 00 57 89 37 01 8A 0E 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 00 CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4E F7 00 00 35 04 06 00 1B 8D 2F D3 48 DD 16 9A 7C 5B 96 EF 96 11 [10:12:13]CheckFolder [10:12:13]dirname=/storage/ofd_packets [10:12:13]CheckFolder done [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00063310 [10:12:13]NVStorageSaveData ofd_packets/00063310 [10:12:13]File name is /storage/ofd_packets/00063310 [10:12:13]Write 349 bytes [10:12:13]NVStorageSaveData done [10:12:13]OFDSenderStorePacket done [10:12:13]KKMCreateOFDPacket done [10:12:13]NVStorageSaveData kkm_last_timestamp [10:12:13]File name is /storage/kkm_last_timestamp [10:12:13]Write 4 bytes [10:12:13]NVStorageSaveData done [10:12:13]ExternCall_PrintAddStr [10:12:13]wPrintStart [10:12:13]Write to MH i2c: 01 00 00 90 18 A8 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 FF 0F BD [10:12:13]RasterBufferAndPrint [10:12:13]line Счет N : (3)47620 [10:12:13]line ИНН: 02508201610067 [10:12:13]line Контрольно-Кассовый Чек [10:12:13]line ПРОДАЖА [10:12:13]line Товар: 4870002325113 [10:12:13]line Напиток PEPSI газированный ст 0,25л [10:12:13]line 1.000 * 89.20 [10:12:13]line = 89.20 [10:12:13]line НДС 12% НСП 1% [10:12:13]line > о реализуемом товаре [10:12:13]line ИТОГО: 89.20 [10:12:13]line НСП 1% : 0.79 [10:12:13]line НДС 12% : 9.47 [10:12:13]line Наличными: 0.00 [10:12:13]line Безнал.: 89.20 [10:12:13]line Место: АЗС № 86 "Партнер Нефть" [10:12:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:12:13]line СНО: Общий режим [10:12:13]line Чек 39 23.10.2024 10:12 [10:12:13]line Смена: 546 ФФД: 1.0 [10:12:13]line ЗНМ: 0300000154 [10:12:13]line РНМ: 0000000000091619 [10:12:13]line Версия ККМ: 001 [10:12:13]line Платежная система: Mbank [10:12:13]line ФМ: 0000000000874676 [10:12:13]line ФД: 63310 [10:12:13]line ФПД: 30293206714589 [10:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101216&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63310&fm=30293206714589&tin=02508201610067®Number=0000000000091619&sum=8920 [10:12:13]line 0 [10:12:13]OFD Sender: Processing packet 63310 [packets to send 232, broken 231] [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00063310 [10:12:13]OFD Sender: To server: pG, [10:12:13]CommunicateWithHost lk.salyk.kg:30040 [10:12:13]ConnectInit lk.salyk.kg [10:12:13]written 0, free lines is 4095 [10:12:14]Connected sock=9 [10:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3F 01 00 00 57 89 37 01 8A 0E 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D8 22 00 00 00 00 13 04 06 00 D8 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 00 CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4E F7 00 00 35 04 06 00 1B 8D 2F D3 48 DD 16 9A 7C 5B 96 EF 96 11 [10:12:14]Write to MH i2c: 01 00 00 BA 18 D2 [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: 01 07 00 BA 18 00 00 00 00 00 F3 0C D8 [10:12:14]RasterBufferAndPrint [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]line [10:12:14]written 0, free lines is 3321 [10:12:14]MH_Cut [10:12:14]Write to MH i2c: D1 01 00 C1 18 01 AB [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D1 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D1 01 00 [10:12:14]MH_I2C_Read... [10:12:14]Read from MH i2c: D1 01 00 C1 18 00 AA [10:12:14]Write to MH i2c: 01 00 00 C2 18 DA [10:12:14]Write i2c OK [10:12:14]MH_I2C_Read... [10:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A0 A3 47 00 05 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4E F7 00 00 F4 03 04 00 F8 75 18 67 B6 04 01 00 00 16 2B 0C EA CE 90 AA 2C [10:12:14]CommunicateWithHost err = 0 [10:12:14]CheckOFDResponse [10:12:14]1017 (14) - 77093643461234 [10:12:14]1041 (16) - 0000000000874676 [10:12:14]1040 (4) - 63310 [10:12:14]1012 (4) - 23.10.2024 04:05 [10:12:14]1206 (1) - 0 [10:12:14]OFD Sender: Remove packet 63310 [10:12:14]ProducePacketName [10:12:14]name=ofd_packets/00063310 [10:12:14]NVStorageDeleteData [10:12:14]OFD Sender: No OFD packet to send [10:12:15]*** Cut start [10:12:15]*** Partial cut [10:12:15]*** CUTSNS_PIN = 1 [10:12:15]*** CUTSNS_PIN = 0 [10:12:15]*** Brake cut motor [10:12:15]Read from MH i2c: 01 [10:12:15]*** Stop cut motor [10:12:15]*** Cut end [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 FF 0F EF [10:12:15]process_action close_receipt done [10:12:15]requested_data is exist [10:12:15]produce_requested_data [10:12:15]requested_item fm.sn is exist - process it [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 11 00 00 [10:12:15]Write to MH i2c: E2 08 00 C3 18 80 11 00 00 00 00 00 00 55 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 17 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 17 00 C3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 AE [10:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:12:15]wFMCommunicate OK [10:12:15]requested_item fd.num is exist - process it [10:12:15]SAM_PROTO_GetFieldsCounters [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 13 00 00 [10:12:15]Write to MH i2c: E2 08 00 C4 18 80 13 00 00 00 00 00 00 58 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 62 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 62 00 C4 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4E F7 00 00 0E 04 04 00 22 02 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 5E [10:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4E F7 00 00 0E 04 04 00 22 02 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:12:15]wFMCommunicate OK [10:12:15]SAM_PROTO_GetFieldsCounters done [10:12:15]requested_item shift.num is exist - process it [10:12:15]requested_item shift.opened is exist - process it [10:12:15]req_shift_opened [10:12:15]FM_GetShiftState [10:12:15]SAM_PROTO_GetShiftState [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 13 01 00 [10:12:15]Write to MH i2c: E2 08 00 C5 18 80 13 01 00 00 00 00 00 5A [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 C5 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 44 [10:12:15]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:12:15]wFMCommunicate OK [10:12:15]SAM_PROTO_GetShiftState done [10:12:15]FM_GetShiftState done [10:12:15]req_shift_opened done [10:12:15]requested_item shift.open_date is exist - process it [10:12:15]req_shift_open_date [10:12:15]req_shift_open_date done [10:12:15]produce_requested_data done [10:12:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63310,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [10:12:15]process_action_free close_receipt [10:12:15]json_value_free [10:12:15]json_value_free done [10:12:15]process_json_proto returns [10:12:15]Send response to host [10:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63310,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [10:12:15]free response buf [10:12:15]execute_script done [10:12:15]execute_script returns [10:12:15]free content buf [10:12:15]Sock 10.Close socket [10:12:15]Sock 10.Thread stoped [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:10]accept exits with 7 [10:13:10]New connection [10:13:10]New thread 3067096420 created [10:13:10]Thread 3066953060 joined [10:13:10]Waiting for new connection... [10:13:10] Sock 7.Parse request [10:13:10]Sock 7.Check first char [10:13:10]Sock 7.First char is OK [10:13:10]request: POST /json_proto HTTP/1.0 [10:13:10]Method: POST [10:13:10]URL: /json_proto [10:13:10]Method is POST - this is cgi request [10:13:10]url: /json_proto [10:13:10]query_string will be loaded in cgi processing [10:13:10]execute_cgi json_proto POST (null) [10:13:10]execute_cgi path=json_proto method=POST [10:13:10]POST find Content-Length [10:13:10]Host: 172.17.42.132:8080 [10:13:10]Content-Length: 893 [10:13:10]Content-Type: application/json [10:13:10] [10:13:10]POST finish read [10:13:10]Found Content-Length = 893 [10:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47621", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:10]execute_script... [10:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47621", "tax_sys" : 0, "items" : [ { "code": "5449000000286", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 2\u043B", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:10]POST & json_proto [10:13:10]process_json_proto [10:13:10]json parsed OK: [10:13:10]protocol is kg_v1.0 [10:13:10]action value=close_receipt [10:13:10]process_action close_receipt [10:13:10]cmd_close_receipt [10:13:10]MH_GetDate [10:13:10]Write to MH i2c: F0 00 00 C6 18 CD [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: F0 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: F0 09 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: F0 09 00 C6 18 00 3B CC 18 67 4C DF 56 66 43 [10:13:10]GetLastDocTimeStamp 1729678336 [10:13:10]current date 1729678395 [10:13:10]FM_GetShiftState [10:13:10]SAM_PROTO_GetShiftState [10:13:10]wFMCommunicate request_size=4 [10:13:10]MH_SAM_APDU [10:13:10]CAPDU: 80 13 01 00 [10:13:10]Write to MH i2c: E2 08 00 C7 18 80 13 01 00 00 00 00 00 5C [10:13:10]Write i2c OK [10:13:10]MH_I2C_Read... [10:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:10]Read from MH i2c: E2 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 [10:13:10]MH_I2C_Read... [10:13:10]Read from MH i2c: E2 0E 00 C7 18 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 46 [10:13:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:13:10]wFMCommunicate OK [10:13:10]SAM_PROTO_GetShiftState done [10:13:10]FM_GetShiftState done [10:13:10]opened in 1729642527 [10:13:10]opened+sec_in_day 1729728927 [10:13:10]quantity*price = 20500 [10:13:10]sum+1 = 20501 [10:13:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 344.00 НСП 1% : 3.04 НДС 12% : 36.53 Наличными: 344.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 40 23.10.2024 10:13 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63311 ФПД: 30884269502228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101315&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63311&fm=30884269502228&tin=02508201610067®Number=0000000000091619&sum=34400 0 [10:13:11]StoreToDocumentArchive [10:13:11]shift 546 fd 63311 [10:13:11]save to /storage/0546/doc_00063311 [10:13:11]save last doc name /storage/0546/doc_00063311 to /storage/kkm_last_doc_name [10:13:11]save OK [10:13:11]Clear old archive folders... [10:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=380 [10:13:11]tlvbuf is 0087A1E0 [10:13:11]SAM_PROTO_ClearQueue [10:13:11]wFMCommunicate request_size=4 [10:13:11]MH_SAM_APDU [10:13:11]CAPDU: 80 09 00 00 [10:13:11]Write to MH i2c: E2 08 00 D4 18 80 09 00 00 00 00 00 00 5E [10:13:11]Write i2c OK [10:13:11]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 D4 18 00 90 00 60 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]SAM_PROTO_ClearQueue done [10:13:12]KKMCreateOFDPacket [10:13:12]OFDProtocolAddRootSTLVToBuf [10:13:12]FM_MakeSignedData [10:13:12]FM_MakeSignedData [10:13:12]SAM_PROTO_SignData [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 01 02 [10:13:12]Write to MH i2c: E2 08 00 D5 18 80 0D 01 02 00 00 00 00 66 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=255 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 [10:13:12]Write to MH i2c: E2 02 01 D6 18 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 FA [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=139 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 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 3B CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F7 00 00 35 04 06 00 1C 16 CD E9 AF 14 [10:13:12]Write to MH i2c: E2 8E 00 D7 18 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 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 3B CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F7 00 00 35 04 06 00 1C 16 CD E9 AF 14 00 00 A5 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [10:13:12]RAPDU: 90 00 [10:13:12]wFMCommunicate OK [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 0D 03 02 [10:13:12]Write to MH i2c: E2 08 00 D8 18 80 0D 03 02 00 00 00 00 6B [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 0B 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 0B 00 D8 18 00 A9 30 88 3C AA 72 3E F5 90 00 58 [10:13:12]RAPDU: A9 30 88 3C AA 72 3E F5 90 00 [10:13:12]wFMCommunicate OK [10:13:12]SAM_PROTO_SignData done [10:13:12]FM_MakeSignedData done [10:13:12]CreateOFDProtocolMessage [10:13:12]wFMCommunicate request_size=4 [10:13:12]MH_SAM_APDU [10:13:12]CAPDU: 80 11 00 00 [10:13:12]Write to MH i2c: E2 08 00 D9 18 80 11 00 00 00 00 00 00 6B [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:12]Read from MH i2c: E2 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 17 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: E2 17 00 D9 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C4 [10:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:13:12]wFMCommunicate OK [10:13:12]CreateOFDProtocolMessage done [10:13:12]OFDSenderStorePacket 63311 [10:13:12]StoreOFDPacket docnum=63311 [10:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 01 00 00 03 00 88 01 CD C1 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 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 3B CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F7 00 00 35 04 06 00 1C 16 CD E9 AF 14 A9 30 88 3C AA 72 3E F5 [10:13:12]CheckFolder [10:13:12]dirname=/storage/ofd_packets [10:13:12]CheckFolder done [10:13:12]ProducePacketName [10:13:12]name=ofd_packets/00063311 [10:13:12]NVStorageSaveData ofd_packets/00063311 [10:13:12]File name is /storage/ofd_packets/00063311 [10:13:12]Write 430 bytes [10:13:12]NVStorageSaveData done [10:13:12]OFDSenderStorePacket done [10:13:12]KKMCreateOFDPacket done [10:13:12]NVStorageSaveData kkm_last_timestamp [10:13:12]File name is /storage/kkm_last_timestamp [10:13:12]Write 4 bytes [10:13:12]NVStorageSaveData done [10:13:12]ExternCall_PrintAddStr [10:13:12]wPrintStart [10:13:12]Write to MH i2c: 01 00 00 DA 18 F2 [10:13:12]Write i2c OK [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: 01 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: 01 07 00 [10:13:12]MH_I2C_Read... [10:13:12]Read from MH i2c: 01 07 00 DA 18 00 00 00 00 00 FF 0F 07 [10:13:12]RasterBufferAndPrint [10:13:12]line Счет N : (3)47621 [10:13:12]line ИНН: 02508201610067 [10:13:12]line Контрольно-Кассовый Чек [10:13:12]line ПРОДАЖА [10:13:12]line Товар: 5449000000286 [10:13:12]line Напиток Кока-Кола 2л [10:13:12]line 1.000 * 205.00 [10:13:12]line = 205.00 [10:13:12]line НДС 12% НСП 1% [10:13:12]line > о реализуемом товаре [10:13:12]line Товар: 48745000 [10:13:12]line Сигареты Winston Purple Mix [10:13:12]line 1.000 * 139.00 [10:13:12]line = 139.00 [10:13:12]line НДС 12% НСП 1% [10:13:12]line > о реализуемом товаре [10:13:12]line ИТОГО: 344.00 [10:13:12]line НСП 1% : 3.04 [10:13:12]line НДС 12% : 36.53 [10:13:12]line Наличными: 344.00 [10:13:12]line Безнал.: 0.00 [10:13:12]line Место: АЗС № 86 "Партнер Нефть" [10:13:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:13:12]line СНО: Общий режим [10:13:12]line Чек 40 23.10.2024 10:13 [10:13:12]line Смена: 546 ФФД: 1.0 [10:13:12]line ЗНМ: 0300000154 [10:13:12]line РНМ: 0000000000091619 [10:13:12]line Версия ККМ: 001 [10:13:12]line ФМ: 0000000000874676 [10:13:12]line ФД: 63311 [10:13:12]line ФПД: 30884269502228 [10:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101315&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63311&fm=30884269502228&tin=02508201610067®Number=0000000000091619&sum=34400 [10:13:12]line 0 [10:13:12]OFD Sender: Processing packet 63311 [packets to send 232, broken 231] [10:13:12]ProducePacketName [10:13:12]name=ofd_packets/00063311 [10:13:12]OFD Sender: To server: pG, [10:13:12]CommunicateWithHost lk.salyk.kg:30040 [10:13:12]ConnectInit lk.salyk.kg [10:13:12]written 0, free lines is 4095 [10:13:13]Connected sock=10 [10:13:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 01 00 00 03 00 88 01 CD C1 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 32 38 36 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 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 3B CC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F7 00 00 35 04 06 00 1C 16 CD E9 AF 14 A9 30 88 3C AA 72 3E F5 [10:13:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 7E 3C 47 00 34 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 4F F7 00 00 F4 03 04 00 33 76 18 67 B6 04 01 00 00 FF 04 A8 BD 7A 07 71 08 [10:13:13]CommunicateWithHost err = 0 [10:13:13]CheckOFDResponse [10:13:13]1017 (14) - 77093643461234 [10:13:13]1041 (16) - 0000000000874676 [10:13:13]1040 (4) - 63311 [10:13:13]1012 (4) - 23.10.2024 04:06 [10:13:13]1206 (1) - 0 [10:13:13]OFD Sender: Remove packet 63311 [10:13:13]ProducePacketName [10:13:13]name=ofd_packets/00063311 [10:13:13]NVStorageDeleteData [10:13:13]Write to MH i2c: 01 00 00 08 19 21 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: 01 07 00 08 19 00 00 00 00 00 C8 0C FC [10:13:13]RasterBufferAndPrint [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]line [10:13:13]written 0, free lines is 3280 [10:13:13]MH_Cut [10:13:13]Write to MH i2c: D1 01 00 0F 19 01 FA [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 01 00 [10:13:13]MH_I2C_Read... [10:13:13]Read from MH i2c: D1 01 00 0F 19 00 F9 [10:13:13]Write to MH i2c: 01 00 00 10 19 29 [10:13:13]Write i2c OK [10:13:13]MH_I2C_Read... [10:13:13]OFD Sender: No OFD packet to send [10:13:14]*** Cut start [10:13:14]*** Partial cut [10:13:14]*** CUTSNS_PIN = 1 [10:13:14]*** CUTSNS_PIN = 0 [10:13:14]*** Brake cut motor [10:13:14]Read from MH i2c: 01 [10:13:14]MH_I2C_Read... [10:13:14]*** Stop cut motor [10:13:14]*** Cut end [10:13:14]Read from MH i2c: 01 07 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: 01 07 00 10 19 00 00 00 00 00 FF 0F 3E [10:13:14]process_action close_receipt done [10:13:14]requested_data is exist [10:13:14]produce_requested_data [10:13:14]requested_item fm.sn is exist - process it [10:13:14]wFMCommunicate request_size=4 [10:13:14]MH_SAM_APDU [10:13:14]CAPDU: 80 11 00 00 [10:13:14]Write to MH i2c: E2 08 00 11 19 80 11 00 00 00 00 00 00 A4 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:14]Read from MH i2c: E2 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 17 00 [10:13:14]MH_I2C_Read... [10:13:14]Read from MH i2c: E2 17 00 11 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 FD [10:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:13:14]wFMCommunicate OK [10:13:14]requested_item fd.num is exist - process it [10:13:14]SAM_PROTO_GetFieldsCounters [10:13:14]wFMCommunicate request_size=4 [10:13:14]MH_SAM_APDU [10:13:14]CAPDU: 80 13 00 00 [10:13:14]Write to MH i2c: E2 08 00 12 19 80 13 00 00 00 00 00 00 A7 [10:13:14]Write i2c OK [10:13:14]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 62 00 12 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4F F7 00 00 0E 04 04 00 22 02 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 B1 [10:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 4F F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetFieldsCounters done [10:13:15]requested_item shift.num is exist - process it [10:13:15]requested_item shift.opened is exist - process it [10:13:15]req_shift_opened [10:13:15]FM_GetShiftState [10:13:15]SAM_PROTO_GetShiftState [10:13:15]wFMCommunicate request_size=4 [10:13:15]MH_SAM_APDU [10:13:15]CAPDU: 80 13 01 00 [10:13:15]Write to MH i2c: E2 08 00 13 19 80 13 01 00 00 00 00 00 A9 [10:13:15]Write i2c OK [10:13:15]MH_I2C_Read... [10:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:15]Read from MH i2c: E2 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 [10:13:15]MH_I2C_Read... [10:13:15]Read from MH i2c: E2 0E 00 13 19 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 93 [10:13:15]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:13:15]wFMCommunicate OK [10:13:15]SAM_PROTO_GetShiftState done [10:13:15]FM_GetShiftState done [10:13:15]req_shift_opened done [10:13:15]requested_item shift.open_date is exist - process it [10:13:15]req_shift_open_date [10:13:15]req_shift_open_date done [10:13:15]produce_requested_data done [10:13:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63311,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [10:13:15]process_action_free close_receipt [10:13:15]json_value_free [10:13:15]json_value_free done [10:13:15]process_json_proto returns [10:13:15]Send response to host [10:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63311,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [10:13:15]free response buf [10:13:15]execute_script done [10:13:15]execute_script returns [10:13:15]free content buf [10:13:15]Sock 7.Close socket [10:13:15]Sock 7.Thread stoped [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:47]accept exits with 9 [10:19:47]New connection [10:19:47]New thread 3066953060 created [10:19:47]Thread 3067096420 joined [10:19:47]Waiting for new connection... [10:19:47] Sock 9.Parse request [10:19:47]Sock 9.Check first char [10:19:47]Sock 9.First char is OK [10:19:47]request: POST /json_proto HTTP/1.0 [10:19:47]Method: POST [10:19:47]URL: /json_proto [10:19:47]Method is POST - this is cgi request [10:19:47]url: /json_proto [10:19:47]query_string will be loaded in cgi processing [10:19:47]execute_cgi json_proto POST (null) [10:19:47]execute_cgi path=json_proto method=POST [10:19:47]POST find Content-Length [10:19:47]Host: 172.17.42.132:8080 [10:19:47]Content-Length: 621 [10:19:47]Content-Type: application/json [10:19:47] [10:19:47]POST finish read [10:19:47]Found Content-Length = 621 [10:19:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47622", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:47]execute_script... [10:19:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47622", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:47]POST & json_proto [10:19:47]process_json_proto [10:19:47]json parsed OK: [10:19:47]protocol is kg_v1.0 [10:19:47]action value=close_receipt [10:19:47]process_action close_receipt [10:19:47]cmd_close_receipt [10:19:47]MH_GetDate [10:19:47]Write to MH i2c: F0 00 00 14 19 1C [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 09 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: F0 09 00 14 19 00 C8 CD 18 67 4C DF 56 66 20 [10:19:47]GetLastDocTimeStamp 1729678395 [10:19:47]current date 1729678792 [10:19:47]FM_GetShiftState [10:19:47]SAM_PROTO_GetShiftState [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 01 00 [10:19:47]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 95 [10:19:47]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:19:47]wFMCommunicate OK [10:19:47]SAM_PROTO_GetShiftState done [10:19:47]FM_GetShiftState done [10:19:47]opened in 1729642527 [10:19:47]opened+sec_in_day 1729728927 [10:19:47]quantity*price = 16000 [10:19:47]sum+1 = 16001 [10:19:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 41 23.10.2024 10:19 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63312 ФПД: 21675418060995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63312&fm=21675418060995&tin=02508201610067®Number=0000000000091619&sum=16000 0 [10:19:48]StoreToDocumentArchive [10:19:48]shift 546 fd 63312 [10:19:48]save to /storage/0546/doc_00063312 [10:19:48]save last doc name /storage/0546/doc_00063312 to /storage/kkm_last_doc_name [10:19:48]save OK [10:19:48]Clear old archive folders... [10:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [10:19:48]tlvbuf is B6ECB0B0 [10:19:48]SAM_PROTO_ClearQueue [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 09 00 00 [10:19:48]Write to MH i2c: E2 08 00 22 19 80 09 00 00 00 00 00 00 AD [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_ClearQueue done [10:19:48]KKMCreateOFDPacket [10:19:48]OFDProtocolAddRootSTLVToBuf [10:19:48]FM_MakeSignedData [10:19:48]FM_MakeSignedData [10:19:48]SAM_PROTO_SignData [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 01 02 [10:19:48]Write to MH i2c: E2 08 00 23 19 80 0D 01 02 00 00 00 00 B5 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 23 19 00 90 00 B0 [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=255 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C8 CD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [10:19:48]Write to MH i2c: E2 02 01 24 19 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C8 CD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 68 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [10:19:48]RAPDU: 90 00 [10:19:48]wFMCommunicate OK [10:19:48]wFMCommunicate request_size=33 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 50 F7 00 00 35 04 06 00 13 B6 B3 98 08 C3 [10:19:48]Write to MH i2c: E2 24 00 25 19 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 50 F7 00 00 35 04 06 00 13 B6 B3 98 08 C3 00 00 73 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 03 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [10:19:49]RAPDU: 90 00 [10:19:49]wFMCommunicate OK [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 0D 03 02 [10:19:49]Write to MH i2c: E2 08 00 26 19 80 0D 03 02 00 00 00 00 BA [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0B 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0B 00 26 19 00 44 D3 E9 D7 B0 13 BE 04 90 00 17 [10:19:49]RAPDU: 44 D3 E9 D7 B0 13 BE 04 90 00 [10:19:49]wFMCommunicate OK [10:19:49]SAM_PROTO_SignData done [10:19:49]FM_MakeSignedData done [10:19:49]CreateOFDProtocolMessage [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 11 00 00 [10:19:49]Write to MH i2c: E2 08 00 27 19 80 11 00 00 00 00 00 00 BA [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 17 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 17 00 27 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 13 [10:19:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:19:49]wFMCommunicate OK [10:19:49]CreateOFDProtocolMessage done [10:19:49]OFDSenderStorePacket 63312 [10:19:49]StoreOFDPacket docnum=63312 [10:19:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 4B 46 1E 01 15 9C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C8 CD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 50 F7 00 00 35 04 06 00 13 B6 B3 98 08 C3 44 D3 E9 D7 B0 13 BE 04 [10:19:49]CheckFolder [10:19:49]dirname=/storage/ofd_packets [10:19:49]CheckFolder done [10:19:49]ProducePacketName [10:19:49]name=ofd_packets/00063312 [10:19:49]NVStorageSaveData ofd_packets/00063312 [10:19:49]File name is /storage/ofd_packets/00063312 [10:19:49]Write 324 bytes [10:19:49]NVStorageSaveData done [10:19:49]OFDSenderStorePacket done [10:19:49]KKMCreateOFDPacket done [10:19:49]NVStorageSaveData kkm_last_timestamp [10:19:49]File name is /storage/kkm_last_timestamp [10:19:49]Write 4 bytes [10:19:49]NVStorageSaveData done [10:19:49]ExternCall_PrintAddStr [10:19:49]wPrintStart [10:19:49]Write to MH i2c: 01 00 00 28 19 41 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 28 19 00 00 00 00 00 FF 0F 56 [10:19:49]RasterBufferAndPrint [10:19:49]line Счет N : (3)47622 [10:19:49]line ИНН: 02508201610067 [10:19:49]line Контрольно-Кассовый Чек [10:19:49]line ПРОДАЖА [10:19:49]line Товар: 48741958 [10:19:49]line Сигареты Parliament Aqua Blue [10:19:49]line 1.000 * 160.00 [10:19:49]line = 160.00 [10:19:49]line НДС 12% НСП 1% [10:19:49]line > о реализуемом товаре [10:19:49]line ИТОГО: 160.00 [10:19:49]line НСП 1% : 1.42 [10:19:49]line НДС 12% : 16.99 [10:19:49]line Наличными: 160.00 [10:19:49]line Безнал.: 0.00 [10:19:49]line Место: АЗС № 86 "Партнер Нефть" [10:19:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:19:49]line СНО: Общий режим [10:19:49]line Чек 41 23.10.2024 10:19 [10:19:49]line Смена: 546 ФФД: 1.0 [10:19:49]line ЗНМ: 0300000154 [10:19:49]line РНМ: 0000000000091619 [10:19:49]line Версия ККМ: 001 [10:19:49]line ФМ: 0000000000874676 [10:19:49]line ФД: 63312 [10:19:49]line ФПД: 21675418060995 [10:19:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T101952&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63312&fm=21675418060995&tin=02508201610067®Number=0000000000091619&sum=16000 [10:19:49]OFD Sender: Processing packet 63312 [packets to send 232, broken 231] [10:19:49]ProducePacketName [10:19:49]name=ofd_packets/00063312 [10:19:49]OFD Sender: To server: pG, [10:19:49]CommunicateWithHost lk.salyk.kg:30040 [10:19:49]ConnectInit lk.salyk.kg [10:19:49]line 0 [10:19:49]written 0, free lines is 4095 [10:19:49]Connected sock=10 [10:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 4B 46 1E 01 15 9C 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C8 CD 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 50 F7 00 00 35 04 06 00 13 B6 B3 98 08 C3 44 D3 E9 D7 B0 13 BE 04 [10:19:49]Write to MH i2c: 01 00 00 51 19 6A [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 EC 0C 69 [10:19:49]RasterBufferAndPrint [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]line [10:19:49]written 0, free lines is 3317 [10:19:49]MH_Cut [10:19:49]Write to MH i2c: D1 01 00 58 19 01 43 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 01 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: D1 01 00 58 19 00 42 [10:19:49]Write to MH i2c: 01 00 00 59 19 72 [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 FC 44 47 00 34 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 38 37 34 36 37 36 10 04 04 00 50 F7 00 00 F4 03 04 00 C0 77 18 67 B6 04 01 00 00 47 4F C5 D4 9A 5E F0 0D [10:19:50]CommunicateWithHost err = 0 [10:19:50]CheckOFDResponse [10:19:50]1017 (14) - 77093643461234 [10:19:50]1041 (16) - 0000000000874676 [10:19:50]1040 (4) - 63312 [10:19:50]1012 (4) - 23.10.2024 04:12 [10:19:50]1206 (1) - 0 [10:19:50]OFD Sender: Remove packet 63312 [10:19:50]ProducePacketName [10:19:50]name=ofd_packets/00063312 [10:19:50]NVStorageDeleteData [10:19:50]OFD Sender: No OFD packet to send [10:19:50]*** Cut start [10:19:50]*** Partial cut [10:19:50]*** CUTSNS_PIN = 1 [10:19:50]*** CUTSNS_PIN = 0 [10:19:50]*** Brake cut motor [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]*** Stop cut motor [10:19:51]*** Cut end [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [10:19:51]process_action close_receipt done [10:19:51]requested_data is exist [10:19:51]produce_requested_data [10:19:51]requested_item fm.sn is exist - process it [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 11 00 00 [10:19:51]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 46 [10:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [10:19:51]wFMCommunicate OK [10:19:51]requested_item fd.num is exist - process it [10:19:51]SAM_PROTO_GetFieldsCounters [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 00 00 [10:19:51]Write to MH i2c: E2 08 00 5B 19 80 13 00 00 00 00 00 00 F0 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 62 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 62 00 5B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 50 F7 00 00 0E 04 04 00 22 02 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 FE [10:19:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 50 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetFieldsCounters done [10:19:51]requested_item shift.num is exist - process it [10:19:51]requested_item shift.opened is exist - process it [10:19:51]req_shift_opened [10:19:51]FM_GetShiftState [10:19:51]SAM_PROTO_GetShiftState [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 13 01 00 [10:19:51]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DC [10:19:51]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_GetShiftState done [10:19:51]FM_GetShiftState done [10:19:51]req_shift_opened done [10:19:51]requested_item shift.open_date is exist - process it [10:19:51]req_shift_open_date [10:19:51]req_shift_open_date done [10:19:51]produce_requested_data done [10:19:51]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63312,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [10:19:51]process_action_free close_receipt [10:19:51]json_value_free [10:19:51]json_value_free done [10:19:51]process_json_proto returns [10:19:51]Send response to host [10:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63312,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [10:19:51]free response buf [10:19:51]execute_script done [10:19:51]execute_script returns [10:19:51]free content buf [10:19:51]Sock 9.Close socket [10:19:51]Sock 9.Thread stoped [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [11:07:49]ConnectInit Can't connect to host [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:23]accept exits with 9 [11:08:23]New connection [11:08:23]New thread 3067342180 created [11:08:23]Waiting for new connection... [11:08:23] Sock 9.Parse request [11:08:23]Sock 9.Check first char [11:08:23]Sock 9.First char is OK [11:08:23]request: POST /json_proto HTTP/1.0 [11:08:23]Method: POST [11:08:23]URL: /json_proto [11:08:23]Method is POST - this is cgi request [11:08:23]url: /json_proto [11:08:23]query_string will be loaded in cgi processing [11:08:23]execute_cgi json_proto POST (null) [11:08:23]execute_cgi path=json_proto method=POST [11:08:23]POST find Content-Length [11:08:23]Host: 172.17.42.132:8080 [11:08:23]Content-Length: 215 [11:08:23]Content-Type: application/json [11:08:23] [11:08:23]POST finish read [11:08:23]Found Content-Length = 215 [11:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:23]execute_script... [11:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:23]POST & json_proto [11:08:23]process_json_proto [11:08:23]json parsed OK: [11:08:23]protocol is kg_v1.0 [11:08:23]action value=get_value [11:08:23]process_action get_value [11:08:23]cmd_get_value [11:08:23]process_action get_value done [11:08:23]requested_data is exist [11:08:23]produce_requested_data [11:08:23]requested_item kkm.sn is exist - process it [11:08:23]requested_item kkm.ver is exist - process it [11:08:23]requested_item fm.sn is exist - process it [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 11 00 00 [11:08:23]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:23]Read from MH i2c: E2 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 [11:08:23]MH_I2C_Read... [11:08:23]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E3 [11:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:08:23]wFMCommunicate OK [11:08:23]requested_item fd.num is exist - process it [11:08:23]SAM_PROTO_GetFieldsCounters [11:08:23]wFMCommunicate request_size=4 [11:08:23]MH_SAM_APDU [11:08:23]CAPDU: 80 13 00 00 [11:08:23]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:08:23]Write i2c OK [11:08:23]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 50 F7 00 00 0E 04 04 00 22 02 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 9B [11:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 50 F7 00 00 0E 04 04 00 22 02 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:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetFieldsCounters done [11:08:24]requested_item shift.num is exist - process it [11:08:24]requested_item shift.opened is exist - process it [11:08:24]req_shift_opened [11:08:24]FM_GetShiftState [11:08:24]SAM_PROTO_GetShiftState [11:08:24]wFMCommunicate request_size=4 [11:08:24]MH_SAM_APDU [11:08:24]CAPDU: 80 13 01 00 [11:08:24]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:08:24]Write i2c OK [11:08:24]MH_I2C_Read... [11:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:24]Read from MH i2c: E2 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 [11:08:24]MH_I2C_Read... [11:08:24]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 79 [11:08:24]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:08:24]wFMCommunicate OK [11:08:24]SAM_PROTO_GetShiftState done [11:08:24]FM_GetShiftState done [11:08:24]req_shift_opened done [11:08:24]requested_item shift.open_date is exist - process it [11:08:24]req_shift_open_date [11:08:24]req_shift_open_date done [11:08:24]produce_requested_data done [11:08:24]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63312,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:08:24]process_action_free get_value [11:08:24]json_value_free [11:08:24]json_value_free done [11:08:24]process_json_proto returns [11:08:24]Send response to host [11:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63312,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:08:24]free response buf [11:08:24]execute_script done [11:08:24]execute_script returns [11:08:24]free content buf [11:08:24]Sock 9.Close socket [11:08:24]Sock 9.Thread stoped [11:08:24]OFD Sender: No OFD packet to send [11:08:27]accept exits with 10 [11:08:27]New connection [11:08:27]New thread 3067198820 created [11:08:27]Thread 3067342180 joined [11:08:27]Waiting for new connection... [11:08:27] Sock 10.Parse request [11:08:27]Sock 10.Check first char [11:08:27]Sock 10.First char is OK [11:08:27]request: POST /json_proto HTTP/1.0 [11:08:27]Method: POST [11:08:27]URL: /json_proto [11:08:27]Method is POST - this is cgi request [11:08:27]url: /json_proto [11:08:27]query_string will be loaded in cgi processing [11:08:27]execute_cgi json_proto POST (null) [11:08:27]execute_cgi path=json_proto method=POST [11:08:27]POST find Content-Length [11:08:27]Host: 172.17.42.132:8080 [11:08:27]Content-Length: 331 [11:08:27]Content-Type: application/json [11:08:27] [11:08:27]POST finish read [11:08:27]Found Content-Length = 331 [11:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:08:27]execute_script... [11:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:08:27]POST & json_proto [11:08:27]process_json_proto [11:08:27]json parsed OK: [11:08:27]protocol is kg_v1.0 [11:08:27]action value=get_value [11:08:27]process_action get_value [11:08:27]cmd_get_value [11:08:27]process_action get_value done [11:08:27]requested_data is exist [11:08:27]produce_requested_data [11:08:27]requested_item fm.sale.total is exist - process it [11:08:27]SAM_PROTO_GetFMData [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 13 03 00 [11:08:27]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 FD 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 0C F3 00 00 69 04 A1 00 6F 04 04 00 D5 F2 00 00 B1 04 04 00 32 22 EC 93 70 04 04 00 0C 25 9E 85 72 04 04 00 26 FD 4D 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 26 D9 B5 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CA 0B 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 9D [11:08:27]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 0C F3 00 00 69 04 A1 00 6F 04 04 00 D5 F2 00 00 B1 04 04 00 32 22 EC 93 70 04 04 00 0C 25 9E 85 72 04 04 00 26 FD 4D 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 26 D9 B5 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 CA 0B 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 [11:08:27]wFMCommunicate OK [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 17 00 00 [11:08:27]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:27]Read from MH i2c: E2 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 FD 00 [11:08:27]MH_I2C_Read... [11:08:27]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6B [11:08:27]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:08:27]wFMCommunicate OK [11:08:27]wFMCommunicate request_size=4 [11:08:27]MH_SAM_APDU [11:08:27]CAPDU: 80 17 00 00 [11:08:27]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:08:27]Write i2c OK [11:08:27]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 FD 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [11:08:28]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:28]wFMCommunicate OK [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 17 00 00 [11:08:28]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 FD 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [11:08:28]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:08:28]wFMCommunicate OK [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 17 00 00 [11:08:28]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [11:08:28]Read from MH i2c: E2 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 DF 00 [11:08:28]MH_I2C_Read... [11:08:28]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [11:08:28]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:08:28]wFMCommunicate OK [11:08:28]SAM_PROTO_GetFMData done [11:08:28]requested_item fm.sale_refund.total is exist - process it [11:08:28]requested_item fm.buy.total is exist - process it [11:08:28]requested_item shift.sale.total is exist - process it [11:08:28]SAM_PROTO_GetShiftData [11:08:28]wFMCommunicate request_size=4 [11:08:28]MH_SAM_APDU [11:08:28]CAPDU: 80 13 02 00 [11:08:28]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:08:28]Write i2c OK [11:08:28]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 3C 86 0B 70 04 03 00 90 42 0A 72 04 03 00 AC 43 01 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 45 39 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 1A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F5 [11:08:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 29 00 00 00 69 04 9B 00 6F 04 04 00 29 00 00 00 B1 04 03 00 3C 86 0B 70 04 03 00 90 42 0A 72 04 03 00 AC 43 01 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 45 39 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 1A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:08:29]wFMCommunicate OK [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 17 00 00 [11:08:29]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 19 00 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 BB [11:08:29]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 [11:08:29]wFMCommunicate OK [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 17 00 00 [11:08:29]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:29]Read from MH i2c: E2 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 [11:08:29]MH_I2C_Read... [11:08:29]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [11:08:29]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 [11:08:29]wFMCommunicate OK [11:08:29]wFMCommunicate request_size=4 [11:08:29]MH_SAM_APDU [11:08:29]CAPDU: 80 17 00 00 [11:08:29]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:08:29]Write i2c OK [11:08:29]MH_I2C_Read... [11:08:29]OFD Sender: No OFD packet to send [11:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 FD 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 FD 00 1B 00 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 0D [11:08:30]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 [11:08:30]wFMCommunicate OK [11:08:30]wFMCommunicate request_size=4 [11:08:30]MH_SAM_APDU [11:08:30]CAPDU: 80 17 00 00 [11:08:30]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:08:30]Write i2c OK [11:08:30]MH_I2C_Read... [11:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:08:30]Read from MH i2c: E2 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 CB 00 [11:08:30]MH_I2C_Read... [11:08:30]Read from MH i2c: E2 CB 00 1C 00 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 85 [11:08:30]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 [11:08:30]wFMCommunicate OK [11:08:30]SAM_PROTO_GetShiftData done [11:08:30]requested_item shift.sale.total_cash is exist - process it [11:08:30]requested_item shift.sale_refund.total is exist - process it [11:08:30]requested_item shift.sale_refund.total_cash is exist - process it [11:08:30]requested_item shift.buy.total is exist - process it [11:08:30]requested_item shift.buy.total_cash is exist - process it [11:08:30]produce_requested_data done [11:08:30]produce_requested_data return {"fm.sale.total":24817260.02,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":7552.60,"shift.sale.total_cash":6724.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:08:30]process_action_free get_value [11:08:30]json_value_free [11:08:30]json_value_free done [11:08:30]process_json_proto returns [11:08:30]Send response to host [11:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24817260.02,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":7552.60,"shift.sale.total_cash":6724.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:08:30]free response buf [11:08:30]execute_script done [11:08:30]execute_script returns [11:08:30]free content buf [11:08:30]Sock 10.Close socket [11:08:30]Sock 10.Thread stoped [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:46]accept exits with 9 [11:10:46]New connection [11:10:46]New thread 3067342180 created [11:10:46]Thread 3067198820 joined [11:10:46]Waiting for new connection... [11:10:46] Sock 9.Parse request [11:10:46]Sock 9.Check first char [11:10:46]Sock 9.First char is OK [11:10:46]request: POST /json_proto HTTP/1.0 [11:10:46]Method: POST [11:10:46]URL: /json_proto [11:10:46]Method is POST - this is cgi request [11:10:46]url: /json_proto [11:10:46]query_string will be loaded in cgi processing [11:10:46]execute_cgi json_proto POST (null) [11:10:46]execute_cgi path=json_proto method=POST [11:10:46]POST find Content-Length [11:10:46]Host: 172.17.42.132:8080 [11:10:46]Content-Length: 674 [11:10:46]Content-Type: application/json [11:10:46] [11:10:46]POST finish read [11:10:46]Found Content-Length = 674 [11:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47623", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:46]execute_script... [11:10: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 : (3)47623", "tax_sys" : 0, "items" : [ { "code": "4870022003312", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:46]POST & json_proto [11:10:46]process_json_proto [11:10:46]json parsed OK: [11:10:46]protocol is kg_v1.0 [11:10:46]action value=close_receipt [11:10:46]process_action close_receipt [11:10:46]cmd_close_receipt [11:10:46]MH_GetDate [11:10:46]Write to MH i2c: F0 00 00 1D 00 0C [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: F0 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: F0 09 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: F0 09 00 1D 00 00 B7 D9 18 67 4C DF 56 66 0B [11:10:46]GetLastDocTimeStamp 48 [11:10:46]current date 1729681847 [11:10:46]FM_GetShiftState [11:10:46]SAM_PROTO_GetShiftState [11:10:46]wFMCommunicate request_size=4 [11:10:46]MH_SAM_APDU [11:10:46]CAPDU: 80 13 01 00 [11:10:46]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:10:46]Write i2c OK [11:10:46]MH_I2C_Read... [11:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:46]Read from MH i2c: E2 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 0E 00 [11:10:46]MH_I2C_Read... [11:10:46]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 85 [11:10:46]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:10:46]wFMCommunicate OK [11:10:46]SAM_PROTO_GetShiftState done [11:10:46]FM_GetShiftState done [11:10:46]opened in 1729642527 [11:10:46]opened+sec_in_day 1729728927 [11:10:46]quantity*price = 9900 [11:10:46]sum+1 = 9901 [11:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 42 23.10.2024 11:10 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63313 ФПД: 156815589007121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63313&fm=156815589007121&tin=02508201610067®Number=0000000000091619&sum=9900 0 [11:10:48]StoreToDocumentArchive [11:10:48]shift 546 fd 63313 [11:10:48]save to /storage/0546/doc_00063313 [11:10:48]save last doc name /storage/0546/doc_00063313 to /storage/kkm_last_doc_name [11:10:48]save OK [11:10:48]Clear old archive folders... [11:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [11:10:48]tlvbuf is 015C17A0 [11:10:48]SAM_PROTO_ClearQueue [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 09 00 00 [11:10:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_ClearQueue done [11:10:48]KKMCreateOFDPacket [11:10:48]OFDProtocolAddRootSTLVToBuf [11:10:48]FM_MakeSignedData [11:10:48]FM_MakeSignedData [11:10:48]SAM_PROTO_SignData [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 01 02 [11:10:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=255 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 B7 D9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [11:10:48]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 B7 D9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 0A [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=53 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F7 00 00 35 04 06 00 8E 9F 79 7A 5F 11 [11:10:48]Write to MH i2c: E2 38 00 2E 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F7 00 00 35 04 06 00 8E 9F 79 7A 5F 11 00 00 7C [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:10:48]RAPDU: 90 00 [11:10:48]wFMCommunicate OK [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 0D 03 02 [11:10:48]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0B 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 0B 00 2F 00 00 49 C5 C1 33 0E 18 53 4A 90 00 70 [11:10:48]RAPDU: 49 C5 C1 33 0E 18 53 4A 90 00 [11:10:48]wFMCommunicate OK [11:10:48]SAM_PROTO_SignData done [11:10:48]FM_MakeSignedData done [11:10:48]CreateOFDProtocolMessage [11:10:48]wFMCommunicate request_size=4 [11:10:48]MH_SAM_APDU [11:10:48]CAPDU: 80 11 00 00 [11:10:48]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:48]Read from MH i2c: E2 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 03 [11:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:10:48]wFMCommunicate OK [11:10:48]CreateOFDProtocolMessage done [11:10:48]OFDSenderStorePacket 63313 [11:10:48]StoreOFDPacket docnum=63313 [11:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 C9 D4 32 01 EF 24 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 B7 D9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F7 00 00 35 04 06 00 8E 9F 79 7A 5F 11 49 C5 C1 33 0E 18 53 4A [11:10:48]CheckFolder [11:10:48]dirname=/storage/ofd_packets [11:10:48]CheckFolder done [11:10:48]ProducePacketName [11:10:48]name=ofd_packets/00063313 [11:10:48]NVStorageSaveData ofd_packets/00063313 [11:10:48]File name is /storage/ofd_packets/00063313 [11:10:48]Write 344 bytes [11:10:48]NVStorageSaveData done [11:10:48]OFDSenderStorePacket done [11:10:48]KKMCreateOFDPacket done [11:10:48]NVStorageSaveData kkm_last_timestamp [11:10:48]File name is /storage/kkm_last_timestamp [11:10:48]Write 4 bytes [11:10:48]NVStorageSaveData done [11:10:48]ExternCall_PrintAddStr [11:10:48]wPrintStart [11:10:48]Write to MH i2c: 01 00 00 31 00 31 [11:10:48]Write i2c OK [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 07 00 [11:10:48]MH_I2C_Read... [11:10:48]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:10:48]RasterBufferAndPrint [11:10:48]line Счет N : (3)47623 [11:10:48]line ИНН: 02508201610067 [11:10:48]line Контрольно-Кассовый Чек [11:10:48]line ПРОДАЖА [11:10:48]line Товар: 4870022003312 [11:10:48]line Gorilla эн нап манго-кокос 0,45 ж/б [11:10:48]line 1.000 * 99.00 [11:10:48]line = 99.00 [11:10:48]line НДС 12% НСП 1% [11:10:48]line > о реализуемом товаре [11:10:48]line ИТОГО: 99.00 [11:10:48]line НСП 1% : 0.88 [11:10:48]line НДС 12% : 10.51 [11:10:48]line Наличными: 99.00 [11:10:48]line Безнал.: 0.00 [11:10:48]line Место: АЗС № 86 "Партнер Нефть" [11:10:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:10:48]line СНО: Общий режим [11:10:48]line Чек 42 23.10.2024 11:10 [11:10:48]line Смена: 546 ФФД: 1.0 [11:10:48]line ЗНМ: 0300000154 [11:10:48]line РНМ: 0000000000091619 [11:10:48]line Версия ККМ: 001 [11:10:48]line ФМ: 0000000000874676 [11:10:48]line ФД: 63313 [11:10:48]line ФПД: 156815589007121 [11:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111047&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63313&fm=156815589007121&tin=02508201610067®Number=0000000000091619&sum=9900 [11:10:48]line 0 [11:10:48]written 0, free lines is 4095 [11:10:48]OFD Sender: Processing packet 63313 [packets to send 232, broken 231] [11:10:48]ProducePacketName [11:10:48]name=ofd_packets/00063313 [11:10:48]OFD Sender: To server: pG, [11:10:48]CommunicateWithHost lk.salyk.kg:30040 [11:10:48]ConnectInit lk.salyk.kg [11:10:48]Connected sock=10 [11:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 C9 D4 32 01 EF 24 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 31 32 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 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 B7 D9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F7 00 00 35 04 06 00 8E 9F 79 7A 5F 11 49 C5 C1 33 0E 18 53 4A [11:10:49]Write to MH i2c: 01 00 00 5A 00 5A [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 1F 0D 8D [11:10:49]RasterBufferAndPrint [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]line [11:10:49]written 0, free lines is 3365 [11:10:49]MH_Cut [11:10:49]Write to MH i2c: D1 01 00 61 00 01 33 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 01 00 [11:10:49]MH_I2C_Read... [11:10:49]Read from MH i2c: D1 01 00 61 00 00 32 [11:10:49]Write to MH i2c: 01 00 00 62 00 62 [11:10:49]Write i2c OK [11:10:49]MH_I2C_Read... [11:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 47 D7 47 00 09 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 51 F7 00 00 F4 03 04 00 AE 83 18 67 B6 04 01 00 00 64 8D 79 8C E7 0D 70 05 [11:10:49]CommunicateWithHost err = 0 [11:10:49]CheckOFDResponse [11:10:49]1017 (14) - 77093643461234 [11:10:49]1041 (16) - 0000000000874676 [11:10:49]1040 (4) - 63313 [11:10:49]1012 (4) - 23.10.2024 05:03 [11:10:49]1206 (1) - 0 [11:10:49]OFD Sender: Remove packet 63313 [11:10:49]ProducePacketName [11:10:49]name=ofd_packets/00063313 [11:10:49]NVStorageDeleteData [11:10:49]OFD Sender: No OFD packet to send [11:10:49]*** Cut start [11:10:49]*** Partial cut [11:10:49]*** CUTSNS_PIN = 1 [11:10:49]*** CUTSNS_PIN = 0 [11:10:50]*** Brake cut motor [11:10:50]Read from MH i2c: 01 [11:10:50]MH_I2C_Read... [11:10:50]*** Stop cut motor [11:10:50]*** Cut end [11:10:50]Read from MH i2c: 01 07 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [11:10:50]process_action close_receipt done [11:10:50]requested_data is exist [11:10:50]produce_requested_data [11:10:50]requested_item fm.sn is exist - process it [11:10:50]wFMCommunicate request_size=4 [11:10:50]MH_SAM_APDU [11:10:50]CAPDU: 80 11 00 00 [11:10:50]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:50]Read from MH i2c: E2 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 17 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 36 [11:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:10:50]wFMCommunicate OK [11:10:50]requested_item fd.num is exist - process it [11:10:50]SAM_PROTO_GetFieldsCounters [11:10:50]wFMCommunicate request_size=4 [11:10:50]MH_SAM_APDU [11:10:50]CAPDU: 80 13 00 00 [11:10:50]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:50]Read from MH i2c: E2 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 62 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 62 00 64 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 51 F7 00 00 0E 04 04 00 22 02 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 F2 [11:10:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 51 F7 00 00 0E 04 04 00 22 02 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:10:50]wFMCommunicate OK [11:10:50]SAM_PROTO_GetFieldsCounters done [11:10:50]requested_item shift.num is exist - process it [11:10:50]requested_item shift.opened is exist - process it [11:10:50]req_shift_opened [11:10:50]FM_GetShiftState [11:10:50]SAM_PROTO_GetShiftState [11:10:50]wFMCommunicate request_size=4 [11:10:50]MH_SAM_APDU [11:10:50]CAPDU: 80 13 01 00 [11:10:50]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [11:10:50]Write i2c OK [11:10:50]MH_I2C_Read... [11:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:50]Read from MH i2c: E2 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 0E 00 [11:10:50]MH_I2C_Read... [11:10:50]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CC [11:10:50]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:10:50]wFMCommunicate OK [11:10:50]SAM_PROTO_GetShiftState done [11:10:50]FM_GetShiftState done [11:10:50]req_shift_opened done [11:10:50]requested_item shift.open_date is exist - process it [11:10:50]req_shift_open_date [11:10:50]req_shift_open_date done [11:10:50]produce_requested_data done [11:10:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63313,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:10:50]process_action_free close_receipt [11:10:50]json_value_free [11:10:50]json_value_free done [11:10:50]process_json_proto returns [11:10:50]Send response to host [11:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63313,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:10:50]free response buf [11:10:50]execute_script done [11:10:50]execute_script returns [11:10:50]free content buf [11:10:50]Sock 9.Close socket [11:10:50]Sock 9.Thread stoped [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [11:12:31]accept exits with 7 [11:12:31]New connection [11:12:31]New thread 3067198820 created [11:12:31]Thread 3067342180 joined [11:12:31]Waiting for new connection... [11:12:31] Sock 7.Parse request [11:12:31]Sock 7.Check first char [11:12:31]Sock 7.First char is OK [11:12:31]request: POST /json_proto HTTP/1.0 [11:12:31]Method: POST [11:12:31]URL: /json_proto [11:12:31]Method is POST - this is cgi request [11:12:31]url: /json_proto [11:12:31]query_string will be loaded in cgi processing [11:12:31]execute_cgi json_proto POST (null) [11:12:31]execute_cgi path=json_proto method=POST [11:12:31]POST find Content-Length [11:12:31]Host: 172.17.42.132:8080 [11:12:31]Content-Length: 646 [11:12:31]Content-Type: application/json [11:12:31] [11:12:31]POST finish read [11:12:31]Found Content-Length = 646 [11:12:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47624", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:31]execute_script... [11:12: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 : (3)47624", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:31]POST & json_proto [11:12:31]process_json_proto [11:12:31]json parsed OK: [11:12:31]protocol is kg_v1.0 [11:12:31]action value=close_receipt [11:12:31]process_action close_receipt [11:12:31]cmd_close_receipt [11:12:31]MH_GetDate [11:12:31]Write to MH i2c: F0 00 00 66 00 55 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 09 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: F0 09 00 66 00 00 20 DA 18 67 4C DF 56 66 BE [11:12:31]GetLastDocTimeStamp 1729681847 [11:12:31]current date 1729681952 [11:12:31]FM_GetShiftState [11:12:31]SAM_PROTO_GetShiftState [11:12:31]wFMCommunicate request_size=4 [11:12:31]MH_SAM_APDU [11:12:31]CAPDU: 80 13 01 00 [11:12:31]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:12:31]Write i2c OK [11:12:31]MH_I2C_Read... [11:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:31]Read from MH i2c: E2 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 [11:12:31]MH_I2C_Read... [11:12:31]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CE [11:12:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:12:31]wFMCommunicate OK [11:12:31]SAM_PROTO_GetShiftState done [11:12:31]FM_GetShiftState done [11:12:31]opened in 1729642527 [11:12:31]opened+sec_in_day 1729728927 [11:12:31]quantity*price = 13000 [11:12:31]sum+1 = 13001 [11:12:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 43 23.10.2024 11:12 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63314 ФПД: 112041885123804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111232&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63314&fm=112041885123804&tin=02508201610067®Number=0000000000091619&sum=13000 0 [11:12:33]StoreToDocumentArchive [11:12:33]shift 546 fd 63314 [11:12:33]save to /storage/0546/doc_00063314 [11:12:33]save last doc name /storage/0546/doc_00063314 to /storage/kkm_last_doc_name [11:12:33]save OK [11:12:33]Clear old archive folders... [11:12:33]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:12:33]tlvbuf is 015C33B0 [11:12:33]SAM_PROTO_ClearQueue [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 09 00 00 [11:12:33]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]SAM_PROTO_ClearQueue done [11:12:33]KKMCreateOFDPacket [11:12:33]OFDProtocolAddRootSTLVToBuf [11:12:33]FM_MakeSignedData [11:12:33]FM_MakeSignedData [11:12:33]SAM_PROTO_SignData [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 01 02 [11:12:33]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]wFMCommunicate request_size=255 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 20 DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [11:12:33]Write to MH i2c: E2 02 01 76 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 20 DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 55 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]wFMCommunicate request_size=31 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 52 F7 00 00 35 04 06 00 65 E6 C8 C3 44 DC [11:12:33]Write to MH i2c: E2 22 00 77 00 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 52 F7 00 00 35 04 06 00 65 E6 C8 C3 44 DC 00 00 61 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:12:33]RAPDU: 90 00 [11:12:33]wFMCommunicate OK [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 0D 03 02 [11:12:33]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0B 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 0B 00 78 00 00 3F B7 F7 E3 97 72 45 D6 90 00 E8 [11:12:33]RAPDU: 3F B7 F7 E3 97 72 45 D6 90 00 [11:12:33]wFMCommunicate OK [11:12:33]SAM_PROTO_SignData done [11:12:33]FM_MakeSignedData done [11:12:33]CreateOFDProtocolMessage [11:12:33]wFMCommunicate request_size=4 [11:12:33]MH_SAM_APDU [11:12:33]CAPDU: 80 11 00 00 [11:12:33]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:33]Read from MH i2c: E2 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 17 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4C [11:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:12:33]wFMCommunicate OK [11:12:33]CreateOFDProtocolMessage done [11:12:33]OFDSenderStorePacket 63314 [11:12:33]StoreOFDPacket docnum=63314 [11:12:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 A7 26 1C 01 95 A7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 20 DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 52 F7 00 00 35 04 06 00 65 E6 C8 C3 44 DC 3F B7 F7 E3 97 72 45 D6 [11:12:33]CheckFolder [11:12:33]dirname=/storage/ofd_packets [11:12:33]CheckFolder done [11:12:33]ProducePacketName [11:12:33]name=ofd_packets/00063314 [11:12:33]NVStorageSaveData ofd_packets/00063314 [11:12:33]File name is /storage/ofd_packets/00063314 [11:12:33]Write 322 bytes [11:12:33]NVStorageSaveData done [11:12:33]OFDSenderStorePacket done [11:12:33]KKMCreateOFDPacket done [11:12:33]NVStorageSaveData kkm_last_timestamp [11:12:33]File name is /storage/kkm_last_timestamp [11:12:33]Write 4 bytes [11:12:33]NVStorageSaveData done [11:12:33]ExternCall_PrintAddStr [11:12:33]wPrintStart [11:12:33]Write to MH i2c: 01 00 00 7A 00 7A [11:12:33]Write i2c OK [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 [11:12:33]MH_I2C_Read... [11:12:33]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [11:12:33]RasterBufferAndPrint [11:12:33]line Счет N : (3)47624 [11:12:33]line ИНН: 02508201610067 [11:12:33]line Контрольно-Кассовый Чек [11:12:33]line ПРОДАЖА [11:12:33]line Товар: 47011656 [11:12:33]line Водка Пшеничная 0,1л [11:12:33]line 2.000 * 65.00 [11:12:33]line = 130.00 [11:12:33]line НДС 12% НСП 1% [11:12:33]line > о реализуемом товаре [11:12:33]line ИТОГО: 130.00 [11:12:33]line НСП 1% : 1.15 [11:12:33]line НДС 12% : 13.80 [11:12:33]line Наличными: 130.00 [11:12:33]line Безнал.: 0.00 [11:12:33]line Место: АЗС № 86 "Партнер Нефть" [11:12:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:12:33]line СНО: Общий режим [11:12:33]line Чек 43 23.10.2024 11:12 [11:12:33]line Смена: 546 ФФД: 1.0 [11:12:33]line ЗНМ: 0300000154 [11:12:33]line РНМ: 0000000000091619 [11:12:33]line Версия ККМ: 001 [11:12:33]line ФМ: 0000000000874676 [11:12:33]line ФД: 63314 [11:12:33]line ФПД: 112041885123804 [11:12:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111232&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63314&fm=112041885123804&tin=02508201610067®Number=0000000000091619&sum=13000 [11:12:33]OFD Sender: Processing packet 63314 [packets to send 232, broken 231] [11:12:33]ProducePacketName [11:12:33]name=ofd_packets/00063314 [11:12:33]OFD Sender: To server: pG, [11:12:33]CommunicateWithHost lk.salyk.kg:30040 [11:12:33]ConnectInit lk.salyk.kg [11:12:33]line 0 [11:12:33]written 0, free lines is 4095 [11:12:34]Connected sock=10 [11:12:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 A7 26 1C 01 95 A7 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 20 DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 52 F7 00 00 35 04 06 00 65 E6 C8 C3 44 DC 3F B7 F7 E3 97 72 45 D6 [11:12:34]Write to MH i2c: 01 00 00 A2 00 A2 [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 07 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: 01 07 00 A2 00 00 00 00 00 00 16 0D CC [11:12:34]RasterBufferAndPrint [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]line [11:12:34]written 0, free lines is 3356 [11:12:34]MH_Cut [11:12:34]Write to MH i2c: D1 01 00 A9 00 01 7B [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 01 00 [11:12:34]MH_I2C_Read... [11:12:34]Read from MH i2c: D1 01 00 A9 00 00 7A [11:12:34]Write to MH i2c: 01 00 00 AA 00 AA [11:12:34]Write i2c OK [11:12:34]MH_I2C_Read... [11:12:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 86 EA 47 00 73 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 38 37 34 36 37 36 10 04 04 00 52 F7 00 00 F4 03 04 00 17 84 18 67 B6 04 01 00 00 0D 9C CD 6E E7 7A F4 80 [11:12:34]CommunicateWithHost err = 0 [11:12:34]CheckOFDResponse [11:12:34]1017 (14) - 77093643461234 [11:12:34]1041 (16) - 0000000000874676 [11:12:34]1040 (4) - 63314 [11:12:34]1012 (4) - 23.10.2024 05:05 [11:12:34]1206 (1) - 0 [11:12:34]OFD Sender: Remove packet 63314 [11:12:34]ProducePacketName [11:12:34]name=ofd_packets/00063314 [11:12:34]NVStorageDeleteData [11:12:34]OFD Sender: No OFD packet to send [11:12:34]*** Cut start [11:12:34]*** Partial cut [11:12:34]*** CUTSNS_PIN = 1 [11:12:35]*** CUTSNS_PIN = 0 [11:12:35]*** Brake cut motor [11:12:35]Read from MH i2c: 01 [11:12:35]MH_I2C_Read... [11:12:35]*** Stop cut motor [11:12:35]*** Cut end [11:12:35]Read from MH i2c: 01 07 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: 01 07 00 AA 00 00 00 00 00 00 FF 0F BF [11:12:35]process_action close_receipt done [11:12:35]requested_data is exist [11:12:35]produce_requested_data [11:12:35]requested_item fm.sn is exist - process it [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 11 00 00 [11:12:35]Write to MH i2c: E2 08 00 AB 00 80 11 00 00 00 00 00 00 25 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 17 00 AB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7E [11:12:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:12:35]wFMCommunicate OK [11:12:35]requested_item fd.num is exist - process it [11:12:35]SAM_PROTO_GetFieldsCounters [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 13 00 00 [11:12:35]Write to MH i2c: E2 08 00 AC 00 80 13 00 00 00 00 00 00 28 [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 62 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 62 00 AC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 52 F7 00 00 0E 04 04 00 22 02 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 3E [11:12:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 52 F7 00 00 0E 04 04 00 22 02 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:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_GetFieldsCounters done [11:12:35]requested_item shift.num is exist - process it [11:12:35]requested_item shift.opened is exist - process it [11:12:35]req_shift_opened [11:12:35]FM_GetShiftState [11:12:35]SAM_PROTO_GetShiftState [11:12:35]wFMCommunicate request_size=4 [11:12:35]MH_SAM_APDU [11:12:35]CAPDU: 80 13 01 00 [11:12:35]Write to MH i2c: E2 08 00 AD 00 80 13 01 00 00 00 00 00 2A [11:12:35]Write i2c OK [11:12:35]MH_I2C_Read... [11:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:35]Read from MH i2c: E2 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 [11:12:35]MH_I2C_Read... [11:12:35]Read from MH i2c: E2 0E 00 AD 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 14 [11:12:35]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:12:35]wFMCommunicate OK [11:12:35]SAM_PROTO_GetShiftState done [11:12:35]FM_GetShiftState done [11:12:35]req_shift_opened done [11:12:35]requested_item shift.open_date is exist - process it [11:12:35]req_shift_open_date [11:12:35]req_shift_open_date done [11:12:35]produce_requested_data done [11:12:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63314,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:12:35]process_action_free close_receipt [11:12:35]json_value_free [11:12:35]json_value_free done [11:12:35]process_json_proto returns [11:12:35]Send response to host [11:12:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63314,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:12:35]free response buf [11:12:35]execute_script done [11:12:35]execute_script returns [11:12:35]free content buf [11:12:35]Sock 7.Close socket [11:12:35]Sock 7.Thread stoped [11:12:39]OFD Sender: No OFD packet to send [11:12:44]OFD Sender: No OFD packet to send [11:12:49]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:06]accept exits with 9 [11:14:06]New connection [11:14:06]New thread 3067342180 created [11:14:06]Thread 3067198820 joined [11:14:06]Waiting for new connection... [11:14:06] Sock 9.Parse request [11:14:06]Sock 9.Check first char [11:14:06]Sock 9.First char is OK [11:14:06]request: POST /json_proto HTTP/1.0 [11:14:06]Method: POST [11:14:06]URL: /json_proto [11:14:06]Method is POST - this is cgi request [11:14:06]url: /json_proto [11:14:06]query_string will be loaded in cgi processing [11:14:06]execute_cgi json_proto POST (null) [11:14:06]execute_cgi path=json_proto method=POST [11:14:06]POST find Content-Length [11:14:06]Host: 172.17.42.132:8080 [11:14:06]Content-Length: 621 [11:14:06]Content-Type: application/json [11:14:06] [11:14:06]POST finish read [11:14:06]Found Content-Length = 621 [11:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47625", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:06]execute_script... [11:14:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47625", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:06]POST & json_proto [11:14:06]process_json_proto [11:14:06]json parsed OK: [11:14:06]protocol is kg_v1.0 [11:14:06]action value=close_receipt [11:14:06]process_action close_receipt [11:14:06]cmd_close_receipt [11:14:06]MH_GetDate [11:14:06]Write to MH i2c: F0 00 00 AE 00 9D [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: F0 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: F0 09 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: F0 09 00 AE 00 00 7F DA 18 67 4C DF 56 66 65 [11:14:06]GetLastDocTimeStamp 1729681952 [11:14:06]current date 1729682047 [11:14:06]FM_GetShiftState [11:14:06]SAM_PROTO_GetShiftState [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 13 01 00 [11:14:06]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:07]Read from MH i2c: E2 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 [11:14:07]MH_I2C_Read... [11:14:07]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 16 [11:14:07]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:14:07]wFMCommunicate OK [11:14:07]SAM_PROTO_GetShiftState done [11:14:07]FM_GetShiftState done [11:14:07]opened in 1729642527 [11:14:07]opened+sec_in_day 1729728927 [11:14:07]quantity*price = 15400 [11:14:07]sum+1 = 15401 [11:14:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 44 23.10.2024 11:14 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63315 ФПД: 159707421424491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111407&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63315&fm=159707421424491&tin=02508201610067®Number=0000000000091619&sum=15400 0 [11:14:08]StoreToDocumentArchive [11:14:08]shift 546 fd 63315 [11:14:08]save to /storage/0546/doc_00063315 [11:14:08]save last doc name /storage/0546/doc_00063315 to /storage/kkm_last_doc_name [11:14:08]save OK [11:14:08]Clear old archive folders... [11:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:14:08]tlvbuf is 015C4B50 [11:14:08]SAM_PROTO_ClearQueue [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 09 00 00 [11:14:08]Write to MH i2c: E2 08 00 BC 00 80 09 00 00 00 00 00 00 2E [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_ClearQueue done [11:14:08]KKMCreateOFDPacket [11:14:08]OFDProtocolAddRootSTLVToBuf [11:14:08]FM_MakeSignedData [11:14:08]FM_MakeSignedData [11:14:08]SAM_PROTO_SignData [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 01 02 [11:14:08]Write to MH i2c: E2 08 00 BD 00 80 0D 01 02 00 00 00 00 36 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]wFMCommunicate request_size=255 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [11:14:08]Write to MH i2c: E2 02 01 BE 00 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 EC [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]wFMCommunicate request_size=33 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F7 00 00 35 04 06 00 91 40 C8 1F 3B 6B [11:14:08]Write to MH i2c: E2 24 00 BF 00 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F7 00 00 35 04 06 00 91 40 C8 1F 3B 6B 00 00 76 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [11:14:08]RAPDU: 90 00 [11:14:08]wFMCommunicate OK [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 0D 03 02 [11:14:08]Write to MH i2c: E2 08 00 C0 00 80 0D 03 02 00 00 00 00 3B [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0B 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 0B 00 C0 00 00 CC 20 38 0E 40 71 18 DD 90 00 14 [11:14:08]RAPDU: CC 20 38 0E 40 71 18 DD 90 00 [11:14:08]wFMCommunicate OK [11:14:08]SAM_PROTO_SignData done [11:14:08]FM_MakeSignedData done [11:14:08]CreateOFDProtocolMessage [11:14:08]wFMCommunicate request_size=4 [11:14:08]MH_SAM_APDU [11:14:08]CAPDU: 80 11 00 00 [11:14:08]Write to MH i2c: E2 08 00 C1 00 80 11 00 00 00 00 00 00 3B [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:08]Read from MH i2c: E2 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 17 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: E2 17 00 C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 94 [11:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:14:08]wFMCommunicate OK [11:14:08]CreateOFDProtocolMessage done [11:14:08]OFDSenderStorePacket 63315 [11:14:08]StoreOFDPacket docnum=63315 [11:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 FA EA 1E 01 26 64 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F7 00 00 35 04 06 00 91 40 C8 1F 3B 6B CC 20 38 0E 40 71 18 DD [11:14:08]CheckFolder [11:14:08]dirname=/storage/ofd_packets [11:14:08]CheckFolder done [11:14:08]ProducePacketName [11:14:08]name=ofd_packets/00063315 [11:14:08]NVStorageSaveData ofd_packets/00063315 [11:14:08]File name is /storage/ofd_packets/00063315 [11:14:08]Write 324 bytes [11:14:08]NVStorageSaveData done [11:14:08]OFDSenderStorePacket done [11:14:08]KKMCreateOFDPacket done [11:14:08]NVStorageSaveData kkm_last_timestamp [11:14:08]File name is /storage/kkm_last_timestamp [11:14:08]Write 4 bytes [11:14:08]NVStorageSaveData done [11:14:08]ExternCall_PrintAddStr [11:14:08]wPrintStart [11:14:08]Write to MH i2c: 01 00 00 C2 00 C2 [11:14:08]Write i2c OK [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 07 00 [11:14:08]MH_I2C_Read... [11:14:08]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [11:14:08]RasterBufferAndPrint [11:14:08]line Счет N : (3)47625 [11:14:08]line ИНН: 02508201610067 [11:14:08]line Контрольно-Кассовый Чек [11:14:08]line ПРОДАЖА [11:14:08]line Товар: 46230614 [11:14:08]line Сигареты Richmond Red Edition [11:14:08]line 1.000 * 154.00 [11:14:08]line = 154.00 [11:14:08]line НДС 12% НСП 1% [11:14:08]line > о реализуемом товаре [11:14:08]line ИТОГО: 154.00 [11:14:08]line НСП 1% : 1.36 [11:14:08]line НДС 12% : 16.35 [11:14:08]line Наличными: 154.00 [11:14:08]line Безнал.: 0.00 [11:14:08]line Место: АЗС № 86 "Партнер Нефть" [11:14:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:14:08]line СНО: Общий режим [11:14:08]line Чек 44 23.10.2024 11:14 [11:14:08]line Смена: 546 ФФД: 1.0 [11:14:08]line ЗНМ: 0300000154 [11:14:08]line РНМ: 0000000000091619 [11:14:08]line Версия ККМ: 001 [11:14:08]line ФМ: 0000000000874676 [11:14:08]line ФД: 63315 [11:14:08]line ФПД: 159707421424491 [11:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111407&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63315&fm=159707421424491&tin=02508201610067®Number=0000000000091619&sum=15400 [11:14:08]line 0 [11:14:08]written 0, free lines is 4095 [11:14:08]OFD Sender: Processing packet 63315 [packets to send 232, broken 231] [11:14:08]ProducePacketName [11:14:08]name=ofd_packets/00063315 [11:14:08]OFD Sender: To server: pG, [11:14:08]CommunicateWithHost lk.salyk.kg:30040 [11:14:08]ConnectInit lk.salyk.kg [11:14:08]Connected sock=11 [11:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 FA EA 1E 01 26 64 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F7 00 00 35 04 06 00 91 40 C8 1F 3B 6B CC 20 38 0E 40 71 18 DD [11:14:09]Write to MH i2c: 01 00 00 EB 00 EB [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 F1 0C EF [11:14:09]RasterBufferAndPrint [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]line [11:14:09]written 0, free lines is 3319 [11:14:09]MH_Cut [11:14:09]Write to MH i2c: D1 01 00 F2 00 01 C4 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 01 00 [11:14:09]MH_I2C_Read... [11:14:09]Read from MH i2c: D1 01 00 F2 00 00 C3 [11:14:09]Write to MH i2c: 01 00 00 F3 00 F3 [11:14:09]Write i2c OK [11:14:09]MH_I2C_Read... [11:14:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 5B 7A 47 00 09 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 53 F7 00 00 F4 03 04 00 76 84 18 67 B6 04 01 00 00 77 E7 0C E1 8A E7 C3 7C [11:14:09]CommunicateWithHost err = 0 [11:14:09]CheckOFDResponse [11:14:09]1017 (14) - 77093643461234 [11:14:09]1041 (16) - 0000000000874676 [11:14:09]1040 (4) - 63315 [11:14:09]1012 (4) - 23.10.2024 05:07 [11:14:09]1206 (1) - 0 [11:14:09]OFD Sender: Remove packet 63315 [11:14:09]ProducePacketName [11:14:09]name=ofd_packets/00063315 [11:14:09]NVStorageDeleteData [11:14:09]OFD Sender: No OFD packet to send [11:14:09]*** Cut start [11:14:09]*** Partial cut [11:14:09]*** CUTSNS_PIN = 1 [11:14:09]*** CUTSNS_PIN = 0 [11:14:10]*** Brake cut motor [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]*** Stop cut motor [11:14:10]*** Cut end [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 F3 00 00 00 00 00 00 FF 0F 08 [11:14:10]process_action close_receipt done [11:14:10]requested_data is exist [11:14:10]produce_requested_data [11:14:10]requested_item fm.sn is exist - process it [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 11 00 00 [11:14:10]Write to MH i2c: E2 08 00 F4 00 80 11 00 00 00 00 00 00 6E [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 17 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 17 00 F4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C7 [11:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:14:10]wFMCommunicate OK [11:14:10]requested_item fd.num is exist - process it [11:14:10]SAM_PROTO_GetFieldsCounters [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 13 00 00 [11:14:10]Write to MH i2c: E2 08 00 F5 00 80 13 00 00 00 00 00 00 71 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 62 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 62 00 F5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 53 F7 00 00 0E 04 04 00 22 02 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 8B [11:14:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 53 F7 00 00 0E 04 04 00 22 02 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:14:10]wFMCommunicate OK [11:14:10]SAM_PROTO_GetFieldsCounters done [11:14:10]requested_item shift.num is exist - process it [11:14:10]requested_item shift.opened is exist - process it [11:14:10]req_shift_opened [11:14:10]FM_GetShiftState [11:14:10]SAM_PROTO_GetShiftState [11:14:10]wFMCommunicate request_size=4 [11:14:10]MH_SAM_APDU [11:14:10]CAPDU: 80 13 01 00 [11:14:10]Write to MH i2c: E2 08 00 F6 00 80 13 01 00 00 00 00 00 73 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:10]Read from MH i2c: E2 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 0E 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: E2 0E 00 F6 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5D [11:14:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:14:10]wFMCommunicate OK [11:14:10]SAM_PROTO_GetShiftState done [11:14:10]FM_GetShiftState done [11:14:10]req_shift_opened done [11:14:10]requested_item shift.open_date is exist - process it [11:14:10]req_shift_open_date [11:14:10]req_shift_open_date done [11:14:10]produce_requested_data done [11:14:10]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63315,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:14:10]process_action_free close_receipt [11:14:10]json_value_free [11:14:10]json_value_free done [11:14:10]process_json_proto returns [11:14:10]Send response to host [11:14:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63315,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:14:10]free response buf [11:14:10]execute_script done [11:14:10]execute_script returns [11:14:10]free content buf [11:14:10]Sock 9.Close socket [11:14:10]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [11:14:55]accept exits with 7 [11:14:55]New connection [11:14:55]New thread 3067198820 created [11:14:55]Thread 3067342180 joined [11:14:55]Waiting for new connection... [11:14:55] Sock 7.Parse request [11:14:55]Sock 7.Check first char [11:14:55]Sock 7.First char is OK [11:14:55]request: POST /json_proto HTTP/1.0 [11:14:55]Method: POST [11:14:55]URL: /json_proto [11:14:55]Method is POST - this is cgi request [11:14:55]url: /json_proto [11:14:55]query_string will be loaded in cgi processing [11:14:55]execute_cgi json_proto POST (null) [11:14:55]execute_cgi path=json_proto method=POST [11:14:55]POST find Content-Length [11:14:55]Host: 172.17.42.132:8080 [11:14:55]Content-Length: 620 [11:14:55]Content-Type: application/json [11:14:55] [11:14:55]POST finish read [11:14:55]Found Content-Length = 620 [11:14:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47626", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:55]execute_script... [11:14:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47626", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:55]POST & json_proto [11:14:55]process_json_proto [11:14:55]json parsed OK: [11:14:55]protocol is kg_v1.0 [11:14:55]action value=close_receipt [11:14:55]process_action close_receipt [11:14:55]cmd_close_receipt [11:14:55]MH_GetDate [11:14:55]Write to MH i2c: F0 00 00 F7 00 E6 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: F0 09 00 F7 00 00 AF DA 18 67 4C DF 56 66 DE [11:14:55]GetLastDocTimeStamp 1729682047 [11:14:55]current date 1729682095 [11:14:55]FM_GetShiftState [11:14:55]SAM_PROTO_GetShiftState [11:14:55]wFMCommunicate request_size=4 [11:14:55]MH_SAM_APDU [11:14:55]CAPDU: 80 13 01 00 [11:14:55]Write to MH i2c: E2 08 00 F8 00 80 13 01 00 00 00 00 00 75 [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:55]Read from MH i2c: E2 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: E2 0E 00 F8 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5F [11:14:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:14:55]wFMCommunicate OK [11:14:55]SAM_PROTO_GetShiftState done [11:14:55]FM_GetShiftState done [11:14:55]opened in 1729642527 [11:14:55]opened+sec_in_day 1729728927 [11:14:55]quantity*price = 28800 [11:14:55]sum+1 = 28801 [11:14:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 45 23.10.2024 11:14 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63316 ФПД: 156620399199035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111455&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63316&fm=156620399199035&tin=02508201610067®Number=0000000000091619&sum=28800 0 [11:14:56]StoreToDocumentArchive [11:14:56]shift 546 fd 63316 [11:14:56]save to /storage/0546/doc_00063316 [11:14:56]save last doc name /storage/0546/doc_00063316 to /storage/kkm_last_doc_name [11:14:56]save OK [11:14:56]Clear old archive folders... [11:14:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:14:56]tlvbuf is 015BAD70 [11:14:56]SAM_PROTO_ClearQueue [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 09 00 00 [11:14:56]Write to MH i2c: E2 08 00 05 01 80 09 00 00 00 00 00 00 78 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 05 01 00 90 00 7A [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_ClearQueue done [11:14:56]KKMCreateOFDPacket [11:14:56]OFDProtocolAddRootSTLVToBuf [11:14:56]FM_MakeSignedData [11:14:56]FM_MakeSignedData [11:14:56]SAM_PROTO_SignData [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 01 02 [11:14:56]Write to MH i2c: E2 08 00 06 01 80 0D 01 02 00 00 00 00 80 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=255 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 AF DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [11:14:56]Write to MH i2c: E2 02 01 07 01 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 AF DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 17 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=32 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F7 00 00 35 04 06 00 8E 72 07 42 43 3B [11:14:56]Write to MH i2c: E2 23 00 08 01 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F7 00 00 35 04 06 00 8E 72 07 42 43 3B 00 00 F8 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [11:14:56]RAPDU: 90 00 [11:14:56]wFMCommunicate OK [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 0D 03 02 [11:14:56]Write to MH i2c: E2 08 00 09 01 80 0D 03 02 00 00 00 00 85 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 0B 00 09 01 00 70 14 D1 AF 13 1D 87 99 90 00 DA [11:14:56]RAPDU: 70 14 D1 AF 13 1D 87 99 90 00 [11:14:56]wFMCommunicate OK [11:14:56]SAM_PROTO_SignData done [11:14:56]FM_MakeSignedData done [11:14:56]CreateOFDProtocolMessage [11:14:56]wFMCommunicate request_size=4 [11:14:56]MH_SAM_APDU [11:14:56]CAPDU: 80 11 00 00 [11:14:56]Write to MH i2c: E2 08 00 0A 01 80 11 00 00 00 00 00 00 85 [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:56]Read from MH i2c: E2 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: E2 17 00 0A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DE [11:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:14:56]wFMCommunicate OK [11:14:56]CreateOFDProtocolMessage done [11:14:56]OFDSenderStorePacket 63316 [11:14:56]StoreOFDPacket docnum=63316 [11:14:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 29 17 1D 01 67 5D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 AF DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F7 00 00 35 04 06 00 8E 72 07 42 43 3B 70 14 D1 AF 13 1D 87 99 [11:14:56]CheckFolder [11:14:56]dirname=/storage/ofd_packets [11:14:56]CheckFolder done [11:14:56]ProducePacketName [11:14:56]name=ofd_packets/00063316 [11:14:56]NVStorageSaveData ofd_packets/00063316 [11:14:56]File name is /storage/ofd_packets/00063316 [11:14:56]Write 323 bytes [11:14:56]NVStorageSaveData done [11:14:56]OFDSenderStorePacket done [11:14:56]KKMCreateOFDPacket done [11:14:56]NVStorageSaveData kkm_last_timestamp [11:14:56]File name is /storage/kkm_last_timestamp [11:14:56]Write 4 bytes [11:14:56]NVStorageSaveData done [11:14:56]ExternCall_PrintAddStr [11:14:56]wPrintStart [11:14:56]Write to MH i2c: 01 00 00 0B 01 0C [11:14:56]Write i2c OK [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 [11:14:56]MH_I2C_Read... [11:14:56]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [11:14:56]RasterBufferAndPrint [11:14:56]line Счет N : (3)47626 [11:14:56]line ИНН: 02508201610067 [11:14:56]line Контрольно-Кассовый Чек [11:14:56]line ПРОДАЖА [11:14:56]line Товар: 48743570 [11:14:56]line Сигареты Winston XStyle Blue [11:14:56]line 2.000 * 144.00 [11:14:56]line = 288.00 [11:14:56]line НДС 12% НСП 1% [11:14:56]line > о реализуемом товаре [11:14:56]line ИТОГО: 288.00 [11:14:56]line НСП 1% : 2.55 [11:14:56]line НДС 12% : 30.58 [11:14:56]line Наличными: 288.00 [11:14:56]line Безнал.: 0.00 [11:14:56]line Место: АЗС № 86 "Партнер Нефть" [11:14:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:14:56]line СНО: Общий режим [11:14:56]line Чек 45 23.10.2024 11:14 [11:14:56]line Смена: 546 ФФД: 1.0 [11:14:56]line ЗНМ: 0300000154 [11:14:56]line РНМ: 0000000000091619 [11:14:56]line Версия ККМ: 001 [11:14:56]line ФМ: 0000000000874676 [11:14:56]line ФД: 63316 [11:14:56]line ФПД: 156620399199035 [11:14:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111455&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63316&fm=156620399199035&tin=02508201610067®Number=0000000000091619&sum=28800 [11:14:57]OFD Sender: Processing packet 63316 [packets to send 232, broken 231] [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00063316 [11:14:57]OFD Sender: To server: pG, [11:14:57]CommunicateWithHost lk.salyk.kg:30040 [11:14:57]ConnectInit lk.salyk.kg [11:14:57]line 0 [11:14:57]written 0, free lines is 4095 [11:14:57]Connected sock=10 [11:14:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 29 17 1D 01 67 5D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 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 AF DA 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F7 00 00 35 04 06 00 8E 72 07 42 43 3B 70 14 D1 AF 13 1D 87 99 [11:14:57]Write to MH i2c: 01 00 00 33 01 34 [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 1A 0D 62 [11:14:57]RasterBufferAndPrint [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]line [11:14:57]written 0, free lines is 3360 [11:14:57]MH_Cut [11:14:57]Write to MH i2c: D1 01 00 3A 01 01 0D [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 [11:14:57]MH_I2C_Read... [11:14:57]Read from MH i2c: D1 01 00 3A 01 00 0C [11:14:57]Write to MH i2c: 01 00 00 3B 01 3C [11:14:57]Write i2c OK [11:14:57]MH_I2C_Read... [11:14:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AD B3 47 00 D3 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 54 F7 00 00 F4 03 04 00 A7 84 18 67 B6 04 01 00 00 91 03 CC BC CF 4E 29 23 [11:14:57]CommunicateWithHost err = 0 [11:14:57]CheckOFDResponse [11:14:57]1017 (14) - 77093643461234 [11:14:57]1041 (16) - 0000000000874676 [11:14:57]1040 (4) - 63316 [11:14:57]1012 (4) - 23.10.2024 05:07 [11:14:57]1206 (1) - 0 [11:14:57]OFD Sender: Remove packet 63316 [11:14:57]ProducePacketName [11:14:57]name=ofd_packets/00063316 [11:14:57]NVStorageDeleteData [11:14:58]OFD Sender: No OFD packet to send [11:14:58]*** Cut start [11:14:58]*** Partial cut [11:14:58]*** CUTSNS_PIN = 1 [11:14:58]*** CUTSNS_PIN = 0 [11:14:58]*** Brake cut motor [11:14:58]Read from MH i2c: 01 [11:14:58]MH_I2C_Read... [11:14:58]*** Stop cut motor [11:14:58]*** Cut end [11:14:58]Read from MH i2c: 01 07 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 FF 0F 51 [11:14:58]process_action close_receipt done [11:14:58]requested_data is exist [11:14:58]produce_requested_data [11:14:58]requested_item fm.sn is exist - process it [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 11 00 00 [11:14:58]Write to MH i2c: E2 08 00 3C 01 80 11 00 00 00 00 00 00 B7 [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:58]Read from MH i2c: E2 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 17 00 [11:14:58]MH_I2C_Read... [11:14:58]Read from MH i2c: E2 17 00 3C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 10 [11:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:14:58]wFMCommunicate OK [11:14:58]requested_item fd.num is exist - process it [11:14:58]SAM_PROTO_GetFieldsCounters [11:14:58]wFMCommunicate request_size=4 [11:14:58]MH_SAM_APDU [11:14:58]CAPDU: 80 13 00 00 [11:14:58]Write to MH i2c: E2 08 00 3D 01 80 13 00 00 00 00 00 00 BA [11:14:58]Write i2c OK [11:14:58]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 62 00 3D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 54 F7 00 00 0E 04 04 00 22 02 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 D8 [11:14:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 54 F7 00 00 0E 04 04 00 22 02 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:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetFieldsCounters done [11:14:59]requested_item shift.num is exist - process it [11:14:59]requested_item shift.opened is exist - process it [11:14:59]req_shift_opened [11:14:59]FM_GetShiftState [11:14:59]SAM_PROTO_GetShiftState [11:14:59]wFMCommunicate request_size=4 [11:14:59]MH_SAM_APDU [11:14:59]CAPDU: 80 13 01 00 [11:14:59]Write to MH i2c: E2 08 00 3E 01 80 13 01 00 00 00 00 00 BC [11:14:59]Write i2c OK [11:14:59]MH_I2C_Read... [11:14:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:59]Read from MH i2c: E2 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 [11:14:59]MH_I2C_Read... [11:14:59]Read from MH i2c: E2 0E 00 3E 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A6 [11:14:59]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:14:59]wFMCommunicate OK [11:14:59]SAM_PROTO_GetShiftState done [11:14:59]FM_GetShiftState done [11:14:59]req_shift_opened done [11:14:59]requested_item shift.open_date is exist - process it [11:14:59]req_shift_open_date [11:14:59]req_shift_open_date done [11:14:59]produce_requested_data done [11:14:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63316,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:14:59]process_action_free close_receipt [11:14:59]json_value_free [11:14:59]json_value_free done [11:14:59]process_json_proto returns [11:14:59]Send response to host [11:14:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63316,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:14:59]free response buf [11:14:59]execute_script done [11:14:59]execute_script returns [11:14:59]free content buf [11:14:59]Sock 7.Close socket [11:14:59]Sock 7.Thread stoped [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:23]accept exits with 9 [11:16:23]New connection [11:16:23]New thread 3067342180 created [11:16:23]Thread 3067198820 joined [11:16:23]Waiting for new connection... [11:16:23] Sock 9.Parse request [11:16:23]Sock 9.Check first char [11:16:23]Sock 9.First char is OK [11:16:23]request: POST /json_proto HTTP/1.0 [11:16:23]Method: POST [11:16:23]URL: /json_proto [11:16:23]Method is POST - this is cgi request [11:16:23]url: /json_proto [11:16:23]query_string will be loaded in cgi processing [11:16:23]execute_cgi json_proto POST (null) [11:16:23]execute_cgi path=json_proto method=POST [11:16:23]POST find Content-Length [11:16:23]Host: 172.17.42.132:8080 [11:16:23]Content-Length: 749 [11:16:23]Content-Type: application/json [11:16:23] [11:16:23]POST finish read [11:16:23]Found Content-Length = 749 [11:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47627", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:23]execute_script... [11:16:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47627", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:23]POST & json_proto [11:16:23]process_json_proto [11:16:23]json parsed OK: [11:16:23]protocol is kg_v1.0 [11:16:23]action value=close_receipt [11:16:23]process_action close_receipt [11:16:23]cmd_close_receipt [11:16:23]MH_GetDate [11:16:23]Write to MH i2c: F0 00 00 3F 01 2F [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 09 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: F0 09 00 3F 01 00 08 DB 18 67 4C DF 56 66 81 [11:16:23]GetLastDocTimeStamp 1729682095 [11:16:23]current date 1729682184 [11:16:23]FM_GetShiftState [11:16:23]SAM_PROTO_GetShiftState [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 13 01 00 [11:16:23]Write to MH i2c: E2 08 00 40 01 80 13 01 00 00 00 00 00 BE [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 40 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A8 [11:16:23]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:16:23]wFMCommunicate OK [11:16:23]SAM_PROTO_GetShiftState done [11:16:23]FM_GetShiftState done [11:16:23]opened in 1729642527 [11:16:23]opened+sec_in_day 1729728927 [11:16:23]quantity*price = 14273 [11:16:23]sum+1 = 14274 [11:16:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 46 23.10.2024 11:16 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63317 ФПД: 263969650461449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111624&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63317&fm=263969650461449&tin=02508201610067®Number=0000000000091619&sum=14273 0 [11:16:25]StoreToDocumentArchive [11:16:25]shift 546 fd 63317 [11:16:25]save to /storage/0546/doc_00063317 [11:16:25]save last doc name /storage/0546/doc_00063317 to /storage/kkm_last_doc_name [11:16:25]save OK [11:16:25]Clear old archive folders... [11:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=275 [11:16:25]tlvbuf is 015D1360 [11:16:25]SAM_PROTO_ClearQueue [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 09 00 00 [11:16:25]Write to MH i2c: E2 08 00 4D 01 80 09 00 00 00 00 00 00 C0 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_ClearQueue done [11:16:25]KKMCreateOFDPacket [11:16:25]OFDProtocolAddRootSTLVToBuf [11:16:25]FM_MakeSignedData [11:16:25]FM_MakeSignedData [11:16:25]SAM_PROTO_SignData [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 01 02 [11:16:25]Write to MH i2c: E2 08 00 4E 01 80 0D 01 02 00 00 00 00 C8 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=255 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [11:16:25]Write to MH i2c: E2 02 01 4F 01 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 74 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=34 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 55 F7 00 00 35 04 06 00 F0 14 39 3F 4B 09 [11:16:25]Write to MH i2c: E2 25 00 50 01 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 55 F7 00 00 35 04 06 00 F0 14 39 3F 4B 09 00 00 AE [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 03 00 50 01 00 90 00 C5 [11:16:25]RAPDU: 90 00 [11:16:25]wFMCommunicate OK [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 0D 03 02 [11:16:25]Write to MH i2c: E2 08 00 51 01 80 0D 03 02 00 00 00 00 CD [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0B 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 0B 00 51 01 00 BD F9 78 D4 84 E3 BE 7F 90 00 74 [11:16:25]RAPDU: BD F9 78 D4 84 E3 BE 7F 90 00 [11:16:25]wFMCommunicate OK [11:16:25]SAM_PROTO_SignData done [11:16:25]FM_MakeSignedData done [11:16:25]CreateOFDProtocolMessage [11:16:25]wFMCommunicate request_size=4 [11:16:25]MH_SAM_APDU [11:16:25]CAPDU: 80 11 00 00 [11:16:25]Write to MH i2c: E2 08 00 52 01 80 11 00 00 00 00 00 00 CD [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:25]Read from MH i2c: E2 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: E2 17 00 52 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 26 [11:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:16:25]wFMCommunicate OK [11:16:25]CreateOFDProtocolMessage done [11:16:25]OFDSenderStorePacket 63317 [11:16:25]StoreOFDPacket docnum=63317 [11:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 ED 5C 1F 01 66 91 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 55 F7 00 00 35 04 06 00 F0 14 39 3F 4B 09 BD F9 78 D4 84 E3 BE 7F [11:16:25]CheckFolder [11:16:25]dirname=/storage/ofd_packets [11:16:25]CheckFolder done [11:16:25]ProducePacketName [11:16:25]name=ofd_packets/00063317 [11:16:25]NVStorageSaveData ofd_packets/00063317 [11:16:25]File name is /storage/ofd_packets/00063317 [11:16:25]Write 325 bytes [11:16:25]NVStorageSaveData done [11:16:25]OFDSenderStorePacket done [11:16:25]KKMCreateOFDPacket done [11:16:25]NVStorageSaveData kkm_last_timestamp [11:16:25]File name is /storage/kkm_last_timestamp [11:16:25]Write 4 bytes [11:16:25]NVStorageSaveData done [11:16:25]ExternCall_PrintAddStr [11:16:25]wPrintStart [11:16:25]Write to MH i2c: 01 00 00 53 01 54 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 53 01 00 00 00 00 00 FF 0F 69 [11:16:25]RasterBufferAndPrint [11:16:25]line Счет N : (3)47627 [11:16:25]line ИНН: 02508201610067 [11:16:25]line Контрольно-Кассовый Чек [11:16:25]line ПРОДАЖА [11:16:25]line Товар: 48743587 [11:16:25]line Сигареты Winston XStyle Silver [11:16:25]line 1.000 * 142.73 [11:16:25]line = 142.73 [11:16:25]line НДС 12% НСП 1% [11:16:25]line > о реализуемом товаре [11:16:25]line ИТОГО: 142.73 [11:16:25]line НСП 1% : 1.26 [11:16:25]line НДС 12% : 15.16 [11:16:25]line Наличными: 0.00 [11:16:25]line Безнал.: 142.73 [11:16:25]line Место: АЗС № 86 "Партнер Нефть" [11:16:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:16:25]line СНО: Общий режим [11:16:25]line Чек 46 23.10.2024 11:16 [11:16:25]line Смена: 546 ФФД: 1.0 [11:16:25]line ЗНМ: 0300000154 [11:16:25]line РНМ: 0000000000091619 [11:16:25]line Версия ККМ: 001 [11:16:25]line Платежная система: Mbank [11:16:25]line ФМ: 0000000000874676 [11:16:25]line ФД: 63317 [11:16:25]line ФПД: 263969650461449 [11:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111624&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63317&fm=263969650461449&tin=02508201610067®Number=0000000000091619&sum=14273 [11:16:25]line 0 [11:16:25]OFD Sender: Processing packet 63317 [packets to send 232, broken 231] [11:16:25]ProducePacketName [11:16:25]name=ofd_packets/00063317 [11:16:25]OFD Sender: To server: pG, [11:16:25]CommunicateWithHost lk.salyk.kg:30040 [11:16:25]ConnectInit lk.salyk.kg [11:16:25]written 0, free lines is 4095 [11:16:26]Connected sock=10 [11:16:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 ED 5C 1F 01 66 91 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 08 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 55 F7 00 00 35 04 06 00 F0 14 39 3F 4B 09 BD F9 78 D4 84 E3 BE 7F [11:16:26]Write to MH i2c: 01 00 00 7D 01 7E [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: 01 07 00 7D 01 00 00 00 00 00 06 0D 98 [11:16:26]RasterBufferAndPrint [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]line [11:16:26]written 0, free lines is 3340 [11:16:26]MH_Cut [11:16:26]Write to MH i2c: D1 01 00 84 01 01 57 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 01 00 [11:16:26]MH_I2C_Read... [11:16:26]Read from MH i2c: D1 01 00 84 01 00 56 [11:16:26]Write to MH i2c: 01 00 00 85 01 86 [11:16:26]Write i2c OK [11:16:26]MH_I2C_Read... [11:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 D6 89 47 00 FA 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 55 F7 00 00 F4 03 04 00 00 85 18 67 B6 04 01 00 00 32 0D 15 52 89 14 8D 0A [11:16:26]CommunicateWithHost err = 0 [11:16:26]CheckOFDResponse [11:16:26]1017 (14) - 77093643461234 [11:16:26]1041 (16) - 0000000000874676 [11:16:26]1040 (4) - 63317 [11:16:26]1012 (4) - 23.10.2024 05:09 [11:16:26]1206 (1) - 0 [11:16:26]OFD Sender: Remove packet 63317 [11:16:26]ProducePacketName [11:16:26]name=ofd_packets/00063317 [11:16:26]NVStorageDeleteData [11:16:26]OFD Sender: No OFD packet to send [11:16:27]*** Cut start [11:16:27]*** Partial cut [11:16:27]*** CUTSNS_PIN = 1 [11:16:27]*** CUTSNS_PIN = 0 [11:16:27]*** Brake cut motor [11:16:27]Read from MH i2c: 01 [11:16:27]MH_I2C_Read... [11:16:27]*** Stop cut motor [11:16:27]*** Cut end [11:16:27]Read from MH i2c: 01 07 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 FF 0F 9B [11:16:27]process_action close_receipt done [11:16:27]requested_data is exist [11:16:27]produce_requested_data [11:16:27]requested_item fm.sn is exist - process it [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 11 00 00 [11:16:27]Write to MH i2c: E2 08 00 86 01 80 11 00 00 00 00 00 00 01 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 17 00 86 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5A [11:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:16:27]wFMCommunicate OK [11:16:27]requested_item fd.num is exist - process it [11:16:27]SAM_PROTO_GetFieldsCounters [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 13 00 00 [11:16:27]Write to MH i2c: E2 08 00 87 01 80 13 00 00 00 00 00 00 04 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 62 00 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 62 00 87 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 55 F7 00 00 0E 04 04 00 22 02 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 26 [11:16:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 55 F7 00 00 0E 04 04 00 22 02 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:16:27]wFMCommunicate OK [11:16:27]SAM_PROTO_GetFieldsCounters done [11:16:27]requested_item shift.num is exist - process it [11:16:27]requested_item shift.opened is exist - process it [11:16:27]req_shift_opened [11:16:27]FM_GetShiftState [11:16:27]SAM_PROTO_GetShiftState [11:16:27]wFMCommunicate request_size=4 [11:16:27]MH_SAM_APDU [11:16:27]CAPDU: 80 13 01 00 [11:16:27]Write to MH i2c: E2 08 00 88 01 80 13 01 00 00 00 00 00 06 [11:16:27]Write i2c OK [11:16:27]MH_I2C_Read... [11:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:27]Read from MH i2c: E2 [11:16:27]MH_I2C_Read... [11:16:27]Read from MH i2c: E2 0E 00 [11:16:27]MH_I2C_Read... [11:16:28]Read from MH i2c: E2 0E 00 88 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F0 [11:16:28]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:16:28]wFMCommunicate OK [11:16:28]SAM_PROTO_GetShiftState done [11:16:28]FM_GetShiftState done [11:16:28]req_shift_opened done [11:16:28]requested_item shift.open_date is exist - process it [11:16:28]req_shift_open_date [11:16:28]req_shift_open_date done [11:16:28]produce_requested_data done [11:16:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63317,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:16:28]process_action_free close_receipt [11:16:28]json_value_free [11:16:28]json_value_free done [11:16:28]process_json_proto returns [11:16:28]Send response to host [11:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63317,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:16:28]free response buf [11:16:28]execute_script done [11:16:28]execute_script returns [11:16:28]free content buf [11:16:28]Sock 9.Close socket [11:16:28]Sock 9.Thread stoped [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:56]accept exits with 7 [11:16:56]New connection [11:16:56]New thread 3067198820 created [11:16:56]Thread 3067342180 joined [11:16:56]Waiting for new connection... [11:16:56] Sock 7.Parse request [11:16:56]Sock 7.Check first char [11:16:56]Sock 7.First char is OK [11:16:56]request: POST /json_proto HTTP/1.0 [11:16:56]Method: POST [11:16:56]URL: /json_proto [11:16:56]Method is POST - this is cgi request [11:16:56]url: /json_proto [11:16:56]query_string will be loaded in cgi processing [11:16:56]execute_cgi json_proto POST (null) [11:16:56]execute_cgi path=json_proto method=POST [11:16:56]POST find Content-Length [11:16:56]Host: 172.17.42.132:8080 [11:16:56]Content-Length: 674 [11:16:56]Content-Type: application/json [11:16:56] [11:16:56]POST finish read [11:16:56]Found Content-Length = 674 [11:16:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47628", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:56]execute_script... [11:16: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 : (3)47628", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:56]POST & json_proto [11:16:56]process_json_proto [11:16:56]json parsed OK: [11:16:56]protocol is kg_v1.0 [11:16:56]action value=close_receipt [11:16:56]process_action close_receipt [11:16:56]cmd_close_receipt [11:16:56]MH_GetDate [11:16:56]Write to MH i2c: F0 00 00 89 01 79 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: F0 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: F0 09 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: F0 09 00 89 01 00 29 DB 18 67 4C DF 56 66 EC [11:16:56]GetLastDocTimeStamp 1729682184 [11:16:56]current date 1729682217 [11:16:56]FM_GetShiftState [11:16:56]SAM_PROTO_GetShiftState [11:16:56]wFMCommunicate request_size=4 [11:16:56]MH_SAM_APDU [11:16:56]CAPDU: 80 13 01 00 [11:16:56]Write to MH i2c: E2 08 00 8A 01 80 13 01 00 00 00 00 00 08 [11:16:56]Write i2c OK [11:16:56]MH_I2C_Read... [11:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:56]Read from MH i2c: E2 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 [11:16:56]MH_I2C_Read... [11:16:56]Read from MH i2c: E2 0E 00 8A 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F2 [11:16:56]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:16:56]wFMCommunicate OK [11:16:56]SAM_PROTO_GetShiftState done [11:16:56]FM_GetShiftState done [11:16:56]opened in 1729642527 [11:16:56]opened+sec_in_day 1729728927 [11:16:56]quantity*price = 8900 [11:16:56]sum+1 = 8901 [11:16:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 47 23.10.2024 11:16 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63318 ФПД: 20554948700028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111657&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63318&fm=20554948700028&tin=02508201610067®Number=0000000000091619&sum=8900 0 [11:16:58]StoreToDocumentArchive [11:16:58]shift 546 fd 63318 [11:16:58]save to /storage/0546/doc_00063318 [11:16:58]save last doc name /storage/0546/doc_00063318 to /storage/kkm_last_doc_name [11:16:58]save OK [11:16:58]Clear old archive folders... [11:16:58]ProcessDocumentItem done err = 0, tmpTLVsize=286 [11:16:58]tlvbuf is 015C1240 [11:16:58]SAM_PROTO_ClearQueue [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 09 00 00 [11:16:58]Write to MH i2c: E2 08 00 97 01 80 09 00 00 00 00 00 00 0A [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 97 01 00 90 00 0C [11:16:58]RAPDU: 90 00 [11:16:58]wFMCommunicate OK [11:16:58]SAM_PROTO_ClearQueue done [11:16:58]KKMCreateOFDPacket [11:16:58]OFDProtocolAddRootSTLVToBuf [11:16:58]FM_MakeSignedData [11:16:58]FM_MakeSignedData [11:16:58]SAM_PROTO_SignData [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 0D 01 02 [11:16:58]Write to MH i2c: E2 08 00 98 01 80 0D 01 02 00 00 00 00 12 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 98 01 00 90 00 0D [11:16:58]RAPDU: 90 00 [11:16:58]wFMCommunicate OK [11:16:58]wFMCommunicate request_size=255 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 29 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [11:16:58]Write to MH i2c: E2 02 01 99 01 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 29 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 00 00 69 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 99 01 00 90 00 0E [11:16:58]RAPDU: 90 00 [11:16:58]wFMCommunicate OK [11:16:58]wFMCommunicate request_size=45 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 0D 02 02 28 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F7 00 00 35 04 06 00 12 B1 D2 6A 67 7C [11:16:58]Write to MH i2c: E2 30 00 9A 01 80 0D 02 02 28 00 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F7 00 00 35 04 06 00 12 B1 D2 6A 67 7C 00 00 A0 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 03 00 9A 01 00 90 00 0F [11:16:58]RAPDU: 90 00 [11:16:58]wFMCommunicate OK [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 0D 03 02 [11:16:58]Write to MH i2c: E2 08 00 9B 01 80 0D 03 02 00 00 00 00 17 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0B 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 0B 00 9B 01 00 5D 4E 86 FA 77 78 EB 48 90 00 65 [11:16:58]RAPDU: 5D 4E 86 FA 77 78 EB 48 90 00 [11:16:58]wFMCommunicate OK [11:16:58]SAM_PROTO_SignData done [11:16:58]FM_MakeSignedData done [11:16:58]CreateOFDProtocolMessage [11:16:58]wFMCommunicate request_size=4 [11:16:58]MH_SAM_APDU [11:16:58]CAPDU: 80 11 00 00 [11:16:58]Write to MH i2c: E2 08 00 9C 01 80 11 00 00 00 00 00 00 17 [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:58]Read from MH i2c: E2 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 17 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: E2 17 00 9C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 70 [11:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:16:58]wFMCommunicate OK [11:16:58]CreateOFDProtocolMessage done [11:16:58]OFDSenderStorePacket 63318 [11:16:58]StoreOFDPacket docnum=63318 [11:16:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 32 01 00 00 A1 D1 2A 01 DB 60 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 29 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F7 00 00 35 04 06 00 12 B1 D2 6A 67 7C 5D 4E 86 FA 77 78 EB 48 [11:16:58]CheckFolder [11:16:58]dirname=/storage/ofd_packets [11:16:58]CheckFolder done [11:16:58]ProducePacketName [11:16:58]name=ofd_packets/00063318 [11:16:58]NVStorageSaveData ofd_packets/00063318 [11:16:58]File name is /storage/ofd_packets/00063318 [11:16:58]Write 336 bytes [11:16:58]NVStorageSaveData done [11:16:58]OFDSenderStorePacket done [11:16:58]KKMCreateOFDPacket done [11:16:58]NVStorageSaveData kkm_last_timestamp [11:16:58]File name is /storage/kkm_last_timestamp [11:16:58]Write 4 bytes [11:16:58]NVStorageSaveData done [11:16:58]ExternCall_PrintAddStr [11:16:58]wPrintStart [11:16:58]Write to MH i2c: 01 00 00 9D 01 9E [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 9D 01 00 00 00 00 00 FF 0F B3 [11:16:58]RasterBufferAndPrint [11:16:58]line Счет N : (3)47628 [11:16:58]line ИНН: 02508201610067 [11:16:58]line Контрольно-Кассовый Чек [11:16:58]line ПРОДАЖА [11:16:58]line Товар: 4700040114120 [11:16:58]line Султан чай 1л. чер персик [11:16:58]line 1.000 * 89.00 [11:16:58]line = 89.00 [11:16:58]line НДС 12% НСП 1% [11:16:58]line > о реализуемом товаре [11:16:58]line ИТОГО: 89.00 [11:16:58]line НСП 1% : 0.79 [11:16:58]line НДС 12% : 9.45 [11:16:58]line Наличными: 89.00 [11:16:58]line Безнал.: 0.00 [11:16:58]line Место: АЗС № 86 "Партнер Нефть" [11:16:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:16:58]line СНО: Общий режим [11:16:58]line Чек 47 23.10.2024 11:16 [11:16:58]line Смена: 546 ФФД: 1.0 [11:16:58]line ЗНМ: 0300000154 [11:16:58]line РНМ: 0000000000091619 [11:16:58]line Версия ККМ: 001 [11:16:58]line ФМ: 0000000000874676 [11:16:58]line ФД: 63318 [11:16:58]line ФПД: 20554948700028 [11:16:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111657&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63318&fm=20554948700028&tin=02508201610067®Number=0000000000091619&sum=8900 [11:16:58]line 0 [11:16:58]OFD Sender: Processing packet 63318 [packets to send 232, broken 231] [11:16:58]ProducePacketName [11:16:58]name=ofd_packets/00063318 [11:16:58]OFD Sender: To server: pG, [11:16:58]CommunicateWithHost lk.salyk.kg:30040 [11:16:58]ConnectInit lk.salyk.kg [11:16:58]written 0, free lines is 4095 [11:16:59]Connected sock=9 [11:16:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 32 01 00 00 A1 D1 2A 01 DB 60 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 29 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F7 00 00 35 04 06 00 12 B1 D2 6A 67 7C 5D 4E 86 FA 77 78 EB 48 [11:16:59]Write to MH i2c: 01 00 00 C5 01 C6 [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 07 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 1F 0D F9 [11:16:59]RasterBufferAndPrint [11:16:59]line [11:16:59]line [11:16:59]line [11:16:59]line [11:16:59]line [11:16:59]written 0, free lines is 3365 [11:16:59]MH_Cut [11:16:59]Write to MH i2c: D1 01 00 CC 01 01 9F [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: D1 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: D1 01 00 [11:16:59]MH_I2C_Read... [11:16:59]Read from MH i2c: D1 01 00 CC 01 00 9E [11:16:59]Write to MH i2c: 01 00 00 CD 01 CE [11:16:59]Write i2c OK [11:16:59]MH_I2C_Read... [11:16:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C8 32 47 00 B7 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 56 F7 00 00 F4 03 04 00 20 85 18 67 B6 04 01 00 00 DF 46 96 4E 77 CD 01 32 [11:16:59]CommunicateWithHost err = 0 [11:16:59]CheckOFDResponse [11:16:59]1017 (14) - 77093643461234 [11:16:59]1041 (16) - 0000000000874676 [11:16:59]1040 (4) - 63318 [11:16:59]1012 (4) - 23.10.2024 05:09 [11:16:59]1206 (1) - 0 [11:16:59]OFD Sender: Remove packet 63318 [11:16:59]ProducePacketName [11:16:59]name=ofd_packets/00063318 [11:16:59]NVStorageDeleteData [11:16:59]OFD Sender: No OFD packet to send [11:17:00]*** Cut start [11:17:00]*** Partial cut [11:17:00]*** CUTSNS_PIN = 1 [11:17:00]*** CUTSNS_PIN = 0 [11:17:00]*** Brake cut motor [11:17:00]Read from MH i2c: 01 [11:17:00]MH_I2C_Read... [11:17:00]*** Stop cut motor [11:17:00]*** Cut end [11:17:00]Read from MH i2c: 01 07 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 FF 0F E3 [11:17:00]process_action close_receipt done [11:17:00]requested_data is exist [11:17:00]produce_requested_data [11:17:00]requested_item fm.sn is exist - process it [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 11 00 00 [11:17:00]Write to MH i2c: E2 08 00 CE 01 80 11 00 00 00 00 00 00 49 [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 17 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 17 00 CE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A2 [11:17:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:17:00]wFMCommunicate OK [11:17:00]requested_item fd.num is exist - process it [11:17:00]SAM_PROTO_GetFieldsCounters [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 13 00 00 [11:17:00]Write to MH i2c: E2 08 00 CF 01 80 13 00 00 00 00 00 00 4C [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 62 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 62 00 CF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 56 F7 00 00 0E 04 04 00 22 02 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 72 [11:17:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 56 F7 00 00 0E 04 04 00 22 02 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:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_GetFieldsCounters done [11:17:00]requested_item shift.num is exist - process it [11:17:00]requested_item shift.opened is exist - process it [11:17:00]req_shift_opened [11:17:00]FM_GetShiftState [11:17:00]SAM_PROTO_GetShiftState [11:17:00]wFMCommunicate request_size=4 [11:17:00]MH_SAM_APDU [11:17:00]CAPDU: 80 13 01 00 [11:17:00]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [11:17:00]Write i2c OK [11:17:00]MH_I2C_Read... [11:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:00]Read from MH i2c: E2 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 [11:17:00]MH_I2C_Read... [11:17:00]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 38 [11:17:00]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:17:00]wFMCommunicate OK [11:17:00]SAM_PROTO_GetShiftState done [11:17:00]FM_GetShiftState done [11:17:00]req_shift_opened done [11:17:00]requested_item shift.open_date is exist - process it [11:17:00]req_shift_open_date [11:17:00]req_shift_open_date done [11:17:00]produce_requested_data done [11:17:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63318,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:17:00]process_action_free close_receipt [11:17:00]json_value_free [11:17:00]json_value_free done [11:17:00]process_json_proto returns [11:17:00]Send response to host [11:17:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63318,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:17:00]free response buf [11:17:00]execute_script done [11:17:00]execute_script returns [11:17:00]free content buf [11:17:00]Sock 7.Close socket [11:17:00]Sock 7.Thread stoped [11:17:04]OFD Sender: No OFD packet to send [11:17:09]OFD Sender: No OFD packet to send [11:17:14]OFD Sender: No OFD packet to send [11:17:19]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:04]accept exits with 10 [11:19:04]New connection [11:19:04]New thread 3067342180 created [11:19:04]Thread 3067198820 joined [11:19:04]Waiting for new connection... [11:19:04] Sock 10.Parse request [11:19:04]Sock 10.Check first char [11:19:04]Sock 10.First char is OK [11:19:04]request: POST /json_proto HTTP/1.0 [11:19:04]Method: POST [11:19:04]URL: /json_proto [11:19:04]Method is POST - this is cgi request [11:19:04]url: /json_proto [11:19:04]query_string will be loaded in cgi processing [11:19:04]execute_cgi json_proto POST (null) [11:19:04]execute_cgi path=json_proto method=POST [11:19:04]POST find Content-Length [11:19:04]Host: 172.17.42.132:8080 [11:19:04]Content-Length: 1214 [11:19:04]Content-Type: application/json [11:19:04] [11:19:04]POST finish read [11:19:04]Found Content-Length = 1214 [11:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47629", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 173.45, "quantity" : 1.000, "sum" : 173.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 79.29, "quantity" : 1.000, "sum" : 79.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "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", "payments": [ { "type": 1, "sum" : 366.72 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:04]execute_script... [11:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47629", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 173.45, "quantity" : 1.000, "sum" : 173.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 79.29, "quantity" : 1.000, "sum" : 79.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "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", "payments": [ { "type": 1, "sum" : 366.72 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:04]POST & json_proto [11:19:04]process_json_proto [11:19:04]json parsed OK: [11:19:04]protocol is kg_v1.0 [11:19:04]action value=close_receipt [11:19:04]process_action close_receipt [11:19:04]cmd_close_receipt [11:19:04]MH_GetDate [11:19:04]Write to MH i2c: F0 00 00 D1 01 C1 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: F0 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: F0 09 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: F0 09 00 D1 01 00 A8 DB 18 67 4C DF 56 66 B3 [11:19:04]GetLastDocTimeStamp 1729682217 [11:19:04]current date 1729682344 [11:19:04]FM_GetShiftState [11:19:04]SAM_PROTO_GetShiftState [11:19:04]wFMCommunicate request_size=4 [11:19:04]MH_SAM_APDU [11:19:04]CAPDU: 80 13 01 00 [11:19:04]Write to MH i2c: E2 08 00 D2 01 80 13 01 00 00 00 00 00 50 [11:19:04]Write i2c OK [11:19:04]MH_I2C_Read... [11:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:04]Read from MH i2c: E2 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0E 00 [11:19:04]MH_I2C_Read... [11:19:04]Read from MH i2c: E2 0E 00 D2 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3A [11:19:04]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:19:04]wFMCommunicate OK [11:19:04]SAM_PROTO_GetShiftState done [11:19:04]FM_GetShiftState done [11:19:04]opened in 1729642527 [11:19:04]opened+sec_in_day 1729728927 [11:19:04]quantity*price = 17345 [11:19:04]sum+1 = 17346 [11:19:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 79.29 = 79.29 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 113.98 = 113.98 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 366.72 НСП 1% : 3.24 НДС 12% : 38.94 Наличными: 0.00 Безнал.: 366.72 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 48 23.10.2024 11:19 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63319 ФПД: 246503593730962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111904&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63319&fm=246503593730962&tin=02508201610067®Number=0000000000091619&sum=36672 0 [11:19:05]StoreToDocumentArchive [11:19:05]shift 546 fd 63319 [11:19:05]save to /storage/0546/doc_00063319 [11:19:05]save last doc name /storage/0546/doc_00063319 to /storage/kkm_last_doc_name [11:19:05]save OK [11:19:05]Clear old archive folders... [11:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=470 [11:19:05]tlvbuf is 015C1F40 [11:19:05]SAM_PROTO_ClearQueue [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 09 00 00 [11:19:05]Write to MH i2c: E2 08 00 DF 01 80 09 00 00 00 00 00 00 52 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 03 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [11:19:05]RAPDU: 90 00 [11:19:05]wFMCommunicate OK [11:19:05]SAM_PROTO_ClearQueue done [11:19:05]KKMCreateOFDPacket [11:19:05]OFDProtocolAddRootSTLVToBuf [11:19:05]FM_MakeSignedData [11:19:05]FM_MakeSignedData [11:19:05]SAM_PROTO_SignData [11:19:05]wFMCommunicate request_size=4 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 0D 01 02 [11:19:05]Write to MH i2c: E2 08 00 E0 01 80 0D 01 02 00 00 00 00 5A [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:05]Read from MH i2c: E2 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 03 00 [11:19:05]MH_I2C_Read... [11:19:05]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [11:19:05]RAPDU: 90 00 [11:19:05]wFMCommunicate OK [11:19:05]wFMCommunicate request_size=255 [11:19:05]MH_SAM_APDU [11:19:05]CAPDU: 80 0D 02 02 FA 03 00 D6 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 43 00 00 00 00 13 04 06 00 C1 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 [11:19:05]Write to MH i2c: E2 02 01 E1 01 80 0D 02 02 FA 00 03 00 D6 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 43 00 00 00 00 13 04 06 00 C1 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 00 00 F6 [11:19:05]Write i2c OK [11:19:05]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 03 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 03 00 E1 01 00 90 00 56 [11:19:06]RAPDU: 90 00 [11:19:06]wFMCommunicate OK [11:19:06]wFMCommunicate request_size=229 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 0D 02 02 E0 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A8 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F7 00 00 35 04 06 00 E0 31 97 23 E3 92 [11:19:06]Write to MH i2c: E2 E8 00 E2 01 80 0D 02 02 E0 00 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A8 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F7 00 00 35 04 06 00 E0 31 97 23 E3 92 00 00 CD [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 03 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 03 00 E2 01 00 90 00 57 [11:19:06]RAPDU: 90 00 [11:19:06]wFMCommunicate OK [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 0D 03 02 [11:19:06]Write to MH i2c: E2 08 00 E3 01 80 0D 03 02 00 00 00 00 5F [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0B 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 0B 00 E3 01 00 6C D0 30 DB 57 BD B8 BB 90 00 2E [11:19:06]RAPDU: 6C D0 30 DB 57 BD B8 BB 90 00 [11:19:06]wFMCommunicate OK [11:19:06]SAM_PROTO_SignData done [11:19:06]FM_MakeSignedData done [11:19:06]CreateOFDProtocolMessage [11:19:06]wFMCommunicate request_size=4 [11:19:06]MH_SAM_APDU [11:19:06]CAPDU: 80 11 00 00 [11:19:06]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:06]Read from MH i2c: E2 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 17 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [11:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:19:06]wFMCommunicate OK [11:19:06]CreateOFDProtocolMessage done [11:19:06]OFDSenderStorePacket 63319 [11:19:06]StoreOFDPacket docnum=63319 [11:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 EA 01 00 00 C8 50 E2 01 D5 70 5A 03 01 00 03 00 D6 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 43 00 00 00 00 13 04 06 00 C1 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A8 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F7 00 00 35 04 06 00 E0 31 97 23 E3 92 6C D0 30 DB 57 BD B8 BB [11:19:06]CheckFolder [11:19:06]dirname=/storage/ofd_packets [11:19:06]CheckFolder done [11:19:06]ProducePacketName [11:19:06]name=ofd_packets/00063319 [11:19:06]NVStorageSaveData ofd_packets/00063319 [11:19:06]File name is /storage/ofd_packets/00063319 [11:19:06]Write 520 bytes [11:19:06]NVStorageSaveData done [11:19:06]OFDSenderStorePacket done [11:19:06]KKMCreateOFDPacket done [11:19:06]NVStorageSaveData kkm_last_timestamp [11:19:06]File name is /storage/kkm_last_timestamp [11:19:06]Write 4 bytes [11:19:06]NVStorageSaveData done [11:19:06]OFD Sender: Processing packet 63319 [packets to send 232, broken 231] [11:19:06]ProducePacketName [11:19:06]name=ofd_packets/00063319 [11:19:06]OFD Sender: To server: pG, [11:19:06]CommunicateWithHost lk.salyk.kg:30040 [11:19:06]ConnectInit lk.salyk.kg [11:19:06]ExternCall_PrintAddStr [11:19:06]wPrintStart [11:19:06]Write to MH i2c: 01 00 00 E5 01 E6 [11:19:06]Write i2c OK [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: 01 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: 01 07 00 [11:19:06]MH_I2C_Read... [11:19:06]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 FF 0F FB [11:19:06]RasterBufferAndPrint [11:19:06]line Счет N : (3)47629 [11:19:06]line ИНН: 02508201610067 [11:19:06]line Контрольно-Кассовый Чек [11:19:06]line ПРОДАЖА [11:19:06]line Товар: 4870002329487 [11:19:06]line Напиток Pepsi 1,5л [11:19:06]line 1.000 * 173.45 [11:19:06]line = 173.45 [11:19:06]line НДС 12% НСП 1% [11:19:06]line > о реализуемом товаре [11:19:06]line Товар: 4870001570057 [11:19:06]line Напиток Pepsi 0,5л [11:19:06]line 1.000 * 79.29 [11:19:06]line = 79.29 [11:19:06]line НДС 12% НСП 1% [11:19:06]line > о реализуемом товаре [11:19:06]line Товар: 2000036240010 [11:19:06]line Кофе Латте (GABB TRADE) [11:19:06]line 1.000 * 113.98 [11:19:06]line = 113.98 [11:19:06]line НДС 12% НСП 1% [11:19:06]line > о реализуемом товаре [11:19:06]line ИТОГО: 366.72 [11:19:06]line НСП 1% : 3.24 [11:19:06]line НДС 12% : 38.94 [11:19:06]line Наличными: 0.00 [11:19:06]line Безнал.: 366.72 [11:19:06]line Место: АЗС № 86 "Партнер Нефть" [11:19:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:19:06]line СНО: Общий режим [11:19:06]line Чек 48 23.10.2024 11:19 [11:19:06]line Смена: 546 ФФД: 1.0 [11:19:06]line ЗНМ: 0300000154 [11:19:06]line РНМ: 0000000000091619 [11:19:06]line Версия ККМ: 001 [11:19:06]line Платежная система: Mbank [11:19:06]line ФМ: 0000000000874676 [11:19:06]line ФД: 63319 [11:19:06]line ФПД: 246503593730962 [11:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T111904&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63319&fm=246503593730962&tin=02508201610067®Number=0000000000091619&sum=36672 [11:19:06]line 0 [11:19:06]written 0, free lines is 4095 [11:19:06]Connected sock=9 [11:19:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 EA 01 00 00 C8 50 E2 01 D5 70 5A 03 01 00 03 00 D6 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 43 00 00 00 00 13 04 06 00 C1 43 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 1E 00 00 00 00 13 04 06 00 F9 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 8F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A8 DB 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F7 00 00 35 04 06 00 E0 31 97 23 E3 92 6C D0 30 DB 57 BD B8 BB [11:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 DD F0 47 00 FD CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 57 F7 00 00 F4 03 04 00 A0 85 18 67 B6 04 01 00 00 FF DB 90 F5 16 1F 8B 24 [11:19:07]CommunicateWithHost err = 0 [11:19:07]CheckOFDResponse [11:19:07]1017 (14) - 77093643461234 [11:19:07]1041 (16) - 0000000000874676 [11:19:07]1040 (4) - 63319 [11:19:07]1012 (4) - 23.10.2024 05:12 [11:19:07]1206 (1) - 0 [11:19:07]OFD Sender: Remove packet 63319 [11:19:07]ProducePacketName [11:19:07]name=ofd_packets/00063319 [11:19:07]NVStorageDeleteData [11:19:07]Write to MH i2c: 01 00 00 1A 02 1C [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: 01 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: 01 07 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 8E 0C BD [11:19:07]RasterBufferAndPrint [11:19:07]line [11:19:07]line [11:19:07]line [11:19:07]line [11:19:07]line [11:19:07]written 0, free lines is 3220 [11:19:07]MH_Cut [11:19:07]Write to MH i2c: D1 01 00 21 02 01 F5 [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: D1 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: D1 01 00 [11:19:07]MH_I2C_Read... [11:19:07]Read from MH i2c: D1 01 00 21 02 00 F4 [11:19:07]Write to MH i2c: 01 00 00 22 02 24 [11:19:07]Write i2c OK [11:19:07]MH_I2C_Read... [11:19:07]OFD Sender: No OFD packet to send [11:19:07]*** Cut start [11:19:07]*** Partial cut [11:19:07]*** CUTSNS_PIN = 1 [11:19:08]*** CUTSNS_PIN = 0 [11:19:08]*** Brake cut motor [11:19:08]Read from MH i2c: 01 [11:19:08]MH_I2C_Read... [11:19:08]*** Stop cut motor [11:19:08]*** Cut end [11:19:08]Read from MH i2c: 01 07 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [11:19:08]process_action close_receipt done [11:19:08]requested_data is exist [11:19:08]produce_requested_data [11:19:08]requested_item fm.sn is exist - process it [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 11 00 00 [11:19:08]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 17 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F8 [11:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:19:08]wFMCommunicate OK [11:19:08]requested_item fd.num is exist - process it [11:19:08]SAM_PROTO_GetFieldsCounters [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 13 00 00 [11:19:08]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 62 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 57 F7 00 00 0E 04 04 00 22 02 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 CC [11:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 57 F7 00 00 0E 04 04 00 22 02 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:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_GetFieldsCounters done [11:19:08]requested_item shift.num is exist - process it [11:19:08]requested_item shift.opened is exist - process it [11:19:08]req_shift_opened [11:19:08]FM_GetShiftState [11:19:08]SAM_PROTO_GetShiftState [11:19:08]wFMCommunicate request_size=4 [11:19:08]MH_SAM_APDU [11:19:08]CAPDU: 80 13 01 00 [11:19:08]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [11:19:08]Write i2c OK [11:19:08]MH_I2C_Read... [11:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:08]Read from MH i2c: E2 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 [11:19:08]MH_I2C_Read... [11:19:08]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 8E [11:19:08]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:19:08]wFMCommunicate OK [11:19:08]SAM_PROTO_GetShiftState done [11:19:08]FM_GetShiftState done [11:19:08]req_shift_opened done [11:19:08]requested_item shift.open_date is exist - process it [11:19:08]req_shift_open_date [11:19:08]req_shift_open_date done [11:19:08]produce_requested_data done [11:19:08]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63319,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:19:08]process_action_free close_receipt [11:19:08]json_value_free [11:19:08]json_value_free done [11:19:08]process_json_proto returns [11:19:08]Send response to host [11:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63319,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:19:08]free response buf [11:19:08]execute_script done [11:19:08]execute_script returns [11:19:08]free content buf [11:19:08]Sock 10.Close socket [11:19:08]Sock 10.Thread stoped [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:55]accept exits with 7 [11:20:55]New connection [11:20:55]New thread 3067198820 created [11:20:55]Thread 3067342180 joined [11:20:55]Waiting for new connection... [11:20:55] Sock 7.Parse request [11:20:55]Sock 7.Check first char [11:20:55]Sock 7.First char is OK [11:20:55]request: POST /json_proto HTTP/1.0 [11:20:55]Method: POST [11:20:55]URL: /json_proto [11:20:55]Method is POST - this is cgi request [11:20:55]url: /json_proto [11:20:55]query_string will be loaded in cgi processing [11:20:55]execute_cgi json_proto POST (null) [11:20:55]execute_cgi path=json_proto method=POST [11:20:55]POST find Content-Length [11:20:55]Host: 172.17.42.132:8080 [11:20:55]Content-Length: 620 [11:20:55]Content-Type: application/json [11:20:55] [11:20:55]POST finish read [11:20:55]Found Content-Length = 620 [11:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47630", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:55]execute_script... [11:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47630", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 288.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:55]POST & json_proto [11:20:55]process_json_proto [11:20:55]json parsed OK: [11:20:55]protocol is kg_v1.0 [11:20:55]action value=close_receipt [11:20:55]process_action close_receipt [11:20:55]cmd_close_receipt [11:20:55]MH_GetDate [11:20:55]Write to MH i2c: F0 00 00 26 02 17 [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: F0 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: F0 09 00 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: F0 09 00 26 02 00 18 DC 18 67 4C DF 56 66 7A [11:20:55]GetLastDocTimeStamp 1729682344 [11:20:55]current date 1729682456 [11:20:55]FM_GetShiftState [11:20:55]SAM_PROTO_GetShiftState [11:20:55]wFMCommunicate request_size=4 [11:20:55]MH_SAM_APDU [11:20:55]CAPDU: 80 13 01 00 [11:20:55]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [11:20:55]Write i2c OK [11:20:55]MH_I2C_Read... [11:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:55]Read from MH i2c: E2 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: E2 0E 00 [11:20:55]MH_I2C_Read... [11:20:55]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 90 [11:20:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:20:55]wFMCommunicate OK [11:20:55]SAM_PROTO_GetShiftState done [11:20:55]FM_GetShiftState done [11:20:55]opened in 1729642527 [11:20:55]opened+sec_in_day 1729728927 [11:20:55]quantity*price = 28800 [11:20:55]sum+1 = 28801 [11:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 288.00 НСП 1% : 2.55 НДС 12% : 30.58 Наличными: 288.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 49 23.10.2024 11:20 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63320 ФПД: 198368541686945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112056&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63320&fm=198368541686945&tin=02508201610067®Number=0000000000091619&sum=28800 0 [11:20:56]StoreToDocumentArchive [11:20:56]shift 546 fd 63320 [11:20:56]save to /storage/0546/doc_00063320 [11:20:56]save last doc name /storage/0546/doc_00063320 to /storage/kkm_last_doc_name [11:20:56]save OK [11:20:56]Clear old archive folders... [11:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:20:56]tlvbuf is 015CD9C0 [11:20:56]SAM_PROTO_ClearQueue [11:20:56]wFMCommunicate request_size=4 [11:20:56]MH_SAM_APDU [11:20:56]CAPDU: 80 09 00 00 [11:20:56]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [11:20:56]Write i2c OK [11:20:56]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]SAM_PROTO_ClearQueue done [11:20:57]KKMCreateOFDPacket [11:20:57]OFDProtocolAddRootSTLVToBuf [11:20:57]FM_MakeSignedData [11:20:57]FM_MakeSignedData [11:20:57]SAM_PROTO_SignData [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 01 02 [11:20:57]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=255 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 18 DC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [11:20:57]Write to MH i2c: E2 02 01 36 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 18 DC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 B6 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=32 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F7 00 00 35 04 06 00 B4 6A 46 76 3C A1 [11:20:57]Write to MH i2c: E2 23 00 37 02 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F7 00 00 35 04 06 00 B4 6A 46 76 3C A1 00 00 1C [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [11:20:57]RAPDU: 90 00 [11:20:57]wFMCommunicate OK [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 0D 03 02 [11:20:57]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0B 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 0B 00 38 02 00 C0 E8 2C B1 5A F5 F2 F0 90 00 6C [11:20:57]RAPDU: C0 E8 2C B1 5A F5 F2 F0 90 00 [11:20:57]wFMCommunicate OK [11:20:57]SAM_PROTO_SignData done [11:20:57]FM_MakeSignedData done [11:20:57]CreateOFDProtocolMessage [11:20:57]wFMCommunicate request_size=4 [11:20:57]MH_SAM_APDU [11:20:57]CAPDU: 80 11 00 00 [11:20:57]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:57]Read from MH i2c: E2 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 17 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0E [11:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:20:57]wFMCommunicate OK [11:20:57]CreateOFDProtocolMessage done [11:20:57]OFDSenderStorePacket 63320 [11:20:57]StoreOFDPacket docnum=63320 [11:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 08 B7 1D 01 D7 3B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 18 DC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F7 00 00 35 04 06 00 B4 6A 46 76 3C A1 C0 E8 2C B1 5A F5 F2 F0 [11:20:57]CheckFolder [11:20:57]dirname=/storage/ofd_packets [11:20:57]CheckFolder done [11:20:57]ProducePacketName [11:20:57]name=ofd_packets/00063320 [11:20:57]NVStorageSaveData ofd_packets/00063320 [11:20:57]File name is /storage/ofd_packets/00063320 [11:20:57]Write 323 bytes [11:20:57]NVStorageSaveData done [11:20:57]OFDSenderStorePacket done [11:20:57]KKMCreateOFDPacket done [11:20:57]NVStorageSaveData kkm_last_timestamp [11:20:57]File name is /storage/kkm_last_timestamp [11:20:57]Write 4 bytes [11:20:57]NVStorageSaveData done [11:20:57]OFD Sender: Processing packet 63320 [packets to send 232, broken 231] [11:20:57]ProducePacketName [11:20:57]name=ofd_packets/00063320 [11:20:57]OFD Sender: To server: pG, [11:20:57]CommunicateWithHost lk.salyk.kg:30040 [11:20:57]ConnectInit lk.salyk.kg [11:20:57]ExternCall_PrintAddStr [11:20:57]wPrintStart [11:20:57]Write to MH i2c: 01 00 00 3A 02 3C [11:20:57]Write i2c OK [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 07 00 [11:20:57]MH_I2C_Read... [11:20:57]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [11:20:57]RasterBufferAndPrint [11:20:57]line Счет N : (3)47630 [11:20:57]line ИНН: 02508201610067 [11:20:57]line Контрольно-Кассовый Чек [11:20:57]line ПРОДАЖА [11:20:57]line Товар: 48743570 [11:20:57]line Сигареты Winston XStyle Blue [11:20:57]line 2.000 * 144.00 [11:20:57]line = 288.00 [11:20:57]line НДС 12% НСП 1% [11:20:57]line > о реализуемом товаре [11:20:57]line ИТОГО: 288.00 [11:20:57]line НСП 1% : 2.55 [11:20:57]line НДС 12% : 30.58 [11:20:57]line Наличными: 288.00 [11:20:57]line Безнал.: 0.00 [11:20:57]line Место: АЗС № 86 "Партнер Нефть" [11:20:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:20:57]line СНО: Общий режим [11:20:57]line Чек 49 23.10.2024 11:20 [11:20:57]line Смена: 546 ФФД: 1.0 [11:20:57]line ЗНМ: 0300000154 [11:20:57]line РНМ: 0000000000091619 [11:20:57]line Версия ККМ: 001 [11:20:57]line ФМ: 0000000000874676 [11:20:57]line ФД: 63320 [11:20:57]line ФПД: 198368541686945 [11:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T112056&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63320&fm=198368541686945&tin=02508201610067®Number=0000000000091619&sum=28800 [11:20:57]Connected sock=11 [11:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 08 B7 1D 01 D7 3B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 70 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 0B 00 00 00 00 07 04 06 00 80 70 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 18 DC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F7 00 00 35 04 06 00 B4 6A 46 76 3C A1 C0 E8 2C B1 5A F5 F2 F0 [11:20:57]line 0 [11:20:57]written 0, free lines is 4095 [11:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A3 A3 47 00 E7 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 58 F7 00 00 F4 03 04 00 0F 86 18 67 B6 04 01 00 00 9B 61 5F 49 BD 0F 9B 39 [11:20:58]CommunicateWithHost err = 0 [11:20:58]CheckOFDResponse [11:20:58]1017 (14) - 77093643461234 [11:20:58]1041 (16) - 0000000000874676 [11:20:58]1040 (4) - 63320 [11:20:58]1012 (4) - 23.10.2024 05:13 [11:20:58]1206 (1) - 0 [11:20:58]OFD Sender: Remove packet 63320 [11:20:58]ProducePacketName [11:20:58]name=ofd_packets/00063320 [11:20:58]NVStorageDeleteData [11:20:58]Write to MH i2c: 01 00 00 62 02 64 [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 1D 0D 95 [11:20:58]RasterBufferAndPrint [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]line [11:20:58]written 0, free lines is 3363 [11:20:58]MH_Cut [11:20:58]Write to MH i2c: D1 01 00 69 02 01 3D [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 [11:20:58]MH_I2C_Read... [11:20:58]Read from MH i2c: D1 01 00 69 02 00 3C [11:20:58]Write to MH i2c: 01 00 00 6A 02 6C [11:20:58]Write i2c OK [11:20:58]MH_I2C_Read... [11:20:58]OFD Sender: No OFD packet to send [11:20:58]*** Cut start [11:20:58]*** Partial cut [11:20:58]*** CUTSNS_PIN = 1 [11:20:59]*** CUTSNS_PIN = 0 [11:20:59]*** Brake cut motor [11:20:59]Read from MH i2c: 01 [11:20:59]MH_I2C_Read... [11:20:59]*** Stop cut motor [11:20:59]*** Cut end [11:20:59]Read from MH i2c: 01 07 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 FF 0F 81 [11:20:59]process_action close_receipt done [11:20:59]requested_data is exist [11:20:59]produce_requested_data [11:20:59]requested_item fm.sn is exist - process it [11:20:59]wFMCommunicate request_size=4 [11:20:59]MH_SAM_APDU [11:20:59]CAPDU: 80 11 00 00 [11:20:59]Write to MH i2c: E2 08 00 6B 02 80 11 00 00 00 00 00 00 E7 [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:59]Read from MH i2c: E2 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 17 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 17 00 6B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 40 [11:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:20:59]wFMCommunicate OK [11:20:59]requested_item fd.num is exist - process it [11:20:59]SAM_PROTO_GetFieldsCounters [11:20:59]wFMCommunicate request_size=4 [11:20:59]MH_SAM_APDU [11:20:59]CAPDU: 80 13 00 00 [11:20:59]Write to MH i2c: E2 08 00 6C 02 80 13 00 00 00 00 00 00 EA [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:59]Read from MH i2c: E2 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 62 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 62 00 6C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 58 F7 00 00 0E 04 04 00 22 02 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 18 [11:20:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 58 F7 00 00 0E 04 04 00 22 02 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:20:59]wFMCommunicate OK [11:20:59]SAM_PROTO_GetFieldsCounters done [11:20:59]requested_item shift.num is exist - process it [11:20:59]requested_item shift.opened is exist - process it [11:20:59]req_shift_opened [11:20:59]FM_GetShiftState [11:20:59]SAM_PROTO_GetShiftState [11:20:59]wFMCommunicate request_size=4 [11:20:59]MH_SAM_APDU [11:20:59]CAPDU: 80 13 01 00 [11:20:59]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [11:20:59]Write i2c OK [11:20:59]MH_I2C_Read... [11:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:59]Read from MH i2c: E2 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 0E 00 [11:20:59]MH_I2C_Read... [11:20:59]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D6 [11:20:59]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:20:59]wFMCommunicate OK [11:20:59]SAM_PROTO_GetShiftState done [11:20:59]FM_GetShiftState done [11:20:59]req_shift_opened done [11:20:59]requested_item shift.open_date is exist - process it [11:20:59]req_shift_open_date [11:20:59]req_shift_open_date done [11:20:59]produce_requested_data done [11:20:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63320,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:20:59]process_action_free close_receipt [11:20:59]json_value_free [11:20:59]json_value_free done [11:20:59]process_json_proto returns [11:20:59]Send response to host [11:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63320,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:20:59]free response buf [11:20:59]execute_script done [11:20:59]execute_script returns [11:20:59]free content buf [11:20:59]Sock 7.Close socket [11:20:59]Sock 7.Thread stoped [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:34:37]ConnectInit Can't connect to host [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]accept exits with 9 [11:35:36]New connection [11:35:36]New thread 3067120996 created [11:35:36]Waiting for new connection... [11:35:36] Sock 9.Parse request [11:35:36]Sock 9.Check first char [11:35:36]Sock 9.First char is OK [11:35:36]request: POST /json_proto HTTP/1.0 [11:35:36]Method: POST [11:35:36]URL: /json_proto [11:35:36]Method is POST - this is cgi request [11:35:36]url: /json_proto [11:35:36]query_string will be loaded in cgi processing [11:35:36]execute_cgi json_proto POST (null) [11:35:36]execute_cgi path=json_proto method=POST [11:35:36]POST find Content-Length [11:35:36]Host: 172.17.42.132:8080 [11:35:36]Content-Length: 215 [11:35:36]Content-Type: application/json [11:35:36] [11:35:36]POST finish read [11:35:36]Found Content-Length = 215 [11:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:36]execute_script... [11:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:36]POST & json_proto [11:35:36]process_json_proto [11:35:36]json parsed OK: [11:35:36]protocol is kg_v1.0 [11:35:36]action value=get_value [11:35:36]process_action get_value [11:35:36]cmd_get_value [11:35:36]process_action get_value done [11:35:36]requested_data is exist [11:35:36]produce_requested_data [11:35:36]requested_item kkm.sn is exist - process it [11:35:36]requested_item kkm.ver is exist - process it [11:35:36]requested_item fm.sn is exist - process it [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 11 00 00 [11:35:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 17 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E3 [11:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:35:36]wFMCommunicate OK [11:35:36]requested_item fd.num is exist - process it [11:35:36]SAM_PROTO_GetFieldsCounters [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 13 00 00 [11:35:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 62 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 58 F7 00 00 0E 04 04 00 22 02 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 BB [11:35:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 58 F7 00 00 0E 04 04 00 22 02 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:35:36]wFMCommunicate OK [11:35:36]SAM_PROTO_GetFieldsCounters done [11:35:36]requested_item shift.num is exist - process it [11:35:36]requested_item shift.opened is exist - process it [11:35:36]req_shift_opened [11:35:36]FM_GetShiftState [11:35:36]SAM_PROTO_GetShiftState [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 13 01 00 [11:35:36]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0E 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 79 [11:35:36]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:35:36]wFMCommunicate OK [11:35:36]SAM_PROTO_GetShiftState done [11:35:36]FM_GetShiftState done [11:35:36]req_shift_opened done [11:35:36]requested_item shift.open_date is exist - process it [11:35:36]req_shift_open_date [11:35:36]req_shift_open_date done [11:35:36]produce_requested_data done [11:35:36]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63320,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:35:36]process_action_free get_value [11:35:36]json_value_free [11:35:36]json_value_free done [11:35:36]process_json_proto returns [11:35:36]Send response to host [11:35:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63320,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:35:36]free response buf [11:35:36]execute_script done [11:35:36]execute_script returns [11:35:36]free content buf [11:35:36]Sock 9.Close socket [11:35:36]Sock 9.Thread stoped [11:35:36]OFD Sender: No OFD packet to send [11:35:39]accept exits with 7 [11:35:39]New connection [11:35:39]New thread 3066977636 created [11:35:39]Thread 3067120996 joined [11:35:39]Waiting for new connection... [11:35:39] Sock 7.Parse request [11:35:39]Sock 7.Check first char [11:35:39]Sock 7.First char is OK [11:35:39]request: POST /json_proto HTTP/1.0 [11:35:39]Method: POST [11:35:39]URL: /json_proto [11:35:39]Method is POST - this is cgi request [11:35:39]url: /json_proto [11:35:39]query_string will be loaded in cgi processing [11:35:39]execute_cgi json_proto POST (null) [11:35:39]execute_cgi path=json_proto method=POST [11:35:39]POST find Content-Length [11:35:39]Host: 172.17.42.132:8080 [11:35:39]Content-Length: 331 [11:35:39]Content-Type: application/json [11:35:39] [11:35:39]POST finish read [11:35:39]Found Content-Length = 331 [11:35:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:35:39]execute_script... [11:35:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:35:39]POST & json_proto [11:35:39]process_json_proto [11:35:39]json parsed OK: [11:35:39]protocol is kg_v1.0 [11:35:39]action value=get_value [11:35:39]process_action get_value [11:35:39]cmd_get_value [11:35:39]process_action get_value done [11:35:39]requested_data is exist [11:35:39]produce_requested_data [11:35:39]requested_item fm.sale.total is exist - process it [11:35:39]SAM_PROTO_GetFMData [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 13 03 00 [11:35:39]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 FD 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 14 F3 00 00 69 04 A1 00 6F 04 04 00 DD F2 00 00 B1 04 04 00 93 82 EE 93 70 04 04 00 6C BE 9F 85 72 04 04 00 27 C4 4E 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF 19 B6 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2C 11 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 75 [11:35:39]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 14 F3 00 00 69 04 A1 00 6F 04 04 00 DD F2 00 00 B1 04 04 00 93 82 EE 93 70 04 04 00 6C BE 9F 85 72 04 04 00 27 C4 4E 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 BF 19 B6 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 2C 11 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 [11:35:39]wFMCommunicate OK [11:35:39]wFMCommunicate request_size=4 [11:35:39]MH_SAM_APDU [11:35:39]CAPDU: 80 17 00 00 [11:35:39]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [11:35:39]Write i2c OK [11:35:39]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6B [11:35:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:35:40]wFMCommunicate OK [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 17 00 00 [11:35:40]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [11:35:40]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:40]wFMCommunicate OK [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 17 00 00 [11:35:40]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [11:35:40]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:35:40]wFMCommunicate OK [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 17 00 00 [11:35:40]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [11:35:40]Read from MH i2c: E2 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 DF 00 [11:35:40]MH_I2C_Read... [11:35:40]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [11:35:40]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:35:40]wFMCommunicate OK [11:35:40]SAM_PROTO_GetFMData done [11:35:40]requested_item fm.sale_refund.total is exist - process it [11:35:40]requested_item fm.buy.total is exist - process it [11:35:40]requested_item shift.sale.total is exist - process it [11:35:40]SAM_PROTO_GetShiftData [11:35:40]wFMCommunicate request_size=4 [11:35:40]MH_SAM_APDU [11:35:40]CAPDU: 80 13 02 00 [11:35:40]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [11:35:40]Write i2c OK [11:35:40]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 31 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 9D E6 0D 70 04 03 00 F0 DB 0B 72 04 03 00 AD 0A 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DE 79 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7C 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [11:35:41]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 31 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 9D E6 0D 70 04 03 00 F0 DB 0B 72 04 03 00 AD 0A 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 DE 79 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 7C 1F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 17 00 00 [11:35:41]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 19 00 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 BB [11:35:41]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 [11:35:41]wFMCommunicate OK [11:35:41]wFMCommunicate request_size=4 [11:35:41]MH_SAM_APDU [11:35:41]CAPDU: 80 17 00 00 [11:35:41]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [11:35:41]Write i2c OK [11:35:41]MH_I2C_Read... [11:35:41]OFD Sender: No OFD packet to send [11:35:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:41]Read from MH i2c: E2 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 [11:35:41]MH_I2C_Read... [11:35:41]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [11:35:41]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 [11:35:42]wFMCommunicate OK [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 17 00 00 [11:35:42]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 FD 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 FD 00 1B 00 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 0D [11:35:42]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 [11:35:42]wFMCommunicate OK [11:35:42]wFMCommunicate request_size=4 [11:35:42]MH_SAM_APDU [11:35:42]CAPDU: 80 17 00 00 [11:35:42]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [11:35:42]Write i2c OK [11:35:42]MH_I2C_Read... [11:35:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [11:35:42]Read from MH i2c: E2 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 CB 00 [11:35:42]MH_I2C_Read... [11:35:42]Read from MH i2c: E2 CB 00 1C 00 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 85 [11:35:42]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 [11:35:42]wFMCommunicate OK [11:35:42]SAM_PROTO_GetShiftData done [11:35:42]requested_item shift.sale.total_cash is exist - process it [11:35:42]requested_item shift.sale_refund.total is exist - process it [11:35:42]requested_item shift.sale_refund.total_cash is exist - process it [11:35:42]requested_item shift.buy.total is exist - process it [11:35:42]requested_item shift.buy.total_cash is exist - process it [11:35:42]produce_requested_data done [11:35:42]produce_requested_data return {"fm.sale.total":24818817.47,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":9110.05,"shift.sale.total_cash":7772.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:35:42]process_action_free get_value [11:35:42]json_value_free [11:35:42]json_value_free done [11:35:42]process_json_proto returns [11:35:42]Send response to host [11:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24818817.47,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":9110.05,"shift.sale.total_cash":7772.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:35:42]free response buf [11:35:42]execute_script done [11:35:42]execute_script returns [11:35:42]free content buf [11:35:42]Sock 7.Close socket [11:35:42]Sock 7.Thread stoped [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:20]accept exits with 9 [11:43:20]New connection [11:43:20]New thread 3067120996 created [11:43:20]Thread 3066977636 joined [11:43:20]Waiting for new connection... [11:43:20] Sock 9.Parse request [11:43:20]Sock 9.Check first char [11:43:20]Sock 9.First char is OK [11:43:20]request: POST /json_proto HTTP/1.0 [11:43:20]Method: POST [11:43:20]URL: /json_proto [11:43:20]Method is POST - this is cgi request [11:43:20]url: /json_proto [11:43:20]query_string will be loaded in cgi processing [11:43:20]execute_cgi json_proto POST (null) [11:43:20]execute_cgi path=json_proto method=POST [11:43:20]POST find Content-Length [11:43:20]Host: 172.17.42.132:8080 [11:43:20]Content-Length: 970 [11:43:20]Content-Type: application/json [11:43:20] [11:43:20]POST finish read [11:43:20]Found Content-Length = 970 [11:43:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47631", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:20]execute_script... [11:43:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47631", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 143.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:20]POST & json_proto [11:43:20]process_json_proto [11:43:20]json parsed OK: [11:43:20]protocol is kg_v1.0 [11:43:20]action value=close_receipt [11:43:20]process_action close_receipt [11:43:20]cmd_close_receipt [11:43:20]MH_GetDate [11:43:20]Write to MH i2c: F0 00 00 1D 00 0C [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: F0 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: F0 09 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: F0 09 00 1D 00 00 59 E1 18 67 4C DF 56 66 B5 [11:43:20]GetLastDocTimeStamp 1729682456 [11:43:20]current date 1729683801 [11:43:20]FM_GetShiftState [11:43:20]SAM_PROTO_GetShiftState [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 13 01 00 [11:43:20]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0E 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 85 [11:43:20]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_GetShiftState done [11:43:20]FM_GetShiftState done [11:43:20]opened in 1729642527 [11:43:20]opened+sec_in_day 1729728927 [11:43:20]quantity*price = 8400 [11:43:20]sum+1 = 8401 [11:43:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 143.00 НСП 1% : 1.26 НДС 12% : 15.18 Наличными: 143.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 50 23.10.2024 11:43 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63321 ФПД: 88995645419733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114321&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63321&fm=88995645419733&tin=02508201610067®Number=0000000000091619&sum=14300 0 [11:43:21]StoreToDocumentArchive [11:43:21]shift 546 fd 63321 [11:43:21]save to /storage/0546/doc_00063321 [11:43:21]save last doc name /storage/0546/doc_00063321 to /storage/kkm_last_doc_name [11:43:21]save OK [11:43:21]Clear old archive folders... [11:43:21]ProcessDocumentItem done err = 0, tmpTLVsize=413 [11:43:21]tlvbuf is 006F5670 [11:43:21]SAM_PROTO_ClearQueue [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 09 00 00 [11:43:21]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:43:21]RAPDU: 90 00 [11:43:21]wFMCommunicate OK [11:43:21]SAM_PROTO_ClearQueue done [11:43:21]KKMCreateOFDPacket [11:43:21]OFDProtocolAddRootSTLVToBuf [11:43:21]FM_MakeSignedData [11:43:21]FM_MakeSignedData [11:43:21]SAM_PROTO_SignData [11:43:21]wFMCommunicate request_size=4 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 0D 01 02 [11:43:21]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:43:21]RAPDU: 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=255 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [11:43:21]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 27 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:21]Read from MH i2c: E2 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:43:21]RAPDU: 90 00 [11:43:21]wFMCommunicate OK [11:43:21]wFMCommunicate request_size=172 [11:43:21]MH_SAM_APDU [11:43:21]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 05 00 00 00 00 07 04 06 00 DC 37 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 59 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 59 F7 00 00 35 04 06 00 50 F0 E9 D4 F0 D5 [11:43:21]Write to MH i2c: E2 AF 00 2E 00 80 0D 02 02 A7 00 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 05 00 00 00 00 07 04 06 00 DC 37 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 59 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 59 F7 00 00 35 04 06 00 50 F0 E9 D4 F0 D5 00 00 F8 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 03 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:43:22]RAPDU: 90 00 [11:43:22]wFMCommunicate OK [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 0D 03 02 [11:43:22]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0B 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0B 00 2F 00 00 A2 8E D8 2C 96 F7 E5 C1 90 00 12 [11:43:22]RAPDU: A2 8E D8 2C 96 F7 E5 C1 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_SignData done [11:43:22]FM_MakeSignedData done [11:43:22]CreateOFDProtocolMessage [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 11 00 00 [11:43:22]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 03 [11:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:43:22]wFMCommunicate OK [11:43:22]CreateOFDProtocolMessage done [11:43:22]OFDSenderStorePacket 63321 [11:43:22]StoreOFDPacket docnum=63321 [11:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B1 01 00 00 1A 0B A9 01 6C 82 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 05 00 00 00 00 07 04 06 00 DC 37 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 59 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 59 F7 00 00 35 04 06 00 50 F0 E9 D4 F0 D5 A2 8E D8 2C 96 F7 E5 C1 [11:43:22]CheckFolder [11:43:22]dirname=/storage/ofd_packets [11:43:22]CheckFolder done [11:43:22]ProducePacketName [11:43:22]name=ofd_packets/00063321 [11:43:22]NVStorageSaveData ofd_packets/00063321 [11:43:22]File name is /storage/ofd_packets/00063321 [11:43:22]Write 463 bytes [11:43:22]NVStorageSaveData done [11:43:22]OFDSenderStorePacket done [11:43:22]KKMCreateOFDPacket done [11:43:22]NVStorageSaveData kkm_last_timestamp [11:43:22]File name is /storage/kkm_last_timestamp [11:43:22]Write 4 bytes [11:43:22]NVStorageSaveData done [11:43:22]ExternCall_PrintAddStr [11:43:22]wPrintStart [11:43:22]Write to MH i2c: 01 00 00 31 00 31 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: 01 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: 01 07 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:43:22]RasterBufferAndPrint [11:43:22]line Счет N : (3)47631 [11:43:22]line ИНН: 02508201610067 [11:43:22]line Контрольно-Кассовый Чек [11:43:22]line ПРОДАЖА [11:43:22]line Товар: 4870001571030 [11:43:22]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [11:43:22]line 1.000 * 84.00 [11:43:22]line = 84.00 [11:43:22]line НДС 12% НСП 1% [11:43:22]line > о реализуемом товаре [11:43:22]line Товар: 4607065001445 [11:43:22]line Шок батончик Snickers 50,5г [11:43:22]line 1.000 * 59.00 [11:43:22]line = 59.00 [11:43:22]line НДС 12% НСП 1% [11:43:22]line > о реализуемом товаре [11:43:22]line ИТОГО: 143.00 [11:43:22]line НСП 1% : 1.26 [11:43:22]line НДС 12% : 15.18 [11:43:22]line Наличными: 143.00 [11:43:22]line Безнал.: 0.00 [11:43:22]line Место: АЗС № 86 "Партнер Нефть" [11:43:22]OFD Sender: Processing packet 63321 [packets to send 232, broken 231] [11:43:22]ProducePacketName [11:43:22]name=ofd_packets/00063321 [11:43:22]OFD Sender: To server: pG, [11:43:22]CommunicateWithHost lk.salyk.kg:30040 [11:43:22]ConnectInit lk.salyk.kg [11:43:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:22]line СНО: Общий режим [11:43:22]line Чек 50 23.10.2024 11:43 [11:43:22]line Смена: 546 ФФД: 1.0 [11:43:22]line ЗНМ: 0300000154 [11:43:22]line РНМ: 0000000000091619 [11:43:22]line Версия ККМ: 001 [11:43:22]line ФМ: 0000000000874676 [11:43:22]line ФД: 63321 [11:43:22]line ФПД: 88995645419733 [11:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114321&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63321&fm=88995645419733&tin=02508201610067®Number=0000000000091619&sum=14300 [11:43:22]line 0 [11:43:22]written 0, free lines is 4095 [11:43:22]Connected sock=10 [11:43:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B1 01 00 00 1A 0B A9 01 6C 82 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EE 05 00 00 00 00 07 04 06 00 DC 37 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 59 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 59 F7 00 00 35 04 06 00 50 F0 E9 D4 F0 D5 A2 8E D8 2C 96 F7 E5 C1 [11:43:23]Write to MH i2c: 01 00 00 60 00 60 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 07 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: 01 07 00 60 00 00 00 00 00 00 C1 0C 34 [11:43:23]RasterBufferAndPrint [11:43:23]line [11:43:23]line [11:43:23]line [11:43:23]line [11:43:23]line [11:43:23]written 0, free lines is 3274 [11:43:23]MH_Cut [11:43:23]Write to MH i2c: D1 01 00 67 00 01 39 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: D1 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: D1 01 00 [11:43:23]MH_I2C_Read... [11:43:23]Read from MH i2c: D1 01 00 67 00 00 38 [11:43:23]Write to MH i2c: 01 00 00 68 00 68 [11:43:23]Write i2c OK [11:43:23]MH_I2C_Read... [11:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 D9 62 47 00 97 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 38 37 34 36 37 36 10 04 04 00 59 F7 00 00 F4 03 04 00 51 8B 18 67 B6 04 01 00 00 9F 64 3A 6E D8 E8 18 93 [11:43:23]CommunicateWithHost err = 0 [11:43:23]CheckOFDResponse [11:43:23]1017 (14) - 77093643461234 [11:43:23]1041 (16) - 0000000000874676 [11:43:23]1040 (4) - 63321 [11:43:23]1012 (4) - 23.10.2024 05:36 [11:43:23]1206 (1) - 0 [11:43:23]OFD Sender: Remove packet 63321 [11:43:23]ProducePacketName [11:43:23]name=ofd_packets/00063321 [11:43:23]NVStorageDeleteData [11:43:23]OFD Sender: No OFD packet to send [11:43:23]*** Cut start [11:43:23]*** Partial cut [11:43:23]*** CUTSNS_PIN = 1 [11:43:23]*** CUTSNS_PIN = 0 [11:43:24]*** Brake cut motor [11:43:24]Read from MH i2c: 01 [11:43:24]MH_I2C_Read... [11:43:24]*** Stop cut motor [11:43:24]*** Cut end [11:43:24]Read from MH i2c: 01 07 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: 01 07 00 68 00 00 00 00 00 00 FF 0F 7D [11:43:24]process_action close_receipt done [11:43:24]requested_data is exist [11:43:24]produce_requested_data [11:43:24]requested_item fm.sn is exist - process it [11:43:24]wFMCommunicate request_size=4 [11:43:24]MH_SAM_APDU [11:43:24]CAPDU: 80 11 00 00 [11:43:24]Write to MH i2c: E2 08 00 69 00 80 11 00 00 00 00 00 00 E3 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:24]Read from MH i2c: E2 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 17 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 17 00 69 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3C [11:43:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:43:24]wFMCommunicate OK [11:43:24]requested_item fd.num is exist - process it [11:43:24]SAM_PROTO_GetFieldsCounters [11:43:24]wFMCommunicate request_size=4 [11:43:24]MH_SAM_APDU [11:43:24]CAPDU: 80 13 00 00 [11:43:24]Write to MH i2c: E2 08 00 6A 00 80 13 00 00 00 00 00 00 E6 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:24]Read from MH i2c: E2 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 62 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 62 00 6A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 59 F7 00 00 0E 04 04 00 22 02 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 18 [11:43:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 59 F7 00 00 0E 04 04 00 22 02 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:43:24]wFMCommunicate OK [11:43:24]SAM_PROTO_GetFieldsCounters done [11:43:24]requested_item shift.num is exist - process it [11:43:24]requested_item shift.opened is exist - process it [11:43:24]req_shift_opened [11:43:24]FM_GetShiftState [11:43:24]SAM_PROTO_GetShiftState [11:43:24]wFMCommunicate request_size=4 [11:43:24]MH_SAM_APDU [11:43:24]CAPDU: 80 13 01 00 [11:43:24]Write to MH i2c: E2 08 00 6B 00 80 13 01 00 00 00 00 00 E8 [11:43:24]Write i2c OK [11:43:24]MH_I2C_Read... [11:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:24]Read from MH i2c: E2 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 0E 00 [11:43:24]MH_I2C_Read... [11:43:24]Read from MH i2c: E2 0E 00 6B 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D2 [11:43:24]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:43:24]wFMCommunicate OK [11:43:24]SAM_PROTO_GetShiftState done [11:43:24]FM_GetShiftState done [11:43:24]req_shift_opened done [11:43:24]requested_item shift.open_date is exist - process it [11:43:24]req_shift_open_date [11:43:24]req_shift_open_date done [11:43:24]produce_requested_data done [11:43:24]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63321,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:43:24]process_action_free close_receipt [11:43:24]json_value_free [11:43:24]json_value_free done [11:43:24]process_json_proto returns [11:43:24]Send response to host [11:43:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63321,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:43:24]free response buf [11:43:24]execute_script done [11:43:24]execute_script returns [11:43:24]free content buf [11:43:24]Sock 9.Close socket [11:43:24]Sock 9.Thread stoped [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:21]accept exits with 7 [11:44:21]New connection [11:44:21]New thread 3066977636 created [11:44:21]Thread 3067120996 joined [11:44:21]Waiting for new connection... [11:44:21] Sock 7.Parse request [11:44:21]Sock 7.Check first char [11:44:21]Sock 7.First char is OK [11:44:21]request: POST /json_proto HTTP/1.0 [11:44:21]Method: POST [11:44:21]URL: /json_proto [11:44:21]Method is POST - this is cgi request [11:44:21]url: /json_proto [11:44:21]query_string will be loaded in cgi processing [11:44:21]execute_cgi json_proto POST (null) [11:44:21]execute_cgi path=json_proto method=POST [11:44:21]POST find Content-Length [11:44:21]Host: 172.17.42.132:8080 [11:44:21]Content-Length: 1151 [11:44:21]Content-Type: application/json [11:44:21] [11:44:21]POST finish read [11:44:21]Found Content-Length = 1151 [11:44:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47632", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:21]execute_script... [11:44:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47632", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:21]POST & json_proto [11:44:21]process_json_proto [11:44:21]json parsed OK: [11:44:21]protocol is kg_v1.0 [11:44:21]action value=close_receipt [11:44:21]process_action close_receipt [11:44:21]cmd_close_receipt [11:44:21]MH_GetDate [11:44:21]Write to MH i2c: F0 00 00 6C 00 5B [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 09 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: F0 09 00 6C 00 00 96 E1 18 67 4C DF 56 66 41 [11:44:21]GetLastDocTimeStamp 1729683801 [11:44:21]current date 1729683862 [11:44:21]FM_GetShiftState [11:44:21]SAM_PROTO_GetShiftState [11:44:21]wFMCommunicate request_size=4 [11:44:21]MH_SAM_APDU [11:44:21]CAPDU: 80 13 01 00 [11:44:21]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [11:44:21]Write i2c OK [11:44:21]MH_I2C_Read... [11:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:21]Read from MH i2c: E2 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 [11:44:21]MH_I2C_Read... [11:44:21]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D4 [11:44:21]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:44:21]wFMCommunicate OK [11:44:21]SAM_PROTO_GetShiftState done [11:44:21]FM_GetShiftState done [11:44:21]opened in 1729642527 [11:44:21]opened+sec_in_day 1729728927 [11:44:21]quantity*price = 10500 [11:44:21]sum+1 = 10501 [11:44:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 335.00 НСП 1% : 2.97 НДС 12% : 35.57 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 51 23.10.2024 11:44 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63322 ФПД: 30163405244597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114422&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63322&fm=30163405244597&tin=02508201610067®Number=0000000000091619&sum=33500 0 [11:44:22]StoreToDocumentArchive [11:44:22]shift 546 fd 63322 [11:44:22]save to /storage/0546/doc_00063322 [11:44:22]save last doc name /storage/0546/doc_00063322 to /storage/kkm_last_doc_name [11:44:22]save OK [11:44:22]Clear old archive folders... [11:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=496 [11:44:22]tlvbuf is 006F8C60 [11:44:22]SAM_PROTO_ClearQueue [11:44:22]wFMCommunicate request_size=4 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 09 00 00 [11:44:22]Write to MH i2c: E2 08 00 7A 00 80 09 00 00 00 00 00 00 EC [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:22]Read from MH i2c: E2 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [11:44:22]RAPDU: 90 00 [11:44:22]wFMCommunicate OK [11:44:22]SAM_PROTO_ClearQueue done [11:44:22]KKMCreateOFDPacket [11:44:22]OFDProtocolAddRootSTLVToBuf [11:44:22]FM_MakeSignedData [11:44:22]FM_MakeSignedData [11:44:22]SAM_PROTO_SignData [11:44:22]wFMCommunicate request_size=4 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 0D 01 02 [11:44:22]Write to MH i2c: E2 08 00 7B 00 80 0D 01 02 00 00 00 00 F4 [11:44:22]Write i2c OK [11:44:22]MH_I2C_Read... [11:44:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:22]Read from MH i2c: E2 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 [11:44:22]MH_I2C_Read... [11:44:22]Read from MH i2c: E2 03 00 7B 00 00 90 00 EF [11:44:22]RAPDU: 90 00 [11:44:22]wFMCommunicate OK [11:44:22]wFMCommunicate request_size=255 [11:44:22]MH_SAM_APDU [11:44:22]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 [11:44:22]Write to MH i2c: E2 02 01 7C 00 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 00 00 E7 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [11:44:23]RAPDU: 90 00 [11:44:23]wFMCommunicate OK [11:44:23]wFMCommunicate request_size=255 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 0D 02 02 FA 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 96 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F7 00 00 35 04 06 00 1B 6E F7 0E 08 B5 [11:44:23]Write to MH i2c: E2 02 01 7D 00 80 0D 02 02 FA 00 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 96 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F7 00 00 35 04 06 00 1B 6E F7 0E 08 B5 00 00 D0 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [11:44:23]RAPDU: 90 00 [11:44:23]wFMCommunicate OK [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 0D 03 02 [11:44:23]Write to MH i2c: E2 08 00 7E 00 80 0D 03 02 00 00 00 00 F9 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0B 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 0B 00 7E 00 00 01 D3 30 37 0B 13 B2 FF 90 00 04 [11:44:23]RAPDU: 01 D3 30 37 0B 13 B2 FF 90 00 [11:44:23]wFMCommunicate OK [11:44:23]SAM_PROTO_SignData done [11:44:23]FM_MakeSignedData done [11:44:23]CreateOFDProtocolMessage [11:44:23]wFMCommunicate request_size=4 [11:44:23]MH_SAM_APDU [11:44:23]CAPDU: 80 11 00 00 [11:44:23]Write to MH i2c: E2 08 00 7F 00 80 11 00 00 00 00 00 00 F9 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:23]Read from MH i2c: E2 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: E2 17 00 7F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 52 [11:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:44:23]wFMCommunicate OK [11:44:23]CreateOFDProtocolMessage done [11:44:23]OFDSenderStorePacket 63322 [11:44:23]StoreOFDPacket docnum=63322 [11:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 04 02 00 00 42 16 FC 01 45 81 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 96 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F7 00 00 35 04 06 00 1B 6E F7 0E 08 B5 01 D3 30 37 0B 13 B2 FF [11:44:23]CheckFolder [11:44:23]dirname=/storage/ofd_packets [11:44:23]CheckFolder done [11:44:23]ProducePacketName [11:44:23]name=ofd_packets/00063322 [11:44:23]NVStorageSaveData ofd_packets/00063322 [11:44:23]File name is /storage/ofd_packets/00063322 [11:44:23]Write 546 bytes [11:44:23]NVStorageSaveData done [11:44:23]OFDSenderStorePacket done [11:44:23]KKMCreateOFDPacket done [11:44:23]NVStorageSaveData kkm_last_timestamp [11:44:23]File name is /storage/kkm_last_timestamp [11:44:23]Write 4 bytes [11:44:23]NVStorageSaveData done [11:44:23]ExternCall_PrintAddStr [11:44:23]wPrintStart [11:44:23]Write to MH i2c: 01 00 00 80 00 80 [11:44:23]Write i2c OK [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 07 00 [11:44:23]MH_I2C_Read... [11:44:23]Read from MH i2c: 01 07 00 80 00 00 00 00 00 00 FF 0F 95 [11:44:23]RasterBufferAndPrint [11:44:23]line Счет N : (3)47632 [11:44:23]line ИНН: 02508201610067 [11:44:23]line Контрольно-Кассовый Чек [11:44:23]line ПРОДАЖА [11:44:23]line Товар: 2000034730018 [11:44:23]line Кофе Американо (GABB TRADE) [11:44:23]line 1.000 * 105.00 [11:44:23]line = 105.00 [11:44:23]line НДС 12% НСП 1% [11:44:23]line > о реализуемом товаре [11:44:23]line Товар: 2000036210013 [11:44:23]line Кофе Капучино (GABB TRADE) [11:44:23]line 1.000 * 115.00 [11:44:23]line = 115.00 [11:44:23]line НДС 12% НСП 1% [11:44:23]line > о реализуемом товаре [11:44:23]line Товар: 2000036240010 [11:44:23]line Кофе Латте (GABB TRADE) [11:44:23]line 1.000 * 115.00 [11:44:23]line = 115.00 [11:44:23]line НДС 12% НСП 1% [11:44:23]line > о реализуемом товаре [11:44:23]line ИТОГО: 335.00 [11:44:23]line НСП 1% : 2.97 [11:44:23]line НДС 12% : 35.57 [11:44:23]line Наличными: 335.00 [11:44:23]line Безнал.: 0.00 [11:44:23]line Место: АЗС № 86 "Партнер Нефть" [11:44:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:44:23]line СНО: Общий режим [11:44:23]line Чек 51 23.10.2024 11:44 [11:44:23]line Смена: 546 ФФД: 1.0 [11:44:23]line ЗНМ: 0300000154 [11:44:23]line РНМ: 0000000000091619 [11:44:23]line Версия ККМ: 001 [11:44:23]line ФМ: 0000000000874676 [11:44:23]line ФД: 63322 [11:44:23]line ФПД: 30163405244597 [11:44:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114422&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63322&fm=30163405244597&tin=02508201610067®Number=0000000000091619&sum=33500 [11:44:23]line 0 [11:44:23]written 0, free lines is 4095 [11:44:23]OFD Sender: Processing packet 63322 [packets to send 232, broken 231] [11:44:23]ProducePacketName [11:44:23]name=ofd_packets/00063322 [11:44:23]OFD Sender: To server: pG, [11:44:23]CommunicateWithHost lk.salyk.kg:30040 [11:44:23]ConnectInit lk.salyk.kg [11:44:24]Connected sock=10 [11:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 04 02 00 00 42 16 FC 01 45 81 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 96 E1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F7 00 00 35 04 06 00 1B 6E F7 0E 08 B5 01 D3 30 37 0B 13 B2 FF [11:44:24]Write to MH i2c: 01 00 00 B5 00 B5 [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 7E 0C 46 [11:44:24]RasterBufferAndPrint [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]line [11:44:24]written 0, free lines is 3208 [11:44:24]MH_Cut [11:44:24]Write to MH i2c: D1 01 00 BC 00 01 8E [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 01 00 [11:44:24]MH_I2C_Read... [11:44:24]Read from MH i2c: D1 01 00 BC 00 00 8D [11:44:24]Write to MH i2c: 01 00 00 BD 00 BD [11:44:24]Write i2c OK [11:44:24]MH_I2C_Read... [11:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 68 4C 47 00 12 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5A F7 00 00 F4 03 04 00 8E 8B 18 67 B6 04 01 00 00 40 F7 4A 04 64 C4 11 8D [11:44:24]CommunicateWithHost err = 0 [11:44:24]CheckOFDResponse [11:44:24]1017 (14) - 77093643461234 [11:44:24]1041 (16) - 0000000000874676 [11:44:24]1040 (4) - 63322 [11:44:24]1012 (4) - 23.10.2024 05:37 [11:44:24]1206 (1) - 0 [11:44:24]OFD Sender: Remove packet 63322 [11:44:24]ProducePacketName [11:44:24]name=ofd_packets/00063322 [11:44:24]NVStorageDeleteData [11:44:24]OFD Sender: No OFD packet to send [11:44:25]*** Cut start [11:44:25]*** Partial cut [11:44:25]*** CUTSNS_PIN = 1 [11:44:25]*** CUTSNS_PIN = 0 [11:44:25]*** Brake cut motor [11:44:25]Read from MH i2c: 01 [11:44:25]MH_I2C_Read... [11:44:25]*** Stop cut motor [11:44:25]*** Cut end [11:44:25]Read from MH i2c: 01 07 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: 01 07 00 BD 00 00 00 00 00 00 FF 0F D2 [11:44:25]process_action close_receipt done [11:44:25]requested_data is exist [11:44:25]produce_requested_data [11:44:25]requested_item fm.sn is exist - process it [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 11 00 00 [11:44:25]Write to MH i2c: E2 08 00 BE 00 80 11 00 00 00 00 00 00 38 [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 17 00 BE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 91 [11:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:44:25]wFMCommunicate OK [11:44:25]requested_item fd.num is exist - process it [11:44:25]SAM_PROTO_GetFieldsCounters [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 13 00 00 [11:44:25]Write to MH i2c: E2 08 00 BF 00 80 13 00 00 00 00 00 00 3B [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:25]Read from MH i2c: E2 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 62 00 [11:44:25]MH_I2C_Read... [11:44:25]Read from MH i2c: E2 62 00 BF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5A F7 00 00 0E 04 04 00 22 02 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 71 [11:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5A F7 00 00 0E 04 04 00 22 02 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:44:25]wFMCommunicate OK [11:44:25]SAM_PROTO_GetFieldsCounters done [11:44:25]requested_item shift.num is exist - process it [11:44:25]requested_item shift.opened is exist - process it [11:44:25]req_shift_opened [11:44:25]FM_GetShiftState [11:44:25]SAM_PROTO_GetShiftState [11:44:25]wFMCommunicate request_size=4 [11:44:25]MH_SAM_APDU [11:44:25]CAPDU: 80 13 01 00 [11:44:25]Write to MH i2c: E2 08 00 C0 00 80 13 01 00 00 00 00 00 3D [11:44:25]Write i2c OK [11:44:25]MH_I2C_Read... [11:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:26]Read from MH i2c: E2 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 C0 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 27 [11:44:26]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:44:26]wFMCommunicate OK [11:44:26]SAM_PROTO_GetShiftState done [11:44:26]FM_GetShiftState done [11:44:26]req_shift_opened done [11:44:26]requested_item shift.open_date is exist - process it [11:44:26]req_shift_open_date [11:44:26]req_shift_open_date done [11:44:26]produce_requested_data done [11:44:26]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63322,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:44:26]process_action_free close_receipt [11:44:26]json_value_free [11:44:26]json_value_free done [11:44:26]process_json_proto returns [11:44:26]Send response to host [11:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63322,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:44:26]free response buf [11:44:26]execute_script done [11:44:26]execute_script returns [11:44:26]free content buf [11:44:26]Sock 7.Close socket [11:44:26]Sock 7.Thread stoped [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:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:11]accept exits with 9 [11:48:11]New connection [11:48:11]New thread 3067120996 created [11:48:11]Thread 3066977636 joined [11:48:11]Waiting for new connection... [11:48:11] Sock 9.Parse request [11:48:11]Sock 9.Check first char [11:48:11]Sock 9.First char is OK [11:48:11]request: POST /json_proto HTTP/1.0 [11:48:11]Method: POST [11:48:11]URL: /json_proto [11:48:11]Method is POST - this is cgi request [11:48:11]url: /json_proto [11:48:11]query_string will be loaded in cgi processing [11:48:11]execute_cgi json_proto POST (null) [11:48:11]execute_cgi path=json_proto method=POST [11:48:11]POST find Content-Length [11:48:11]Host: 172.17.42.132:8080 [11:48:11]Content-Length: 619 [11:48:11]Content-Type: application/json [11:48:11] [11:48:11]POST finish read [11:48:11]Found Content-Length = 619 [11:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47633", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:11]execute_script... [11:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47633", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 2.000, "sum" : 318.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 318.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:11]POST & json_proto [11:48:11]process_json_proto [11:48:11]json parsed OK: [11:48:11]protocol is kg_v1.0 [11:48:11]action value=close_receipt [11:48:11]process_action close_receipt [11:48:11]cmd_close_receipt [11:48:11]MH_GetDate [11:48:11]Write to MH i2c: F0 00 00 C1 00 B0 [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 09 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: F0 09 00 C1 00 00 7B E2 18 67 4C DF 56 66 7C [11:48:11]GetLastDocTimeStamp 1729683862 [11:48:11]current date 1729684091 [11:48:11]FM_GetShiftState [11:48:11]SAM_PROTO_GetShiftState [11:48:11]wFMCommunicate request_size=4 [11:48:11]MH_SAM_APDU [11:48:11]CAPDU: 80 13 01 00 [11:48:11]Write to MH i2c: E2 08 00 C2 00 80 13 01 00 00 00 00 00 3F [11:48:11]Write i2c OK [11:48:11]MH_I2C_Read... [11:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:11]Read from MH i2c: E2 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 [11:48:11]MH_I2C_Read... [11:48:11]Read from MH i2c: E2 0E 00 C2 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 29 [11:48:11]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:48:11]wFMCommunicate OK [11:48:11]SAM_PROTO_GetShiftState done [11:48:11]FM_GetShiftState done [11:48:11]opened in 1729642527 [11:48:11]opened+sec_in_day 1729728927 [11:48:11]quantity*price = 31800 [11:48:11]sum+1 = 31801 [11:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 318.00 НСП 1% : 2.81 НДС 12% : 33.77 Наличными: 318.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 52 23.10.2024 11:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63323 ФПД: 72915020194511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63323&fm=72915020194511&tin=02508201610067®Number=0000000000091619&sum=31800 0 [11:48:12]StoreToDocumentArchive [11:48:12]shift 546 fd 63323 [11:48:12]save to /storage/0546/doc_00063323 [11:48:12]save last doc name /storage/0546/doc_00063323 to /storage/kkm_last_doc_name [11:48:12]save OK [11:48:12]Clear old archive folders... [11:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=272 [11:48:12]tlvbuf is 006FFD10 [11:48:12]SAM_PROTO_ClearQueue [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 09 00 00 [11:48:12]Write to MH i2c: E2 08 00 CF 00 80 09 00 00 00 00 00 00 41 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [11:48:12]RAPDU: 90 00 [11:48:12]wFMCommunicate OK [11:48:12]SAM_PROTO_ClearQueue done [11:48:12]KKMCreateOFDPacket [11:48:12]OFDProtocolAddRootSTLVToBuf [11:48:12]FM_MakeSignedData [11:48:12]FM_MakeSignedData [11:48:12]SAM_PROTO_SignData [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 0D 01 02 [11:48:12]Write to MH i2c: E2 08 00 D0 00 80 0D 01 02 00 00 00 00 49 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [11:48:12]RAPDU: 90 00 [11:48:12]wFMCommunicate OK [11:48:12]wFMCommunicate request_size=255 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 7B E2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [11:48:12]Write to MH i2c: E2 02 01 D1 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 7B E2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 B4 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [11:48:12]RAPDU: 90 00 [11:48:12]wFMCommunicate OK [11:48:12]wFMCommunicate request_size=31 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 5B F7 00 00 35 04 06 00 42 50 D9 E0 A2 CF [11:48:12]Write to MH i2c: E2 22 00 D2 00 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 5B F7 00 00 35 04 06 00 42 50 D9 E0 A2 CF 00 00 8B [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [11:48:12]RAPDU: 90 00 [11:48:12]wFMCommunicate OK [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 0D 03 02 [11:48:12]Write to MH i2c: E2 08 00 D3 00 80 0D 03 02 00 00 00 00 4E [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 0B 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 0B 00 D3 00 00 5E 3A 22 07 13 00 AC B0 90 00 7F [11:48:12]RAPDU: 5E 3A 22 07 13 00 AC B0 90 00 [11:48:12]wFMCommunicate OK [11:48:12]SAM_PROTO_SignData done [11:48:12]FM_MakeSignedData done [11:48:12]CreateOFDProtocolMessage [11:48:12]wFMCommunicate request_size=4 [11:48:12]MH_SAM_APDU [11:48:12]CAPDU: 80 11 00 00 [11:48:12]Write to MH i2c: E2 08 00 D4 00 80 11 00 00 00 00 00 00 4E [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:12]Read from MH i2c: E2 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: E2 17 00 D4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A7 [11:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:48:12]wFMCommunicate OK [11:48:12]CreateOFDProtocolMessage done [11:48:12]OFDSenderStorePacket 63323 [11:48:12]StoreOFDPacket docnum=63323 [11:48:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 52 AD 1C 01 81 76 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 7B E2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5B F7 00 00 35 04 06 00 42 50 D9 E0 A2 CF 5E 3A 22 07 13 00 AC B0 [11:48:12]CheckFolder [11:48:12]dirname=/storage/ofd_packets [11:48:12]CheckFolder done [11:48:12]ProducePacketName [11:48:12]name=ofd_packets/00063323 [11:48:12]NVStorageSaveData ofd_packets/00063323 [11:48:12]File name is /storage/ofd_packets/00063323 [11:48:12]Write 322 bytes [11:48:12]NVStorageSaveData done [11:48:12]OFDSenderStorePacket done [11:48:12]KKMCreateOFDPacket done [11:48:12]NVStorageSaveData kkm_last_timestamp [11:48:12]File name is /storage/kkm_last_timestamp [11:48:12]Write 4 bytes [11:48:12]NVStorageSaveData done [11:48:12]ExternCall_PrintAddStr [11:48:12]wPrintStart [11:48:12]Write to MH i2c: 01 00 00 D5 00 D5 [11:48:12]Write i2c OK [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 [11:48:12]MH_I2C_Read... [11:48:12]Read from MH i2c: 01 07 00 D5 00 00 00 00 00 00 FF 0F EA [11:48:12]RasterBufferAndPrint [11:48:12]line Счет N : (3)47633 [11:48:12]line ИНН: 02508201610067 [11:48:12]line Контрольно-Кассовый Чек [11:48:12]line ПРОДАЖА [11:48:12]line Товар: 4640030091607 [11:48:12]line Сигареты ESSE Exchange [11:48:12]line 2.000 * 159.00 [11:48:12]line = 318.00 [11:48:12]line НДС 12% НСП 1% [11:48:12]line > о реализуемом товаре [11:48:12]line ИТОГО: 318.00 [11:48:12]line НСП 1% : 2.81 [11:48:12]line НДС 12% : 33.77 [11:48:12]line Наличными: 318.00 [11:48:12]line Безнал.: 0.00 [11:48:12]line Место: АЗС № 86 "Партнер Нефть" [11:48:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:48:12]line СНО: Общий режим [11:48:12]line Чек 52 23.10.2024 11:48 [11:48:12]line Смена: 546 ФФД: 1.0 [11:48:12]line ЗНМ: 0300000154 [11:48:12]line РНМ: 0000000000091619 [11:48:12]line Версия ККМ: 001 [11:48:12]line ФМ: 0000000000874676 [11:48:12]line ФД: 63323 [11:48:12]line ФПД: 72915020194511 [11:48:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T114811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63323&fm=72915020194511&tin=02508201610067®Number=0000000000091619&sum=31800 [11:48:13]OFD Sender: Processing packet 63323 [packets to send 232, broken 231] [11:48:13]ProducePacketName [11:48:13]name=ofd_packets/00063323 [11:48:13]OFD Sender: To server: pG, [11:48:13]CommunicateWithHost lk.salyk.kg:30040 [11:48:13]ConnectInit lk.salyk.kg [11:48:13]line 0 [11:48:13]written 0, free lines is 4095 [11:48:13]Connected sock=10 [11:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 52 AD 1C 01 81 76 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 38 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 0D 00 00 00 00 07 04 06 00 38 7C 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 7B E2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5B F7 00 00 35 04 06 00 42 50 D9 E0 A2 CF 5E 3A 22 07 13 00 AC B0 [11:48:13]Write to MH i2c: 01 00 00 FD 00 FD [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 07 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: 01 07 00 FD 00 00 00 00 00 00 19 0D 2A [11:48:13]RasterBufferAndPrint [11:48:13]line [11:48:13]line [11:48:13]line [11:48:13]line [11:48:13]line [11:48:13]written 0, free lines is 3359 [11:48:13]MH_Cut [11:48:13]Write to MH i2c: D1 01 00 04 01 01 D7 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: D1 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: D1 01 00 [11:48:13]MH_I2C_Read... [11:48:13]Read from MH i2c: D1 01 00 04 01 00 D6 [11:48:13]Write to MH i2c: 01 00 00 05 01 06 [11:48:13]Write i2c OK [11:48:13]MH_I2C_Read... [11:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 46 7C 47 00 A2 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5B F7 00 00 F4 03 04 00 73 8C 18 67 B6 04 01 00 00 E4 60 89 0C 30 6B 86 87 [11:48:13]CommunicateWithHost err = 0 [11:48:13]CheckOFDResponse [11:48:13]1017 (14) - 77093643461234 [11:48:13]1041 (16) - 0000000000874676 [11:48:13]1040 (4) - 63323 [11:48:13]1012 (4) - 23.10.2024 05:41 [11:48:13]1206 (1) - 0 [11:48:13]OFD Sender: Remove packet 63323 [11:48:13]ProducePacketName [11:48:13]name=ofd_packets/00063323 [11:48:13]NVStorageDeleteData [11:48:14]*** Cut start [11:48:14]*** Partial cut [11:48:14]*** CUTSNS_PIN = 1 [11:48:14]*** CUTSNS_PIN = 0 [11:48:14]OFD Sender: No OFD packet to send [11:48:14]*** Brake cut motor [11:48:14]Read from MH i2c: 01 [11:48:14]MH_I2C_Read... [11:48:14]*** Stop cut motor [11:48:14]*** Cut end [11:48:14]Read from MH i2c: 01 07 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 FF 0F 1B [11:48:14]process_action close_receipt done [11:48:14]requested_data is exist [11:48:14]produce_requested_data [11:48:14]requested_item fm.sn is exist - process it [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 11 00 00 [11:48:14]Write to MH i2c: E2 08 00 06 01 80 11 00 00 00 00 00 00 81 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 17 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 17 00 06 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DA [11:48:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [11:48:14]wFMCommunicate OK [11:48:14]requested_item fd.num is exist - process it [11:48:14]SAM_PROTO_GetFieldsCounters [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 13 00 00 [11:48:14]Write to MH i2c: E2 08 00 07 01 80 13 00 00 00 00 00 00 84 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 62 00 [11:48:14]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 62 00 07 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5B F7 00 00 0E 04 04 00 22 02 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 BE [11:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5B F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:15]wFMCommunicate OK [11:48:15]SAM_PROTO_GetFieldsCounters done [11:48:15]requested_item shift.num is exist - process it [11:48:15]requested_item shift.opened is exist - process it [11:48:15]req_shift_opened [11:48:15]FM_GetShiftState [11:48:15]SAM_PROTO_GetShiftState [11:48:15]wFMCommunicate request_size=4 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 13 01 00 [11:48:15]Write to MH i2c: E2 08 00 08 01 80 13 01 00 00 00 00 00 86 [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:15]Read from MH i2c: E2 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 0E 00 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 0E 00 08 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 70 [11:48:15]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:48:15]wFMCommunicate OK [11:48:15]SAM_PROTO_GetShiftState done [11:48:15]FM_GetShiftState done [11:48:15]req_shift_opened done [11:48:15]requested_item shift.open_date is exist - process it [11:48:15]req_shift_open_date [11:48:15]req_shift_open_date done [11:48:15]produce_requested_data done [11:48:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63323,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [11:48:15]process_action_free close_receipt [11:48:15]json_value_free [11:48:15]json_value_free done [11:48:15]process_json_proto returns [11:48:15]Send response to host [11:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63323,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [11:48:15]free response buf [11:48:15]execute_script done [11:48:15]execute_script returns [11:48:15]free content buf [11:48:15]Sock 9.Close socket [11:48:15]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]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:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [11:59:59]accept exits with 7 [11:59:59]New connection [11:59:59]New thread 3066977636 created [11:59:59]Thread 3067120996 joined [11:59:59]Waiting for new connection... [11:59:59] Sock 7.Parse request [11:59:59]Sock 7.Check first char [11:59:59]Sock 7.First char is OK [11:59:59]request: POST /json_proto HTTP/1.0 [11:59:59]Method: POST [11:59:59]URL: /json_proto [11:59:59]Method is POST - this is cgi request [11:59:59]url: /json_proto [11:59:59]query_string will be loaded in cgi processing [11:59:59]execute_cgi json_proto POST (null) [11:59:59]execute_cgi path=json_proto method=POST [11:59:59]POST find Content-Length [11:59:59]Host: 172.17.42.132:8080 [11:59:59]Content-Length: 689 [11:59:59]Content-Type: application/json [11:59:59] [11:59:59]POST finish read [11:59:59]Found Content-Length = 689 [11:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47634", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:59]execute_script... [11:59:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47634", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:59]POST & json_proto [11:59:59]process_json_proto [11:59:59]json parsed OK: [11:59:59]protocol is kg_v1.0 [11:59:59]action value=close_receipt [11:59:59]process_action close_receipt [11:59:59]cmd_close_receipt [11:59:59]MH_GetDate [11:59:59]Write to MH i2c: F0 00 00 09 01 F9 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 09 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: F0 09 00 09 01 00 3F E5 18 67 4C DF 56 66 8C [11:59:59]GetLastDocTimeStamp 1729684091 [11:59:59]current date 1729684799 [11:59:59]FM_GetShiftState [11:59:59]SAM_PROTO_GetShiftState [11:59:59]wFMCommunicate request_size=4 [11:59:59]MH_SAM_APDU [11:59:59]CAPDU: 80 13 01 00 [11:59:59]Write to MH i2c: E2 08 00 0A 01 80 13 01 00 00 00 00 00 88 [11:59:59]Write i2c OK [11:59:59]MH_I2C_Read... [11:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:59]Read from MH i2c: E2 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: E2 0E 00 [11:59:59]MH_I2C_Read... [11:59:59]Read from MH i2c: E2 0E 00 0A 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 72 [11:59:59]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [11:59:59]wFMCommunicate OK [11:59:59]SAM_PROTO_GetShiftState done [11:59:59]FM_GetShiftState done [11:59:59]opened in 1729642527 [11:59:59]opened+sec_in_day 1729728927 [11:59:59]quantity*price = 10400 [11:59:59]sum+1 = 10401 [11:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 53 23.10.2024 11:59 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63324 ФПД: 230191723142190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115959&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63324&fm=230191723142190&tin=02508201610067®Number=0000000000091619&sum=10400 0 [12:00:00]StoreToDocumentArchive [12:00:00]shift 546 fd 63324 [12:00:00]save to /storage/0546/doc_00063324 [12:00:00]save last doc name /storage/0546/doc_00063324 to /storage/kkm_last_doc_name [12:00:00]save OK [12:00:00]Clear old archive folders... [12:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:00:00]tlvbuf is 007120A0 [12:00:00]SAM_PROTO_ClearQueue [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 09 00 00 [12:00:00]Write to MH i2c: E2 08 00 17 01 80 09 00 00 00 00 00 00 8A [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_ClearQueue done [12:00:00]KKMCreateOFDPacket [12:00:00]OFDProtocolAddRootSTLVToBuf [12:00:00]FM_MakeSignedData [12:00:00]FM_MakeSignedData [12:00:00]SAM_PROTO_SignData [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 01 02 [12:00:00]Write to MH i2c: E2 08 00 18 01 80 0D 01 02 00 00 00 00 92 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=255 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3F E5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:00:00]Write to MH i2c: E2 02 01 19 01 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3F E5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2E [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]OFD Sender: No OFD packet to send [12:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=53 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F7 00 00 35 04 06 00 D1 5B AF E3 5C 2E [12:00:00]Write to MH i2c: E2 38 00 1A 01 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F7 00 00 35 04 06 00 D1 5B AF E3 5C 2E 00 00 2C [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 03 00 1A 01 00 90 00 8F [12:00:00]RAPDU: 90 00 [12:00:00]wFMCommunicate OK [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 0D 03 02 [12:00:00]Write to MH i2c: E2 08 00 1B 01 80 0D 03 02 00 00 00 00 97 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0B 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 0B 00 1B 01 00 BF 19 07 58 E7 09 05 11 90 00 D5 [12:00:00]RAPDU: BF 19 07 58 E7 09 05 11 90 00 [12:00:00]wFMCommunicate OK [12:00:00]SAM_PROTO_SignData done [12:00:00]FM_MakeSignedData done [12:00:00]CreateOFDProtocolMessage [12:00:00]wFMCommunicate request_size=4 [12:00:00]MH_SAM_APDU [12:00:00]CAPDU: 80 11 00 00 [12:00:00]Write to MH i2c: E2 08 00 1C 01 80 11 00 00 00 00 00 00 97 [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:00]Read from MH i2c: E2 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 17 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: E2 17 00 1C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F0 [12:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:00:00]wFMCommunicate OK [12:00:00]CreateOFDProtocolMessage done [12:00:00]OFDSenderStorePacket 63324 [12:00:00]StoreOFDPacket docnum=63324 [12:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 8D BE 32 01 4B 60 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3F E5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F7 00 00 35 04 06 00 D1 5B AF E3 5C 2E BF 19 07 58 E7 09 05 11 [12:00:00]CheckFolder [12:00:00]dirname=/storage/ofd_packets [12:00:00]CheckFolder done [12:00:00]ProducePacketName [12:00:00]name=ofd_packets/00063324 [12:00:00]NVStorageSaveData ofd_packets/00063324 [12:00:00]File name is /storage/ofd_packets/00063324 [12:00:00]Write 344 bytes [12:00:00]NVStorageSaveData done [12:00:00]OFDSenderStorePacket done [12:00:00]KKMCreateOFDPacket done [12:00:00]NVStorageSaveData kkm_last_timestamp [12:00:00]File name is /storage/kkm_last_timestamp [12:00:00]Write 4 bytes [12:00:00]NVStorageSaveData done [12:00:00]ExternCall_PrintAddStr [12:00:00]wPrintStart [12:00:00]Write to MH i2c: 01 00 00 1D 01 1E [12:00:00]Write i2c OK [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: 01 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: 01 07 00 [12:00:00]MH_I2C_Read... [12:00:00]Read from MH i2c: 01 07 00 1D 01 00 00 00 00 00 FF 0F 33 [12:00:00]RasterBufferAndPrint [12:00:00]line Счет N : (3)47634 [12:00:00]line ИНН: 02508201610067 [12:00:00]line Контрольно-Кассовый Чек [12:00:00]line ПРОДАЖА [12:00:00]line Товар: 4870202521247 [12:00:00]line Напиток MAXI чай 1,2 черн.персик [12:00:00]line 1.000 * 104.00 [12:00:00]line = 104.00 [12:00:00]line НДС 12% НСП 1% [12:00:00]line > о реализуемом товаре [12:00:00]line ИТОГО: 104.00 [12:00:00]line НСП 1% : 0.92 [12:00:00]line НДС 12% : 11.04 [12:00:00]line Наличными: 104.00 [12:00:00]line Безнал.: 0.00 [12:00:00]line Место: АЗС № 86 "Партнер Нефть" [12:00:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:00:00]line СНО: Общий режим [12:00:00]line Чек 53 23.10.2024 11:59 [12:00:00]line Смена: 546 ФФД: 1.0 [12:00:00]line ЗНМ: 0300000154 [12:00:00]line РНМ: 0000000000091619 [12:00:00]line Версия ККМ: 001 [12:00:00]line ФМ: 0000000000874676 [12:00:00]line ФД: 63324 [12:00:00]line ФПД: 230191723142190 [12:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T115959&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63324&fm=230191723142190&tin=02508201610067®Number=0000000000091619&sum=10400 [12:00:01]line 0 [12:00:01]OFD Sender: Processing packet 63324 [packets to send 232, broken 231] [12:00:01]ProducePacketName [12:00:01]name=ofd_packets/00063324 [12:00:01]OFD Sender: To server: pG, [12:00:01]CommunicateWithHost lk.salyk.kg:30040 [12:00:01]ConnectInit lk.salyk.kg [12:00:01]written 0, free lines is 4095 [12:00:01]Connected sock=10 [12:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 8D BE 32 01 4B 60 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 3F E5 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F7 00 00 35 04 06 00 D1 5B AF E3 5C 2E BF 19 07 58 E7 09 05 11 [12:00:01]Write to MH i2c: 01 00 00 46 01 47 [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 07 0D 62 [12:00:01]RasterBufferAndPrint [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]line [12:00:01]written 0, free lines is 3341 [12:00:01]MH_Cut [12:00:01]Write to MH i2c: D1 01 00 4D 01 01 20 [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 01 00 [12:00:01]MH_I2C_Read... [12:00:01]Read from MH i2c: D1 01 00 4D 01 00 1F [12:00:01]Write to MH i2c: 01 00 00 4E 01 4F [12:00:01]Write i2c OK [12:00:01]MH_I2C_Read... [12:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A2 4F 47 00 44 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5C F7 00 00 F4 03 04 00 37 8F 18 67 B6 04 01 00 00 2F 80 B6 C6 41 BF 6E 87 [12:00:01]CommunicateWithHost err = 0 [12:00:01]CheckOFDResponse [12:00:01]1017 (14) - 77093643461234 [12:00:01]1041 (16) - 0000000000874676 [12:00:01]1040 (4) - 63324 [12:00:01]1012 (4) - 23.10.2024 05:52 [12:00:01]1206 (1) - 0 [12:00:01]OFD Sender: Remove packet 63324 [12:00:01]ProducePacketName [12:00:01]name=ofd_packets/00063324 [12:00:01]NVStorageDeleteData [12:00:02]OFD Sender: No OFD packet to send [12:00:02]*** Cut start [12:00:02]*** Partial cut [12:00:02]*** CUTSNS_PIN = 1 [12:00:02]*** CUTSNS_PIN = 0 [12:00:02]*** Brake cut motor [12:00:02]Read from MH i2c: 01 [12:00:02]MH_I2C_Read... [12:00:02]*** Stop cut motor [12:00:02]*** Cut end [12:00:02]Read from MH i2c: 01 07 00 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [12:00:02]process_action close_receipt done [12:00:02]requested_data is exist [12:00:02]produce_requested_data [12:00:02]requested_item fm.sn is exist - process it [12:00:02]wFMCommunicate request_size=4 [12:00:02]MH_SAM_APDU [12:00:02]CAPDU: 80 11 00 00 [12:00:02]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [12:00:02]Write i2c OK [12:00:02]MH_I2C_Read... [12:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:02]Read from MH i2c: E2 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: E2 17 00 [12:00:02]MH_I2C_Read... [12:00:02]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 23 [12:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:00:02]wFMCommunicate OK [12:00:02]requested_item fd.num is exist - process it [12:00:02]SAM_PROTO_GetFieldsCounters [12:00:02]wFMCommunicate request_size=4 [12:00:02]MH_SAM_APDU [12:00:02]CAPDU: 80 13 00 00 [12:00:02]Write to MH i2c: E2 08 00 50 01 80 13 00 00 00 00 00 00 CD [12:00:02]Write i2c OK [12:00:02]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 62 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 62 00 50 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5C F7 00 00 0E 04 04 00 22 02 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 0B [12:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5C F7 00 00 0E 04 04 00 22 02 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:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_GetFieldsCounters done [12:00:03]requested_item shift.num is exist - process it [12:00:03]requested_item shift.opened is exist - process it [12:00:03]req_shift_opened [12:00:03]FM_GetShiftState [12:00:03]SAM_PROTO_GetShiftState [12:00:03]wFMCommunicate request_size=4 [12:00:03]MH_SAM_APDU [12:00:03]CAPDU: 80 13 01 00 [12:00:03]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [12:00:03]Write i2c OK [12:00:03]MH_I2C_Read... [12:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:03]Read from MH i2c: E2 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0E 00 [12:00:03]MH_I2C_Read... [12:00:03]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B9 [12:00:03]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:00:03]wFMCommunicate OK [12:00:03]SAM_PROTO_GetShiftState done [12:00:03]FM_GetShiftState done [12:00:03]req_shift_opened done [12:00:03]requested_item shift.open_date is exist - process it [12:00:03]req_shift_open_date [12:00:03]req_shift_open_date done [12:00:03]produce_requested_data done [12:00:03]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63324,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:00:03]process_action_free close_receipt [12:00:03]json_value_free [12:00:03]json_value_free done [12:00:03]process_json_proto returns [12:00:03]Send response to host [12:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63324,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:00:03]free response buf [12:00:03]execute_script done [12:00:03]execute_script returns [12:00:03]free content buf [12:00:03]Sock 7.Close socket [12:00:03]Sock 7.Thread stoped [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:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:05:58]accept exits with 9 [12:05:58]New connection [12:05:58]New thread 3067120996 created [12:05:58]Thread 3066977636 joined [12:05:58]Waiting for new connection... [12:05:58] Sock 9.Parse request [12:05:58]Sock 9.Check first char [12:05:58]Sock 9.First char is OK [12:05:58]request: POST /json_proto HTTP/1.0 [12:05:58]Method: POST [12:05:58]URL: /json_proto [12:05:58]Method is POST - this is cgi request [12:05:58]url: /json_proto [12:05:58]query_string will be loaded in cgi processing [12:05:58]execute_cgi json_proto POST (null) [12:05:58]execute_cgi path=json_proto method=POST [12:05:58]POST find Content-Length [12:05:58]Host: 172.17.42.132:8080 [12:05:58]Content-Length: 654 [12:05:58]Content-Type: application/json [12:05:58] [12:05:58]POST finish read [12:05:58]Found Content-Length = 654 [12:05:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47635", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:58]execute_script... [12:05:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47635", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:58]POST & json_proto [12:05:58]process_json_proto [12:05:58]json parsed OK: [12:05:58]protocol is kg_v1.0 [12:05:58]action value=close_receipt [12:05:58]process_action close_receipt [12:05:58]cmd_close_receipt [12:05:58]MH_GetDate [12:05:58]Write to MH i2c: F0 00 00 52 01 42 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 09 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: F0 09 00 52 01 00 A7 E6 18 67 4C DF 56 66 3E [12:05:58]GetLastDocTimeStamp 1729684799 [12:05:58]current date 1729685159 [12:05:58]FM_GetShiftState [12:05:58]SAM_PROTO_GetShiftState [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 13 01 00 [12:05:58]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BB [12:05:58]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_GetShiftState done [12:05:58]FM_GetShiftState done [12:05:58]opened in 1729642527 [12:05:58]opened+sec_in_day 1729728927 [12:05:58]quantity*price = 6900 [12:05:58]sum+1 = 6901 [12:05:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 54 23.10.2024 12:05 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63325 ФПД: 44365298529111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120559&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63325&fm=44365298529111&tin=02508201610067®Number=0000000000091619&sum=6900 0 [12:06:00]StoreToDocumentArchive [12:06:00]shift 546 fd 63325 [12:06:00]save to /storage/0546/doc_00063325 [12:06:00]save last doc name /storage/0546/doc_00063325 to /storage/kkm_last_doc_name [12:06:00]save OK [12:06:00]Clear old archive folders... [12:06:00]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:06:00]tlvbuf is 006F18D0 [12:06:00]SAM_PROTO_ClearQueue [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 09 00 00 [12:06:00]Write to MH i2c: E2 08 00 60 01 80 09 00 00 00 00 00 00 D3 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_ClearQueue done [12:06:00]KKMCreateOFDPacket [12:06:00]OFDProtocolAddRootSTLVToBuf [12:06:00]FM_MakeSignedData [12:06:00]FM_MakeSignedData [12:06:00]SAM_PROTO_SignData [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 01 02 [12:06:00]Write to MH i2c: E2 08 00 61 01 80 0D 01 02 00 00 00 00 DB [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=255 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A7 E6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:06:00]Write to MH i2c: E2 02 01 62 01 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A7 E6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 50 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=53 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5D F7 00 00 35 04 06 00 28 59 99 DB F3 57 [12:06:00]Write to MH i2c: E2 38 00 63 01 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5D F7 00 00 35 04 06 00 28 59 99 DB F3 57 00 00 6D [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [12:06:00]RAPDU: 90 00 [12:06:00]wFMCommunicate OK [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 0D 03 02 [12:06:00]Write to MH i2c: E2 08 00 64 01 80 0D 03 02 00 00 00 00 E0 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0B 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 0B 00 64 01 00 19 BE 67 89 AB 10 4D 6D 90 00 1D [12:06:00]RAPDU: 19 BE 67 89 AB 10 4D 6D 90 00 [12:06:00]wFMCommunicate OK [12:06:00]SAM_PROTO_SignData done [12:06:00]FM_MakeSignedData done [12:06:00]CreateOFDProtocolMessage [12:06:00]wFMCommunicate request_size=4 [12:06:00]MH_SAM_APDU [12:06:00]CAPDU: 80 11 00 00 [12:06:00]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:00]Read from MH i2c: E2 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 39 [12:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:06:00]wFMCommunicate OK [12:06:00]CreateOFDProtocolMessage done [12:06:00]OFDSenderStorePacket 63325 [12:06:00]StoreOFDPacket docnum=63325 [12:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 4C 9E 32 01 54 38 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A7 E6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5D F7 00 00 35 04 06 00 28 59 99 DB F3 57 19 BE 67 89 AB 10 4D 6D [12:06:00]CheckFolder [12:06:00]dirname=/storage/ofd_packets [12:06:00]CheckFolder done [12:06:00]ProducePacketName [12:06:00]name=ofd_packets/00063325 [12:06:00]NVStorageSaveData ofd_packets/00063325 [12:06:00]File name is /storage/ofd_packets/00063325 [12:06:00]Write 344 bytes [12:06:00]NVStorageSaveData done [12:06:00]OFDSenderStorePacket done [12:06:00]KKMCreateOFDPacket done [12:06:00]NVStorageSaveData kkm_last_timestamp [12:06:00]File name is /storage/kkm_last_timestamp [12:06:00]Write 4 bytes [12:06:00]NVStorageSaveData done [12:06:00]ExternCall_PrintAddStr [12:06:00]wPrintStart [12:06:00]Write to MH i2c: 01 00 00 66 01 67 [12:06:00]Write i2c OK [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 [12:06:00]MH_I2C_Read... [12:06:00]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 FF 0F 7C [12:06:00]RasterBufferAndPrint [12:06:00]line Счет N : (3)47635 [12:06:00]line ИНН: 02508201610067 [12:06:00]line Контрольно-Кассовый Чек [12:06:00]line ПРОДАЖА [12:06:00]line Товар: 4600682557456 [12:06:00]line Напиток FLash up energy эн ж/б 0,5/0,45л [12:06:00]line 1.000 * 69.00 [12:06:00]line = 69.00 [12:06:00]line НДС 12% НСП 1% [12:06:00]line > о реализуемом товаре [12:06:00]line ИТОГО: 69.00 [12:06:00]line НСП 1% : 0.61 [12:06:00]line НДС 12% : 7.33 [12:06:00]line Наличными: 69.00 [12:06:00]line Безнал.: 0.00 [12:06:00]line Место: АЗС № 86 "Партнер Нефть" [12:06:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:06:00]line СНО: Общий режим [12:06:00]line Чек 54 23.10.2024 12:05 [12:06:00]line Смена: 546 ФФД: 1.0 [12:06:00]line ЗНМ: 0300000154 [12:06:00]line РНМ: 0000000000091619 [12:06:00]line Версия ККМ: 001 [12:06:00]line ФМ: 0000000000874676 [12:06:00]line ФД: 63325 [12:06:00]line ФПД: 44365298529111 [12:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T120559&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63325&fm=44365298529111&tin=02508201610067®Number=0000000000091619&sum=6900 [12:06:00]line 0 [12:06:00]OFD Sender: Processing packet 63325 [packets to send 232, broken 231] [12:06:00]ProducePacketName [12:06:00]name=ofd_packets/00063325 [12:06:00]OFD Sender: To server: pG, [12:06:00]CommunicateWithHost lk.salyk.kg:30040 [12:06:00]ConnectInit lk.salyk.kg [12:06:00]written 0, free lines is 4095 [12:06:01]Connected sock=10 [12:06:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 4C 9E 32 01 54 38 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A7 E6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5D F7 00 00 35 04 06 00 28 59 99 DB F3 57 19 BE 67 89 AB 10 4D 6D [12:06:01]Write to MH i2c: 01 00 00 8F 01 90 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 09 0D AD [12:06:01]RasterBufferAndPrint [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]line [12:06:01]written 0, free lines is 3343 [12:06:01]MH_Cut [12:06:01]Write to MH i2c: D1 01 00 96 01 01 69 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 [12:06:01]MH_I2C_Read... [12:06:01]Read from MH i2c: D1 01 00 96 01 00 68 [12:06:01]Write to MH i2c: 01 00 00 97 01 98 [12:06:01]Write i2c OK [12:06:01]MH_I2C_Read... [12:06:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AF 6C 47 00 29 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 38 37 34 36 37 36 10 04 04 00 5D F7 00 00 F4 03 04 00 9F 90 18 67 B6 04 01 00 00 98 42 43 1C 75 1D 8E A2 [12:06:01]CommunicateWithHost err = 0 [12:06:01]CheckOFDResponse [12:06:01]1017 (14) - 77093643461234 [12:06:01]1041 (16) - 0000000000874676 [12:06:01]1040 (4) - 63325 [12:06:01]1012 (4) - 23.10.2024 05:58 [12:06:01]1206 (1) - 0 [12:06:01]OFD Sender: Remove packet 63325 [12:06:01]ProducePacketName [12:06:01]name=ofd_packets/00063325 [12:06:01]NVStorageDeleteData [12:06:02]OFD Sender: No OFD packet to send [12:06:02]*** Cut start [12:06:02]*** Partial cut [12:06:02]*** CUTSNS_PIN = 1 [12:06:02]*** CUTSNS_PIN = 0 [12:06:02]*** Brake cut motor [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]*** Stop cut motor [12:06:02]*** Cut end [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [12:06:02]process_action close_receipt done [12:06:02]requested_data is exist [12:06:02]produce_requested_data [12:06:02]requested_item fm.sn is exist - process it [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 11 00 00 [12:06:02]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6C [12:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:06:02]wFMCommunicate OK [12:06:02]requested_item fd.num is exist - process it [12:06:02]SAM_PROTO_GetFieldsCounters [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 00 00 [12:06:02]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 99 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5D F7 00 00 0E 04 04 00 22 02 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 58 [12:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5D F7 00 00 0E 04 04 00 22 02 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:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetFieldsCounters done [12:06:02]requested_item shift.num is exist - process it [12:06:02]requested_item shift.opened is exist - process it [12:06:02]req_shift_opened [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 02 [12:06:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]req_shift_opened done [12:06:02]requested_item shift.open_date is exist - process it [12:06:02]req_shift_open_date [12:06:02]req_shift_open_date done [12:06:02]produce_requested_data done [12:06:02]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63325,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:06:02]process_action_free close_receipt [12:06:02]json_value_free [12:06:02]json_value_free done [12:06:02]process_json_proto returns [12:06:02]Send response to host [12:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63325,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:06:02]free response buf [12:06:02]execute_script done [12:06:02]execute_script returns [12:06:02]free content buf [12:06:02]Sock 9.Close socket [12:06:02]Sock 9.Thread stoped [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]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:55]accept exits with 7 [12:13:55]New connection [12:13:55]New thread 3066977636 created [12:13:55]Thread 3067120996 joined [12:13:55]Waiting for new connection... [12:13:55] Sock 7.Parse request [12:13:55]Sock 7.Check first char [12:13:55]Sock 7.First char is OK [12:13:55]request: POST /json_proto HTTP/1.0 [12:13:55]Method: POST [12:13:55]URL: /json_proto [12:13:55]Method is POST - this is cgi request [12:13:55]url: /json_proto [12:13:55]query_string will be loaded in cgi processing [12:13:55]execute_cgi json_proto POST (null) [12:13:55]execute_cgi path=json_proto method=POST [12:13:55]POST find Content-Length [12:13:55]Host: 172.17.42.132:8080 [12:13:55]Content-Length: 695 [12:13:55]Content-Type: application/json [12:13:55] [12:13:55]POST finish read [12:13:55]Found Content-Length = 695 [12:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47636", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:55]execute_script... [12:13:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47636", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:55]POST & json_proto [12:13:55]process_json_proto [12:13:55]json parsed OK: [12:13:55]protocol is kg_v1.0 [12:13:55]action value=close_receipt [12:13:55]process_action close_receipt [12:13:55]cmd_close_receipt [12:13:55]MH_GetDate [12:13:55]Write to MH i2c: F0 00 00 9B 01 8B [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 09 00 [12:13:55]MH_I2C_Read... [12:13:55]Read from MH i2c: F0 09 00 9B 01 00 84 E8 18 67 4C DF 56 66 66 [12:13:55]GetLastDocTimeStamp 1729685159 [12:13:55]current date 1729685636 [12:13:55]FM_GetShiftState [12:13:55]SAM_PROTO_GetShiftState [12:13:55]wFMCommunicate request_size=4 [12:13:55]MH_SAM_APDU [12:13:55]CAPDU: 80 13 01 00 [12:13:55]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [12:13:55]Write i2c OK [12:13:55]MH_I2C_Read... [12:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:56]Read from MH i2c: E2 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0E 00 [12:13:56]MH_I2C_Read... [12:13:56]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 04 [12:13:56]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:13:56]wFMCommunicate OK [12:13:56]SAM_PROTO_GetShiftState done [12:13:56]FM_GetShiftState done [12:13:56]opened in 1729642527 [12:13:56]opened+sec_in_day 1729728927 [12:13:56]quantity*price = 10400 [12:13:56]sum+1 = 10401 [12:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 55 23.10.2024 12:13 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63326 ФПД: 198729041714624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121356&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63326&fm=198729041714624&tin=02508201610067®Number=0000000000091619&sum=10400 0 [12:13:57]StoreToDocumentArchive [12:13:57]shift 546 fd 63326 [12:13:57]save to /storage/0546/doc_00063326 [12:13:57]save last doc name /storage/0546/doc_00063326 to /storage/kkm_last_doc_name [12:13:57]save OK [12:13:57]Clear old archive folders... [12:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:13:57]tlvbuf is 006F9CC0 [12:13:57]SAM_PROTO_ClearQueue [12:13:57]wFMCommunicate request_size=4 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 09 00 00 [12:13:57]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [12:13:57]RAPDU: 90 00 [12:13:57]wFMCommunicate OK [12:13:57]SAM_PROTO_ClearQueue done [12:13:57]KKMCreateOFDPacket [12:13:57]OFDProtocolAddRootSTLVToBuf [12:13:57]FM_MakeSignedData [12:13:57]FM_MakeSignedData [12:13:57]SAM_PROTO_SignData [12:13:57]wFMCommunicate request_size=4 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 0D 01 02 [12:13:57]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [12:13:57]RAPDU: 90 00 [12:13:57]wFMCommunicate OK [12:13:57]wFMCommunicate request_size=255 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 84 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:13:57]Write to MH i2c: E2 02 01 AB 01 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 84 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 3B [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [12:13:57]RAPDU: 90 00 [12:13:57]wFMCommunicate OK [12:13:57]wFMCommunicate request_size=55 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5E F7 00 00 35 04 06 00 B4 BE 35 F0 1D C0 [12:13:57]Write to MH i2c: E2 3A 00 AC 01 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5E F7 00 00 35 04 06 00 B4 BE 35 F0 1D C0 00 00 50 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [12:13:57]RAPDU: 90 00 [12:13:57]wFMCommunicate OK [12:13:57]wFMCommunicate request_size=4 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 0D 03 02 [12:13:57]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 0B 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 0B 00 AD 01 00 CE 21 40 19 78 54 A9 09 90 00 F0 [12:13:57]RAPDU: CE 21 40 19 78 54 A9 09 90 00 [12:13:57]wFMCommunicate OK [12:13:57]SAM_PROTO_SignData done [12:13:57]FM_MakeSignedData done [12:13:57]CreateOFDProtocolMessage [12:13:57]wFMCommunicate request_size=4 [12:13:57]MH_SAM_APDU [12:13:57]CAPDU: 80 11 00 00 [12:13:57]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:57]Read from MH i2c: E2 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 17 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 82 [12:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:13:57]wFMCommunicate OK [12:13:57]CreateOFDProtocolMessage done [12:13:57]OFDSenderStorePacket 63326 [12:13:57]StoreOFDPacket docnum=63326 [12:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 32 8C 34 01 EF D8 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 84 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5E F7 00 00 35 04 06 00 B4 BE 35 F0 1D C0 CE 21 40 19 78 54 A9 09 [12:13:57]CheckFolder [12:13:57]dirname=/storage/ofd_packets [12:13:57]CheckFolder done [12:13:57]ProducePacketName [12:13:57]name=ofd_packets/00063326 [12:13:57]NVStorageSaveData ofd_packets/00063326 [12:13:57]File name is /storage/ofd_packets/00063326 [12:13:57]Write 346 bytes [12:13:57]NVStorageSaveData done [12:13:57]OFDSenderStorePacket done [12:13:57]KKMCreateOFDPacket done [12:13:57]NVStorageSaveData kkm_last_timestamp [12:13:57]File name is /storage/kkm_last_timestamp [12:13:57]Write 4 bytes [12:13:57]NVStorageSaveData done [12:13:57]OFD Sender: Processing packet 63326 [packets to send 232, broken 231] [12:13:57]ProducePacketName [12:13:57]name=ofd_packets/00063326 [12:13:57]OFD Sender: To server: pG, [12:13:57]CommunicateWithHost lk.salyk.kg:30040 [12:13:57]ConnectInit lk.salyk.kg [12:13:57]ExternCall_PrintAddStr [12:13:57]wPrintStart [12:13:57]Write to MH i2c: 01 00 00 AF 01 B0 [12:13:57]Write i2c OK [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 [12:13:57]MH_I2C_Read... [12:13:57]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [12:13:57]RasterBufferAndPrint [12:13:57]line Счет N : (3)47636 [12:13:57]line ИНН: 02508201610067 [12:13:57]line Контрольно-Кассовый Чек [12:13:57]line ПРОДАЖА [12:13:57]line Товар: 4870202521261 [12:13:57]line Напиток MAXI чай 1,2 лесные ягоды [12:13:57]line 1.000 * 104.00 [12:13:57]line = 104.00 [12:13:57]line НДС 12% НСП 1% [12:13:57]line > о реализуемом товаре [12:13:57]line ИТОГО: 104.00 [12:13:57]line НСП 1% : 0.92 [12:13:57]line НДС 12% : 11.04 [12:13:57]line Наличными: 104.00 [12:13:57]line Безнал.: 0.00 [12:13:57]line Место: АЗС № 86 "Партнер Нефть" [12:13:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:13:57]line СНО: Общий режим [12:13:57]line Чек 55 23.10.2024 12:13 [12:13:57]line Смена: 546 ФФД: 1.0 [12:13:57]line ЗНМ: 0300000154 [12:13:57]line РНМ: 0000000000091619 [12:13:57]line Версия ККМ: 001 [12:13:57]line ФМ: 0000000000874676 [12:13:57]line ФД: 63326 [12:13:57]line ФПД: 198729041714624 [12:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121356&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63326&fm=198729041714624&tin=02508201610067®Number=0000000000091619&sum=10400 [12:13:58]line 0 [12:13:58]Connected sock=11 [12:13:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3C 01 00 00 32 8C 34 01 EF D8 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 84 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5E F7 00 00 35 04 06 00 B4 BE 35 F0 1D C0 CE 21 40 19 78 54 A9 09 [12:13:58]written 0, free lines is 4095 [12:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 5D 70 47 00 D7 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5E F7 00 00 F4 03 04 00 7C 92 18 67 B6 04 01 00 00 34 17 10 D4 2A 3F 29 1F [12:13:58]CommunicateWithHost err = 0 [12:13:58]CheckOFDResponse [12:13:58]1017 (14) - 77093643461234 [12:13:58]1041 (16) - 0000000000874676 [12:13:58]1040 (4) - 63326 [12:13:58]1012 (4) - 23.10.2024 06:06 [12:13:58]1206 (1) - 0 [12:13:58]OFD Sender: Remove packet 63326 [12:13:58]ProducePacketName [12:13:58]name=ofd_packets/00063326 [12:13:58]NVStorageDeleteData [12:13:58]Write to MH i2c: 01 00 00 D8 01 D9 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 03 0D F0 [12:13:58]RasterBufferAndPrint [12:13:58]line [12:13:58]line [12:13:58]line [12:13:58]line [12:13:58]line [12:13:58]written 0, free lines is 3337 [12:13:58]MH_Cut [12:13:58]Write to MH i2c: D1 01 00 DF 01 01 B2 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: D1 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: D1 01 00 [12:13:58]MH_I2C_Read... [12:13:58]Read from MH i2c: D1 01 00 DF 01 00 B1 [12:13:58]Write to MH i2c: 01 00 00 E0 01 E1 [12:13:58]Write i2c OK [12:13:58]MH_I2C_Read... [12:13:58]OFD Sender: No OFD packet to send [12:13:59]*** Cut start [12:13:59]*** Partial cut [12:13:59]*** CUTSNS_PIN = 1 [12:13:59]*** CUTSNS_PIN = 0 [12:13:59]*** Brake cut motor [12:13:59]Read from MH i2c: 01 [12:13:59]MH_I2C_Read... [12:13:59]*** Stop cut motor [12:13:59]*** Cut end [12:13:59]Read from MH i2c: 01 07 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [12:13:59]process_action close_receipt done [12:13:59]requested_data is exist [12:13:59]produce_requested_data [12:13:59]requested_item fm.sn is exist - process it [12:13:59]wFMCommunicate request_size=4 [12:13:59]MH_SAM_APDU [12:13:59]CAPDU: 80 11 00 00 [12:13:59]Write to MH i2c: E2 08 00 E1 01 80 11 00 00 00 00 00 00 5C [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:59]Read from MH i2c: E2 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: E2 17 00 [12:13:59]MH_I2C_Read... [12:13:59]Read from MH i2c: E2 17 00 E1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [12:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:13:59]wFMCommunicate OK [12:13:59]requested_item fd.num is exist - process it [12:13:59]SAM_PROTO_GetFieldsCounters [12:13:59]wFMCommunicate request_size=4 [12:13:59]MH_SAM_APDU [12:13:59]CAPDU: 80 13 00 00 [12:13:59]Write to MH i2c: E2 08 00 E2 01 80 13 00 00 00 00 00 00 5F [12:13:59]Write i2c OK [12:13:59]MH_I2C_Read... [12:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:00]Read from MH i2c: E2 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 62 00 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 62 00 E2 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5E F7 00 00 0E 04 04 00 22 02 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 A5 [12:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5E F7 00 00 0E 04 04 00 22 02 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:14:00]wFMCommunicate OK [12:14:00]SAM_PROTO_GetFieldsCounters done [12:14:00]requested_item shift.num is exist - process it [12:14:00]requested_item shift.opened is exist - process it [12:14:00]req_shift_opened [12:14:00]FM_GetShiftState [12:14:00]SAM_PROTO_GetShiftState [12:14:00]wFMCommunicate request_size=4 [12:14:00]MH_SAM_APDU [12:14:00]CAPDU: 80 13 01 00 [12:14:00]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [12:14:00]Write i2c OK [12:14:00]MH_I2C_Read... [12:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:00]Read from MH i2c: E2 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 0E 00 [12:14:00]MH_I2C_Read... [12:14:00]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 4B [12:14:00]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:14:00]wFMCommunicate OK [12:14:00]SAM_PROTO_GetShiftState done [12:14:00]FM_GetShiftState done [12:14:00]req_shift_opened done [12:14:00]requested_item shift.open_date is exist - process it [12:14:00]req_shift_open_date [12:14:00]req_shift_open_date done [12:14:00]produce_requested_data done [12:14:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63326,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:14:00]process_action_free close_receipt [12:14:00]json_value_free [12:14:00]json_value_free done [12:14:00]process_json_proto returns [12:14:00]Send response to host [12:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63326,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:14:00]free response buf [12:14:00]execute_script done [12:14:00]execute_script returns [12:14:00]free content buf [12:14:00]Sock 7.Close socket [12:14:00]Sock 7.Thread stoped [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:32]accept exits with 9 [12:14:32]New connection [12:14:32]New thread 3067120996 created [12:14:32]Thread 3066977636 joined [12:14:32]Waiting for new connection... [12:14:32] Sock 9.Parse request [12:14:32]Sock 9.Check first char [12:14:32]Sock 9.First char is OK [12:14:32]request: POST /json_proto HTTP/1.0 [12:14:32]Method: POST [12:14:32]URL: /json_proto [12:14:32]Method is POST - this is cgi request [12:14:32]url: /json_proto [12:14:32]query_string will be loaded in cgi processing [12:14:32]execute_cgi json_proto POST (null) [12:14:32]execute_cgi path=json_proto method=POST [12:14:32]POST find Content-Length [12:14:32]Host: 172.17.42.132:8080 [12:14:32]Content-Length: 772 [12:14:32]Content-Type: application/json [12:14:32] [12:14:32]POST finish read [12:14:32]Found Content-Length = 772 [12:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47637", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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", "payments": [ { "type": 1, "sum" : 257.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:32]execute_script... [12:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47637", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 2.000, "sum" : 257.70, "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", "payments": [ { "type": 1, "sum" : 257.70 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:32]POST & json_proto [12:14:32]process_json_proto [12:14:32]json parsed OK: [12:14:32]protocol is kg_v1.0 [12:14:32]action value=close_receipt [12:14:32]process_action close_receipt [12:14:32]cmd_close_receipt [12:14:32]MH_GetDate [12:14:32]Write to MH i2c: F0 00 00 E4 01 D4 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 09 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: F0 09 00 E4 01 00 A9 E8 18 67 4C DF 56 66 D4 [12:14:32]GetLastDocTimeStamp 1729685636 [12:14:32]current date 1729685673 [12:14:32]FM_GetShiftState [12:14:32]SAM_PROTO_GetShiftState [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 13 01 00 [12:14:32]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 4D [12:14:32]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_GetShiftState done [12:14:32]FM_GetShiftState done [12:14:32]opened in 1729642527 [12:14:32]opened+sec_in_day 1729728927 [12:14:32]quantity*price = 25770 [12:14:32]sum+1 = 25771 [12:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 257.70 НСП 1% : 2.28 НДС 12% : 27.37 Наличными: 0.00 Безнал.: 257.70 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 56 23.10.2024 12:14 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63327 ФПД: 269992643856744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121433&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63327&fm=269992643856744&tin=02508201610067®Number=0000000000091619&sum=25770 0 [12:14:34]StoreToDocumentArchive [12:14:34]shift 546 fd 63327 [12:14:34]save to /storage/0546/doc_00063327 [12:14:34]save last doc name /storage/0546/doc_00063327 to /storage/kkm_last_doc_name [12:14:34]save OK [12:14:34]Clear old archive folders... [12:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:14:34]tlvbuf is 006FAD20 [12:14:34]SAM_PROTO_ClearQueue [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 09 00 00 [12:14:34]Write to MH i2c: E2 08 00 F2 01 80 09 00 00 00 00 00 00 65 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]SAM_PROTO_ClearQueue done [12:14:34]KKMCreateOFDPacket [12:14:34]OFDProtocolAddRootSTLVToBuf [12:14:34]FM_MakeSignedData [12:14:34]FM_MakeSignedData [12:14:34]SAM_PROTO_SignData [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 01 02 [12:14:34]Write to MH i2c: E2 08 00 F3 01 80 0D 01 02 00 00 00 00 6D [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]wFMCommunicate request_size=255 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A9 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [12:14:34]Write to MH i2c: E2 02 01 F4 01 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A9 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 61 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]wFMCommunicate request_size=41 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F7 00 00 35 04 06 00 F5 8E 8F A1 09 68 [12:14:34]Write to MH i2c: E2 2C 00 F5 01 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F7 00 00 35 04 06 00 F5 8E 8F A1 09 68 00 00 BF [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [12:14:34]RAPDU: 90 00 [12:14:34]wFMCommunicate OK [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 0D 03 02 [12:14:34]Write to MH i2c: E2 08 00 F6 01 80 0D 03 02 00 00 00 00 72 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 0B 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 0B 00 F6 01 00 99 05 E8 FB 14 A5 44 0E 90 00 FF [12:14:34]RAPDU: 99 05 E8 FB 14 A5 44 0E 90 00 [12:14:34]wFMCommunicate OK [12:14:34]SAM_PROTO_SignData done [12:14:34]FM_MakeSignedData done [12:14:34]CreateOFDProtocolMessage [12:14:34]wFMCommunicate request_size=4 [12:14:34]MH_SAM_APDU [12:14:34]CAPDU: 80 11 00 00 [12:14:34]Write to MH i2c: E2 08 00 F7 01 80 11 00 00 00 00 00 00 72 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:34]Read from MH i2c: E2 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: E2 17 00 F7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CB [12:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:14:34]wFMCommunicate OK [12:14:34]CreateOFDProtocolMessage done [12:14:34]OFDSenderStorePacket 63327 [12:14:34]StoreOFDPacket docnum=63327 [12:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 F9 42 26 01 BF C9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A9 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F7 00 00 35 04 06 00 F5 8E 8F A1 09 68 99 05 E8 FB 14 A5 44 0E [12:14:34]CheckFolder [12:14:34]dirname=/storage/ofd_packets [12:14:34]CheckFolder done [12:14:34]ProducePacketName [12:14:34]name=ofd_packets/00063327 [12:14:34]NVStorageSaveData ofd_packets/00063327 [12:14:34]File name is /storage/ofd_packets/00063327 [12:14:34]Write 332 bytes [12:14:34]NVStorageSaveData done [12:14:34]OFDSenderStorePacket done [12:14:34]KKMCreateOFDPacket done [12:14:34]NVStorageSaveData kkm_last_timestamp [12:14:34]File name is /storage/kkm_last_timestamp [12:14:34]Write 4 bytes [12:14:34]NVStorageSaveData done [12:14:34]ExternCall_PrintAddStr [12:14:34]wPrintStart [12:14:34]Write to MH i2c: 01 00 00 F8 01 F9 [12:14:34]Write i2c OK [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 07 00 [12:14:34]MH_I2C_Read... [12:14:34]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 FF 0F 0E [12:14:34]RasterBufferAndPrint [12:14:34]line Счет N : (3)47637 [12:14:34]line ИНН: 02508201610067 [12:14:34]line Контрольно-Кассовый Чек [12:14:34]line ПРОДАЖА [12:14:34]line Товар: 2000036220012 [12:14:34]line Кофе Капучино XL(GABB TRADE) [12:14:34]line 2.000 * 128.85 [12:14:34]line = 257.70 [12:14:34]line НДС 12% НСП 1% [12:14:34]line > о реализуемом товаре [12:14:34]line ИТОГО: 257.70 [12:14:34]line НСП 1% : 2.28 [12:14:34]line НДС 12% : 27.37 [12:14:34]line Наличными: 0.00 [12:14:34]line Безнал.: 257.70 [12:14:34]line Место: АЗС № 86 "Партнер Нефть" [12:14:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:14:34]line СНО: Общий режим [12:14:34]line Чек 56 23.10.2024 12:14 [12:14:34]line Смена: 546 ФФД: 1.0 [12:14:34]line ЗНМ: 0300000154 [12:14:34]line РНМ: 0000000000091619 [12:14:34]line Версия ККМ: 001 [12:14:34]line Платежная система: Mbank [12:14:34]line ФМ: 0000000000874676 [12:14:34]line ФД: 63327 [12:14:34]line ФПД: 269992643856744 [12:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121433&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63327&fm=269992643856744&tin=02508201610067®Number=0000000000091619&sum=25770 [12:14:35]line 0 [12:14:35]OFD Sender: Processing packet 63327 [packets to send 232, broken 231] [12:14:35]ProducePacketName [12:14:35]name=ofd_packets/00063327 [12:14:35]OFD Sender: To server: pG, [12:14:35]CommunicateWithHost lk.salyk.kg:30040 [12:14:35]ConnectInit lk.salyk.kg [12:14:35]written 0, free lines is 4095 [12:14:35]Connected sock=10 [12:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 F9 42 26 01 BF C9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 AA 64 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 64 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 A9 E8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F7 00 00 35 04 06 00 F5 8E 8F A1 09 68 99 05 E8 FB 14 A5 44 0E [12:14:35]Write to MH i2c: 01 00 00 22 02 24 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 05 0D 3D [12:14:35]RasterBufferAndPrint [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]line [12:14:35]written 0, free lines is 3339 [12:14:35]MH_Cut [12:14:35]Write to MH i2c: D1 01 00 29 02 01 FD [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: D1 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: D1 01 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: D1 01 00 29 02 00 FC [12:14:35]Write to MH i2c: 01 00 00 2A 02 2C [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 9D C1 47 00 D6 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 5F F7 00 00 F4 03 04 00 A1 92 18 67 B6 04 01 00 00 FC 9F 39 5E BA 9A BB 85 [12:14:35]CommunicateWithHost err = 0 [12:14:35]CheckOFDResponse [12:14:35]1017 (14) - 77093643461234 [12:14:35]1041 (16) - 0000000000874676 [12:14:35]1040 (4) - 63327 [12:14:35]1012 (4) - 23.10.2024 06:07 [12:14:35]1206 (1) - 0 [12:14:35]OFD Sender: Remove packet 63327 [12:14:35]ProducePacketName [12:14:35]name=ofd_packets/00063327 [12:14:35]NVStorageDeleteData [12:14:36]*** Cut start [12:14:36]*** Partial cut [12:14:36]*** CUTSNS_PIN = 1 [12:14:36]OFD Sender: No OFD packet to send [12:14:36]*** CUTSNS_PIN = 0 [12:14:36]*** Brake cut motor [12:14:36]Read from MH i2c: 01 [12:14:36]MH_I2C_Read... [12:14:36]*** Stop cut motor [12:14:36]*** Cut end [12:14:36]Read from MH i2c: 01 07 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [12:14:36]process_action close_receipt done [12:14:36]requested_data is exist [12:14:36]produce_requested_data [12:14:36]requested_item fm.sn is exist - process it [12:14:36]wFMCommunicate request_size=4 [12:14:36]MH_SAM_APDU [12:14:36]CAPDU: 80 11 00 00 [12:14:36]Write to MH i2c: E2 08 00 2B 02 80 11 00 00 00 00 00 00 A7 [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:36]Read from MH i2c: E2 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 17 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 17 00 2B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 00 [12:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:14:36]wFMCommunicate OK [12:14:36]requested_item fd.num is exist - process it [12:14:36]SAM_PROTO_GetFieldsCounters [12:14:36]wFMCommunicate request_size=4 [12:14:36]MH_SAM_APDU [12:14:36]CAPDU: 80 13 00 00 [12:14:36]Write to MH i2c: E2 08 00 2C 02 80 13 00 00 00 00 00 00 AA [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:36]Read from MH i2c: E2 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 62 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 62 00 2C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5F F7 00 00 0E 04 04 00 22 02 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 F4 [12:14:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 5F F7 00 00 0E 04 04 00 22 02 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:14:36]wFMCommunicate OK [12:14:36]SAM_PROTO_GetFieldsCounters done [12:14:36]requested_item shift.num is exist - process it [12:14:36]requested_item shift.opened is exist - process it [12:14:36]req_shift_opened [12:14:36]FM_GetShiftState [12:14:36]SAM_PROTO_GetShiftState [12:14:36]wFMCommunicate request_size=4 [12:14:36]MH_SAM_APDU [12:14:36]CAPDU: 80 13 01 00 [12:14:36]Write to MH i2c: E2 08 00 2D 02 80 13 01 00 00 00 00 00 AC [12:14:36]Write i2c OK [12:14:36]MH_I2C_Read... [12:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:36]Read from MH i2c: E2 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 [12:14:36]MH_I2C_Read... [12:14:36]Read from MH i2c: E2 0E 00 2D 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 96 [12:14:36]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:14:36]wFMCommunicate OK [12:14:36]SAM_PROTO_GetShiftState done [12:14:36]FM_GetShiftState done [12:14:36]req_shift_opened done [12:14:36]requested_item shift.open_date is exist - process it [12:14:36]req_shift_open_date [12:14:36]req_shift_open_date done [12:14:36]produce_requested_data done [12:14:36]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63327,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:14:36]process_action_free close_receipt [12:14:36]json_value_free [12:14:36]json_value_free done [12:14:36]process_json_proto returns [12:14:36]Send response to host [12:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63327,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:14:36]free response buf [12:14:36]execute_script done [12:14:36]execute_script returns [12:14:36]free content buf [12:14:36]Sock 9.Close socket [12:14:36]Sock 9.Thread stoped [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:51]accept exits with 7 [12:16:51]New connection [12:16:51]New thread 3066977636 created [12:16:51]Thread 3067120996 joined [12:16:51]Waiting for new connection... [12:16:51] Sock 7.Parse request [12:16:51]Sock 7.Check first char [12:16:51]Sock 7.First char is OK [12:16:51]request: POST /json_proto HTTP/1.0 [12:16:51]Method: POST [12:16:51]URL: /json_proto [12:16:51]Method is POST - this is cgi request [12:16:51]url: /json_proto [12:16:51]query_string will be loaded in cgi processing [12:16:51]execute_cgi json_proto POST (null) [12:16:51]execute_cgi path=json_proto method=POST [12:16:51]POST find Content-Length [12:16:51]Host: 172.17.42.132:8080 [12:16:51]Content-Length: 632 [12:16:51]Content-Type: application/json [12:16:51] [12:16:51]POST finish read [12:16:51]Found Content-Length = 632 [12:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47638", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:51]execute_script... [12:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47638", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:51]POST & json_proto [12:16:51]process_json_proto [12:16:51]json parsed OK: [12:16:51]protocol is kg_v1.0 [12:16:51]action value=close_receipt [12:16:51]process_action close_receipt [12:16:51]cmd_close_receipt [12:16:51]MH_GetDate [12:16:51]Write to MH i2c: F0 00 00 2E 02 1F [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: F0 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: F0 09 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: F0 09 00 2E 02 00 34 E9 18 67 4C DF 56 66 AB [12:16:51]GetLastDocTimeStamp 1729685673 [12:16:51]current date 1729685812 [12:16:51]FM_GetShiftState [12:16:51]SAM_PROTO_GetShiftState [12:16:51]wFMCommunicate request_size=4 [12:16:51]MH_SAM_APDU [12:16:51]CAPDU: 80 13 01 00 [12:16:51]Write to MH i2c: E2 08 00 2F 02 80 13 01 00 00 00 00 00 AE [12:16:51]Write i2c OK [12:16:51]MH_I2C_Read... [12:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:51]Read from MH i2c: E2 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0E 00 [12:16:51]MH_I2C_Read... [12:16:51]Read from MH i2c: E2 0E 00 2F 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 98 [12:16:51]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:16:51]wFMCommunicate OK [12:16:51]SAM_PROTO_GetShiftState done [12:16:51]FM_GetShiftState done [12:16:51]opened in 1729642527 [12:16:51]opened+sec_in_day 1729728927 [12:16:51]quantity*price = 7500 [12:16:51]sum+1 = 7501 [12:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 57 23.10.2024 12:16 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63328 ФПД: 142155299675025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121652&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63328&fm=142155299675025&tin=02508201610067®Number=0000000000091619&sum=7500 0 [12:16:53]StoreToDocumentArchive [12:16:53]shift 546 fd 63328 [12:16:53]save to /storage/0546/doc_00063328 [12:16:53]save last doc name /storage/0546/doc_00063328 to /storage/kkm_last_doc_name [12:16:53]save OK [12:16:53]Clear old archive folders... [12:16:53]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:16:53]tlvbuf is 00715D50 [12:16:53]SAM_PROTO_ClearQueue [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 09 00 00 [12:16:53]Write to MH i2c: E2 08 00 3C 02 80 09 00 00 00 00 00 00 B0 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_ClearQueue done [12:16:53]KKMCreateOFDPacket [12:16:53]OFDProtocolAddRootSTLVToBuf [12:16:53]FM_MakeSignedData [12:16:53]FM_MakeSignedData [12:16:53]SAM_PROTO_SignData [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 01 02 [12:16:53]Write to MH i2c: E2 08 00 3D 02 80 0D 01 02 00 00 00 00 B8 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=255 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 34 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:16:53]Write to MH i2c: E2 02 01 3E 02 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 34 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 0D [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=27 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 02 02 16 34 36 37 36 10 04 04 00 60 F7 00 00 35 04 06 00 81 4A 1C 23 DB 91 [12:16:53]Write to MH i2c: E2 1E 00 3F 02 80 0D 02 02 16 00 34 36 37 36 10 04 04 00 60 F7 00 00 35 04 06 00 81 4A 1C 23 DB 91 00 00 E2 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [12:16:53]RAPDU: 90 00 [12:16:53]wFMCommunicate OK [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 0D 03 02 [12:16:53]Write to MH i2c: E2 08 00 40 02 80 0D 03 02 00 00 00 00 BD [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0B 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 0B 00 40 02 00 32 BF B9 11 59 1A 01 89 90 00 76 [12:16:53]RAPDU: 32 BF B9 11 59 1A 01 89 90 00 [12:16:53]wFMCommunicate OK [12:16:53]SAM_PROTO_SignData done [12:16:53]FM_MakeSignedData done [12:16:53]CreateOFDProtocolMessage [12:16:53]wFMCommunicate request_size=4 [12:16:53]MH_SAM_APDU [12:16:53]CAPDU: 80 11 00 00 [12:16:53]Write to MH i2c: E2 08 00 41 02 80 11 00 00 00 00 00 00 BD [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:53]Read from MH i2c: E2 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 17 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: E2 17 00 41 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 16 [12:16:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:16:53]wFMCommunicate OK [12:16:53]CreateOFDProtocolMessage done [12:16:53]OFDSenderStorePacket 63328 [12:16:53]StoreOFDPacket docnum=63328 [12:16:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 20 01 00 00 EB 9B 18 01 25 82 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 34 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 60 F7 00 00 35 04 06 00 81 4A 1C 23 DB 91 32 BF B9 11 59 1A 01 89 [12:16:53]CheckFolder [12:16:53]dirname=/storage/ofd_packets [12:16:53]CheckFolder done [12:16:53]ProducePacketName [12:16:53]name=ofd_packets/00063328 [12:16:53]NVStorageSaveData ofd_packets/00063328 [12:16:53]File name is /storage/ofd_packets/00063328 [12:16:53]Write 318 bytes [12:16:53]NVStorageSaveData done [12:16:53]OFDSenderStorePacket done [12:16:53]KKMCreateOFDPacket done [12:16:53]NVStorageSaveData kkm_last_timestamp [12:16:53]File name is /storage/kkm_last_timestamp [12:16:53]Write 4 bytes [12:16:53]NVStorageSaveData done [12:16:53]ExternCall_PrintAddStr [12:16:53]wPrintStart [12:16:53]Write to MH i2c: 01 00 00 42 02 44 [12:16:53]Write i2c OK [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 07 00 [12:16:53]MH_I2C_Read... [12:16:53]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 FF 0F 59 [12:16:53]RasterBufferAndPrint [12:16:53]line Счет N : (3)47638 [12:16:53]line ИНН: 02508201610067 [12:16:53]line Контрольно-Кассовый Чек [12:16:53]line ПРОДАЖА [12:16:53]line Товар: 40822938 [12:16:53]line Напиток Фанта 0,5л [12:16:53]line 1.000 * 75.00 [12:16:53]line = 75.00 [12:16:53]line НДС 12% НСП 1% [12:16:53]line > о реализуемом товаре [12:16:53]line ИТОГО: 75.00 [12:16:53]line НСП 1% : 0.66 [12:16:53]line НДС 12% : 7.96 [12:16:53]line Наличными: 75.00 [12:16:53]line Безнал.: 0.00 [12:16:53]line Место: АЗС № 86 "Партнер Нефть" [12:16:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:16:53]line СНО: Общий режим [12:16:53]line Чек 57 23.10.2024 12:16 [12:16:53]line Смена: 546 ФФД: 1.0 [12:16:53]line ЗНМ: 0300000154 [12:16:53]line РНМ: 0000000000091619 [12:16:53]line Версия ККМ: 001 [12:16:53]line ФМ: 0000000000874676 [12:16:53]line ФД: 63328 [12:16:53]line ФПД: 142155299675025 [12:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121652&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63328&fm=142155299675025&tin=02508201610067®Number=0000000000091619&sum=7500 [12:16:53]line 0 [12:16:53]OFD Sender: Processing packet 63328 [packets to send 232, broken 231] [12:16:53]ProducePacketName [12:16:53]name=ofd_packets/00063328 [12:16:53]OFD Sender: To server: pG, [12:16:53]CommunicateWithHost lk.salyk.kg:30040 [12:16:53]ConnectInit lk.salyk.kg [12:16:53]written 0, free lines is 4095 [12:16:54]Connected sock=10 [12:16:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 20 01 00 00 EB 9B 18 01 25 82 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 34 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 60 F7 00 00 35 04 06 00 81 4A 1C 23 DB 91 32 BF B9 11 59 1A 01 89 [12:16:54]Write to MH i2c: 01 00 00 6A 02 6C [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: 01 07 00 6A 02 00 00 00 00 00 11 0D 91 [12:16:54]RasterBufferAndPrint [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]line [12:16:54]written 0, free lines is 3352 [12:16:54]MH_Cut [12:16:54]Write to MH i2c: D1 01 00 71 02 01 45 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: D1 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: D1 01 00 [12:16:54]MH_I2C_Read... [12:16:54]Read from MH i2c: D1 01 00 71 02 00 44 [12:16:54]Write to MH i2c: 01 00 00 72 02 74 [12:16:54]Write i2c OK [12:16:54]MH_I2C_Read... [12:16:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 E9 FE 47 00 B3 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 60 F7 00 00 F4 03 04 00 2C 93 18 67 B6 04 01 00 00 80 7D C8 CB 19 B2 8A 4A [12:16:54]CommunicateWithHost err = 0 [12:16:54]CheckOFDResponse [12:16:54]1017 (14) - 77093643461234 [12:16:54]1041 (16) - 0000000000874676 [12:16:54]1040 (4) - 63328 [12:16:54]1012 (4) - 23.10.2024 06:09 [12:16:54]1206 (1) - 0 [12:16:54]OFD Sender: Remove packet 63328 [12:16:54]ProducePacketName [12:16:54]name=ofd_packets/00063328 [12:16:54]NVStorageDeleteData [12:16:55]*** Cut start [12:16:55]*** Partial cut [12:16:55]*** CUTSNS_PIN = 1 [12:16:55]OFD Sender: No OFD packet to send [12:16:55]*** CUTSNS_PIN = 0 [12:16:55]*** Brake cut motor [12:16:55]Read from MH i2c: 01 [12:16:55]MH_I2C_Read... [12:16:55]*** Stop cut motor [12:16:55]*** Cut end [12:16:55]Read from MH i2c: 01 07 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [12:16:55]process_action close_receipt done [12:16:55]requested_data is exist [12:16:55]produce_requested_data [12:16:55]requested_item fm.sn is exist - process it [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 11 00 00 [12:16:55]Write to MH i2c: E2 08 00 73 02 80 11 00 00 00 00 00 00 EF [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 17 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 17 00 73 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 48 [12:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:16:55]wFMCommunicate OK [12:16:55]requested_item fd.num is exist - process it [12:16:55]SAM_PROTO_GetFieldsCounters [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 13 00 00 [12:16:55]Write to MH i2c: E2 08 00 74 02 80 13 00 00 00 00 00 00 F2 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 62 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 62 00 74 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 60 F7 00 00 0E 04 04 00 22 02 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 40 [12:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 60 F7 00 00 0E 04 04 00 22 02 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:16:55]wFMCommunicate OK [12:16:55]SAM_PROTO_GetFieldsCounters done [12:16:55]requested_item shift.num is exist - process it [12:16:55]requested_item shift.opened is exist - process it [12:16:55]req_shift_opened [12:16:55]FM_GetShiftState [12:16:55]SAM_PROTO_GetShiftState [12:16:55]wFMCommunicate request_size=4 [12:16:55]MH_SAM_APDU [12:16:55]CAPDU: 80 13 01 00 [12:16:55]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [12:16:55]Write i2c OK [12:16:55]MH_I2C_Read... [12:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:55]Read from MH i2c: E2 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 0E 00 [12:16:55]MH_I2C_Read... [12:16:55]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DE [12:16:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:16:55]wFMCommunicate OK [12:16:55]SAM_PROTO_GetShiftState done [12:16:55]FM_GetShiftState done [12:16:55]req_shift_opened done [12:16:55]requested_item shift.open_date is exist - process it [12:16:55]req_shift_open_date [12:16:55]req_shift_open_date done [12:16:55]produce_requested_data done [12:16:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63328,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:16:55]process_action_free close_receipt [12:16:55]json_value_free [12:16:55]json_value_free done [12:16:55]process_json_proto returns [12:16:55]Send response to host [12:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63328,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:16:55]free response buf [12:16:55]execute_script done [12:16:55]execute_script returns [12:16:55]free content buf [12:16:55]Sock 7.Close socket [12:16:55]Sock 7.Thread stoped [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:15]OFD Sender: No OFD packet to send [12:17:20]OFD Sender: No OFD packet to send [12:17:25]OFD Sender: No OFD packet to send [12:17:30]OFD Sender: No OFD packet to send [12:17:35]OFD Sender: No OFD packet to send [12:17:40]OFD Sender: No OFD packet to send [12:17:45]OFD Sender: No OFD packet to send [12:17:50]OFD Sender: No OFD packet to send [12:17:55]OFD Sender: No OFD packet to send [12:18:00]OFD Sender: No OFD packet to send [12:18:05]OFD Sender: No OFD packet to send [12:18:10]OFD Sender: No OFD packet to send [12:18:10]accept exits with 9 [12:18:10]New connection [12:18:10]New thread 3067120996 created [12:18:10]Thread 3066977636 joined [12:18:10]Waiting for new connection... [12:18:10] Sock 9.Parse request [12:18:10]Sock 9.Check first char [12:18:10]Sock 9.First char is OK [12:18:10]request: POST /json_proto HTTP/1.0 [12:18:10]Method: POST [12:18:10]URL: /json_proto [12:18:10]Method is POST - this is cgi request [12:18:10]url: /json_proto [12:18:10]query_string will be loaded in cgi processing [12:18:10]execute_cgi json_proto POST (null) [12:18:10]execute_cgi path=json_proto method=POST [12:18:10]POST find Content-Length [12:18:10]Host: 172.17.42.132:8080 [12:18:10]Content-Length: 793 [12:18:10]Content-Type: application/json [12:18:10] [12:18:10]POST finish read [12:18:10]Found Content-Length = 793 [12:18:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47639", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 198.23, "quantity" : 1.000, "sum" : 198.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", "payments": [ { "type": 1, "sum" : 198.23 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:10]execute_script... [12:18:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47639", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 198.23, "quantity" : 1.000, "sum" : 198.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", "payments": [ { "type": 1, "sum" : 198.23 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:10]POST & json_proto [12:18:10]process_json_proto [12:18:10]json parsed OK: [12:18:10]protocol is kg_v1.0 [12:18:10]action value=close_receipt [12:18:10]process_action close_receipt [12:18:10]cmd_close_receipt [12:18:10]MH_GetDate [12:18:10]Write to MH i2c: F0 00 00 76 02 67 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: F0 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: F0 09 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: F0 09 00 76 02 00 83 E9 18 67 4C DF 56 66 42 [12:18:10]GetLastDocTimeStamp 1729685812 [12:18:10]current date 1729685891 [12:18:10]FM_GetShiftState [12:18:10]SAM_PROTO_GetShiftState [12:18:10]wFMCommunicate request_size=4 [12:18:10]MH_SAM_APDU [12:18:10]CAPDU: 80 13 01 00 [12:18:10]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [12:18:10]Write i2c OK [12:18:10]MH_I2C_Read... [12:18:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:10]Read from MH i2c: E2 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 0E 00 [12:18:10]MH_I2C_Read... [12:18:10]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 E0 [12:18:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:18:10]wFMCommunicate OK [12:18:10]SAM_PROTO_GetShiftState done [12:18:10]FM_GetShiftState done [12:18:10]opened in 1729642527 [12:18:10]opened+sec_in_day 1729728927 [12:18:10]quantity*price = 19823 [12:18:10]sum+1 = 19824 [12:18:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 198.23 НСП 1% : 1.75 НДС 12% : 21.05 Наличными: 0.00 Безнал.: 198.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 58 23.10.2024 12:18 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63329 ФПД: 75781673058958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63329&fm=75781673058958&tin=02508201610067®Number=0000000000091619&sum=19823 0 [12:18:12]StoreToDocumentArchive [12:18:12]shift 546 fd 63329 [12:18:12]save to /storage/0546/doc_00063329 [12:18:12]save last doc name /storage/0546/doc_00063329 to /storage/kkm_last_doc_name [12:18:12]save OK [12:18:12]Clear old archive folders... [12:18:12]ProcessDocumentItem done err = 0, tmpTLVsize=283 [12:18:12]tlvbuf is 007156A0 [12:18:12]SAM_PROTO_ClearQueue [12:18:12]wFMCommunicate request_size=4 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 09 00 00 [12:18:12]Write to MH i2c: E2 08 00 84 02 80 09 00 00 00 00 00 00 F8 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [12:18:12]RAPDU: 90 00 [12:18:12]wFMCommunicate OK [12:18:12]SAM_PROTO_ClearQueue done [12:18:12]KKMCreateOFDPacket [12:18:12]OFDProtocolAddRootSTLVToBuf [12:18:12]FM_MakeSignedData [12:18:12]FM_MakeSignedData [12:18:12]SAM_PROTO_SignData [12:18:12]wFMCommunicate request_size=4 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 0D 01 02 [12:18:12]Write to MH i2c: E2 08 00 85 02 80 0D 01 02 00 00 00 00 00 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [12:18:12]RAPDU: 90 00 [12:18:12]wFMCommunicate OK [12:18:12]wFMCommunicate request_size=255 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6F 4D 00 00 00 00 13 04 06 00 6F 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 83 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [12:18:12]Write to MH i2c: E2 02 01 86 02 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6F 4D 00 00 00 00 13 04 06 00 6F 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 83 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 00 00 DB [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [12:18:12]RAPDU: 90 00 [12:18:12]wFMCommunicate OK [12:18:12]wFMCommunicate request_size=42 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 61 F7 00 00 35 04 06 00 44 EC 4B B4 02 8E [12:18:12]Write to MH i2c: E2 2D 00 87 02 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 61 F7 00 00 35 04 06 00 44 EC 4B B4 02 8E 00 00 F5 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [12:18:12]RAPDU: 90 00 [12:18:12]wFMCommunicate OK [12:18:12]wFMCommunicate request_size=4 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 0D 03 02 [12:18:12]Write to MH i2c: E2 08 00 88 02 80 0D 03 02 00 00 00 00 05 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 0B 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 0B 00 88 02 00 6E E6 4A 84 51 AC 16 F0 90 00 2B [12:18:12]RAPDU: 6E E6 4A 84 51 AC 16 F0 90 00 [12:18:12]wFMCommunicate OK [12:18:12]SAM_PROTO_SignData done [12:18:12]FM_MakeSignedData done [12:18:12]CreateOFDProtocolMessage [12:18:12]wFMCommunicate request_size=4 [12:18:12]MH_SAM_APDU [12:18:12]CAPDU: 80 11 00 00 [12:18:12]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:12]Read from MH i2c: E2 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 17 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5E [12:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:18:12]wFMCommunicate OK [12:18:12]CreateOFDProtocolMessage done [12:18:12]OFDSenderStorePacket 63329 [12:18:12]StoreOFDPacket docnum=63329 [12:18:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 69 C4 27 01 C0 B7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6F 4D 00 00 00 00 13 04 06 00 6F 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 83 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 61 F7 00 00 35 04 06 00 44 EC 4B B4 02 8E 6E E6 4A 84 51 AC 16 F0 [12:18:12]CheckFolder [12:18:12]dirname=/storage/ofd_packets [12:18:12]CheckFolder done [12:18:12]ProducePacketName [12:18:12]name=ofd_packets/00063329 [12:18:12]NVStorageSaveData ofd_packets/00063329 [12:18:12]File name is /storage/ofd_packets/00063329 [12:18:12]Write 333 bytes [12:18:12]NVStorageSaveData done [12:18:12]OFDSenderStorePacket done [12:18:12]KKMCreateOFDPacket done [12:18:12]NVStorageSaveData kkm_last_timestamp [12:18:12]File name is /storage/kkm_last_timestamp [12:18:12]Write 4 bytes [12:18:12]NVStorageSaveData done [12:18:12]ExternCall_PrintAddStr [12:18:12]wPrintStart [12:18:12]Write to MH i2c: 01 00 00 8A 02 8C [12:18:12]Write i2c OK [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 07 00 [12:18:12]MH_I2C_Read... [12:18:12]Read from MH i2c: 01 07 00 8A 02 00 00 00 00 00 FF 0F A1 [12:18:12]RasterBufferAndPrint [12:18:12]line Счет N : (3)47639 [12:18:12]line ИНН: 02508201610067 [12:18:12]line Контрольно-Кассовый Чек [12:18:12]line ПРОДАЖА [12:18:12]line Товар: 4700002085444 [12:18:12]line Водка Белое золото 0,24л [12:18:12]line 1.000 * 198.23 [12:18:12]line = 198.23 [12:18:12]line НДС 12% НСП 1% [12:18:12]line > о реализуемом товаре [12:18:12]line ИТОГО: 198.23 [12:18:12]line НСП 1% : 1.75 [12:18:12]line НДС 12% : 21.05 [12:18:12]line Наличными: 0.00 [12:18:12]line Безнал.: 198.23 [12:18:12]line Место: АЗС № 86 "Партнер Нефть" [12:18:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:18:12]line СНО: Общий режим [12:18:12]line Чек 58 23.10.2024 12:18 [12:18:12]line Смена: 546 ФФД: 1.0 [12:18:12]line ЗНМ: 0300000154 [12:18:12]line РНМ: 0000000000091619 [12:18:12]line Версия ККМ: 001 [12:18:12]line Платежная система: Mbank [12:18:12]line ФМ: 0000000000874676 [12:18:12]line ФД: 63329 [12:18:12]line ФПД: 75781673058958 [12:18:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121811&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63329&fm=75781673058958&tin=02508201610067®Number=0000000000091619&sum=19823 [12:18:12]line 0 [12:18:12]OFD Sender: Processing packet 63329 [packets to send 232, broken 231] [12:18:12]ProducePacketName [12:18:12]name=ofd_packets/00063329 [12:18:12]OFD Sender: To server: pG, [12:18:12]CommunicateWithHost lk.salyk.kg:30040 [12:18:12]ConnectInit lk.salyk.kg [12:18:12]written 0, free lines is 4095 [12:18:13]Connected sock=10 [12:18:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 69 C4 27 01 C0 B7 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6F 4D 00 00 00 00 13 04 06 00 6F 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 83 E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 61 F7 00 00 35 04 06 00 44 EC 4B B4 02 8E 6E E6 4A 84 51 AC 16 F0 [12:18:13]Write to MH i2c: 01 00 00 B3 02 B5 [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: 01 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: 01 07 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 1E 0D E7 [12:18:13]RasterBufferAndPrint [12:18:13]line [12:18:13]line [12:18:13]line [12:18:13]line [12:18:13]line [12:18:13]written 0, free lines is 3363 [12:18:13]MH_Cut [12:18:13]Write to MH i2c: D1 01 00 BA 02 01 8E [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: D1 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: D1 01 00 [12:18:13]MH_I2C_Read... [12:18:13]Read from MH i2c: D1 01 00 BA 02 00 8D [12:18:13]Write to MH i2c: 01 00 00 BB 02 BD [12:18:13]Write i2c OK [12:18:13]MH_I2C_Read... [12:18:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 69 FC 47 00 58 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 61 F7 00 00 F4 03 04 00 7B 93 18 67 B6 04 01 00 00 97 1A D8 C6 E3 43 12 BB [12:18:13]CommunicateWithHost err = 0 [12:18:13]CheckOFDResponse [12:18:13]1017 (14) - 77093643461234 [12:18:13]1041 (16) - 0000000000874676 [12:18:13]1040 (4) - 63329 [12:18:13]1012 (4) - 23.10.2024 06:11 [12:18:13]1206 (1) - 0 [12:18:13]OFD Sender: Remove packet 63329 [12:18:13]ProducePacketName [12:18:13]name=ofd_packets/00063329 [12:18:13]NVStorageDeleteData [12:18:14]*** Cut start [12:18:14]*** Partial cut [12:18:14]*** CUTSNS_PIN = 1 [12:18:14]OFD Sender: No OFD packet to send [12:18:14]*** CUTSNS_PIN = 0 [12:18:14]*** Brake cut motor [12:18:14]Read from MH i2c: 01 [12:18:14]MH_I2C_Read... [12:18:14]*** Stop cut motor [12:18:14]*** Cut end [12:18:14]Read from MH i2c: 01 07 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [12:18:14]process_action close_receipt done [12:18:14]requested_data is exist [12:18:14]produce_requested_data [12:18:14]requested_item fm.sn is exist - process it [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 11 00 00 [12:18:14]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 17 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 91 [12:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:18:14]wFMCommunicate OK [12:18:14]requested_item fd.num is exist - process it [12:18:14]SAM_PROTO_GetFieldsCounters [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 13 00 00 [12:18:14]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 62 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 61 F7 00 00 0E 04 04 00 22 02 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 8D [12:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 61 F7 00 00 0E 04 04 00 22 02 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:18:14]wFMCommunicate OK [12:18:14]SAM_PROTO_GetFieldsCounters done [12:18:14]requested_item shift.num is exist - process it [12:18:14]requested_item shift.opened is exist - process it [12:18:14]req_shift_opened [12:18:14]FM_GetShiftState [12:18:14]SAM_PROTO_GetShiftState [12:18:14]wFMCommunicate request_size=4 [12:18:14]MH_SAM_APDU [12:18:14]CAPDU: 80 13 01 00 [12:18:14]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [12:18:14]Write i2c OK [12:18:14]MH_I2C_Read... [12:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:14]Read from MH i2c: E2 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0E 00 [12:18:14]MH_I2C_Read... [12:18:14]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 27 [12:18:14]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:18:14]wFMCommunicate OK [12:18:14]SAM_PROTO_GetShiftState done [12:18:14]FM_GetShiftState done [12:18:14]req_shift_opened done [12:18:14]requested_item shift.open_date is exist - process it [12:18:14]req_shift_open_date [12:18:14]req_shift_open_date done [12:18:14]produce_requested_data done [12:18:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63329,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:18:14]process_action_free close_receipt [12:18:14]json_value_free [12:18:14]json_value_free done [12:18:14]process_json_proto returns [12:18:14]Send response to host [12:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63329,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:18:14]free response buf [12:18:14]execute_script done [12:18:14]execute_script returns [12:18:14]free content buf [12:18:14]Sock 9.Close socket [12:18:14]Sock 9.Thread stoped [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:35]accept exits with 7 [12:18:35]New connection [12:18:35]New thread 3066977636 created [12:18:35]Thread 3067120996 joined [12:18:35]Waiting for new connection... [12:18:35] Sock 7.Parse request [12:18:35]Sock 7.Check first char [12:18:35]Sock 7.First char is OK [12:18:35]request: POST /json_proto HTTP/1.0 [12:18:35]Method: POST [12:18:35]URL: /json_proto [12:18:35]Method is POST - this is cgi request [12:18:35]url: /json_proto [12:18:35]query_string will be loaded in cgi processing [12:18:35]execute_cgi json_proto POST (null) [12:18:35]execute_cgi path=json_proto method=POST [12:18:35]POST find Content-Length [12:18:35]Host: 172.17.42.132:8080 [12:18:35]Content-Length: 990 [12:18:35]Content-Type: application/json [12:18:35] [12:18:35]POST finish read [12:18:35]Found Content-Length = 990 [12:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47640", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]execute_script... [12:18: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 : (3)47640", "tax_sys" : 0, "items" : [ { "code": "4600338001623", "name": "\u0412\u043E\u0434\u0430 \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043D\u0435\u0433\u0430\u0437\u0438\u0440 \u0434/\u0434\u0435\u0442\u0435\u0439 0,33\u043B", "price" : 80.00, "quantity" : 3.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:35]POST & json_proto [12:18:35]process_json_proto [12:18:35]json parsed OK: [12:18:35]protocol is kg_v1.0 [12:18:35]action value=close_receipt [12:18:35]process_action close_receipt [12:18:35]cmd_close_receipt [12:18:35]MH_GetDate [12:18:35]Write to MH i2c: F0 00 00 BF 02 B0 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: F0 09 00 BF 02 00 9B E9 18 67 4C DF 56 66 A3 [12:18:35]GetLastDocTimeStamp 1729685891 [12:18:35]current date 1729685915 [12:18:35]FM_GetShiftState [12:18:35]SAM_PROTO_GetShiftState [12:18:35]wFMCommunicate request_size=4 [12:18:35]MH_SAM_APDU [12:18:35]CAPDU: 80 13 01 00 [12:18:35]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:35]Read from MH i2c: E2 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 29 [12:18:35]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:18:35]wFMCommunicate OK [12:18:35]SAM_PROTO_GetShiftState done [12:18:35]FM_GetShiftState done [12:18:35]opened in 1729642527 [12:18:35]opened+sec_in_day 1729728927 [12:18:35]quantity*price = 24000 [12:18:35]sum+1 = 24001 [12:18:35]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 59 23.10.2024 12:18 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63330 ФПД: 226477212702928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63330&fm=226477212702928&tin=02508201610067®Number=0000000000091619&sum=50000 0 [12:18:36]StoreToDocumentArchive [12:18:36]shift 546 fd 63330 [12:18:36]save to /storage/0546/doc_00063330 [12:18:36]save last doc name /storage/0546/doc_00063330 to /storage/kkm_last_doc_name [12:18:36]save OK [12:18:36]Clear old archive folders... [12:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=418 [12:18:36]tlvbuf is 006C5890 [12:18:36]SAM_PROTO_ClearQueue [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 09 00 00 [12:18:36]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [12:18:36]RAPDU: 90 00 [12:18:36]wFMCommunicate OK [12:18:36]SAM_PROTO_ClearQueue done [12:18:36]KKMCreateOFDPacket [12:18:36]OFDProtocolAddRootSTLVToBuf [12:18:36]FM_MakeSignedData [12:18:36]FM_MakeSignedData [12:18:36]SAM_PROTO_SignData [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 0D 01 02 [12:18:36]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [12:18:36]RAPDU: 90 00 [12:18:36]wFMCommunicate OK [12:18:36]wFMCommunicate request_size=255 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 [12:18:36]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 40 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [12:18:36]RAPDU: 90 00 [12:18:36]wFMCommunicate OK [12:18:36]wFMCommunicate request_size=177 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 9C E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 62 F7 00 00 35 04 06 00 CD FA D5 D0 18 D0 [12:18:36]Write to MH i2c: E2 B4 00 D0 02 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 9C E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 62 F7 00 00 35 04 06 00 CD FA D5 D0 18 D0 00 00 73 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [12:18:36]RAPDU: 90 00 [12:18:36]wFMCommunicate OK [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 0D 03 02 [12:18:36]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 0B 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 0B 00 D1 02 00 E3 4C 76 5E CC 4E A5 7B 90 00 8C [12:18:36]RAPDU: E3 4C 76 5E CC 4E A5 7B 90 00 [12:18:36]wFMCommunicate OK [12:18:36]SAM_PROTO_SignData done [12:18:36]FM_MakeSignedData done [12:18:36]CreateOFDProtocolMessage [12:18:36]wFMCommunicate request_size=4 [12:18:36]MH_SAM_APDU [12:18:36]CAPDU: 80 11 00 00 [12:18:36]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:36]Read from MH i2c: E2 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 17 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A7 [12:18:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:18:36]wFMCommunicate OK [12:18:36]CreateOFDProtocolMessage done [12:18:36]OFDSenderStorePacket 63330 [12:18:36]StoreOFDPacket docnum=63330 [12:18:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B6 01 00 00 D6 9F AE 01 3E 26 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 9C E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 62 F7 00 00 35 04 06 00 CD FA D5 D0 18 D0 E3 4C 76 5E CC 4E A5 7B [12:18:36]CheckFolder [12:18:36]dirname=/storage/ofd_packets [12:18:36]CheckFolder done [12:18:36]ProducePacketName [12:18:36]name=ofd_packets/00063330 [12:18:36]NVStorageSaveData ofd_packets/00063330 [12:18:36]File name is /storage/ofd_packets/00063330 [12:18:36]Write 468 bytes [12:18:36]NVStorageSaveData done [12:18:36]OFDSenderStorePacket done [12:18:36]KKMCreateOFDPacket done [12:18:36]NVStorageSaveData kkm_last_timestamp [12:18:36]File name is /storage/kkm_last_timestamp [12:18:36]Write 4 bytes [12:18:36]NVStorageSaveData done [12:18:36]ExternCall_PrintAddStr [12:18:36]wPrintStart [12:18:36]Write to MH i2c: 01 00 00 D3 02 D5 [12:18:36]Write i2c OK [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: 01 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: 01 07 00 [12:18:36]MH_I2C_Read... [12:18:36]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [12:18:36]RasterBufferAndPrint [12:18:36]line Счет N : (3)47640 [12:18:37]line ИНН: 02508201610067 [12:18:37]line Контрольно-Кассовый Чек [12:18:37]line ПРОДАЖА [12:18:37]line Товар: 4600338001623 [12:18:37]line Вода Фруто НЯНЯ негазир д/детей 0,33л [12:18:37]line 3.000 * 80.00 [12:18:37]line = 240.00 [12:18:37]line НДС 12% НСП 1% [12:18:37]line > о реализуемом товаре [12:18:37]line Товар: 2000036220012 [12:18:37]line Кофе Капучино XL(GABB TRADE) [12:18:37]line 2.000 * 130.00 [12:18:37]line = 260.00 [12:18:37]line НДС 12% НСП 1% [12:18:37]line > о реализуемом товаре [12:18:37]line ИТОГО: 500.00 [12:18:37]line НСП 1% : 4.42 [12:18:37]line НДС 12% : 53.10 [12:18:37]line Наличными: 500.00 [12:18:37]line Безнал.: 0.00 [12:18:37]line Место: АЗС № 86 "Партнер Нефть" [12:18:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:18:37]line СНО: Общий режим [12:18:37]line Чек 59 23.10.2024 12:18 [12:18:37]line Смена: 546 ФФД: 1.0 [12:18:37]line ЗНМ: 0300000154 [12:18:37]line РНМ: 0000000000091619 [12:18:37]line Версия ККМ: 001 [12:18:37]line ФМ: 0000000000874676 [12:18:37]line ФД: 63330 [12:18:37]line ФПД: 226477212702928 [12:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T121836&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63330&fm=226477212702928&tin=02508201610067®Number=0000000000091619&sum=50000 [12:18:37]line 0 [12:18:37]OFD Sender: Processing packet 63330 [packets to send 232, broken 231] [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00063330 [12:18:37]OFD Sender: To server: pG, [12:18:37]CommunicateWithHost lk.salyk.kg:30040 [12:18:37]ConnectInit lk.salyk.kg [12:18:37]written 0, free lines is 4095 [12:18:37]Connected sock=10 [12:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B6 01 00 00 D6 9F AE 01 3E 26 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 31 36 32 33 06 04 40 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 20 D0 B4 2F D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 33 33 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3B 00 00 00 F4 03 04 00 9C E9 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 62 F7 00 00 35 04 06 00 CD FA D5 D0 18 D0 E3 4C 76 5E CC 4E A5 7B [12:18:37]Write to MH i2c: 01 00 00 03 03 06 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 BC 0C D5 [12:18:37]RasterBufferAndPrint [12:18:37]line [12:18:37]line [12:18:37]line [12:18:37]line [12:18:37]line [12:18:37]written 0, free lines is 3268 [12:18:37]MH_Cut [12:18:37]Write to MH i2c: D1 01 00 0A 03 01 DF [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: D1 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: D1 01 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: D1 01 00 0A 03 00 DE [12:18:37]Write to MH i2c: 01 00 00 0B 03 0E [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 4B A6 47 00 37 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 38 37 34 36 37 36 10 04 04 00 62 F7 00 00 F4 03 04 00 93 93 18 67 B6 04 01 00 00 BE 1A 50 1F 4D 08 67 D1 [12:18:37]CommunicateWithHost err = 0 [12:18:37]CheckOFDResponse [12:18:37]1017 (14) - 77093643461234 [12:18:37]1041 (16) - 0000000000874676 [12:18:37]1040 (4) - 63330 [12:18:37]1012 (4) - 23.10.2024 06:11 [12:18:37]1206 (1) - 0 [12:18:37]OFD Sender: Remove packet 63330 [12:18:37]ProducePacketName [12:18:37]name=ofd_packets/00063330 [12:18:37]NVStorageDeleteData [12:18:38]OFD Sender: No OFD packet to send [12:18:38]*** Cut start [12:18:38]*** Partial cut [12:18:38]*** CUTSNS_PIN = 1 [12:18:38]*** CUTSNS_PIN = 0 [12:18:38]*** Brake cut motor [12:18:39]Read from MH i2c: 01 [12:18:39]MH_I2C_Read... [12:18:39]*** Stop cut motor [12:18:39]*** Cut end [12:18:39]Read from MH i2c: 01 07 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: 01 07 00 0B 03 00 00 00 00 00 FF 0F 23 [12:18:39]process_action close_receipt done [12:18:39]requested_data is exist [12:18:39]produce_requested_data [12:18:39]requested_item fm.sn is exist - process it [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 11 00 00 [12:18:39]Write to MH i2c: E2 08 00 0C 03 80 11 00 00 00 00 00 00 89 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 17 00 0C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E2 [12:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:18:39]wFMCommunicate OK [12:18:39]requested_item fd.num is exist - process it [12:18:39]SAM_PROTO_GetFieldsCounters [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 00 00 [12:18:39]Write to MH i2c: E2 08 00 0D 03 80 13 00 00 00 00 00 00 8C [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 62 00 0D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 62 F7 00 00 0E 04 04 00 22 02 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 E2 [12:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 62 F7 00 00 0E 04 04 00 22 02 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:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetFieldsCounters done [12:18:39]requested_item shift.num is exist - process it [12:18:39]requested_item shift.opened is exist - process it [12:18:39]req_shift_opened [12:18:39]FM_GetShiftState [12:18:39]SAM_PROTO_GetShiftState [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 13 01 00 [12:18:39]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 78 [12:18:39]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_GetShiftState done [12:18:39]FM_GetShiftState done [12:18:39]req_shift_opened done [12:18:39]requested_item shift.open_date is exist - process it [12:18:39]req_shift_open_date [12:18:39]req_shift_open_date done [12:18:39]produce_requested_data done [12:18:39]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63330,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:18:39]process_action_free close_receipt [12:18:39]json_value_free [12:18:39]json_value_free done [12:18:39]process_json_proto returns [12:18:39]Send response to host [12:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63330,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:18:39]free response buf [12:18:39]execute_script done [12:18:39]execute_script returns [12:18:39]free content buf [12:18:39]Sock 7.Close socket [12:18:39]Sock 7.Thread stoped [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [12:23:58]OFD Sender: No OFD packet to send [12:24:03]OFD Sender: No OFD packet to send [12:24:08]OFD Sender: No OFD packet to send [12:24:13]OFD Sender: No OFD packet to send [12:24:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:54]OFD Sender: No OFD packet to send [12:29:59]OFD Sender: No OFD packet to send [12:30:04]OFD Sender: No OFD packet to send [12:30:09]OFD Sender: No OFD packet to send [12:30:14]OFD Sender: No OFD packet to send [12:30:19]OFD Sender: No OFD packet to send [12:30:24]OFD Sender: No OFD packet to send [12:30:29]OFD Sender: No OFD packet to send [12:30:34]OFD Sender: No OFD packet to send [12:30:39]OFD Sender: No OFD packet to send [12:30:44]OFD Sender: No OFD packet to send [12:30:49]OFD Sender: No OFD packet to send [12:30:49]accept exits with 9 [12:30:49]New connection [12:30:49]New thread 3067120996 created [12:30:49]Thread 3066977636 joined [12:30:49]Waiting for new connection... [12:30:49] Sock 9.Parse request [12:30:49]Sock 9.Check first char [12:30:49]Sock 9.First char is OK [12:30:49]request: POST /json_proto HTTP/1.0 [12:30:49]Method: POST [12:30:49]URL: /json_proto [12:30:49]Method is POST - this is cgi request [12:30:49]url: /json_proto [12:30:49]query_string will be loaded in cgi processing [12:30:49]execute_cgi json_proto POST (null) [12:30:49]execute_cgi path=json_proto method=POST [12:30:49]POST find Content-Length [12:30:49]Host: 172.17.42.132:8080 [12:30:49]Content-Length: 644 [12:30:49]Content-Type: application/json [12:30:49] [12:30:49]POST finish read [12:30:49]Found Content-Length = 644 [12:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47641", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:49]execute_script... [12:30:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47641", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:49]POST & json_proto [12:30:49]process_json_proto [12:30:49]json parsed OK: [12:30:49]protocol is kg_v1.0 [12:30:49]action value=close_receipt [12:30:49]process_action close_receipt [12:30:49]cmd_close_receipt [12:30:49]MH_GetDate [12:30:49]Write to MH i2c: F0 00 00 0F 03 01 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: F0 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: F0 09 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: F0 09 00 0F 03 00 7A EC 18 67 4C DF 56 66 D6 [12:30:49]GetLastDocTimeStamp 1729685916 [12:30:49]current date 1729686650 [12:30:49]FM_GetShiftState [12:30:49]SAM_PROTO_GetShiftState [12:30:49]wFMCommunicate request_size=4 [12:30:49]MH_SAM_APDU [12:30:49]CAPDU: 80 13 01 00 [12:30:49]Write to MH i2c: E2 08 00 10 03 80 13 01 00 00 00 00 00 90 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:49]Read from MH i2c: E2 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0E 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 7A [12:30:49]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:30:49]wFMCommunicate OK [12:30:49]SAM_PROTO_GetShiftState done [12:30:49]FM_GetShiftState done [12:30:49]opened in 1729642527 [12:30:49]opened+sec_in_day 1729728927 [12:30:49]quantity*price = 7900 [12:30:49]sum+1 = 7901 [12:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 60 23.10.2024 12:30 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63331 ФПД: 73231877115314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123050&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63331&fm=73231877115314&tin=02508201610067®Number=0000000000091619&sum=7900 0 [12:30:50]StoreToDocumentArchive [12:30:50]shift 546 fd 63331 [12:30:50]save to /storage/0546/doc_00063331 [12:30:50]save last doc name /storage/0546/doc_00063331 to /storage/kkm_last_doc_name [12:30:50]save OK [12:30:50]Clear old archive folders... [12:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:30:50]tlvbuf is 006E9E10 [12:30:50]SAM_PROTO_ClearQueue [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 09 00 00 [12:30:50]Write to MH i2c: E2 08 00 1D 03 80 09 00 00 00 00 00 00 92 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 03 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [12:30:50]RAPDU: 90 00 [12:30:50]wFMCommunicate OK [12:30:50]SAM_PROTO_ClearQueue done [12:30:50]KKMCreateOFDPacket [12:30:50]OFDProtocolAddRootSTLVToBuf [12:30:50]FM_MakeSignedData [12:30:50]FM_MakeSignedData [12:30:50]SAM_PROTO_SignData [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 0D 01 02 [12:30:50]Write to MH i2c: E2 08 00 1E 03 80 0D 01 02 00 00 00 00 9A [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 03 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [12:30:50]RAPDU: 90 00 [12:30:50]wFMCommunicate OK [12:30:50]wFMCommunicate request_size=255 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 7A EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [12:30:50]Write to MH i2c: E2 02 01 1F 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 7A EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 00 00 C3 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [12:30:51]RAPDU: 90 00 [12:30:51]wFMCommunicate OK [12:30:51]wFMCommunicate request_size=35 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 63 F7 00 00 35 04 06 00 42 9A A0 05 8D B2 [12:30:51]Write to MH i2c: E2 26 00 20 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 63 F7 00 00 35 04 06 00 42 9A A0 05 8D B2 00 00 B0 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [12:30:51]RAPDU: 90 00 [12:30:51]wFMCommunicate OK [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 0D 03 02 [12:30:51]Write to MH i2c: E2 08 00 21 03 80 0D 03 02 00 00 00 00 9F [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 0B 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 0B 00 21 03 00 24 D2 93 02 AB 14 65 97 90 00 E6 [12:30:51]RAPDU: 24 D2 93 02 AB 14 65 97 90 00 [12:30:51]wFMCommunicate OK [12:30:51]SAM_PROTO_SignData done [12:30:51]FM_MakeSignedData done [12:30:51]CreateOFDProtocolMessage [12:30:51]wFMCommunicate request_size=4 [12:30:51]MH_SAM_APDU [12:30:51]CAPDU: 80 11 00 00 [12:30:51]Write to MH i2c: E2 08 00 22 03 80 11 00 00 00 00 00 00 9F [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:51]Read from MH i2c: E2 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 17 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: E2 17 00 22 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F8 [12:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:30:51]wFMCommunicate OK [12:30:51]CreateOFDProtocolMessage done [12:30:51]OFDSenderStorePacket 63331 [12:30:51]StoreOFDPacket docnum=63331 [12:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 0F 0A 20 01 63 11 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 7A EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 63 F7 00 00 35 04 06 00 42 9A A0 05 8D B2 24 D2 93 02 AB 14 65 97 [12:30:51]CheckFolder [12:30:51]dirname=/storage/ofd_packets [12:30:51]CheckFolder done [12:30:51]ProducePacketName [12:30:51]name=ofd_packets/00063331 [12:30:51]NVStorageSaveData ofd_packets/00063331 [12:30:51]File name is /storage/ofd_packets/00063331 [12:30:51]Write 326 bytes [12:30:51]NVStorageSaveData done [12:30:51]OFDSenderStorePacket done [12:30:51]KKMCreateOFDPacket done [12:30:51]NVStorageSaveData kkm_last_timestamp [12:30:51]File name is /storage/kkm_last_timestamp [12:30:51]Write 4 bytes [12:30:51]NVStorageSaveData done [12:30:51]ExternCall_PrintAddStr [12:30:51]wPrintStart [12:30:51]Write to MH i2c: 01 00 00 23 03 26 [12:30:51]Write i2c OK [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: 01 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: 01 07 00 [12:30:51]MH_I2C_Read... [12:30:51]Read from MH i2c: 01 07 00 23 03 00 00 00 00 00 FF 0F 3B [12:30:51]RasterBufferAndPrint [12:30:51]line Счет N : (3)47641 [12:30:51]line ИНН: 02508201610067 [12:30:51]line Контрольно-Кассовый Чек [12:30:51]line ПРОДАЖА [12:30:51]line Товар: 4700000310043 [12:30:51]line Вода Жалалабат 27 1л [12:30:51]line 1.000 * 79.00 [12:30:51]line = 79.00 [12:30:51]line НДС 12% НСП 1% [12:30:51]line > о реализуемом товаре [12:30:51]line ИТОГО: 79.00 [12:30:51]line НСП 1% : 0.70 [12:30:51]line НДС 12% : 8.39 [12:30:51]line Наличными: 79.00 [12:30:51]line Безнал.: 0.00 [12:30:51]line Место: АЗС № 86 "Партнер Нефть" [12:30:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:30:51]line СНО: Общий режим [12:30:51]line Чек 60 23.10.2024 12:30 [12:30:51]line Смена: 546 ФФД: 1.0 [12:30:51]line ЗНМ: 0300000154 [12:30:51]line РНМ: 0000000000091619 [12:30:51]line Версия ККМ: 001 [12:30:51]line ФМ: 0000000000874676 [12:30:51]line ФД: 63331 [12:30:51]line ФПД: 73231877115314 [12:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123050&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63331&fm=73231877115314&tin=02508201610067®Number=0000000000091619&sum=7900 [12:30:51]line 0 [12:30:51]OFD Sender: Processing packet 63331 [packets to send 232, broken 231] [12:30:51]ProducePacketName [12:30:51]name=ofd_packets/00063331 [12:30:51]OFD Sender: To server: pG, [12:30:51]CommunicateWithHost lk.salyk.kg:30040 [12:30:51]ConnectInit lk.salyk.kg [12:30:51]written 0, free lines is 4095 [12:30:52]Connected sock=10 [12:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 0F 0A 20 01 63 11 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 7A EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 63 F7 00 00 35 04 06 00 42 9A A0 05 8D B2 24 D2 93 02 AB 14 65 97 [12:30:52]Write to MH i2c: 01 00 00 4B 03 4E [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 10 0D 72 [12:30:52]RasterBufferAndPrint [12:30:52]line [12:30:52]line [12:30:52]line [12:30:52]line [12:30:52]line [12:30:52]written 0, free lines is 3350 [12:30:52]MH_Cut [12:30:52]Write to MH i2c: D1 01 00 52 03 01 27 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: D1 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: D1 01 00 [12:30:52]MH_I2C_Read... [12:30:52]Read from MH i2c: D1 01 00 52 03 00 26 [12:30:52]Write to MH i2c: 01 00 00 53 03 56 [12:30:52]Write i2c OK [12:30:52]MH_I2C_Read... [12:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 49 26 47 00 D0 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 63 F7 00 00 F4 03 04 00 72 96 18 67 B6 04 01 00 00 19 89 B7 A7 6B 50 F7 7A [12:30:52]CommunicateWithHost err = 0 [12:30:52]CheckOFDResponse [12:30:52]1017 (14) - 77093643461234 [12:30:52]1041 (16) - 0000000000874676 [12:30:52]1040 (4) - 63331 [12:30:52]1012 (4) - 23.10.2024 06:23 [12:30:52]1206 (1) - 0 [12:30:52]OFD Sender: Remove packet 63331 [12:30:52]ProducePacketName [12:30:52]name=ofd_packets/00063331 [12:30:52]NVStorageDeleteData [12:30:52]*** Cut start [12:30:52]*** Partial cut [12:30:52]*** CUTSNS_PIN = 1 [12:30:52]OFD Sender: No OFD packet to send [12:30:52]*** CUTSNS_PIN = 0 [12:30:53]*** Brake cut motor [12:30:53]Read from MH i2c: 01 [12:30:53]MH_I2C_Read... [12:30:53]*** Stop cut motor [12:30:53]*** Cut end [12:30:53]Read from MH i2c: 01 07 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [12:30:53]process_action close_receipt done [12:30:53]requested_data is exist [12:30:53]produce_requested_data [12:30:53]requested_item fm.sn is exist - process it [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 11 00 00 [12:30:53]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:53]Read from MH i2c: E2 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 17 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2A [12:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:30:53]wFMCommunicate OK [12:30:53]requested_item fd.num is exist - process it [12:30:53]SAM_PROTO_GetFieldsCounters [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 13 00 00 [12:30:53]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:53]Read from MH i2c: E2 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 62 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 62 00 55 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 63 F7 00 00 0E 04 04 00 22 02 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 2E [12:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 63 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:53]wFMCommunicate OK [12:30:53]SAM_PROTO_GetFieldsCounters done [12:30:53]requested_item shift.num is exist - process it [12:30:53]requested_item shift.opened is exist - process it [12:30:53]req_shift_opened [12:30:53]FM_GetShiftState [12:30:53]SAM_PROTO_GetShiftState [12:30:53]wFMCommunicate request_size=4 [12:30:53]MH_SAM_APDU [12:30:53]CAPDU: 80 13 01 00 [12:30:53]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [12:30:53]Write i2c OK [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 [12:30:53]MH_I2C_Read... [12:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:53]Read from MH i2c: E2 0E 00 [12:30:53]MH_I2C_Read... [12:30:53]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 C0 [12:30:53]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:30:53]wFMCommunicate OK [12:30:53]SAM_PROTO_GetShiftState done [12:30:53]FM_GetShiftState done [12:30:53]req_shift_opened done [12:30:53]requested_item shift.open_date is exist - process it [12:30:53]req_shift_open_date [12:30:53]req_shift_open_date done [12:30:53]produce_requested_data done [12:30:53]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63331,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:30:53]process_action_free close_receipt [12:30:53]json_value_free [12:30:53]json_value_free done [12:30:53]process_json_proto returns [12:30:53]Send response to host [12:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63331,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:30:53]free response buf [12:30:53]execute_script done [12:30:53]execute_script returns [12:30:53]free content buf [12:30:53]Sock 9.Close socket [12:30:53]Sock 9.Thread stoped [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:10]accept exits with 7 [12:31:10]New connection [12:31:10]New thread 3066977636 created [12:31:10]Thread 3067120996 joined [12:31:10]Waiting for new connection... [12:31:10] Sock 7.Parse request [12:31:10]Sock 7.Check first char [12:31:10]Sock 7.First char is OK [12:31:10]request: POST /json_proto HTTP/1.0 [12:31:10]Method: POST [12:31:10]URL: /json_proto [12:31:10]Method is POST - this is cgi request [12:31:10]url: /json_proto [12:31:10]query_string will be loaded in cgi processing [12:31:10]execute_cgi json_proto POST (null) [12:31:10]execute_cgi path=json_proto method=POST [12:31:10]POST find Content-Length [12:31:10]Host: 172.17.42.132:8080 [12:31:10]Content-Length: 1001 [12:31:10]Content-Type: application/json [12:31:10] [12:31:10]POST finish read [12:31:10]Found Content-Length = 1001 [12:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47642", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:10]execute_script... [12:31:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47642", "tax_sys" : 0, "items" : [ { "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 174.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:10]POST & json_proto [12:31:10]process_json_proto [12:31:10]json parsed OK: [12:31:10]protocol is kg_v1.0 [12:31:10]action value=close_receipt [12:31:10]process_action close_receipt [12:31:10]cmd_close_receipt [12:31:10]MH_GetDate [12:31:10]Write to MH i2c: F0 00 00 57 03 49 [12:31:10]Write i2c OK [12:31:10]MH_I2C_Read... [12:31:10]Read from MH i2c: F0 [12:31:10]MH_I2C_Read... [12:31:10]Read from MH i2c: F0 09 00 [12:31:10]MH_I2C_Read... [12:31:10]Read from MH i2c: F0 09 00 57 03 00 8F EC 18 67 4C DF 56 66 33 [12:31:10]GetLastDocTimeStamp 1729686650 [12:31:10]current date 1729686671 [12:31:10]FM_GetShiftState [12:31:10]SAM_PROTO_GetShiftState [12:31:10]wFMCommunicate request_size=4 [12:31:10]MH_SAM_APDU [12:31:10]CAPDU: 80 13 01 00 [12:31:10]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [12:31:10]Write i2c OK [12:31:10]MH_I2C_Read... [12:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:10]Read from MH i2c: E2 [12:31:10]MH_I2C_Read... [12:31:10]Read from MH i2c: E2 0E 00 [12:31:10]MH_I2C_Read... [12:31:10]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 C2 [12:31:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:31:10]wFMCommunicate OK [12:31:10]SAM_PROTO_GetShiftState done [12:31:10]FM_GetShiftState done [12:31:10]opened in 1729642527 [12:31:10]opened+sec_in_day 1729728927 [12:31:10]quantity*price = 12500 [12:31:10]sum+1 = 12501 [12:31:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 174.00 НСП 1% : 1.54 НДС 12% : 18.47 Наличными: 174.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 61 23.10.2024 12:31 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63332 ФПД: 184645275720081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123111&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63332&fm=184645275720081&tin=02508201610067®Number=0000000000091619&sum=17400 0 [12:31:12]StoreToDocumentArchive [12:31:12]shift 546 fd 63332 [12:31:12]save to /storage/0546/doc_00063332 [12:31:12]save last doc name /storage/0546/doc_00063332 to /storage/kkm_last_doc_name [12:31:12]save OK [12:31:12]Clear old archive folders... [12:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=414 [12:31:12]tlvbuf is 006FC190 [12:31:12]SAM_PROTO_ClearQueue [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 09 00 00 [12:31:12]Write to MH i2c: E2 08 00 65 03 80 09 00 00 00 00 00 00 DA [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [12:31:12]RAPDU: 90 00 [12:31:12]wFMCommunicate OK [12:31:12]SAM_PROTO_ClearQueue done [12:31:12]KKMCreateOFDPacket [12:31:12]OFDProtocolAddRootSTLVToBuf [12:31:12]FM_MakeSignedData [12:31:12]FM_MakeSignedData [12:31:12]SAM_PROTO_SignData [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 0D 01 02 [12:31:12]Write to MH i2c: E2 08 00 66 03 80 0D 01 02 00 00 00 00 E2 [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [12:31:12]RAPDU: 90 00 [12:31:12]wFMCommunicate OK [12:31:12]wFMCommunicate request_size=255 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [12:31:12]Write to MH i2c: E2 02 01 67 03 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 1D [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [12:31:12]RAPDU: 90 00 [12:31:12]wFMCommunicate OK [12:31:12]wFMCommunicate request_size=173 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 64 F7 00 00 35 04 06 00 A7 EF 14 11 99 91 [12:31:12]Write to MH i2c: E2 B0 00 68 03 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 64 F7 00 00 35 04 06 00 A7 EF 14 11 99 91 00 00 69 [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [12:31:12]RAPDU: 90 00 [12:31:12]wFMCommunicate OK [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 0D 03 02 [12:31:12]Write to MH i2c: E2 08 00 69 03 80 0D 03 02 00 00 00 00 E7 [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 0B 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 0B 00 69 03 00 09 97 F6 BA 31 EA B5 5F 90 00 67 [12:31:12]RAPDU: 09 97 F6 BA 31 EA B5 5F 90 00 [12:31:12]wFMCommunicate OK [12:31:12]SAM_PROTO_SignData done [12:31:12]FM_MakeSignedData done [12:31:12]CreateOFDProtocolMessage [12:31:12]wFMCommunicate request_size=4 [12:31:12]MH_SAM_APDU [12:31:12]CAPDU: 80 11 00 00 [12:31:12]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:12]Read from MH i2c: E2 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 17 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 40 [12:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:31:12]wFMCommunicate OK [12:31:12]CreateOFDProtocolMessage done [12:31:12]OFDSenderStorePacket 63332 [12:31:12]StoreOFDPacket docnum=63332 [12:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B2 01 00 00 BB 22 AA 01 4B 37 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 64 F7 00 00 35 04 06 00 A7 EF 14 11 99 91 09 97 F6 BA 31 EA B5 5F [12:31:12]CheckFolder [12:31:12]dirname=/storage/ofd_packets [12:31:12]CheckFolder done [12:31:12]ProducePacketName [12:31:12]name=ofd_packets/00063332 [12:31:12]NVStorageSaveData ofd_packets/00063332 [12:31:12]File name is /storage/ofd_packets/00063332 [12:31:12]Write 464 bytes [12:31:12]NVStorageSaveData done [12:31:12]OFDSenderStorePacket done [12:31:12]KKMCreateOFDPacket done [12:31:12]NVStorageSaveData kkm_last_timestamp [12:31:12]File name is /storage/kkm_last_timestamp [12:31:12]Write 4 bytes [12:31:12]NVStorageSaveData done [12:31:12]ExternCall_PrintAddStr [12:31:12]wPrintStart [12:31:12]Write to MH i2c: 01 00 00 6B 03 6E [12:31:12]Write i2c OK [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: 01 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: 01 07 00 [12:31:12]MH_I2C_Read... [12:31:12]Read from MH i2c: 01 07 00 6B 03 00 00 00 00 00 FF 0F 83 [12:31:12]RasterBufferAndPrint [12:31:12]line Счет N : (3)47642 [12:31:12]line ИНН: 02508201610067 [12:31:13]line Контрольно-Кассовый Чек [12:31:13]line ПРОДАЖА [12:31:13]line Товар: 4780111550484 [12:31:13]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [12:31:13]line 1.000 * 125.00 [12:31:13]line = 125.00 [12:31:13]line НДС 12% НСП 1% [12:31:13]line > о реализуемом товаре [12:31:13]line Товар: 4700000310326 [12:31:13]line Вода Адыгене 1л б/г [12:31:13]line 1.000 * 49.00 [12:31:13]line = 49.00 [12:31:13]line НДС 12% НСП 1% [12:31:13]line > о реализуемом товаре [12:31:13]line ИТОГО: 174.00 [12:31:13]line НСП 1% : 1.54 [12:31:13]line НДС 12% : 18.47 [12:31:13]line Наличными: 174.00 [12:31:13]line Безнал.: 0.00 [12:31:13]line Место: АЗС № 86 "Партнер Нефть" [12:31:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:31:13]line СНО: Общий режим [12:31:13]line Чек 61 23.10.2024 12:31 [12:31:13]line Смена: 546 ФФД: 1.0 [12:31:13]line ЗНМ: 0300000154 [12:31:13]line РНМ: 0000000000091619 [12:31:13]line Версия ККМ: 001 [12:31:13]line ФМ: 0000000000874676 [12:31:13]line ФД: 63332 [12:31:13]line ФПД: 184645275720081 [12:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123111&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63332&fm=184645275720081&tin=02508201610067®Number=0000000000091619&sum=17400 [12:31:13]line 0 [12:31:13]OFD Sender: Processing packet 63332 [packets to send 232, broken 231] [12:31:13]ProducePacketName [12:31:13]name=ofd_packets/00063332 [12:31:13]OFD Sender: To server: pG, [12:31:13]CommunicateWithHost lk.salyk.kg:30040 [12:31:13]ConnectInit lk.salyk.kg [12:31:13]written 0, free lines is 4095 [12:31:13]Connected sock=10 [12:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B2 01 00 00 BB 22 AA 01 4B 37 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 43 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 07 00 00 00 00 07 04 06 00 F8 43 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8F EC 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 64 F7 00 00 35 04 06 00 A7 EF 14 11 99 91 09 97 F6 BA 31 EA B5 5F [12:31:13]Write to MH i2c: 01 00 00 9A 03 9D [12:31:13]Write i2c OK [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: 01 [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: 01 07 00 [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 C6 0C 76 [12:31:13]RasterBufferAndPrint [12:31:13]line [12:31:13]line [12:31:13]line [12:31:13]line [12:31:13]line [12:31:13]written 0, free lines is 3276 [12:31:13]MH_Cut [12:31:13]Write to MH i2c: D1 01 00 A1 03 01 76 [12:31:13]Write i2c OK [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: D1 [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: D1 01 00 [12:31:13]MH_I2C_Read... [12:31:13]Read from MH i2c: D1 01 00 A1 03 00 75 [12:31:13]Write to MH i2c: 01 00 00 A2 03 A5 [12:31:13]Write i2c OK [12:31:13]MH_I2C_Read... [12:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C7 58 47 00 8A FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 64 F7 00 00 F4 03 04 00 87 96 18 67 B6 04 01 00 00 17 51 F9 95 63 0E CC AA [12:31:13]CommunicateWithHost err = 0 [12:31:13]CheckOFDResponse [12:31:13]1017 (14) - 77093643461234 [12:31:13]1041 (16) - 0000000000874676 [12:31:13]1040 (4) - 63332 [12:31:13]1012 (4) - 23.10.2024 06:24 [12:31:13]1206 (1) - 0 [12:31:13]OFD Sender: Remove packet 63332 [12:31:13]ProducePacketName [12:31:13]name=ofd_packets/00063332 [12:31:13]NVStorageDeleteData [12:31:14]OFD Sender: No OFD packet to send [12:31:14]*** Cut start [12:31:14]*** Partial cut [12:31:14]*** CUTSNS_PIN = 1 [12:31:14]*** CUTSNS_PIN = 0 [12:31:14]*** Brake cut motor [12:31:14]Read from MH i2c: 01 [12:31:14]MH_I2C_Read... [12:31:14]*** Stop cut motor [12:31:14]*** Cut end [12:31:14]Read from MH i2c: 01 07 00 [12:31:14]MH_I2C_Read... [12:31:14]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 FF 0F BA [12:31:14]process_action close_receipt done [12:31:14]requested_data is exist [12:31:14]produce_requested_data [12:31:14]requested_item fm.sn is exist - process it [12:31:14]wFMCommunicate request_size=4 [12:31:14]MH_SAM_APDU [12:31:14]CAPDU: 80 11 00 00 [12:31:14]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [12:31:14]Write i2c OK [12:31:14]MH_I2C_Read... [12:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:15]Read from MH i2c: E2 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 17 00 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 79 [12:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:31:15]wFMCommunicate OK [12:31:15]requested_item fd.num is exist - process it [12:31:15]SAM_PROTO_GetFieldsCounters [12:31:15]wFMCommunicate request_size=4 [12:31:15]MH_SAM_APDU [12:31:15]CAPDU: 80 13 00 00 [12:31:15]Write to MH i2c: E2 08 00 A4 03 80 13 00 00 00 00 00 00 23 [12:31:15]Write i2c OK [12:31:15]MH_I2C_Read... [12:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:15]Read from MH i2c: E2 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 62 00 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 62 00 A4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 64 F7 00 00 0E 04 04 00 22 02 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 81 [12:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 64 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:15]wFMCommunicate OK [12:31:15]SAM_PROTO_GetFieldsCounters done [12:31:15]requested_item shift.num is exist - process it [12:31:15]requested_item shift.opened is exist - process it [12:31:15]req_shift_opened [12:31:15]FM_GetShiftState [12:31:15]SAM_PROTO_GetShiftState [12:31:15]wFMCommunicate request_size=4 [12:31:15]MH_SAM_APDU [12:31:15]CAPDU: 80 13 01 00 [12:31:15]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [12:31:15]Write i2c OK [12:31:15]MH_I2C_Read... [12:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:15]Read from MH i2c: E2 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 0E 00 [12:31:15]MH_I2C_Read... [12:31:15]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 0F [12:31:15]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:31:15]wFMCommunicate OK [12:31:15]SAM_PROTO_GetShiftState done [12:31:15]FM_GetShiftState done [12:31:15]req_shift_opened done [12:31:15]requested_item shift.open_date is exist - process it [12:31:15]req_shift_open_date [12:31:15]req_shift_open_date done [12:31:15]produce_requested_data done [12:31:15]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63332,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:31:15]process_action_free close_receipt [12:31:15]json_value_free [12:31:15]json_value_free done [12:31:15]process_json_proto returns [12:31:15]Send response to host [12:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63332,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:31:15]free response buf [12:31:15]execute_script done [12:31:15]execute_script returns [12:31:15]free content buf [12:31:15]Sock 7.Close socket [12:31:15]Sock 7.Thread stoped [12:31:16]int [12:31:16]Write to MH i2c: 01 00 00 A6 03 A9 [12:31:16]*** FLAG_PRN_PAP1 set [12:31:16]Write i2c OK [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: 01 [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: 01 07 00 [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: 01 07 00 A6 03 00 01 00 00 00 FF 0F BF [12:31:16]state=0 [12:31:16]No paper [12:31:19]OFD Sender: No OFD packet to send [12:31:20]int [12:31:20]Write to MH i2c: 01 00 00 A7 03 AA [12:31:20]*** FLAG_PRN_PAP1 reset [12:31:20]Write i2c OK [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 [12:31:20]MH_I2C_Read... [12:31:20]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [12:31:20]state=0 [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:15]accept exits with 9 [12:33:15]New connection [12:33:15]New thread 3067120996 created [12:33:15]Thread 3066977636 joined [12:33:15]Waiting for new connection... [12:33:15] Sock 9.Parse request [12:33:15]Sock 9.Check first char [12:33:15]Sock 9.First char is OK [12:33:15]request: POST /json_proto HTTP/1.0 [12:33:15]Method: POST [12:33:15]URL: /json_proto [12:33:15]Method is POST - this is cgi request [12:33:15]url: /json_proto [12:33:15]query_string will be loaded in cgi processing [12:33:15]execute_cgi json_proto POST (null) [12:33:15]execute_cgi path=json_proto method=POST [12:33:15]POST find Content-Length [12:33:15]Host: 172.17.42.132:8080 [12:33:15]Content-Length: 645 [12:33:15]Content-Type: application/json [12:33:15] [12:33:15]POST finish read [12:33:15]Found Content-Length = 645 [12:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47643", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:15]execute_script... [12:33: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 : (3)47643", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:15]POST & json_proto [12:33:15]process_json_proto [12:33:15]json parsed OK: [12:33:15]protocol is kg_v1.0 [12:33:15]action value=close_receipt [12:33:15]process_action close_receipt [12:33:15]cmd_close_receipt [12:33:15]MH_GetDate [12:33:15]Write to MH i2c: F0 00 00 A8 03 9A [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 09 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: F0 09 00 A8 03 00 0C ED 18 67 4C DF 56 66 02 [12:33:15]GetLastDocTimeStamp 1729686671 [12:33:15]current date 1729686796 [12:33:15]FM_GetShiftState [12:33:15]SAM_PROTO_GetShiftState [12:33:15]wFMCommunicate request_size=4 [12:33:15]MH_SAM_APDU [12:33:15]CAPDU: 80 13 01 00 [12:33:15]Write to MH i2c: E2 08 00 A9 03 80 13 01 00 00 00 00 00 29 [12:33:15]Write i2c OK [12:33:15]MH_I2C_Read... [12:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:15]Read from MH i2c: E2 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 [12:33:15]MH_I2C_Read... [12:33:15]Read from MH i2c: E2 0E 00 A9 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 13 [12:33:15]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:33:15]wFMCommunicate OK [12:33:15]SAM_PROTO_GetShiftState done [12:33:15]FM_GetShiftState done [12:33:15]opened in 1729642527 [12:33:15]opened+sec_in_day 1729728927 [12:33:15]quantity*price = 13000 [12:33:15]sum+1 = 13001 [12:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 62 23.10.2024 12:33 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63333 ФПД: 212870498246882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123316&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63333&fm=212870498246882&tin=02508201610067®Number=0000000000091619&sum=13000 0 [12:33:17]StoreToDocumentArchive [12:33:17]shift 546 fd 63333 [12:33:17]save to /storage/0546/doc_00063333 [12:33:17]save last doc name /storage/0546/doc_00063333 to /storage/kkm_last_doc_name [12:33:17]save OK [12:33:17]Clear old archive folders... [12:33:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:33:17]tlvbuf is 0070C1D0 [12:33:17]SAM_PROTO_ClearQueue [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 09 00 00 [12:33:17]Write to MH i2c: E2 08 00 B6 03 80 09 00 00 00 00 00 00 2B [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [12:33:17]RAPDU: 90 00 [12:33:17]wFMCommunicate OK [12:33:17]SAM_PROTO_ClearQueue done [12:33:17]KKMCreateOFDPacket [12:33:17]OFDProtocolAddRootSTLVToBuf [12:33:17]FM_MakeSignedData [12:33:17]FM_MakeSignedData [12:33:17]SAM_PROTO_SignData [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 0D 01 02 [12:33:17]Write to MH i2c: E2 08 00 B7 03 80 0D 01 02 00 00 00 00 33 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [12:33:17]RAPDU: 90 00 [12:33:17]wFMCommunicate OK [12:33:17]wFMCommunicate request_size=255 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0C ED 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [12:33:17]Write to MH i2c: E2 02 01 B8 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0C ED 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 1D [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [12:33:17]RAPDU: 90 00 [12:33:17]wFMCommunicate OK [12:33:17]wFMCommunicate request_size=41 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F7 00 00 35 04 06 00 C1 9A C6 6E 60 E2 [12:33:17]Write to MH i2c: E2 2C 00 B9 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F7 00 00 35 04 06 00 C1 9A C6 6E 60 E2 00 00 38 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [12:33:17]RAPDU: 90 00 [12:33:17]wFMCommunicate OK [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 0D 03 02 [12:33:17]Write to MH i2c: E2 08 00 BA 03 80 0D 03 02 00 00 00 00 38 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0B 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0B 00 BA 03 00 DB F5 8B ED BB 73 B8 86 90 00 ED [12:33:17]RAPDU: DB F5 8B ED BB 73 B8 86 90 00 [12:33:17]wFMCommunicate OK [12:33:17]SAM_PROTO_SignData done [12:33:17]FM_MakeSignedData done [12:33:17]CreateOFDProtocolMessage [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 11 00 00 [12:33:17]Write to MH i2c: E2 08 00 BB 03 80 11 00 00 00 00 00 00 38 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 17 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 17 00 BB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 91 [12:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:33:17]wFMCommunicate OK [12:33:17]CreateOFDProtocolMessage done [12:33:17]OFDSenderStorePacket 63333 [12:33:17]StoreOFDPacket docnum=63333 [12:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 4F 5D 26 01 98 26 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0C ED 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F7 00 00 35 04 06 00 C1 9A C6 6E 60 E2 DB F5 8B ED BB 73 B8 86 [12:33:17]CheckFolder [12:33:17]dirname=/storage/ofd_packets [12:33:17]CheckFolder done [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00063333 [12:33:17]NVStorageSaveData ofd_packets/00063333 [12:33:17]File name is /storage/ofd_packets/00063333 [12:33:17]Write 332 bytes [12:33:17]NVStorageSaveData done [12:33:17]OFDSenderStorePacket done [12:33:17]KKMCreateOFDPacket done [12:33:17]NVStorageSaveData kkm_last_timestamp [12:33:17]File name is /storage/kkm_last_timestamp [12:33:17]Write 4 bytes [12:33:17]NVStorageSaveData done [12:33:17]ExternCall_PrintAddStr [12:33:17]wPrintStart [12:33:17]Write to MH i2c: 01 00 00 BC 03 BF [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 FF 0F D4 [12:33:17]RasterBufferAndPrint [12:33:17]line Счет N : (3)47643 [12:33:17]line ИНН: 02508201610067 [12:33:17]line Контрольно-Кассовый Чек [12:33:17]line ПРОДАЖА [12:33:17]line Товар: 2000036220012 [12:33:17]line Кофе Капучино XL(GABB TRADE) [12:33:17]line 1.000 * 130.00 [12:33:17]line = 130.00 [12:33:17]line НДС 12% НСП 1% [12:33:17]line > о реализуемом товаре [12:33:17]line ИТОГО: 130.00 [12:33:17]line НСП 1% : 1.15 [12:33:17]line НДС 12% : 13.80 [12:33:17]line Наличными: 130.00 [12:33:17]line Безнал.: 0.00 [12:33:17]line Место: АЗС № 86 "Партнер Нефть" [12:33:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:33:17]line СНО: Общий режим [12:33:17]line Чек 62 23.10.2024 12:33 [12:33:17]line Смена: 546 ФФД: 1.0 [12:33:17]line ЗНМ: 0300000154 [12:33:17]line РНМ: 0000000000091619 [12:33:17]line Версия ККМ: 001 [12:33:17]line ФМ: 0000000000874676 [12:33:17]line ФД: 63333 [12:33:17]line ФПД: 212870498246882 [12:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T123316&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63333&fm=212870498246882&tin=02508201610067®Number=0000000000091619&sum=13000 [12:33:17]line 0 [12:33:17]OFD Sender: Processing packet 63333 [packets to send 232, broken 231] [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00063333 [12:33:17]OFD Sender: To server: pG, [12:33:17]CommunicateWithHost lk.salyk.kg:30040 [12:33:17]ConnectInit lk.salyk.kg [12:33:17]written 0, free lines is 4095 [12:33:18]Connected sock=10 [12:33:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 4F 5D 26 01 98 26 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 0C ED 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F7 00 00 35 04 06 00 C1 9A C6 6E 60 E2 DB F5 8B ED BB 73 B8 86 [12:33:18]Write to MH i2c: 01 00 00 E5 03 E8 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 07 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 02 0D FE [12:33:18]RasterBufferAndPrint [12:33:18]line [12:33:18]line [12:33:18]line [12:33:18]line [12:33:18]line [12:33:18]written 0, free lines is 3336 [12:33:18]MH_Cut [12:33:18]Write to MH i2c: D1 01 00 EC 03 01 C1 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: D1 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: D1 01 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: D1 01 00 EC 03 00 C0 [12:33:18]Write to MH i2c: 01 00 00 ED 03 F0 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 14 72 47 00 5F 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 65 F7 00 00 F4 03 04 00 04 97 18 67 B6 04 01 00 00 D4 11 8D 7D 03 86 02 C1 [12:33:18]CommunicateWithHost err = 0 [12:33:18]CheckOFDResponse [12:33:18]1017 (14) - 77093643461234 [12:33:18]1041 (16) - 0000000000874676 [12:33:18]1040 (4) - 63333 [12:33:18]1012 (4) - 23.10.2024 06:26 [12:33:18]1206 (1) - 0 [12:33:18]OFD Sender: Remove packet 63333 [12:33:18]ProducePacketName [12:33:18]name=ofd_packets/00063333 [12:33:18]NVStorageDeleteData [12:33:18]OFD Sender: No OFD packet to send [12:33:19]*** Cut start [12:33:19]*** Partial cut [12:33:19]*** CUTSNS_PIN = 1 [12:33:19]*** CUTSNS_PIN = 0 [12:33:19]*** Brake cut motor [12:33:19]Read from MH i2c: 01 [12:33:19]MH_I2C_Read... [12:33:19]*** Stop cut motor [12:33:19]*** Cut end [12:33:19]Read from MH i2c: 01 07 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 FF 0F 05 [12:33:19]process_action close_receipt done [12:33:19]requested_data is exist [12:33:19]produce_requested_data [12:33:19]requested_item fm.sn is exist - process it [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 11 00 00 [12:33:19]Write to MH i2c: E2 08 00 EE 03 80 11 00 00 00 00 00 00 6B [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 EE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C4 [12:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:33:19]wFMCommunicate OK [12:33:19]requested_item fd.num is exist - process it [12:33:19]SAM_PROTO_GetFieldsCounters [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 00 00 [12:33:19]Write to MH i2c: E2 08 00 EF 03 80 13 00 00 00 00 00 00 6E [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 EF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 65 F7 00 00 0E 04 04 00 22 02 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 D0 [12:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 65 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetFieldsCounters done [12:33:19]requested_item shift.num is exist - process it [12:33:19]requested_item shift.opened is exist - process it [12:33:19]req_shift_opened [12:33:19]FM_GetShiftState [12:33:19]SAM_PROTO_GetShiftState [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 01 00 [12:33:19]Write to MH i2c: E2 08 00 F0 03 80 13 01 00 00 00 00 00 70 [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 F0 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5A [12:33:19]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetShiftState done [12:33:19]FM_GetShiftState done [12:33:19]req_shift_opened done [12:33:19]requested_item shift.open_date is exist - process it [12:33:19]req_shift_open_date [12:33:19]req_shift_open_date done [12:33:19]produce_requested_data done [12:33:19]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63333,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:33:19]process_action_free close_receipt [12:33:19]json_value_free [12:33:19]json_value_free done [12:33:19]process_json_proto returns [12:33:19]Send response to host [12:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63333,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:33:19]free response buf [12:33:19]execute_script done [12:33:19]execute_script returns [12:33:19]free content buf [12:33:19]Sock 9.Close socket [12:33:19]Sock 9.Thread stoped [12:33:23]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:16]accept exits with 7 [12:43:16]New connection [12:43:16]New thread 3066977636 created [12:43:16]Thread 3067120996 joined [12:43:16]Waiting for new connection... [12:43:16] Sock 7.Parse request [12:43:16]Sock 7.Check first char [12:43:16]Sock 7.First char is OK [12:43:16]request: POST /json_proto HTTP/1.0 [12:43:16]Method: POST [12:43:16]URL: /json_proto [12:43:16]Method is POST - this is cgi request [12:43:16]url: /json_proto [12:43:16]query_string will be loaded in cgi processing [12:43:16]execute_cgi json_proto POST (null) [12:43:16]execute_cgi path=json_proto method=POST [12:43:16]POST find Content-Length [12:43:16]Host: 172.17.42.132:8080 [12:43:16]Content-Length: 732 [12:43:16]Content-Type: application/json [12:43:16] [12:43:16]POST finish read [12:43:16]Found Content-Length = 732 [12:43:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47644", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:16]execute_script... [12:43:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47644", "tax_sys" : 0, "items" : [ { "code": "4630007401201", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0441\u043E\u043B\u0435\u043D\u044B\u0435 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:16]POST & json_proto [12:43:16]process_json_proto [12:43:16]json parsed OK: [12:43:16]protocol is kg_v1.0 [12:43:16]action value=close_receipt [12:43:16]process_action close_receipt [12:43:16]cmd_close_receipt [12:43:16]MH_GetDate [12:43:16]Write to MH i2c: F0 00 00 F1 03 E3 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: F0 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: F0 09 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: F0 09 00 F1 03 00 65 EF 18 67 4C DF 56 66 A6 [12:43:16]GetLastDocTimeStamp 1729686796 [12:43:16]current date 1729687397 [12:43:16]FM_GetShiftState [12:43:16]SAM_PROTO_GetShiftState [12:43:16]wFMCommunicate request_size=4 [12:43:16]MH_SAM_APDU [12:43:16]CAPDU: 80 13 01 00 [12:43:16]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [12:43:16]Write i2c OK [12:43:16]MH_I2C_Read... [12:43:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:16]Read from MH i2c: E2 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 0E 00 [12:43:16]MH_I2C_Read... [12:43:16]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5C [12:43:16]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:43:16]wFMCommunicate OK [12:43:16]SAM_PROTO_GetShiftState done [12:43:16]FM_GetShiftState done [12:43:16]opened in 1729642527 [12:43:16]opened+sec_in_day 1729728927 [12:43:16]quantity*price = 12000 [12:43:16]sum+1 = 12001 [12:43:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 63 23.10.2024 12:43 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63334 ФПД: 44526102978017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124317&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63334&fm=44526102978017&tin=02508201610067®Number=0000000000091619&sum=12000 0 [12:43:17]StoreToDocumentArchive [12:43:17]shift 546 fd 63334 [12:43:17]save to /storage/0546/doc_00063334 [12:43:17]save last doc name /storage/0546/doc_00063334 to /storage/kkm_last_doc_name [12:43:17]save OK [12:43:17]Clear old archive folders... [12:43:17]ProcessDocumentItem done err = 0, tmpTLVsize=305 [12:43:17]tlvbuf is 006F6DA0 [12:43:17]SAM_PROTO_ClearQueue [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 09 00 00 [12:43:17]Write to MH i2c: E2 08 00 FF 03 80 09 00 00 00 00 00 00 74 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 03 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [12:43:17]RAPDU: 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_ClearQueue done [12:43:17]KKMCreateOFDPacket [12:43:17]OFDProtocolAddRootSTLVToBuf [12:43:17]FM_MakeSignedData [12:43:17]FM_MakeSignedData [12:43:17]SAM_PROTO_SignData [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 0D 01 02 [12:43:17]Write to MH i2c: E2 08 00 00 04 80 0D 01 02 00 00 00 00 7D [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=255 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 65 EF 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 [12:43:18]Write to MH i2c: E2 02 01 01 04 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 65 EF 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 00 00 83 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=64 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F7 00 00 35 04 06 00 28 7F 0A 8D 1D E1 [12:43:18]Write to MH i2c: E2 43 00 02 04 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F7 00 00 35 04 06 00 28 7F 0A 8D 1D E1 00 00 6D [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 03 02 [12:43:18]Write to MH i2c: E2 08 00 03 04 80 0D 03 02 00 00 00 00 82 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0B 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 0B 00 03 04 00 DA B8 3B 32 35 89 D6 AA 90 00 C0 [12:43:18]RAPDU: DA B8 3B 32 35 89 D6 AA 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_SignData done [12:43:18]FM_MakeSignedData done [12:43:18]CreateOFDProtocolMessage [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 11 00 00 [12:43:18]Write to MH i2c: E2 08 00 04 04 80 11 00 00 00 00 00 00 82 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 17 00 04 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DB [12:43:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:43:18]wFMCommunicate OK [12:43:18]CreateOFDProtocolMessage done [12:43:18]OFDSenderStorePacket 63334 [12:43:18]StoreOFDPacket docnum=63334 [12:43:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 45 01 00 00 05 4C 3D 01 F0 C1 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 65 EF 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F7 00 00 35 04 06 00 28 7F 0A 8D 1D E1 DA B8 3B 32 35 89 D6 AA [12:43:18]CheckFolder [12:43:18]dirname=/storage/ofd_packets [12:43:18]CheckFolder done [12:43:18]ProducePacketName [12:43:18]name=ofd_packets/00063334 [12:43:18]NVStorageSaveData ofd_packets/00063334 [12:43:18]File name is /storage/ofd_packets/00063334 [12:43:18]Write 355 bytes [12:43:18]NVStorageSaveData done [12:43:18]OFDSenderStorePacket done [12:43:18]KKMCreateOFDPacket done [12:43:18]NVStorageSaveData kkm_last_timestamp [12:43:18]File name is /storage/kkm_last_timestamp [12:43:18]Write 4 bytes [12:43:18]NVStorageSaveData done [12:43:18]ExternCall_PrintAddStr [12:43:18]wPrintStart [12:43:18]Write to MH i2c: 01 00 00 05 04 09 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 07 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 FF 0F 1E [12:43:18]RasterBufferAndPrint [12:43:18]line Счет N : (3)47644 [12:43:18]line ИНН: 02508201610067 [12:43:18]line Контрольно-Кассовый Чек [12:43:18]line ПРОДАЖА [12:43:18]line Товар: 4630007401201 [12:43:18]line Семечки соленые ДЖИНН Великан 100гр [12:43:18]line 1.000 * 120.00 [12:43:18]line = 120.00 [12:43:18]line НДС 12% НСП 1% [12:43:18]line > о реализуемом товаре [12:43:18]line ИТОГО: 120.00 [12:43:18]line НСП 1% : 1.06 [12:43:18]line НДС 12% : 12.74 [12:43:18]line Наличными: 120.00 [12:43:18]line Безнал.: 0.00 [12:43:18]line Место: АЗС № 86 "Партнер Нефть" [12:43:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:43:18]line СНО: Общий режим [12:43:18]line Чек 63 23.10.2024 12:43 [12:43:18]line Смена: 546 ФФД: 1.0 [12:43:18]line ЗНМ: 0300000154 [12:43:18]line РНМ: 0000000000091619 [12:43:18]line Версия ККМ: 001 [12:43:18]line ФМ: 0000000000874676 [12:43:18]line ФД: 63334 [12:43:18]line ФПД: 44526102978017 [12:43:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124317&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63334&fm=44526102978017&tin=02508201610067®Number=0000000000091619&sum=12000 [12:43:18]line 0 [12:43:18]OFD Sender: Processing packet 63334 [packets to send 232, broken 231] [12:43:18]ProducePacketName [12:43:18]name=ofd_packets/00063334 [12:43:18]OFD Sender: To server: pG, [12:43:18]CommunicateWithHost lk.salyk.kg:30040 [12:43:18]ConnectInit lk.salyk.kg [12:43:18]written 0, free lines is 4095 [12:43:19]Connected sock=10 [12:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 45 01 00 00 05 4C 3D 01 F0 C1 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 31 32 30 31 06 04 3F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 B5 D0 BD D1 8B D0 B5 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 65 EF 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F7 00 00 35 04 06 00 28 7F 0A 8D 1D E1 DA B8 3B 32 35 89 D6 AA [12:43:19]Write to MH i2c: 01 00 00 2E 04 32 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 01 0D 47 [12:43:19]RasterBufferAndPrint [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]line [12:43:19]written 0, free lines is 3335 [12:43:19]MH_Cut [12:43:19]Write to MH i2c: D1 01 00 35 04 01 0B [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 01 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: D1 01 00 35 04 00 0A [12:43:19]Write to MH i2c: 01 00 00 36 04 3A [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 B8 72 47 00 4E 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 66 F7 00 00 F4 03 04 00 5D 99 18 67 B6 04 01 00 00 C4 54 6A A7 71 10 D2 00 [12:43:19]CommunicateWithHost err = 0 [12:43:19]CheckOFDResponse [12:43:19]1017 (14) - 77093643461234 [12:43:19]1041 (16) - 0000000000874676 [12:43:19]1040 (4) - 63334 [12:43:19]1012 (4) - 23.10.2024 06:36 [12:43:19]1206 (1) - 0 [12:43:19]OFD Sender: Remove packet 63334 [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00063334 [12:43:19]NVStorageDeleteData [12:43:19]*** Cut start [12:43:19]*** Partial cut [12:43:19]*** CUTSNS_PIN = 1 [12:43:19]*** CUTSNS_PIN = 0 [12:43:20]OFD Sender: No OFD packet to send [12:43:20]*** Brake cut motor [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]*** Stop cut motor [12:43:20]*** Cut end [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 36 04 00 00 00 00 00 FF 0F 4F [12:43:20]process_action close_receipt done [12:43:20]requested_data is exist [12:43:20]produce_requested_data [12:43:20]requested_item fm.sn is exist - process it [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 11 00 00 [12:43:20]Write to MH i2c: E2 08 00 37 04 80 11 00 00 00 00 00 00 B5 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:20]Read from MH i2c: E2 17 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 17 00 37 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0E [12:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:43:20]wFMCommunicate OK [12:43:20]requested_item fd.num is exist - process it [12:43:20]SAM_PROTO_GetFieldsCounters [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 13 00 00 [12:43:20]Write to MH i2c: E2 08 00 38 04 80 13 00 00 00 00 00 00 B8 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 62 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 62 00 38 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 66 F7 00 00 0E 04 04 00 22 02 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 1E [12:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 66 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_GetFieldsCounters done [12:43:20]requested_item shift.num is exist - process it [12:43:20]requested_item shift.opened is exist - process it [12:43:20]req_shift_opened [12:43:20]FM_GetShiftState [12:43:20]SAM_PROTO_GetShiftState [12:43:20]wFMCommunicate request_size=4 [12:43:20]MH_SAM_APDU [12:43:20]CAPDU: 80 13 01 00 [12:43:20]Write to MH i2c: E2 08 00 39 04 80 13 01 00 00 00 00 00 BA [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:20]Read from MH i2c: E2 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: E2 0E 00 39 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A4 [12:43:20]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:43:20]wFMCommunicate OK [12:43:20]SAM_PROTO_GetShiftState done [12:43:20]FM_GetShiftState done [12:43:20]req_shift_opened done [12:43:20]requested_item shift.open_date is exist - process it [12:43:20]req_shift_open_date [12:43:20]req_shift_open_date done [12:43:20]produce_requested_data done [12:43:20]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63334,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:43:20]process_action_free close_receipt [12:43:20]json_value_free [12:43:20]json_value_free done [12:43:20]process_json_proto returns [12:43:20]Send response to host [12:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63334,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:43:20]free response buf [12:43:20]execute_script done [12:43:20]execute_script returns [12:43:20]free content buf [12:43:20]Sock 7.Close socket [12:43:20]Sock 7.Thread stoped [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:10]accept exits with 9 [12:46:10]New connection [12:46:10]New thread 3067120996 created [12:46:10]Thread 3066977636 joined [12:46:10]Waiting for new connection... [12:46:10] Sock 9.Parse request [12:46:10]Sock 9.Check first char [12:46:10]Sock 9.First char is OK [12:46:10]request: POST /json_proto HTTP/1.0 [12:46:10]Method: POST [12:46:10]URL: /json_proto [12:46:10]Method is POST - this is cgi request [12:46:10]url: /json_proto [12:46:10]query_string will be loaded in cgi processing [12:46:10]execute_cgi json_proto POST (null) [12:46:10]execute_cgi path=json_proto method=POST [12:46:10]POST find Content-Length [12:46:10]Host: 172.17.42.132:8080 [12:46:10]Content-Length: 748 [12:46:10]Content-Type: application/json [12:46:10] [12:46:10]POST finish read [12:46:10]Found Content-Length = 748 [12:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47645", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "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", "payments": [ { "type": 1, "sum" : 157.59 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]execute_script... [12:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47645", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 157.59, "quantity" : 1.000, "sum" : 157.59, "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", "payments": [ { "type": 1, "sum" : 157.59 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:10]POST & json_proto [12:46:10]process_json_proto [12:46:10]json parsed OK: [12:46:10]protocol is kg_v1.0 [12:46:10]action value=close_receipt [12:46:10]process_action close_receipt [12:46:10]cmd_close_receipt [12:46:10]MH_GetDate [12:46:10]Write to MH i2c: F0 00 00 3A 04 2D [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: F0 09 00 3A 04 00 13 F0 18 67 4C DF 56 66 9F [12:46:10]GetLastDocTimeStamp 1729687397 [12:46:10]current date 1729687571 [12:46:10]FM_GetShiftState [12:46:10]SAM_PROTO_GetShiftState [12:46:10]wFMCommunicate request_size=4 [12:46:10]MH_SAM_APDU [12:46:10]CAPDU: 80 13 01 00 [12:46:10]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [12:46:10]Write i2c OK [12:46:10]MH_I2C_Read... [12:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:10]Read from MH i2c: E2 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 [12:46:10]MH_I2C_Read... [12:46:10]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A6 [12:46:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:46:10]wFMCommunicate OK [12:46:10]SAM_PROTO_GetShiftState done [12:46:10]FM_GetShiftState done [12:46:10]opened in 1729642527 [12:46:10]opened+sec_in_day 1729728927 [12:46:10]quantity*price = 15759 [12:46:10]sum+1 = 15760 [12:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 157.59 НСП 1% : 1.39 НДС 12% : 16.73 Наличными: 0.00 Безнал.: 157.59 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 64 23.10.2024 12:46 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63335 ФПД: 34172119941984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63335&fm=34172119941984&tin=02508201610067®Number=0000000000091619&sum=15759 0 [12:46:11]StoreToDocumentArchive [12:46:11]shift 546 fd 63335 [12:46:11]save to /storage/0546/doc_00063335 [12:46:11]save last doc name /storage/0546/doc_00063335 to /storage/kkm_last_doc_name [12:46:11]save OK [12:46:11]Clear old archive folders... [12:46:11]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:46:11]tlvbuf is B6EEA230 [12:46:11]SAM_PROTO_ClearQueue [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 09 00 00 [12:46:11]Write to MH i2c: E2 08 00 48 04 80 09 00 00 00 00 00 00 BE [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]SAM_PROTO_ClearQueue done [12:46:11]KKMCreateOFDPacket [12:46:11]OFDProtocolAddRootSTLVToBuf [12:46:11]FM_MakeSignedData [12:46:11]FM_MakeSignedData [12:46:11]SAM_PROTO_SignData [12:46:11]wFMCommunicate request_size=4 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 01 02 [12:46:11]Write to MH i2c: E2 08 00 49 04 80 0D 01 02 00 00 00 00 C6 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=255 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [12:46:11]Write to MH i2c: E2 02 01 4A 04 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 88 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:11]Read from MH i2c: E2 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 [12:46:11]MH_I2C_Read... [12:46:11]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [12:46:11]RAPDU: 90 00 [12:46:11]wFMCommunicate OK [12:46:11]wFMCommunicate request_size=33 [12:46:11]MH_SAM_APDU [12:46:11]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F7 00 00 35 04 06 00 1F 14 51 12 03 60 [12:46:11]Write to MH i2c: E2 24 00 4B 04 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F7 00 00 35 04 06 00 1F 14 51 12 03 60 00 00 B5 [12:46:11]Write i2c OK [12:46:11]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [12:46:12]RAPDU: 90 00 [12:46:12]wFMCommunicate OK [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 0D 03 02 [12:46:12]Write to MH i2c: E2 08 00 4C 04 80 0D 03 02 00 00 00 00 CB [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 0B 00 4C 04 00 91 1D 53 4E A8 18 D9 D3 90 00 87 [12:46:12]RAPDU: 91 1D 53 4E A8 18 D9 D3 90 00 [12:46:12]wFMCommunicate OK [12:46:12]SAM_PROTO_SignData done [12:46:12]FM_MakeSignedData done [12:46:12]CreateOFDProtocolMessage [12:46:12]wFMCommunicate request_size=4 [12:46:12]MH_SAM_APDU [12:46:12]CAPDU: 80 11 00 00 [12:46:12]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:12]Read from MH i2c: E2 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [12:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:46:12]wFMCommunicate OK [12:46:12]CreateOFDProtocolMessage done [12:46:12]OFDSenderStorePacket 63335 [12:46:12]StoreOFDPacket docnum=63335 [12:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 5C 7A 1E 01 24 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F7 00 00 35 04 06 00 1F 14 51 12 03 60 91 1D 53 4E A8 18 D9 D3 [12:46:12]CheckFolder [12:46:12]dirname=/storage/ofd_packets [12:46:12]CheckFolder done [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00063335 [12:46:12]NVStorageSaveData ofd_packets/00063335 [12:46:12]File name is /storage/ofd_packets/00063335 [12:46:12]Write 324 bytes [12:46:12]NVStorageSaveData done [12:46:12]OFDSenderStorePacket done [12:46:12]KKMCreateOFDPacket done [12:46:12]NVStorageSaveData kkm_last_timestamp [12:46:12]File name is /storage/kkm_last_timestamp [12:46:12]Write 4 bytes [12:46:12]NVStorageSaveData done [12:46:12]ExternCall_PrintAddStr [12:46:12]wPrintStart [12:46:12]Write to MH i2c: 01 00 00 4E 04 52 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 FF 0F 67 [12:46:12]RasterBufferAndPrint [12:46:12]line Счет N : (3)47645 [12:46:12]line ИНН: 02508201610067 [12:46:12]line Контрольно-Кассовый Чек [12:46:12]line ПРОДАЖА [12:46:12]line Товар: 4640030091645 [12:46:12]line Сигареты ESSE Exchange M [12:46:12]line 1.000 * 157.59 [12:46:12]line = 157.59 [12:46:12]line НДС 12% НСП 1% [12:46:12]line > о реализуемом товаре [12:46:12]line ИТОГО: 157.59 [12:46:12]line НСП 1% : 1.39 [12:46:12]line НДС 12% : 16.73 [12:46:12]line Наличными: 0.00 [12:46:12]line Безнал.: 157.59 [12:46:12]line Место: АЗС № 86 "Партнер Нефть" [12:46:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:46:12]line СНО: Общий режим [12:46:12]line Чек 64 23.10.2024 12:46 [12:46:12]line Смена: 546 ФФД: 1.0 [12:46:12]line ЗНМ: 0300000154 [12:46:12]line РНМ: 0000000000091619 [12:46:12]line Версия ККМ: 001 [12:46:12]line Платежная система: Mbank [12:46:12]line ФМ: 0000000000874676 [12:46:12]line ФД: 63335 [12:46:12]line ФПД: 34172119941984 [12:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124611&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63335&fm=34172119941984&tin=02508201610067®Number=0000000000091619&sum=15759 [12:46:12]line 0 [12:46:12]OFD Sender: Processing packet 63335 [packets to send 232, broken 231] [12:46:12]ProducePacketName [12:46:12]name=ofd_packets/00063335 [12:46:12]OFD Sender: To server: pG, [12:46:12]CommunicateWithHost lk.salyk.kg:30040 [12:46:12]ConnectInit lk.salyk.kg [12:46:12]written 0, free lines is 4095 [12:46:12]Connected sock=10 [12:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 5C 7A 1E 01 24 74 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8F 3D 00 00 00 00 13 04 06 00 8F 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 13 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F7 00 00 35 04 06 00 1F 14 51 12 03 60 91 1D 53 4E A8 18 D9 D3 [12:46:12]Write to MH i2c: 01 00 00 77 04 7B [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 14 0D A3 [12:46:12]RasterBufferAndPrint [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]line [12:46:12]written 0, free lines is 3355 [12:46:12]MH_Cut [12:46:12]Write to MH i2c: D1 01 00 7E 04 01 54 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 [12:46:12]MH_I2C_Read... [12:46:12]Read from MH i2c: D1 01 00 7E 04 00 53 [12:46:12]Write to MH i2c: 01 00 00 7F 04 83 [12:46:12]Write i2c OK [12:46:12]MH_I2C_Read... [12:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 12 E1 47 00 E7 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 67 F7 00 00 F4 03 04 00 0B 9A 18 67 B6 04 01 00 00 7D 48 8B C3 2E 0E E7 C4 [12:46:13]CommunicateWithHost err = 0 [12:46:13]CheckOFDResponse [12:46:13]1017 (14) - 77093643461234 [12:46:13]1041 (16) - 0000000000874676 [12:46:13]1040 (4) - 63335 [12:46:13]1012 (4) - 23.10.2024 06:39 [12:46:13]1206 (1) - 0 [12:46:13]OFD Sender: Remove packet 63335 [12:46:13]ProducePacketName [12:46:13]name=ofd_packets/00063335 [12:46:13]NVStorageDeleteData [12:46:13]*** Cut start [12:46:13]*** Partial cut [12:46:13]*** CUTSNS_PIN = 1 [12:46:13]OFD Sender: No OFD packet to send [12:46:13]*** CUTSNS_PIN = 0 [12:46:13]*** Brake cut motor [12:46:14]Read from MH i2c: 01 [12:46:14]MH_I2C_Read... [12:46:14]*** Stop cut motor [12:46:14]*** Cut end [12:46:14]Read from MH i2c: 01 07 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [12:46:14]process_action close_receipt done [12:46:14]requested_data is exist [12:46:14]produce_requested_data [12:46:14]requested_item fm.sn is exist - process it [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 11 00 00 [12:46:14]Write to MH i2c: E2 08 00 80 04 80 11 00 00 00 00 00 00 FE [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 80 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 57 [12:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:46:14]wFMCommunicate OK [12:46:14]requested_item fd.num is exist - process it [12:46:14]SAM_PROTO_GetFieldsCounters [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 00 00 [12:46:14]Write to MH i2c: E2 08 00 81 04 80 13 00 00 00 00 00 00 01 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 62 00 81 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 67 F7 00 00 0E 04 04 00 22 02 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 6B [12:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 67 F7 00 00 0E 04 04 00 22 02 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 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetFieldsCounters done [12:46:14]requested_item shift.num is exist - process it [12:46:14]requested_item shift.opened is exist - process it [12:46:14]req_shift_opened [12:46:14]FM_GetShiftState [12:46:14]SAM_PROTO_GetShiftState [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 13 01 00 [12:46:14]Write to MH i2c: E2 08 00 82 04 80 13 01 00 00 00 00 00 03 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0E 00 82 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 ED [12:46:14]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_GetShiftState done [12:46:14]FM_GetShiftState done [12:46:14]req_shift_opened done [12:46:14]requested_item shift.open_date is exist - process it [12:46:14]req_shift_open_date [12:46:14]req_shift_open_date done [12:46:14]produce_requested_data done [12:46:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63335,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:46:14]process_action_free close_receipt [12:46:14]json_value_free [12:46:14]json_value_free done [12:46:14]process_json_proto returns [12:46:14]Send response to host [12:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63335,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:46:14]free response buf [12:46:14]execute_script done [12:46:14]execute_script returns [12:46:14]free content buf [12:46:14]Sock 9.Close socket [12:46:14]Sock 9.Thread stoped [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:01]accept exits with 7 [12:48:01]New connection [12:48:01]New thread 3066977636 created [12:48:01]Thread 3067120996 joined [12:48:01]Waiting for new connection... [12:48:01] Sock 7.Parse request [12:48:01]Sock 7.Check first char [12:48:01]Sock 7.First char is OK [12:48:01]request: POST /json_proto HTTP/1.0 [12:48:01]Method: POST [12:48:01]URL: /json_proto [12:48:01]Method is POST - this is cgi request [12:48:01]url: /json_proto [12:48:01]query_string will be loaded in cgi processing [12:48:01]execute_cgi json_proto POST (null) [12:48:01]execute_cgi path=json_proto method=POST [12:48:01]POST find Content-Length [12:48:01]Host: 172.17.42.132:8080 [12:48:01]Content-Length: 1021 [12:48:01]Content-Type: application/json [12:48:01] [12:48:01]POST finish read [12:48:01]Found Content-Length = 1021 [12:48:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47646", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 139.75, "quantity" : 1.000, "sum" : 139.75, "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", "payments": [ { "type": 1, "sum" : 268.60 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:01]execute_script... [12:48:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47646", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 139.75, "quantity" : 1.000, "sum" : 139.75, "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", "payments": [ { "type": 1, "sum" : 268.60 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:01]POST & json_proto [12:48:01]process_json_proto [12:48:01]json parsed OK: [12:48:01]protocol is kg_v1.0 [12:48:01]action value=close_receipt [12:48:01]process_action close_receipt [12:48:01]cmd_close_receipt [12:48:01]MH_GetDate [12:48:01]Write to MH i2c: F0 00 00 83 04 76 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: F0 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: F0 09 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: F0 09 00 83 04 00 83 F0 18 67 4C DF 56 66 58 [12:48:01]GetLastDocTimeStamp 1729687571 [12:48:01]current date 1729687683 [12:48:01]FM_GetShiftState [12:48:01]SAM_PROTO_GetShiftState [12:48:01]wFMCommunicate request_size=4 [12:48:01]MH_SAM_APDU [12:48:01]CAPDU: 80 13 01 00 [12:48:01]Write to MH i2c: E2 08 00 84 04 80 13 01 00 00 00 00 00 05 [12:48:01]Write i2c OK [12:48:01]MH_I2C_Read... [12:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:01]Read from MH i2c: E2 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 0E 00 [12:48:01]MH_I2C_Read... [12:48:01]Read from MH i2c: E2 0E 00 84 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 EF [12:48:01]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:48:01]wFMCommunicate OK [12:48:01]SAM_PROTO_GetShiftState done [12:48:01]FM_GetShiftState done [12:48:01]opened in 1729642527 [12:48:01]opened+sec_in_day 1729728927 [12:48:01]quantity*price = 12885 [12:48:01]sum+1 = 12886 [12:48:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870216765088 Нагр.Таб.Палоч. HEETS Purple Wave 1.000 * 139.75 = 139.75 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.60 НСП 1% : 2.38 НДС 12% : 28.52 Наличными: 0.00 Безнал.: 268.60 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 65 23.10.2024 12:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63336 ФПД: 236174960532835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124803&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63336&fm=236174960532835&tin=02508201610067®Number=0000000000091619&sum=26860 0 [12:48:03]StoreToDocumentArchive [12:48:03]shift 546 fd 63336 [12:48:03]save to /storage/0546/doc_00063336 [12:48:03]save last doc name /storage/0546/doc_00063336 to /storage/kkm_last_doc_name [12:48:03]save OK [12:48:03]Clear old archive folders... [12:48:03]ProcessDocumentItem done err = 0, tmpTLVsize=393 [12:48:03]tlvbuf is 006F9C30 [12:48:03]SAM_PROTO_ClearQueue [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 09 00 00 [12:48:03]Write to MH i2c: E2 08 00 91 04 80 09 00 00 00 00 00 00 07 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]SAM_PROTO_ClearQueue done [12:48:03]KKMCreateOFDPacket [12:48:03]OFDProtocolAddRootSTLVToBuf [12:48:03]FM_MakeSignedData [12:48:03]FM_MakeSignedData [12:48:03]SAM_PROTO_SignData [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 01 02 [12:48:03]Write to MH i2c: E2 08 00 92 04 80 0D 01 02 00 00 00 00 0F [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 92 04 00 90 00 0A [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]wFMCommunicate request_size=255 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 97 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 [12:48:03]Write to MH i2c: E2 02 01 93 04 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 97 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 8A [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 93 04 00 90 00 0B [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]wFMCommunicate request_size=152 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 83 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F7 00 00 35 04 06 00 D6 CC C4 A0 9D 63 [12:48:03]Write to MH i2c: E2 9B 00 94 04 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 83 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F7 00 00 35 04 06 00 D6 CC C4 A0 9D 63 00 00 94 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 03 00 94 04 00 90 00 0C [12:48:03]RAPDU: 90 00 [12:48:03]wFMCommunicate OK [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 0D 03 02 [12:48:03]Write to MH i2c: E2 08 00 95 04 80 0D 03 02 00 00 00 00 14 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 0B 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 0B 00 95 04 00 F2 77 99 F6 11 F0 B9 E2 90 00 A9 [12:48:03]RAPDU: F2 77 99 F6 11 F0 B9 E2 90 00 [12:48:03]wFMCommunicate OK [12:48:03]SAM_PROTO_SignData done [12:48:03]FM_MakeSignedData done [12:48:03]CreateOFDProtocolMessage [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 11 00 00 [12:48:03]Write to MH i2c: E2 08 00 96 04 80 11 00 00 00 00 00 00 14 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 17 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 17 00 96 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6D [12:48:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:48:03]wFMCommunicate OK [12:48:03]CreateOFDProtocolMessage done [12:48:03]OFDSenderStorePacket 63336 [12:48:03]StoreOFDPacket docnum=63336 [12:48:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9D 01 00 00 99 AD 95 01 2F A7 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 97 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 83 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F7 00 00 35 04 06 00 D6 CC C4 A0 9D 63 F2 77 99 F6 11 F0 B9 E2 [12:48:03]CheckFolder [12:48:03]dirname=/storage/ofd_packets [12:48:03]CheckFolder done [12:48:03]ProducePacketName [12:48:03]name=ofd_packets/00063336 [12:48:03]NVStorageSaveData ofd_packets/00063336 [12:48:03]File name is /storage/ofd_packets/00063336 [12:48:03]Write 443 bytes [12:48:03]NVStorageSaveData done [12:48:03]OFDSenderStorePacket done [12:48:03]KKMCreateOFDPacket done [12:48:03]NVStorageSaveData kkm_last_timestamp [12:48:03]File name is /storage/kkm_last_timestamp [12:48:03]Write 4 bytes [12:48:03]NVStorageSaveData done [12:48:03]ExternCall_PrintAddStr [12:48:03]wPrintStart [12:48:03]Write to MH i2c: 01 00 00 97 04 9B [12:48:03]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]OFD Sender: Processing packet 63336 [packets to send 232, broken 231] [12:48:04]Read from MH i2c: ProducePacketName [12:48:04]01 name=ofd_packets/00063336 [12:48:04] [12:48:04]MH_I2C_Read... [12:48:04]OFD Sender: To server: pG, [12:48:04]CommunicateWithHost lk.salyk.kg:30040 [12:48:04]Read from MH i2c: ConnectInit lk.salyk.kg [12:48:04]01 07 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 97 04 00 00 00 00 00 FF 0F B0 [12:48:04]RasterBufferAndPrint [12:48:04]line Счет N : (3)47646 [12:48:04]line ИНН: 02508201610067 [12:48:04]line Контрольно-Кассовый Чек [12:48:04]line ПРОДАЖА [12:48:04]line Товар: 2000036230011 [12:48:04]line Кофе Латте XL(GABB TRADE) [12:48:04]line 1.000 * 128.85 [12:48:04]line = 128.85 [12:48:04]line НДС 12% НСП 1% [12:48:04]line > о реализуемом товаре [12:48:04]line Товар: 4870216765088 [12:48:04]line Нагр.Таб.Палоч. HEETS Purple Wave [12:48:04]line 1.000 * 139.75 [12:48:04]line = 139.75 [12:48:04]line НДС 12% НСП 1% [12:48:04]line > о реализуемом товаре [12:48:04]line ИТОГО: 268.60 [12:48:04]line НСП 1% : 2.38 [12:48:04]line НДС 12% : 28.52 [12:48:04]line Наличными: 0.00 [12:48:04]line Безнал.: 268.60 [12:48:04]line Место: АЗС № 86 "Партнер Нефть" [12:48:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:48:04]line СНО: Общий режим [12:48:04]line Чек 65 23.10.2024 12:48 [12:48:04]line Смена: 546 ФФД: 1.0 [12:48:04]line ЗНМ: 0300000154 [12:48:04]line РНМ: 0000000000091619 [12:48:04]line Версия ККМ: 001 [12:48:04]line Платежная система: Mbank [12:48:04]line ФМ: 0000000000874676 [12:48:04]line ФД: 63336 [12:48:04]line ФПД: 236174960532835 [12:48:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T124803&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63336&fm=236174960532835&tin=02508201610067®Number=0000000000091619&sum=26860 [12:48:04]line 0 [12:48:04]written 0, free lines is 4095 [12:48:04]Connected sock=11 [12:48:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9D 01 00 00 99 AD 95 01 2F A7 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 97 36 00 00 00 00 13 04 06 00 97 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 83 F0 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F7 00 00 35 04 06 00 D6 CC C4 A0 9D 63 F2 77 99 F6 11 F0 B9 E2 [12:48:04]Write to MH i2c: 01 00 00 C7 04 CB [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 D2 0C B0 [12:48:04]RasterBufferAndPrint [12:48:04]line [12:48:04]line [12:48:04]line [12:48:04]line [12:48:04]line [12:48:04]written 0, free lines is 3288 [12:48:04]MH_Cut [12:48:04]Write to MH i2c: D1 01 00 CE 04 01 A4 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: D1 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: D1 01 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: D1 01 00 CE 04 00 A3 [12:48:04]Write to MH i2c: 01 00 00 CF 04 D3 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 84 12 47 00 59 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 68 F7 00 00 F4 03 04 00 7A 9A 18 67 B6 04 01 00 00 D2 3E 78 1A 7B C8 43 20 [12:48:04]CommunicateWithHost err = 0 [12:48:04]CheckOFDResponse [12:48:04]1017 (14) - 77093643461234 [12:48:04]1041 (16) - 0000000000874676 [12:48:04]1040 (4) - 63336 [12:48:04]1012 (4) - 23.10.2024 06:40 [12:48:04]1206 (1) - 0 [12:48:04]OFD Sender: Remove packet 63336 [12:48:04]ProducePacketName [12:48:04]name=ofd_packets/00063336 [12:48:04]NVStorageDeleteData [12:48:05]*** Cut start [12:48:05]*** Partial cut [12:48:05]*** CUTSNS_PIN = 1 [12:48:05]OFD Sender: No OFD packet to send [12:48:05]*** CUTSNS_PIN = 0 [12:48:05]*** Brake cut motor [12:48:05]Read from MH i2c: 01 [12:48:05]MH_I2C_Read... [12:48:05]*** Stop cut motor [12:48:05]*** Cut end [12:48:05]Read from MH i2c: 01 07 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [12:48:05]process_action close_receipt done [12:48:05]requested_data is exist [12:48:05]produce_requested_data [12:48:05]requested_item fm.sn is exist - process it [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 11 00 00 [12:48:05]Write to MH i2c: E2 08 00 D0 04 80 11 00 00 00 00 00 00 4E [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 17 00 D0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A7 [12:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:48:06]wFMCommunicate OK [12:48:06]requested_item fd.num is exist - process it [12:48:06]SAM_PROTO_GetFieldsCounters [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 13 00 00 [12:48:06]Write to MH i2c: E2 08 00 D1 04 80 13 00 00 00 00 00 00 51 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 62 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 62 00 D1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 68 F7 00 00 0E 04 04 00 22 02 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 BF [12:48:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 68 F7 00 00 0E 04 04 00 22 02 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 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_GetFieldsCounters done [12:48:06]requested_item shift.num is exist - process it [12:48:06]requested_item shift.opened is exist - process it [12:48:06]req_shift_opened [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 D2 04 80 13 01 00 00 00 00 00 53 [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 D2 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3D [12:48:06]RAPDU: 09 00 01 1F 40 18 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]req_shift_opened done [12:48:06]requested_item shift.open_date is exist - process it [12:48:06]req_shift_open_date [12:48:06]req_shift_open_date done [12:48:06]produce_requested_data done [12:48:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63336,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:48:06]process_action_free close_receipt [12:48:06]json_value_free [12:48:06]json_value_free done [12:48:06]process_json_proto returns [12:48:06]Send response to host [12:48:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63336,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:48:06]free response buf [12:48:06]execute_script done [12:48:06]execute_script returns [12:48:06]free content buf [12:48:06]Sock 7.Close socket [12:48:06]Sock 7.Thread stoped [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]accept exits with 9 [12:50:50]New connection [12:50:50]New thread 3067120996 created [12:50:50]Thread 3066977636 joined [12:50:50]Waiting for new connection... [12:50:50] Sock 9.Parse request [12:50:50]Sock 9.Check first char [12:50:50]Sock 9.First char is OK [12:50:50]request: POST /json_proto HTTP/1.0 [12:50:50]Method: POST [12:50:50]URL: /json_proto [12:50:50]Method is POST - this is cgi request [12:50:50]url: /json_proto [12:50:50]query_string will be loaded in cgi processing [12:50:50]execute_cgi json_proto POST (null) [12:50:50]execute_cgi path=json_proto method=POST [12:50:50]POST find Content-Length [12:50:50]Host: 172.17.42.132:8080 [12:50:50]Content-Length: 772 [12:50:50]Content-Type: application/json [12:50:50] [12:50:50]POST finish read [12:50:50]Found Content-Length = 772 [12:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47647", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "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", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]execute_script... [12:50: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 : (3)47647", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "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", "payments": [ { "type": 1, "sum" : 128.85 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:50]POST & json_proto [12:50:50]process_json_proto [12:50:50]json parsed OK: [12:50:50]protocol is kg_v1.0 [12:50:50]action value=close_receipt [12:50:50]process_action close_receipt [12:50:50]cmd_close_receipt [12:50:50]MH_GetDate [12:50:50]Write to MH i2c: F0 00 00 D3 04 C6 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: F0 09 00 D3 04 00 2B F1 18 67 4C DF 56 66 51 [12:50:50]GetLastDocTimeStamp 1729687683 [12:50:50]current date 1729687851 [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]OFD Sender: No OFD packet to send [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3F [12:50:50]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]opened in 1729642527 [12:50:50]opened+sec_in_day 1729728927 [12:50:50]quantity*price = 12885 [12:50:50]sum+1 = 12886 [12:50:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.85 НСП 1% : 1.14 НДС 12% : 13.68 Наличными: 0.00 Безнал.: 128.85 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 66 23.10.2024 12:50 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63337 ФПД: 120260561362734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125051&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63337&fm=120260561362734&tin=02508201610067®Number=0000000000091619&sum=12885 0 [12:50:51]StoreToDocumentArchive [12:50:51]shift 546 fd 63337 [12:50:51]save to /storage/0546/doc_00063337 [12:50:51]save last doc name /storage/0546/doc_00063337 to /storage/kkm_last_doc_name [12:50:51]save OK [12:50:51]Clear old archive folders... [12:50:51]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:50:51]tlvbuf is 006F25C0 [12:50:51]SAM_PROTO_ClearQueue [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 09 00 00 [12:50:51]Write to MH i2c: E2 08 00 E1 04 80 09 00 00 00 00 00 00 57 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]SAM_PROTO_ClearQueue done [12:50:51]KKMCreateOFDPacket [12:50:51]OFDProtocolAddRootSTLVToBuf [12:50:51]FM_MakeSignedData [12:50:51]FM_MakeSignedData [12:50:51]SAM_PROTO_SignData [12:50:51]wFMCommunicate request_size=4 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 01 02 [12:50:51]Write to MH i2c: E2 08 00 E2 04 80 0D 01 02 00 00 00 00 5F [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:51]Read from MH i2c: E2 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 [12:50:51]MH_I2C_Read... [12:50:51]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [12:50:51]RAPDU: 90 00 [12:50:51]wFMCommunicate OK [12:50:51]wFMCommunicate request_size=255 [12:50:51]MH_SAM_APDU [12:50:51]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [12:50:51]Write to MH i2c: E2 02 01 E3 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 97 [12:50:51]Write i2c OK [12:50:51]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=41 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F7 00 00 35 04 06 00 6D 60 58 0A 5F 2E [12:50:52]Write to MH i2c: E2 2C 00 E4 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F7 00 00 35 04 06 00 6D 60 58 0A 5F 2E 00 00 53 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [12:50:52]RAPDU: 90 00 [12:50:52]wFMCommunicate OK [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 0D 03 02 [12:50:52]Write to MH i2c: E2 08 00 E5 04 80 0D 03 02 00 00 00 00 64 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 0B 00 E5 04 00 40 15 06 FF FE 0C D2 E3 90 00 7E [12:50:52]RAPDU: 40 15 06 FF FE 0C D2 E3 90 00 [12:50:52]wFMCommunicate OK [12:50:52]SAM_PROTO_SignData done [12:50:52]FM_MakeSignedData done [12:50:52]CreateOFDProtocolMessage [12:50:52]wFMCommunicate request_size=4 [12:50:52]MH_SAM_APDU [12:50:52]CAPDU: 80 11 00 00 [12:50:52]Write to MH i2c: E2 08 00 E6 04 80 11 00 00 00 00 00 00 64 [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:52]Read from MH i2c: E2 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: E2 17 00 E6 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BD [12:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:50:52]wFMCommunicate OK [12:50:52]CreateOFDProtocolMessage done [12:50:52]OFDSenderStorePacket 63337 [12:50:52]StoreOFDPacket docnum=63337 [12:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 FE A1 26 01 C6 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F7 00 00 35 04 06 00 6D 60 58 0A 5F 2E 40 15 06 FF FE 0C D2 E3 [12:50:52]CheckFolder [12:50:52]dirname=/storage/ofd_packets [12:50:52]CheckFolder done [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00063337 [12:50:52]NVStorageSaveData ofd_packets/00063337 [12:50:52]File name is /storage/ofd_packets/00063337 [12:50:52]Write 332 bytes [12:50:52]NVStorageSaveData done [12:50:52]OFDSenderStorePacket done [12:50:52]KKMCreateOFDPacket done [12:50:52]NVStorageSaveData kkm_last_timestamp [12:50:52]File name is /storage/kkm_last_timestamp [12:50:52]Write 4 bytes [12:50:52]NVStorageSaveData done [12:50:52]ExternCall_PrintAddStr [12:50:52]wPrintStart [12:50:52]Write to MH i2c: 01 00 00 E7 04 EB [12:50:52]Write i2c OK [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 [12:50:52]MH_I2C_Read... [12:50:52]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 FF 0F 00 [12:50:52]RasterBufferAndPrint [12:50:52]line Счет N : (3)47647 [12:50:52]line ИНН: 02508201610067 [12:50:52]line Контрольно-Кассовый Чек [12:50:52]line ПРОДАЖА [12:50:52]line Товар: 2000036220012 [12:50:52]line Кофе Капучино XL(GABB TRADE) [12:50:52]line 1.000 * 128.85 [12:50:52]line = 128.85 [12:50:52]line НДС 12% НСП 1% [12:50:52]line > о реализуемом товаре [12:50:52]line ИТОГО: 128.85 [12:50:52]line НСП 1% : 1.14 [12:50:52]line НДС 12% : 13.68 [12:50:52]line Наличными: 0.00 [12:50:52]line Безнал.: 128.85 [12:50:52]line Место: АЗС № 86 "Партнер Нефть" [12:50:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:50:52]line СНО: Общий режим [12:50:52]line Чек 66 23.10.2024 12:50 [12:50:52]line Смена: 546 ФФД: 1.0 [12:50:52]line ЗНМ: 0300000154 [12:50:52]line РНМ: 0000000000091619 [12:50:52]line Версия ККМ: 001 [12:50:52]line Платежная система: Mbank [12:50:52]line ФМ: 0000000000874676 [12:50:52]line ФД: 63337 [12:50:52]line ФПД: 120260561362734 [12:50:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125051&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63337&fm=120260561362734&tin=02508201610067®Number=0000000000091619&sum=12885 [12:50:52]line 0 [12:50:52]OFD Sender: Processing packet 63337 [packets to send 232, broken 231] [12:50:52]ProducePacketName [12:50:52]name=ofd_packets/00063337 [12:50:52]OFD Sender: To server: pG, [12:50:52]CommunicateWithHost lk.salyk.kg:30040 [12:50:52]ConnectInit lk.salyk.kg [12:50:52]written 0, free lines is 4095 [12:50:53]Connected sock=10 [12:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 FE A1 26 01 C6 02 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 55 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 55 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 2B F1 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F7 00 00 35 04 06 00 6D 60 58 0A 5F 2E 40 15 06 FF FE 0C D2 E3 [12:50:53]Write to MH i2c: 01 00 00 11 05 16 [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: 01 07 00 11 05 00 00 00 00 00 05 0D 2F [12:50:53]RasterBufferAndPrint [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]line [12:50:53]written 0, free lines is 3340 [12:50:53]MH_Cut [12:50:53]Write to MH i2c: D1 01 00 18 05 01 EF [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 01 00 [12:50:53]MH_I2C_Read... [12:50:53]Read from MH i2c: D1 01 00 18 05 00 EE [12:50:53]Write to MH i2c: 01 00 00 19 05 1E [12:50:53]Write i2c OK [12:50:53]MH_I2C_Read... [12:50:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F3 42 47 00 8C 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 69 F7 00 00 F4 03 04 00 23 9B 18 67 B6 04 01 00 00 2E 31 AC F9 86 72 90 6F [12:50:53]CommunicateWithHost err = 0 [12:50:53]CheckOFDResponse [12:50:53]1017 (14) - 77093643461234 [12:50:53]1041 (16) - 0000000000874676 [12:50:53]1040 (4) - 63337 [12:50:53]1012 (4) - 23.10.2024 06:43 [12:50:53]1206 (1) - 0 [12:50:53]OFD Sender: Remove packet 63337 [12:50:53]ProducePacketName [12:50:53]name=ofd_packets/00063337 [12:50:53]NVStorageDeleteData [12:50:53]*** Cut start [12:50:53]*** Partial cut [12:50:53]*** CUTSNS_PIN = 1 [12:50:53]*** CUTSNS_PIN = 0 [12:50:53]OFD Sender: No OFD packet to send [12:50:54]*** Brake cut motor [12:50:54]Read from MH i2c: 01 [12:50:54]MH_I2C_Read... [12:50:54]*** Stop cut motor [12:50:54]*** Cut end [12:50:54]Read from MH i2c: 01 07 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [12:50:54]process_action close_receipt done [12:50:54]requested_data is exist [12:50:54]produce_requested_data [12:50:54]requested_item fm.sn is exist - process it [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 11 00 00 [12:50:54]Write to MH i2c: E2 08 00 1A 05 80 11 00 00 00 00 00 00 99 [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 17 00 1A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F2 [12:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:50:54]wFMCommunicate OK [12:50:54]requested_item fd.num is exist - process it [12:50:54]SAM_PROTO_GetFieldsCounters [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 13 00 00 [12:50:54]Write to MH i2c: E2 08 00 1B 05 80 13 00 00 00 00 00 00 9C [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 62 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 62 00 1B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 69 F7 00 00 0E 04 04 00 22 02 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 0E [12:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 69 F7 00 00 0E 04 04 00 22 02 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 [12:50:54]wFMCommunicate OK [12:50:54]SAM_PROTO_GetFieldsCounters done [12:50:54]requested_item shift.num is exist - process it [12:50:54]requested_item shift.opened is exist - process it [12:50:54]req_shift_opened [12:50:54]FM_GetShiftState [12:50:54]SAM_PROTO_GetShiftState [12:50:54]wFMCommunicate request_size=4 [12:50:54]MH_SAM_APDU [12:50:54]CAPDU: 80 13 01 00 [12:50:54]Write to MH i2c: E2 08 00 1C 05 80 13 01 00 00 00 00 00 9E [12:50:54]Write i2c OK [12:50:54]MH_I2C_Read... [12:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:54]Read from MH i2c: E2 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 0E 00 [12:50:54]MH_I2C_Read... [12:50:54]Read from MH i2c: E2 0E 00 1C 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 88 [12:50:54]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:50:54]wFMCommunicate OK [12:50:54]SAM_PROTO_GetShiftState done [12:50:54]FM_GetShiftState done [12:50:54]req_shift_opened done [12:50:54]requested_item shift.open_date is exist - process it [12:50:54]req_shift_open_date [12:50:54]req_shift_open_date done [12:50:54]produce_requested_data done [12:50:54]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63337,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:50:54]process_action_free close_receipt [12:50:54]json_value_free [12:50:54]json_value_free done [12:50:54]process_json_proto returns [12:50:54]Send response to host [12:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63337,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:50:54]free response buf [12:50:54]execute_script done [12:50:54]execute_script returns [12:50:54]free content buf [12:50:54]Sock 9.Close socket [12:50:54]Sock 9.Thread stoped [12:50:58]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:23]accept exits with 7 [12:56:23]New connection [12:56:23]New thread 3066977636 created [12:56:23]Thread 3067120996 joined [12:56:23]Waiting for new connection... [12:56:23] Sock 7.Parse request [12:56:23]Sock 7.Check first char [12:56:23]Sock 7.First char is OK [12:56:23]request: POST /json_proto HTTP/1.0 [12:56:23]Method: POST [12:56:23]URL: /json_proto [12:56:23]Method is POST - this is cgi request [12:56:23]url: /json_proto [12:56:23]query_string will be loaded in cgi processing [12:56:23]execute_cgi json_proto POST (null) [12:56:23]execute_cgi path=json_proto method=POST [12:56:23]POST find Content-Length [12:56:23]Host: 172.17.42.132:8080 [12:56:23]Content-Length: 1159 [12:56:23]Content-Type: application/json [12:56:23] [12:56:23]POST finish read [12:56:23]Found Content-Length = 1159 [12:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47648", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:23]execute_script... [12:56:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47648", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 519.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:23]POST & json_proto [12:56:23]process_json_proto [12:56:23]json parsed OK: [12:56:23]protocol is kg_v1.0 [12:56:23]action value=close_receipt [12:56:23]process_action close_receipt [12:56:23]cmd_close_receipt [12:56:23]MH_GetDate [12:56:23]Write to MH i2c: F0 00 00 1D 05 11 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 09 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: F0 09 00 1D 05 00 78 F2 18 67 4C DF 56 66 EA [12:56:23]GetLastDocTimeStamp 1729687851 [12:56:23]current date 1729688184 [12:56:23]FM_GetShiftState [12:56:23]SAM_PROTO_GetShiftState [12:56:23]wFMCommunicate request_size=4 [12:56:23]MH_SAM_APDU [12:56:23]CAPDU: 80 13 01 00 [12:56:23]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [12:56:23]Write i2c OK [12:56:23]MH_I2C_Read... [12:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:23]Read from MH i2c: E2 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 [12:56:23]MH_I2C_Read... [12:56:23]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 8A [12:56:23]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:56:23]wFMCommunicate OK [12:56:23]SAM_PROTO_GetShiftState done [12:56:23]FM_GetShiftState done [12:56:23]opened in 1729642527 [12:56:23]opened+sec_in_day 1729728927 [12:56:23]quantity*price = 13400 [12:56:23]sum+1 = 13401 [12:56:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 519.00 НСП 1% : 4.60 НДС 12% : 55.11 Наличными: 519.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 67 23.10.2024 12:56 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63338 ФПД: 254597432801713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125624&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63338&fm=254597432801713&tin=02508201610067®Number=0000000000091619&sum=51900 0 [12:56:24]StoreToDocumentArchive [12:56:24]shift 546 fd 63338 [12:56:24]save to /storage/0546/doc_00063338 [12:56:24]save last doc name /storage/0546/doc_00063338 to /storage/kkm_last_doc_name [12:56:24]save OK [12:56:24]Clear old archive folders... [12:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=496 [12:56:24]tlvbuf is 006F17F0 [12:56:24]SAM_PROTO_ClearQueue [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 09 00 00 [12:56:24]Write to MH i2c: E2 08 00 2B 05 80 09 00 00 00 00 00 00 A2 [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]SAM_PROTO_ClearQueue done [12:56:24]KKMCreateOFDPacket [12:56:24]OFDProtocolAddRootSTLVToBuf [12:56:24]FM_MakeSignedData [12:56:24]FM_MakeSignedData [12:56:24]SAM_PROTO_SignData [12:56:24]wFMCommunicate request_size=4 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 01 02 [12:56:24]Write to MH i2c: E2 08 00 2C 05 80 0D 01 02 00 00 00 00 AA [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=255 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE [12:56:24]Write to MH i2c: E2 02 01 2D 05 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE 00 00 A4 [12:56:24]OFD Sender: No OFD packet to send [12:56:24]Write i2c OK [12:56:24]MH_I2C_Read... [12:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:24]Read from MH i2c: E2 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 [12:56:24]MH_I2C_Read... [12:56:24]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [12:56:24]RAPDU: 90 00 [12:56:24]wFMCommunicate OK [12:56:24]wFMCommunicate request_size=255 [12:56:24]MH_SAM_APDU [12:56:24]CAPDU: 80 0D 02 02 FA D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 15 00 00 00 00 07 04 06 00 BC CA 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 78 F2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F7 00 00 35 04 06 00 E7 8E 15 8A F9 B1 [12:56:25]Write to MH i2c: E2 02 01 2E 05 80 0D 02 02 FA 00 D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 15 00 00 00 00 07 04 06 00 BC CA 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 78 F2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F7 00 00 35 04 06 00 E7 8E 15 8A F9 B1 00 00 FB [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 03 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [12:56:25]RAPDU: 90 00 [12:56:25]wFMCommunicate OK [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 0D 03 02 [12:56:25]Write to MH i2c: E2 08 00 2F 05 80 0D 03 02 00 00 00 00 AF [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0B 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0B 00 2F 05 00 4C 59 8C 46 F3 54 C6 2B 90 00 5F [12:56:25]RAPDU: 4C 59 8C 46 F3 54 C6 2B 90 00 [12:56:25]wFMCommunicate OK [12:56:25]SAM_PROTO_SignData done [12:56:25]FM_MakeSignedData done [12:56:25]CreateOFDProtocolMessage [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 11 00 00 [12:56:25]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 17 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 08 [12:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:56:25]wFMCommunicate OK [12:56:25]CreateOFDProtocolMessage done [12:56:25]OFDSenderStorePacket 63338 [12:56:25]StoreOFDPacket docnum=63338 [12:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 04 02 00 00 13 CA FC 01 60 6E 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 15 00 00 00 00 07 04 06 00 BC CA 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 78 F2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F7 00 00 35 04 06 00 E7 8E 15 8A F9 B1 4C 59 8C 46 F3 54 C6 2B [12:56:25]CheckFolder [12:56:25]dirname=/storage/ofd_packets [12:56:25]CheckFolder done [12:56:25]ProducePacketName [12:56:25]name=ofd_packets/00063338 [12:56:25]NVStorageSaveData ofd_packets/00063338 [12:56:25]File name is /storage/ofd_packets/00063338 [12:56:25]Write 546 bytes [12:56:25]NVStorageSaveData done [12:56:25]OFDSenderStorePacket done [12:56:25]KKMCreateOFDPacket done [12:56:25]NVStorageSaveData kkm_last_timestamp [12:56:25]File name is /storage/kkm_last_timestamp [12:56:25]Write 4 bytes [12:56:25]NVStorageSaveData done [12:56:25]ExternCall_PrintAddStr [12:56:25]wPrintStart [12:56:25]Write to MH i2c: 01 00 00 31 05 36 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [12:56:25]RasterBufferAndPrint [12:56:25]line Счет N : (3)47648 [12:56:25]line ИНН: 02508201610067 [12:56:25]line Контрольно-Кассовый Чек [12:56:25]line ПРОДАЖА [12:56:25]line Товар: 4860019001346 [12:56:25]line Вода Боржоми 0,5л ст [12:56:25]line 1.000 * 134.00 [12:56:25]line = 134.00 [12:56:25]line НДС 12% НСП 1% [12:56:25]line > о реализуемом товаре [12:56:25]line Товар: 2000036230011 [12:56:25]line Кофе Латте XL(GABB TRADE) [12:56:25]line 2.000 * 130.00 [12:56:25]line = 260.00 [12:56:25]line НДС 12% НСП 1% [12:56:25]line > о реализуемом товаре [12:56:25]line Товар: 2000036190018 [12:56:25]line Кофе Американо XL(GABB TRADE) [12:56:25]line 1.000 * 125.00 [12:56:25]line = 125.00 [12:56:25]line НДС 12% НСП 1% [12:56:25]line > о реализуемом товаре [12:56:25]line ИТОГО: 519.00 [12:56:25]line НСП 1% : 4.60 [12:56:25]line НДС 12% : 55.11 [12:56:25]line Наличными: 519.00 [12:56:25]line Безнал.: 0.00 [12:56:25]line Место: АЗС № 86 "Партнер Нефть" [12:56:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:56:25]line СНО: Общий режим [12:56:25]line Чек 67 23.10.2024 12:56 [12:56:25]line Смена: 546 ФФД: 1.0 [12:56:25]line ЗНМ: 0300000154 [12:56:25]line РНМ: 0000000000091619 [12:56:25]line Версия ККМ: 001 [12:56:25]line ФМ: 0000000000874676 [12:56:25]line ФД: 63338 [12:56:25]line ФПД: 254597432801713 [12:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T125624&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63338&fm=254597432801713&tin=02508201610067®Number=0000000000091619&sum=51900 [12:56:25]line 0 [12:56:25]written 0, free lines is 4095 [12:56:25]OFD Sender: Processing packet 63338 [packets to send 232, broken 231] [12:56:25]ProducePacketName [12:56:25]name=ofd_packets/00063338 [12:56:25]OFD Sender: To server: pG, [12:56:25]CommunicateWithHost lk.salyk.kg:30040 [12:56:25]ConnectInit lk.salyk.kg [12:56:25]Connected sock=10 [12:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 04 02 00 00 13 CA FC 01 60 6E 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC CA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 15 00 00 00 00 07 04 06 00 BC CA 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 78 F2 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F7 00 00 35 04 06 00 E7 8E 15 8A F9 B1 4C 59 8C 46 F3 54 C6 2B [12:56:25]Write to MH i2c: 01 00 00 66 05 6B [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: 01 07 00 66 05 00 00 00 00 00 85 0C 03 [12:56:25]RasterBufferAndPrint [12:56:25]line [12:56:25]line [12:56:25]line [12:56:25]line [12:56:25]line [12:56:26]written 0, free lines is 3211 [12:56:26]MH_Cut [12:56:26]Write to MH i2c: D1 01 00 6D 05 01 44 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: D1 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: D1 01 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: D1 01 00 6D 05 00 43 [12:56:26]Write to MH i2c: 01 00 00 6E 05 73 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 4E 65 47 00 D9 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6A F7 00 00 F4 03 04 00 70 9C 18 67 B6 04 01 00 00 60 29 56 49 30 BA 21 E7 [12:56:26]CommunicateWithHost err = 0 [12:56:26]CheckOFDResponse [12:56:26]1017 (14) - 77093643461234 [12:56:26]1041 (16) - 0000000000874676 [12:56:26]1040 (4) - 63338 [12:56:26]1012 (4) - 23.10.2024 06:49 [12:56:26]1206 (1) - 0 [12:56:26]OFD Sender: Remove packet 63338 [12:56:26]ProducePacketName [12:56:26]name=ofd_packets/00063338 [12:56:26]NVStorageDeleteData [12:56:26]OFD Sender: No OFD packet to send [12:56:26]*** Cut start [12:56:26]*** Partial cut [12:56:26]*** CUTSNS_PIN = 1 [12:56:26]*** CUTSNS_PIN = 0 [12:56:27]*** Brake cut motor [12:56:27]Read from MH i2c: 01 [12:56:27]MH_I2C_Read... [12:56:27]*** Stop cut motor [12:56:27]*** Cut end [12:56:27]Read from MH i2c: 01 07 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [12:56:27]process_action close_receipt done [12:56:27]requested_data is exist [12:56:27]produce_requested_data [12:56:27]requested_item fm.sn is exist - process it [12:56:27]wFMCommunicate request_size=4 [12:56:27]MH_SAM_APDU [12:56:27]CAPDU: 80 11 00 00 [12:56:27]Write to MH i2c: E2 08 00 6F 05 80 11 00 00 00 00 00 00 EE [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 17 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 17 00 6F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 47 [12:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [12:56:27]wFMCommunicate OK [12:56:27]requested_item fd.num is exist - process it [12:56:27]SAM_PROTO_GetFieldsCounters [12:56:27]wFMCommunicate request_size=4 [12:56:27]MH_SAM_APDU [12:56:27]CAPDU: 80 13 00 00 [12:56:27]Write to MH i2c: E2 08 00 70 05 80 13 00 00 00 00 00 00 F1 [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 62 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 62 00 70 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6A F7 00 00 0E 04 04 00 22 02 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 67 [12:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6A F7 00 00 0E 04 04 00 22 02 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 [12:56:27]wFMCommunicate OK [12:56:27]SAM_PROTO_GetFieldsCounters done [12:56:27]requested_item shift.num is exist - process it [12:56:27]requested_item shift.opened is exist - process it [12:56:27]req_shift_opened [12:56:27]FM_GetShiftState [12:56:27]SAM_PROTO_GetShiftState [12:56:27]wFMCommunicate request_size=4 [12:56:27]MH_SAM_APDU [12:56:27]CAPDU: 80 13 01 00 [12:56:27]Write to MH i2c: E2 08 00 71 05 80 13 01 00 00 00 00 00 F3 [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 0E 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 0E 00 71 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DD [12:56:27]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [12:56:27]wFMCommunicate OK [12:56:27]SAM_PROTO_GetShiftState done [12:56:27]FM_GetShiftState done [12:56:27]req_shift_opened done [12:56:27]requested_item shift.open_date is exist - process it [12:56:27]req_shift_open_date [12:56:27]req_shift_open_date done [12:56:27]produce_requested_data done [12:56:27]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63338,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [12:56:27]process_action_free close_receipt [12:56:27]json_value_free [12:56:27]json_value_free done [12:56:27]process_json_proto returns [12:56:27]Send response to host [12:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63338,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [12:56:27]free response buf [12:56:27]execute_script done [12:56:27]execute_script returns [12:56:27]free content buf [12:56:27]Sock 7.Close socket [12:56:27]Sock 7.Thread stoped [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:37]accept exits with 9 [13:00:37]New connection [13:00:37]New thread 3067120996 created [13:00:37]Thread 3066977636 joined [13:00:37]Waiting for new connection... [13:00:37] Sock 9.Parse request [13:00:37]Sock 9.Check first char [13:00:37]Sock 9.First char is OK [13:00:37]request: POST /json_proto HTTP/1.0 [13:00:37]Method: POST [13:00:37]URL: /json_proto [13:00:37]Method is POST - this is cgi request [13:00:37]url: /json_proto [13:00:37]query_string will be loaded in cgi processing [13:00:37]execute_cgi json_proto POST (null) [13:00:37]execute_cgi path=json_proto method=POST [13:00:37]POST find Content-Length [13:00:37]Host: 172.17.42.132:8080 [13:00:37]Content-Length: 678 [13:00:37]Content-Type: application/json [13:00:37] [13:00:37]POST finish read [13:00:37]Found Content-Length = 678 [13:00:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47649", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:37]execute_script... [13:00: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 : (3)47649", "tax_sys" : 0, "items" : [ { "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:37]POST & json_proto [13:00:37]process_json_proto [13:00:37]json parsed OK: [13:00:37]protocol is kg_v1.0 [13:00:37]action value=close_receipt [13:00:37]process_action close_receipt [13:00:37]cmd_close_receipt [13:00:37]MH_GetDate [13:00:37]Write to MH i2c: F0 00 00 72 05 66 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 09 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: F0 09 00 72 05 00 76 F3 18 67 4C DF 56 66 3E [13:00:37]GetLastDocTimeStamp 1729688184 [13:00:37]current date 1729688438 [13:00:37]FM_GetShiftState [13:00:37]SAM_PROTO_GetShiftState [13:00:37]wFMCommunicate request_size=4 [13:00:37]MH_SAM_APDU [13:00:37]CAPDU: 80 13 01 00 [13:00:37]Write to MH i2c: E2 08 00 73 05 80 13 01 00 00 00 00 00 F5 [13:00:37]Write i2c OK [13:00:37]MH_I2C_Read... [13:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:37]Read from MH i2c: E2 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 0E 00 [13:00:37]MH_I2C_Read... [13:00:37]Read from MH i2c: E2 0E 00 73 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DF [13:00:37]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:00:37]wFMCommunicate OK [13:00:37]SAM_PROTO_GetShiftState done [13:00:37]FM_GetShiftState done [13:00:37]opened in 1729642527 [13:00:37]opened+sec_in_day 1729728927 [13:00:37]quantity*price = 8000 [13:00:37]sum+1 = 8001 [13:00:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 68 23.10.2024 13:00 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63339 ФПД: 255677631295898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130038&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63339&fm=255677631295898&tin=02508201610067®Number=0000000000091619&sum=8000 0 [13:00:38]StoreToDocumentArchive [13:00:38]shift 546 fd 63339 [13:00:38]save to /storage/0546/doc_00063339 [13:00:38]save last doc name /storage/0546/doc_00063339 to /storage/kkm_last_doc_name [13:00:38]save OK [13:00:38]Clear old archive folders... [13:00:38]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:00:38]tlvbuf is 006E5E20 [13:00:38]SAM_PROTO_ClearQueue [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 09 00 00 [13:00:38]Write to MH i2c: E2 08 00 80 05 80 09 00 00 00 00 00 00 F7 [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 03 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 03 00 80 05 00 90 00 F9 [13:00:38]RAPDU: 90 00 [13:00:38]wFMCommunicate OK [13:00:38]SAM_PROTO_ClearQueue done [13:00:38]KKMCreateOFDPacket [13:00:38]OFDProtocolAddRootSTLVToBuf [13:00:38]FM_MakeSignedData [13:00:38]FM_MakeSignedData [13:00:38]SAM_PROTO_SignData [13:00:38]wFMCommunicate request_size=4 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 0D 01 02 [13:00:38]Write to MH i2c: E2 08 00 81 05 80 0D 01 02 00 00 00 00 FF [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:38]Read from MH i2c: E2 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 03 00 [13:00:38]MH_I2C_Read... [13:00:38]Read from MH i2c: E2 03 00 81 05 00 90 00 FA [13:00:38]RAPDU: 90 00 [13:00:38]wFMCommunicate OK [13:00:38]wFMCommunicate request_size=255 [13:00:38]MH_SAM_APDU [13:00:38]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 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 44 00 00 00 F4 03 04 00 76 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:00:38]Write to MH i2c: E2 02 01 82 05 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 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 44 00 00 00 F4 03 04 00 76 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 51 [13:00:38]Write i2c OK [13:00:38]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 82 05 00 90 00 FB [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=53 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F7 00 00 35 04 06 00 E8 89 96 63 F1 9A [13:00:39]Write to MH i2c: E2 38 00 83 05 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F7 00 00 35 04 06 00 E8 89 96 63 F1 9A 00 00 55 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 03 00 83 05 00 90 00 FC [13:00:39]RAPDU: 90 00 [13:00:39]wFMCommunicate OK [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 0D 03 02 [13:00:39]Write to MH i2c: E2 08 00 84 05 80 0D 03 02 00 00 00 00 04 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 0B 00 84 05 00 AB 73 79 9C 2D 4B D9 0B 90 00 94 [13:00:39]RAPDU: AB 73 79 9C 2D 4B D9 0B 90 00 [13:00:39]wFMCommunicate OK [13:00:39]SAM_PROTO_SignData done [13:00:39]FM_MakeSignedData done [13:00:39]CreateOFDProtocolMessage [13:00:39]wFMCommunicate request_size=4 [13:00:39]MH_SAM_APDU [13:00:39]CAPDU: 80 11 00 00 [13:00:39]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:39]Read from MH i2c: E2 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 5D [13:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:00:39]wFMCommunicate OK [13:00:39]CreateOFDProtocolMessage done [13:00:39]OFDSenderStorePacket 63339 [13:00:39]StoreOFDPacket docnum=63339 [13:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 59 B1 32 01 B6 67 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 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 44 00 00 00 F4 03 04 00 76 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F7 00 00 35 04 06 00 E8 89 96 63 F1 9A AB 73 79 9C 2D 4B D9 0B [13:00:39]CheckFolder [13:00:39]dirname=/storage/ofd_packets [13:00:39]CheckFolder done [13:00:39]ProducePacketName [13:00:39]name=ofd_packets/00063339 [13:00:39]NVStorageSaveData ofd_packets/00063339 [13:00:39]File name is /storage/ofd_packets/00063339 [13:00:39]Write 344 bytes [13:00:39]NVStorageSaveData done [13:00:39]OFDSenderStorePacket done [13:00:39]KKMCreateOFDPacket done [13:00:39]NVStorageSaveData kkm_last_timestamp [13:00:39]File name is /storage/kkm_last_timestamp [13:00:39]Write 4 bytes [13:00:39]NVStorageSaveData done [13:00:39]ExternCall_PrintAddStr [13:00:39]wPrintStart [13:00:39]Write to MH i2c: 01 00 00 86 05 8B [13:00:39]Write i2c OK [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 [13:00:39]MH_I2C_Read... [13:00:39]Read from MH i2c: 01 07 00 86 05 00 00 00 00 00 FF 0F A0 [13:00:39]RasterBufferAndPrint [13:00:39]line Счет N : (3)47649 [13:00:39]line ИНН: 02508201610067 [13:00:39]line Контрольно-Кассовый Чек [13:00:39]line ПРОДАЖА [13:00:39]line Товар: 4700003010353 [13:00:39]line Напиток Let`s Go! с/с груша ПЭТ 1л [13:00:39]line 1.000 * 80.00 [13:00:39]line = 80.00 [13:00:39]line НДС 12% НСП 1% [13:00:39]line > о реализуемом товаре [13:00:39]line ИТОГО: 80.00 [13:00:39]line НСП 1% : 0.71 [13:00:39]line НДС 12% : 8.50 [13:00:39]line Наличными: 80.00 [13:00:39]line Безнал.: 0.00 [13:00:39]line Место: АЗС № 86 "Партнер Нефть" [13:00:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:00:39]line СНО: Общий режим [13:00:39]line Чек 68 23.10.2024 13:00 [13:00:39]line Смена: 546 ФФД: 1.0 [13:00:39]line ЗНМ: 0300000154 [13:00:39]line РНМ: 0000000000091619 [13:00:39]line Версия ККМ: 001 [13:00:39]line ФМ: 0000000000874676 [13:00:39]line ФД: 63339 [13:00:39]line ФПД: 255677631295898 [13:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130038&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63339&fm=255677631295898&tin=02508201610067®Number=0000000000091619&sum=8000 [13:00:39]line 0 [13:00:39]OFD Sender: Processing packet 63339 [packets to send 232, broken 231] [13:00:39]ProducePacketName [13:00:39]name=ofd_packets/00063339 [13:00:39]OFD Sender: To server: pG, [13:00:39]CommunicateWithHost lk.salyk.kg:30040 [13:00:39]ConnectInit lk.salyk.kg [13:00:39]written 0, free lines is 4095 [13:00:39]Connected sock=10 [13:00:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 59 B1 32 01 B6 67 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 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 44 00 00 00 F4 03 04 00 76 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F7 00 00 35 04 06 00 E8 89 96 63 F1 9A AB 73 79 9C 2D 4B D9 0B [13:00:40]Write to MH i2c: 01 00 00 AF 05 B4 [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: 01 07 00 AF 05 00 00 00 00 00 09 0D D1 [13:00:40]RasterBufferAndPrint [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]line [13:00:40]written 0, free lines is 3344 [13:00:40]MH_Cut [13:00:40]Write to MH i2c: D1 01 00 B6 05 01 8D [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 01 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: D1 01 00 B6 05 00 8C [13:00:40]Write to MH i2c: 01 00 00 B7 05 BC [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 80 B0 47 00 3A 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6B F7 00 00 F4 03 04 00 6E 9D 18 67 B6 04 01 00 00 B6 CD 83 3C 29 CC DD D1 [13:00:40]CommunicateWithHost err = 0 [13:00:40]CheckOFDResponse [13:00:40]1017 (14) - 77093643461234 [13:00:40]1041 (16) - 0000000000874676 [13:00:40]1040 (4) - 63339 [13:00:40]1012 (4) - 23.10.2024 06:53 [13:00:40]1206 (1) - 0 [13:00:40]OFD Sender: Remove packet 63339 [13:00:40]ProducePacketName [13:00:40]name=ofd_packets/00063339 [13:00:40]NVStorageDeleteData [13:00:40]*** Cut start [13:00:40]*** Partial cut [13:00:40]*** CUTSNS_PIN = 1 [13:00:40]OFD Sender: No OFD packet to send [13:00:40]*** CUTSNS_PIN = 0 [13:00:41]*** Brake cut motor [13:00:41]Read from MH i2c: 01 [13:00:41]MH_I2C_Read... [13:00:41]*** Stop cut motor [13:00:41]*** Cut end [13:00:41]Read from MH i2c: 01 07 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: 01 07 00 B7 05 00 00 00 00 00 FF 0F D1 [13:00:41]process_action close_receipt done [13:00:41]requested_data is exist [13:00:41]produce_requested_data [13:00:41]requested_item fm.sn is exist - process it [13:00:41]wFMCommunicate request_size=4 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 11 00 00 [13:00:41]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:41]Read from MH i2c: E2 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 17 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 90 [13:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:00:41]wFMCommunicate OK [13:00:41]requested_item fd.num is exist - process it [13:00:41]SAM_PROTO_GetFieldsCounters [13:00:41]wFMCommunicate request_size=4 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 13 00 00 [13:00:41]Write to MH i2c: E2 08 00 B9 05 80 13 00 00 00 00 00 00 3A [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:41]Read from MH i2c: E2 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 62 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 62 00 B9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6B F7 00 00 0E 04 04 00 22 02 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 B4 [13:00:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6B F7 00 00 0E 04 04 00 22 02 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:00:41]wFMCommunicate OK [13:00:41]SAM_PROTO_GetFieldsCounters done [13:00:41]requested_item shift.num is exist - process it [13:00:41]requested_item shift.opened is exist - process it [13:00:41]req_shift_opened [13:00:41]FM_GetShiftState [13:00:41]SAM_PROTO_GetShiftState [13:00:41]wFMCommunicate request_size=4 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 13 01 00 [13:00:41]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:41]Read from MH i2c: E2 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 0E 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 26 [13:00:41]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:00:41]wFMCommunicate OK [13:00:41]SAM_PROTO_GetShiftState done [13:00:41]FM_GetShiftState done [13:00:41]req_shift_opened done [13:00:41]requested_item shift.open_date is exist - process it [13:00:41]req_shift_open_date [13:00:41]req_shift_open_date done [13:00:41]produce_requested_data done [13:00:41]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63339,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [13:00:41]process_action_free close_receipt [13:00:41]json_value_free [13:00:41]json_value_free done [13:00:41]process_json_proto returns [13:00:41]Send response to host [13:00:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63339,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [13:00:41]free response buf [13:00:41]execute_script done [13:00:41]execute_script returns [13:00:41]free content buf [13:00:41]Sock 9.Close socket [13:00:41]Sock 9.Thread stoped [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:39]accept exits with 7 [13:01:39]New connection [13:01:39]New thread 3066977636 created [13:01:39]Thread 3067120996 joined [13:01:39]Waiting for new connection... [13:01:39] Sock 7.Parse request [13:01:39]Sock 7.Check first char [13:01:39]Sock 7.First char is OK [13:01:39]request: POST /json_proto HTTP/1.0 [13:01:39]Method: POST [13:01:39]URL: /json_proto [13:01:39]Method is POST - this is cgi request [13:01:39]url: /json_proto [13:01:39]query_string will be loaded in cgi processing [13:01:39]execute_cgi json_proto POST (null) [13:01:39]execute_cgi path=json_proto method=POST [13:01:39]POST find Content-Length [13:01:39]Host: 172.17.42.132:8080 [13:01:39]Content-Length: 622 [13:01:39]Content-Type: application/json [13:01:39] [13:01:39]POST finish read [13:01:39]Found Content-Length = 622 [13:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47650", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:39]execute_script... [13:01: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 : (3)47650", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:39]POST & json_proto [13:01:39]process_json_proto [13:01:39]json parsed OK: [13:01:39]protocol is kg_v1.0 [13:01:39]action value=close_receipt [13:01:39]process_action close_receipt [13:01:39]cmd_close_receipt [13:01:39]MH_GetDate [13:01:39]Write to MH i2c: F0 00 00 BB 05 AF [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: F0 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: F0 09 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: F0 09 00 BB 05 00 B4 F3 18 67 4C DF 56 66 C5 [13:01:39]GetLastDocTimeStamp 1729688438 [13:01:39]current date 1729688500 [13:01:39]FM_GetShiftState [13:01:39]SAM_PROTO_GetShiftState [13:01:39]wFMCommunicate request_size=4 [13:01:39]MH_SAM_APDU [13:01:39]CAPDU: 80 13 01 00 [13:01:39]Write to MH i2c: E2 08 00 BC 05 80 13 01 00 00 00 00 00 3E [13:01:39]Write i2c OK [13:01:39]MH_I2C_Read... [13:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:39]Read from MH i2c: E2 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 0E 00 [13:01:39]MH_I2C_Read... [13:01:39]Read from MH i2c: E2 0E 00 BC 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 28 [13:01:39]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:01:39]wFMCommunicate OK [13:01:39]SAM_PROTO_GetShiftState done [13:01:39]FM_GetShiftState done [13:01:39]opened in 1729642527 [13:01:39]opened+sec_in_day 1729728927 [13:01:39]quantity*price = 14400 [13:01:39]sum+1 = 14401 [13:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 69 23.10.2024 13:01 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63340 ФПД: 92840173718715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130140&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63340&fm=92840173718715&tin=02508201610067®Number=0000000000091619&sum=14400 0 [13:01:40]StoreToDocumentArchive [13:01:40]shift 546 fd 63340 [13:01:40]save to /storage/0546/doc_00063340 [13:01:40]save last doc name /storage/0546/doc_00063340 to /storage/kkm_last_doc_name [13:01:40]save OK [13:01:40]Clear old archive folders... [13:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:01:40]tlvbuf is 006FF780 [13:01:40]SAM_PROTO_ClearQueue [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 09 00 00 [13:01:40]Write to MH i2c: E2 08 00 C9 05 80 09 00 00 00 00 00 00 40 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [13:01:40]RAPDU: 90 00 [13:01:40]wFMCommunicate OK [13:01:40]SAM_PROTO_ClearQueue done [13:01:40]KKMCreateOFDPacket [13:01:40]OFDProtocolAddRootSTLVToBuf [13:01:40]FM_MakeSignedData [13:01:40]FM_MakeSignedData [13:01:40]SAM_PROTO_SignData [13:01:40]wFMCommunicate request_size=4 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 0D 01 02 [13:01:40]Write to MH i2c: E2 08 00 CA 05 80 0D 01 02 00 00 00 00 48 [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:40]Read from MH i2c: E2 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 [13:01:40]MH_I2C_Read... [13:01:40]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [13:01:40]RAPDU: 90 00 [13:01:40]wFMCommunicate OK [13:01:40]wFMCommunicate request_size=255 [13:01:40]MH_SAM_APDU [13:01:40]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B4 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [13:01:40]Write to MH i2c: E2 02 01 CB 05 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B4 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 DD [13:01:40]Write i2c OK [13:01:40]MH_I2C_Read... [13:01:40]OFD Sender: No OFD packet to send [13:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 CB 05 00 90 00 44 [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]wFMCommunicate request_size=34 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F7 00 00 35 04 06 00 54 70 09 93 4C BB [13:01:41]Write to MH i2c: E2 25 00 CC 05 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F7 00 00 35 04 06 00 54 70 09 93 4C BB 00 00 DC [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 03 00 CC 05 00 90 00 45 [13:01:41]RAPDU: 90 00 [13:01:41]wFMCommunicate OK [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 0D 03 02 [13:01:41]Write to MH i2c: E2 08 00 CD 05 80 0D 03 02 00 00 00 00 4D [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 0B 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 0B 00 CD 05 00 CF 50 D9 9B 49 E4 39 11 90 00 58 [13:01:41]RAPDU: CF 50 D9 9B 49 E4 39 11 90 00 [13:01:41]wFMCommunicate OK [13:01:41]SAM_PROTO_SignData done [13:01:41]FM_MakeSignedData done [13:01:41]CreateOFDProtocolMessage [13:01:41]wFMCommunicate request_size=4 [13:01:41]MH_SAM_APDU [13:01:41]CAPDU: 80 11 00 00 [13:01:41]Write to MH i2c: E2 08 00 CE 05 80 11 00 00 00 00 00 00 4D [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:41]Read from MH i2c: E2 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 17 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: E2 17 00 CE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A6 [13:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:01:41]wFMCommunicate OK [13:01:41]CreateOFDProtocolMessage done [13:01:41]OFDSenderStorePacket 63340 [13:01:41]StoreOFDPacket docnum=63340 [13:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 EF 7F 1F 01 55 68 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B4 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F7 00 00 35 04 06 00 54 70 09 93 4C BB CF 50 D9 9B 49 E4 39 11 [13:01:41]CheckFolder [13:01:41]dirname=/storage/ofd_packets [13:01:41]CheckFolder done [13:01:41]ProducePacketName [13:01:41]name=ofd_packets/00063340 [13:01:41]NVStorageSaveData ofd_packets/00063340 [13:01:41]File name is /storage/ofd_packets/00063340 [13:01:41]Write 325 bytes [13:01:41]NVStorageSaveData done [13:01:41]OFDSenderStorePacket done [13:01:41]KKMCreateOFDPacket done [13:01:41]NVStorageSaveData kkm_last_timestamp [13:01:41]File name is /storage/kkm_last_timestamp [13:01:41]Write 4 bytes [13:01:41]NVStorageSaveData done [13:01:41]ExternCall_PrintAddStr [13:01:41]wPrintStart [13:01:41]Write to MH i2c: 01 00 00 CF 05 D4 [13:01:41]Write i2c OK [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 07 00 [13:01:41]MH_I2C_Read... [13:01:41]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FF 0F E9 [13:01:41]RasterBufferAndPrint [13:01:41]line Счет N : (3)47650 [13:01:41]line ИНН: 02508201610067 [13:01:41]line Контрольно-Кассовый Чек [13:01:41]line ПРОДАЖА [13:01:41]line Товар: 48743587 [13:01:41]line Сигареты Winston XStyle Silver [13:01:41]line 1.000 * 144.00 [13:01:41]line = 144.00 [13:01:41]line НДС 12% НСП 1% [13:01:41]line > о реализуемом товаре [13:01:41]line ИТОГО: 144.00 [13:01:41]line НСП 1% : 1.27 [13:01:41]line НДС 12% : 15.29 [13:01:41]line Наличными: 144.00 [13:01:41]line Безнал.: 0.00 [13:01:41]line Место: АЗС № 86 "Партнер Нефть" [13:01:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:01:41]line СНО: Общий режим [13:01:41]line Чек 69 23.10.2024 13:01 [13:01:41]line Смена: 546 ФФД: 1.0 [13:01:41]line ЗНМ: 0300000154 [13:01:41]line РНМ: 0000000000091619 [13:01:41]line Версия ККМ: 001 [13:01:41]line ФМ: 0000000000874676 [13:01:41]line ФД: 63340 [13:01:41]line ФПД: 92840173718715 [13:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T130140&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63340&fm=92840173718715&tin=02508201610067®Number=0000000000091619&sum=14400 [13:01:41]line 0 [13:01:41]OFD Sender: Processing packet 63340 [packets to send 232, broken 231] [13:01:41]ProducePacketName [13:01:41]name=ofd_packets/00063340 [13:01:41]OFD Sender: To server: pG, [13:01:41]CommunicateWithHost lk.salyk.kg:30040 [13:01:41]ConnectInit lk.salyk.kg [13:01:41]written 0, free lines is 4095 [13:01:41]Connected sock=9 [13:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 EF 7F 1F 01 55 68 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 B4 F3 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6C F7 00 00 35 04 06 00 54 70 09 93 4C BB CF 50 D9 9B 49 E4 39 11 [13:01:42]Write to MH i2c: 01 00 00 F8 05 FD [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 0B 0D 1C [13:01:42]RasterBufferAndPrint [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]line [13:01:42]written 0, free lines is 3345 [13:01:42]MH_Cut [13:01:42]Write to MH i2c: D1 01 00 FF 05 01 D6 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 01 00 [13:01:42]MH_I2C_Read... [13:01:42]Read from MH i2c: D1 01 00 FF 05 00 D5 [13:01:42]Write to MH i2c: 01 00 00 00 06 06 [13:01:42]Write i2c OK [13:01:42]MH_I2C_Read... [13:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 FE BC 47 00 7B 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 38 37 34 36 37 36 10 04 04 00 6C F7 00 00 F4 03 04 00 AC 9D 18 67 B6 04 01 00 00 87 92 65 01 13 2B 8F B1 [13:01:42]CommunicateWithHost err = 0 [13:01:42]CheckOFDResponse [13:01:42]1017 (14) - 77093643461234 [13:01:42]1041 (16) - 0000000000874676 [13:01:42]1040 (4) - 63340 [13:01:42]1012 (4) - 23.10.2024 06:54 [13:01:42]1206 (1) - 0 [13:01:42]OFD Sender: Remove packet 63340 [13:01:42]ProducePacketName [13:01:42]name=ofd_packets/00063340 [13:01:42]NVStorageDeleteData [13:01:42]*** Cut start [13:01:42]*** Partial cut [13:01:42]*** CUTSNS_PIN = 1 [13:01:42]OFD Sender: No OFD packet to send [13:01:42]*** CUTSNS_PIN = 0 [13:01:42]*** Brake cut motor [13:01:43]Read from MH i2c: 01 [13:01:43]MH_I2C_Read... [13:01:43]*** Stop cut motor [13:01:43]*** Cut end [13:01:43]Read from MH i2c: 01 07 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [13:01:43]process_action close_receipt done [13:01:43]requested_data is exist [13:01:43]produce_requested_data [13:01:43]requested_item fm.sn is exist - process it [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 11 00 00 [13:01:43]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 17 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DA [13:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:01:43]wFMCommunicate OK [13:01:43]requested_item fd.num is exist - process it [13:01:43]SAM_PROTO_GetFieldsCounters [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 13 00 00 [13:01:43]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 62 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6C F7 00 00 0E 04 04 00 22 02 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 02 [13:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6C F7 00 00 0E 04 04 00 22 02 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:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_GetFieldsCounters done [13:01:43]requested_item shift.num is exist - process it [13:01:43]requested_item shift.opened is exist - process it [13:01:43]req_shift_opened [13:01:43]FM_GetShiftState [13:01:43]SAM_PROTO_GetShiftState [13:01:43]wFMCommunicate request_size=4 [13:01:43]MH_SAM_APDU [13:01:43]CAPDU: 80 13 01 00 [13:01:43]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [13:01:43]Write i2c OK [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 [13:01:43]MH_I2C_Read... [13:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:43]Read from MH i2c: E2 0E 00 [13:01:43]MH_I2C_Read... [13:01:43]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 70 [13:01:43]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:01:43]wFMCommunicate OK [13:01:43]SAM_PROTO_GetShiftState done [13:01:43]FM_GetShiftState done [13:01:43]req_shift_opened done [13:01:43]requested_item shift.open_date is exist - process it [13:01:43]req_shift_open_date [13:01:43]req_shift_open_date done [13:01:43]produce_requested_data done [13:01:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63340,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [13:01:43]process_action_free close_receipt [13:01:43]json_value_free [13:01:43]json_value_free done [13:01:43]process_json_proto returns [13:01:43]Send response to host [13:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63340,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [13:01:43]free response buf [13:01:43]execute_script done [13:01:43]execute_script returns [13:01:43]free content buf [13:01:43]Sock 7.Close socket [13:01:43]Sock 7.Thread stoped [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:41]accept exits with 10 [13:15:41]New connection [13:15:41]New thread 3067120996 created [13:15:41]Thread 3066977636 joined [13:15:41]Waiting for new connection... [13:15:41] Sock 10.Parse request [13:15:41]Sock 10.Check first char [13:15:41]Sock 10.First char is OK [13:15:41]request: POST /json_proto HTTP/1.0 [13:15:41]Method: POST [13:15:41]URL: /json_proto [13:15:41]Method is POST - this is cgi request [13:15:41]url: /json_proto [13:15:41]query_string will be loaded in cgi processing [13:15:41]execute_cgi json_proto POST (null) [13:15:41]execute_cgi path=json_proto method=POST [13:15:41]POST find Content-Length [13:15:41]Host: 172.17.42.132:8080 [13:15:41]Content-Length: 758 [13:15:41]Content-Type: application/json [13:15:41] [13:15:41]POST finish read [13:15:41]Found Content-Length = 758 [13:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47651", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 39.65, "quantity" : 1.000, "sum" : 39.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", "payments": [ { "type": 1, "sum" : 39.65 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:41]execute_script... [13:15:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47651", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 39.65, "quantity" : 1.000, "sum" : 39.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", "payments": [ { "type": 1, "sum" : 39.65 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:41]POST & json_proto [13:15:41]process_json_proto [13:15:41]json parsed OK: [13:15:41]protocol is kg_v1.0 [13:15:41]action value=close_receipt [13:15:41]process_action close_receipt [13:15:41]cmd_close_receipt [13:15:41]MH_GetDate [13:15:41]Write to MH i2c: F0 00 00 04 06 F9 [13:15:41]Write i2c OK [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: F0 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: F0 09 00 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: F0 09 00 04 06 00 FE F6 18 67 4C DF 56 66 5C [13:15:41]GetLastDocTimeStamp 1729688500 [13:15:41]current date 1729689342 [13:15:41]FM_GetShiftState [13:15:41]SAM_PROTO_GetShiftState [13:15:41]wFMCommunicate request_size=4 [13:15:41]MH_SAM_APDU [13:15:41]CAPDU: 80 13 01 00 [13:15:41]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [13:15:41]Write i2c OK [13:15:41]MH_I2C_Read... [13:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:41]Read from MH i2c: E2 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 0E 00 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 72 [13:15:41]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:15:41]wFMCommunicate OK [13:15:41]SAM_PROTO_GetShiftState done [13:15:41]FM_GetShiftState done [13:15:41]opened in 1729642527 [13:15:41]opened+sec_in_day 1729728927 [13:15:41]quantity*price = 3965 [13:15:41]sum+1 = 3966 [13:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 39.65 НСП 1% : 0.35 НДС 12% : 4.21 Наличными: 0.00 Безнал.: 39.65 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 70 23.10.2024 13:15 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63341 ФПД: 277098613481188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131542&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63341&fm=277098613481188&tin=02508201610067®Number=0000000000091619&sum=3965 0 [13:15:42]StoreToDocumentArchive [13:15:42]shift 546 fd 63341 [13:15:42]save to /storage/0546/doc_00063341 [13:15:42]save last doc name /storage/0546/doc_00063341 to /storage/kkm_last_doc_name [13:15:42]save OK [13:15:42]Clear old archive folders... [13:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:15:42]tlvbuf is 006FE4E0 [13:15:42]SAM_PROTO_ClearQueue [13:15:42]wFMCommunicate request_size=4 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 09 00 00 [13:15:42]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [13:15:42]RAPDU: 90 00 [13:15:42]wFMCommunicate OK [13:15:42]SAM_PROTO_ClearQueue done [13:15:42]KKMCreateOFDPacket [13:15:42]OFDProtocolAddRootSTLVToBuf [13:15:42]FM_MakeSignedData [13:15:42]FM_MakeSignedData [13:15:42]SAM_PROTO_SignData [13:15:42]wFMCommunicate request_size=4 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 0D 01 02 [13:15:42]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [13:15:42]RAPDU: 90 00 [13:15:42]wFMCommunicate OK [13:15:42]wFMCommunicate request_size=255 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7D 0F 00 00 00 00 13 04 06 00 7D 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FE F6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:15:42]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7D 0F 00 00 00 00 13 04 06 00 7D 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FE F6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C5 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [13:15:43]RAPDU: 90 00 [13:15:43]wFMCommunicate OK [13:15:43]wFMCommunicate request_size=30 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 0D 02 02 19 30 38 37 34 36 37 36 10 04 04 00 6D F7 00 00 35 04 06 00 FC 05 0C 6C 9E E4 [13:15:43]Write to MH i2c: E2 21 00 15 06 80 0D 02 02 19 00 30 38 37 34 36 37 36 10 04 04 00 6D F7 00 00 35 04 06 00 FC 05 0C 6C 9E E4 00 00 F3 [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [13:15:43]RAPDU: 90 00 [13:15:43]wFMCommunicate OK [13:15:43]wFMCommunicate request_size=4 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 0D 03 02 [13:15:43]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 0B 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 0B 00 16 06 00 74 64 F7 B7 8C DA F8 29 90 00 A5 [13:15:43]RAPDU: 74 64 F7 B7 8C DA F8 29 90 00 [13:15:43]wFMCommunicate OK [13:15:43]SAM_PROTO_SignData done [13:15:43]FM_MakeSignedData done [13:15:43]CreateOFDProtocolMessage [13:15:43]wFMCommunicate request_size=4 [13:15:43]MH_SAM_APDU [13:15:43]CAPDU: 80 11 00 00 [13:15:43]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:43]Read from MH i2c: E2 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 17 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F0 [13:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:15:43]wFMCommunicate OK [13:15:43]CreateOFDProtocolMessage done [13:15:43]OFDSenderStorePacket 63341 [13:15:43]StoreOFDPacket docnum=63341 [13:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 23 01 00 00 FF F7 1B 01 17 A2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7D 0F 00 00 00 00 13 04 06 00 7D 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FE F6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6D F7 00 00 35 04 06 00 FC 05 0C 6C 9E E4 74 64 F7 B7 8C DA F8 29 [13:15:43]CheckFolder [13:15:43]dirname=/storage/ofd_packets [13:15:43]CheckFolder done [13:15:43]ProducePacketName [13:15:43]name=ofd_packets/00063341 [13:15:43]NVStorageSaveData ofd_packets/00063341 [13:15:43]File name is /storage/ofd_packets/00063341 [13:15:43]Write 321 bytes [13:15:43]NVStorageSaveData done [13:15:43]OFDSenderStorePacket done [13:15:43]KKMCreateOFDPacket done [13:15:43]NVStorageSaveData kkm_last_timestamp [13:15:43]File name is /storage/kkm_last_timestamp [13:15:43]Write 4 bytes [13:15:43]NVStorageSaveData done [13:15:43]OFD Sender: Processing packet 63341 [packets to send 232, broken 231] [13:15:43]ProducePacketName [13:15:43]name=ofd_packets/00063341 [13:15:43]OFD Sender: To server: pG, [13:15:43]CommunicateWithHost lk.salyk.kg:30040 [13:15:43]ConnectInit lk.salyk.kg [13:15:43]ExternCall_PrintAddStr [13:15:43]wPrintStart [13:15:43]Write to MH i2c: 01 00 00 18 06 1E [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 07 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [13:15:43]RasterBufferAndPrint [13:15:43]line Счет N : (3)47651 [13:15:43]line ИНН: 02508201610067 [13:15:43]line Контрольно-Кассовый Чек [13:15:43]line ПРОДАЖА [13:15:43]line Товар: 4700000160211 [13:15:43]line Вода Легенда 0,5л [13:15:43]line 1.000 * 39.65 [13:15:43]line = 39.65 [13:15:43]line НДС 12% НСП 1% [13:15:43]line > о реализуемом товаре [13:15:43]line ИТОГО: 39.65 [13:15:43]line НСП 1% : 0.35 [13:15:43]line НДС 12% : 4.21 [13:15:43]line Наличными: 0.00 [13:15:43]line Безнал.: 39.65 [13:15:43]line Место: АЗС № 86 "Партнер Нефть" [13:15:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:15:43]line СНО: Общий режим [13:15:43]line Чек 70 23.10.2024 13:15 [13:15:43]line Смена: 546 ФФД: 1.0 [13:15:43]line ЗНМ: 0300000154 [13:15:43]line РНМ: 0000000000091619 [13:15:43]line Версия ККМ: 001 [13:15:43]line Платежная система: Mbank [13:15:43]line ФМ: 0000000000874676 [13:15:43]line ФД: 63341 [13:15:43]line ФПД: 277098613481188 [13:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T131542&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63341&fm=277098613481188&tin=02508201610067®Number=0000000000091619&sum=3965 [13:15:43]Connected sock=11 [13:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 23 01 00 00 FF F7 1B 01 17 A2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7D 0F 00 00 00 00 13 04 06 00 7D 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 01 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 0F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 FE F6 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6D F7 00 00 35 04 06 00 FC 05 0C 6C 9E E4 74 64 F7 B7 8C DA F8 29 [13:15:43]line 0 [13:15:43]written 0, free lines is 4095 [13:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6E A4 47 00 93 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6D F7 00 00 F4 03 04 00 F5 A0 18 67 B6 04 01 00 00 4C DF 4C 51 A3 A8 9A 89 [13:15:43]CommunicateWithHost err = 0 [13:15:43]CheckOFDResponse [13:15:43]1017 (14) - 77093643461234 [13:15:43]1041 (16) - 0000000000874676 [13:15:43]1040 (4) - 63341 [13:15:43]1012 (4) - 23.10.2024 07:08 [13:15:43]1206 (1) - 0 [13:15:43]OFD Sender: Remove packet 63341 [13:15:43]ProducePacketName [13:15:43]name=ofd_packets/00063341 [13:15:43]NVStorageDeleteData [13:15:44]Write to MH i2c: 01 00 00 41 06 47 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 09 0D 64 [13:15:44]RasterBufferAndPrint [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]line [13:15:44]written 0, free lines is 3343 [13:15:44]MH_Cut [13:15:44]Write to MH i2c: D1 01 00 48 06 01 20 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 01 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: D1 01 00 48 06 00 1F [13:15:44]Write to MH i2c: 01 00 00 49 06 4F [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]OFD Sender: No OFD packet to send [13:15:44]*** Cut start [13:15:44]*** Partial cut [13:15:44]*** CUTSNS_PIN = 1 [13:15:44]*** CUTSNS_PIN = 0 [13:15:44]*** Brake cut motor [13:15:45]Read from MH i2c: 01 [13:15:45]MH_I2C_Read... [13:15:45]*** Stop cut motor [13:15:45]*** Cut end [13:15:45]Read from MH i2c: 01 07 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: 01 07 00 49 06 00 00 00 00 00 FF 0F 64 [13:15:45]process_action close_receipt done [13:15:45]requested_data is exist [13:15:45]produce_requested_data [13:15:45]requested_item fm.sn is exist - process it [13:15:45]wFMCommunicate request_size=4 [13:15:45]MH_SAM_APDU [13:15:45]CAPDU: 80 11 00 00 [13:15:45]Write to MH i2c: E2 08 00 4A 06 80 11 00 00 00 00 00 00 CA [13:15:45]Write i2c OK [13:15:45]MH_I2C_Read... [13:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:45]Read from MH i2c: E2 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 17 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 17 00 4A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 23 [13:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:15:45]wFMCommunicate OK [13:15:45]requested_item fd.num is exist - process it [13:15:45]SAM_PROTO_GetFieldsCounters [13:15:45]wFMCommunicate request_size=4 [13:15:45]MH_SAM_APDU [13:15:45]CAPDU: 80 13 00 00 [13:15:45]Write to MH i2c: E2 08 00 4B 06 80 13 00 00 00 00 00 00 CD [13:15:45]Write i2c OK [13:15:45]MH_I2C_Read... [13:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:45]Read from MH i2c: E2 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 62 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 62 00 4B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6D F7 00 00 0E 04 04 00 22 02 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 4F [13:15:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6D F7 00 00 0E 04 04 00 22 02 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 [13:15:45]wFMCommunicate OK [13:15:45]SAM_PROTO_GetFieldsCounters done [13:15:45]requested_item shift.num is exist - process it [13:15:45]requested_item shift.opened is exist - process it [13:15:45]req_shift_opened [13:15:45]FM_GetShiftState [13:15:45]SAM_PROTO_GetShiftState [13:15:45]wFMCommunicate request_size=4 [13:15:45]MH_SAM_APDU [13:15:45]CAPDU: 80 13 01 00 [13:15:45]Write to MH i2c: E2 08 00 4C 06 80 13 01 00 00 00 00 00 CF [13:15:45]Write i2c OK [13:15:45]MH_I2C_Read... [13:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:45]Read from MH i2c: E2 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 0E 00 [13:15:45]MH_I2C_Read... [13:15:45]Read from MH i2c: E2 0E 00 4C 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 B9 [13:15:45]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:15:45]wFMCommunicate OK [13:15:45]SAM_PROTO_GetShiftState done [13:15:45]FM_GetShiftState done [13:15:45]req_shift_opened done [13:15:45]requested_item shift.open_date is exist - process it [13:15:45]req_shift_open_date [13:15:45]req_shift_open_date done [13:15:45]produce_requested_data done [13:15:45]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63341,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [13:15:45]process_action_free close_receipt [13:15:45]json_value_free [13:15:45]json_value_free done [13:15:45]process_json_proto returns [13:15:45]Send response to host [13:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63341,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [13:15:45]free response buf [13:15:45]execute_script done [13:15:45]execute_script returns [13:15:45]free content buf [13:15:45]Sock 10.Close socket [13:15:45]Sock 10.Thread stoped [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:48]accept exits with 7 [13:20:48]New connection [13:20:48]New thread 3066977636 created [13:20:48]Thread 3067120996 joined [13:20:48]Waiting for new connection... [13:20:48] Sock 7.Parse request [13:20:48]Sock 7.Check first char [13:20:48]Sock 7.First char is OK [13:20:48]request: POST /json_proto HTTP/1.0 [13:20:48]Method: POST [13:20:48]URL: /json_proto [13:20:48]Method is POST - this is cgi request [13:20:48]url: /json_proto [13:20:48]query_string will be loaded in cgi processing [13:20:48]execute_cgi json_proto POST (null) [13:20:48]execute_cgi path=json_proto method=POST [13:20:48]POST find Content-Length [13:20:48]Host: 172.17.42.132:8080 [13:20:48]Content-Length: 748 [13:20:48]Content-Type: application/json [13:20:48] [13:20:48]POST finish read [13:20:48]Found Content-Length = 748 [13:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47652", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.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", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:48]execute_script... [13:20:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47652", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.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", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:48]POST & json_proto [13:20:48]process_json_proto [13:20:48]json parsed OK: [13:20:48]protocol is kg_v1.0 [13:20:48]action value=close_receipt [13:20:48]process_action close_receipt [13:20:48]cmd_close_receipt [13:20:48]MH_GetDate [13:20:48]Write to MH i2c: F0 00 00 4D 06 42 [13:20:48]Write i2c OK [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 09 00 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: F0 09 00 4D 06 00 31 F8 18 67 4C DF 56 66 DA [13:20:48]GetLastDocTimeStamp 1729689342 [13:20:48]current date 1729689649 [13:20:48]FM_GetShiftState [13:20:48]SAM_PROTO_GetShiftState [13:20:48]wFMCommunicate request_size=4 [13:20:48]MH_SAM_APDU [13:20:48]CAPDU: 80 13 01 00 [13:20:48]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [13:20:48]Write i2c OK [13:20:48]MH_I2C_Read... [13:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:48]Read from MH i2c: E2 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: E2 0E 00 [13:20:48]MH_I2C_Read... [13:20:48]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BB [13:20:48]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:20:48]wFMCommunicate OK [13:20:48]SAM_PROTO_GetShiftState done [13:20:48]FM_GetShiftState done [13:20:48]opened in 1729642527 [13:20:48]opened+sec_in_day 1729728927 [13:20:48]quantity*price = 15858 [13:20:48]sum+1 = 15859 [13:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 158.58 НСП 1% : 1.40 НДС 12% : 16.84 Наличными: 0.00 Безнал.: 158.58 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 71 23.10.2024 13:20 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63342 ФПД: 59189920264044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132049&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63342&fm=59189920264044&tin=02508201610067®Number=0000000000091619&sum=15858 0 [13:20:49]StoreToDocumentArchive [13:20:49]shift 546 fd 63342 [13:20:49]save to /storage/0546/doc_00063342 [13:20:49]save last doc name /storage/0546/doc_00063342 to /storage/kkm_last_doc_name [13:20:49]save OK [13:20:49]Clear old archive folders... [13:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:20:49]tlvbuf is 006F1CA0 [13:20:49]SAM_PROTO_ClearQueue [13:20:49]wFMCommunicate request_size=4 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 09 00 00 [13:20:49]Write to MH i2c: E2 08 00 5B 06 80 09 00 00 00 00 00 00 D3 [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:49]Read from MH i2c: E2 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 03 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [13:20:49]RAPDU: 90 00 [13:20:49]wFMCommunicate OK [13:20:49]SAM_PROTO_ClearQueue done [13:20:49]KKMCreateOFDPacket [13:20:49]OFDProtocolAddRootSTLVToBuf [13:20:49]FM_MakeSignedData [13:20:49]FM_MakeSignedData [13:20:49]SAM_PROTO_SignData [13:20:49]wFMCommunicate request_size=4 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 0D 01 02 [13:20:49]Write to MH i2c: E2 08 00 5C 06 80 0D 01 02 00 00 00 00 DB [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:49]Read from MH i2c: E2 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 03 00 [13:20:49]MH_I2C_Read... [13:20:49]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [13:20:49]RAPDU: 90 00 [13:20:49]wFMCommunicate OK [13:20:49]wFMCommunicate request_size=255 [13:20:49]MH_SAM_APDU [13:20:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 31 F8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [13:20:49]Write to MH i2c: E2 02 01 5D 06 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 31 F8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 F3 [13:20:49]Write i2c OK [13:20:49]MH_I2C_Read... [13:20:49]OFD Sender: No OFD packet to send [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=33 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6E F7 00 00 35 04 06 00 35 D5 3A 2B EF 6C [13:20:50]Write to MH i2c: E2 24 00 5E 06 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6E F7 00 00 35 04 06 00 35 D5 3A 2B EF 6C 00 00 A2 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [13:20:50]RAPDU: 90 00 [13:20:50]wFMCommunicate OK [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 0D 03 02 [13:20:50]Write to MH i2c: E2 08 00 5F 06 80 0D 03 02 00 00 00 00 E0 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 0B 00 5F 06 00 81 B8 B0 AE 8F FF 24 27 90 00 51 [13:20:50]RAPDU: 81 B8 B0 AE 8F FF 24 27 90 00 [13:20:50]wFMCommunicate OK [13:20:50]SAM_PROTO_SignData done [13:20:50]FM_MakeSignedData done [13:20:50]CreateOFDProtocolMessage [13:20:50]wFMCommunicate request_size=4 [13:20:50]MH_SAM_APDU [13:20:50]CAPDU: 80 11 00 00 [13:20:50]Write to MH i2c: E2 08 00 60 06 80 11 00 00 00 00 00 00 E0 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:50]Read from MH i2c: E2 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 17 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: E2 17 00 60 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 39 [13:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:20:50]wFMCommunicate OK [13:20:50]CreateOFDProtocolMessage done [13:20:50]OFDSenderStorePacket 63342 [13:20:50]StoreOFDPacket docnum=63342 [13:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 BC CA 1E 01 60 F6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 31 F8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6E F7 00 00 35 04 06 00 35 D5 3A 2B EF 6C 81 B8 B0 AE 8F FF 24 27 [13:20:50]CheckFolder [13:20:50]dirname=/storage/ofd_packets [13:20:50]CheckFolder done [13:20:50]ProducePacketName [13:20:50]name=ofd_packets/00063342 [13:20:50]NVStorageSaveData ofd_packets/00063342 [13:20:50]File name is /storage/ofd_packets/00063342 [13:20:50]Write 324 bytes [13:20:50]NVStorageSaveData done [13:20:50]OFDSenderStorePacket done [13:20:50]KKMCreateOFDPacket done [13:20:50]NVStorageSaveData kkm_last_timestamp [13:20:50]File name is /storage/kkm_last_timestamp [13:20:50]Write 4 bytes [13:20:50]NVStorageSaveData done [13:20:50]ExternCall_PrintAddStr [13:20:50]wPrintStart [13:20:50]Write to MH i2c: 01 00 00 61 06 67 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 61 06 00 00 00 00 00 FF 0F 7C [13:20:50]RasterBufferAndPrint [13:20:50]line Счет N : (3)47652 [13:20:50]line ИНН: 02508201610067 [13:20:50]line Контрольно-Кассовый Чек [13:20:50]line ПРОДАЖА [13:20:50]line Товар: 48741958 [13:20:50]line Сигареты Parliament Aqua Blue [13:20:50]line 1.000 * 158.58 [13:20:50]line = 158.58 [13:20:50]line НДС 12% НСП 1% [13:20:50]line > о реализуемом товаре [13:20:50]line ИТОГО: 158.58 [13:20:50]line НСП 1% : 1.40 [13:20:50]line НДС 12% : 16.84 [13:20:50]line Наличными: 0.00 [13:20:50]line Безнал.: 158.58 [13:20:50]line Место: АЗС № 86 "Партнер Нефть" [13:20:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:20:50]line СНО: Общий режим [13:20:50]line Чек 71 23.10.2024 13:20 [13:20:50]line Смена: 546 ФФД: 1.0 [13:20:50]line ЗНМ: 0300000154 [13:20:50]line РНМ: 0000000000091619 [13:20:50]line Версия ККМ: 001 [13:20:50]line Платежная система: Mbank [13:20:50]line ФМ: 0000000000874676 [13:20:50]line ФД: 63342 [13:20:50]line ФПД: 59189920264044 [13:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T132049&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63342&fm=59189920264044&tin=02508201610067®Number=0000000000091619&sum=15858 [13:20:50]OFD Sender: Processing packet 63342 [packets to send 232, broken 231] [13:20:50]ProducePacketName [13:20:50]name=ofd_packets/00063342 [13:20:50]OFD Sender: To server: pG, [13:20:50]CommunicateWithHost lk.salyk.kg:30040 [13:20:50]ConnectInit lk.salyk.kg [13:20:50]line 0 [13:20:50]written 0, free lines is 4095 [13:20:50]Connected sock=11 [13:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 BC CA 1E 01 60 F6 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 31 F8 18 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6E F7 00 00 35 04 06 00 35 D5 3A 2B EF 6C 81 B8 B0 AE 8F FF 24 27 [13:20:50]Write to MH i2c: 01 00 00 8B 06 91 [13:20:50]Write i2c OK [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 [13:20:50]MH_I2C_Read... [13:20:50]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 ED 0C 91 [13:20:50]RasterBufferAndPrint [13:20:50]line [13:20:50]line [13:20:50]line [13:20:50]line [13:20:50]line [13:20:50]written 0, free lines is 3315 [13:20:51]MH_Cut [13:20:51]Write to MH i2c: D1 01 00 92 06 01 6A [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 [13:20:51]MH_I2C_Read... [13:20:51]Read from MH i2c: D1 01 00 92 06 00 69 [13:20:51]Write to MH i2c: 01 00 00 93 06 99 [13:20:51]Write i2c OK [13:20:51]MH_I2C_Read... [13:20:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 4D 42 47 00 AD D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6E F7 00 00 F4 03 04 00 29 A2 18 67 B6 04 01 00 00 2F 81 30 31 E9 1F CC 69 [13:20:51]CommunicateWithHost err = 0 [13:20:51]CheckOFDResponse [13:20:51]1017 (14) - 77093643461234 [13:20:51]1041 (16) - 0000000000874676 [13:20:51]1040 (4) - 63342 [13:20:51]1012 (4) - 23.10.2024 07:13 [13:20:51]1206 (1) - 0 [13:20:51]OFD Sender: Remove packet 63342 [13:20:51]ProducePacketName [13:20:51]name=ofd_packets/00063342 [13:20:51]NVStorageDeleteData [13:20:51]*** Cut start [13:20:51]*** Partial cut [13:20:51]*** CUTSNS_PIN = 1 [13:20:51]OFD Sender: No OFD packet to send [13:20:51]*** CUTSNS_PIN = 0 [13:20:51]*** Brake cut motor [13:20:52]Read from MH i2c: 01 [13:20:52]MH_I2C_Read... [13:20:52]*** Stop cut motor [13:20:52]*** Cut end [13:20:52]Read from MH i2c: 01 07 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [13:20:52]process_action close_receipt done [13:20:52]requested_data is exist [13:20:52]produce_requested_data [13:20:52]requested_item fm.sn is exist - process it [13:20:52]wFMCommunicate request_size=4 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 11 00 00 [13:20:52]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 17 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6D [13:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [13:20:52]wFMCommunicate OK [13:20:52]requested_item fd.num is exist - process it [13:20:52]SAM_PROTO_GetFieldsCounters [13:20:52]wFMCommunicate request_size=4 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 13 00 00 [13:20:52]Write to MH i2c: E2 08 00 95 06 80 13 00 00 00 00 00 00 17 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 62 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 62 00 95 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6E F7 00 00 0E 04 04 00 22 02 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 9D [13:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6E F7 00 00 0E 04 04 00 22 02 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 [13:20:52]wFMCommunicate OK [13:20:52]SAM_PROTO_GetFieldsCounters done [13:20:52]requested_item shift.num is exist - process it [13:20:52]requested_item shift.opened is exist - process it [13:20:52]req_shift_opened [13:20:52]FM_GetShiftState [13:20:52]SAM_PROTO_GetShiftState [13:20:52]wFMCommunicate request_size=4 [13:20:52]MH_SAM_APDU [13:20:52]CAPDU: 80 13 01 00 [13:20:52]Write to MH i2c: E2 08 00 96 06 80 13 01 00 00 00 00 00 19 [13:20:52]Write i2c OK [13:20:52]MH_I2C_Read... [13:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:52]Read from MH i2c: E2 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 0E 00 [13:20:52]MH_I2C_Read... [13:20:52]Read from MH i2c: E2 0E 00 96 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 03 [13:20:52]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [13:20:52]wFMCommunicate OK [13:20:52]SAM_PROTO_GetShiftState done [13:20:52]FM_GetShiftState done [13:20:52]req_shift_opened done [13:20:52]requested_item shift.open_date is exist - process it [13:20:52]req_shift_open_date [13:20:52]req_shift_open_date done [13:20:52]produce_requested_data done [13:20:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63342,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [13:20:52]process_action_free close_receipt [13:20:52]json_value_free [13:20:52]json_value_free done [13:20:52]process_json_proto returns [13:20:52]Send response to host [13:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63342,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [13:20:52]free response buf [13:20:52]execute_script done [13:20:52]execute_script returns [13:20:52]free content buf [13:20:52]Sock 7.Close socket [13:20:52]Sock 7.Thread stoped [13:20:56]OFD Sender: No OFD packet to send [13:21:01]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:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:12]OFD Sender: No OFD packet to send [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:37]OFD Sender: No OFD packet to send [13:33:42]OFD Sender: No OFD packet to send [13:33:47]OFD Sender: No OFD packet to send [13:33:52]OFD Sender: No OFD packet to send [13:33:57]OFD Sender: No OFD packet to send [13:34:02]OFD Sender: No OFD packet to send [13:34:07]OFD Sender: No OFD packet to send [13:34:12]OFD Sender: No OFD packet to send [13:34:17]OFD Sender: No OFD packet to send [13:34:22]OFD Sender: No OFD packet to send [13:34:27]OFD Sender: No OFD packet to send [13:34:32]OFD Sender: No OFD packet to send [13:34:37]OFD Sender: No OFD packet to send [13:34:42]OFD Sender: No OFD packet to send [13:34:47]OFD Sender: No OFD packet to send [13:34:52]OFD Sender: No OFD packet to send [13:34:57]OFD Sender: No OFD packet to send [13:35:02]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]accept exits with 9 [14:05:05]New connection [14:05:05]New thread 3067120996 created [14:05:05]Thread 3066977636 joined [14:05:05]Waiting for new connection... [14:05:05] Sock 9.Parse request [14:05:05]Sock 9.Check first char [14:05:05]Sock 9.First char is OK [14:05:05]request: POST /json_proto HTTP/1.0 [14:05:05]Method: POST [14:05:05]URL: /json_proto [14:05:05]Method is POST - this is cgi request [14:05:05]url: /json_proto [14:05:05]query_string will be loaded in cgi processing [14:05:05]execute_cgi json_proto POST (null) [14:05:05]execute_cgi path=json_proto method=POST [14:05:05]POST find Content-Length [14:05:05]Host: 172.17.42.132:8080 [14:05:05]Content-Length: 674 [14:05:05]Content-Type: application/json [14:05:05] [14:05:05]POST finish read [14:05:05]Found Content-Length = 674 [14:05:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47653", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:05]execute_script... [14:05:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47653", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:05]POST & json_proto [14:05:05]process_json_proto [14:05:05]json parsed OK: [14:05:05]protocol is kg_v1.0 [14:05:05]action value=close_receipt [14:05:05]process_action close_receipt [14:05:05]cmd_close_receipt [14:05:05]MH_GetDate [14:05:05]Write to MH i2c: F0 00 00 97 06 8C [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: F0 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: F0 09 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: F0 09 00 97 06 00 92 02 19 67 4C DF 56 66 90 [14:05:05]GetLastDocTimeStamp 1729689649 [14:05:05]current date 1729692306 [14:05:05]FM_GetShiftState [14:05:05]SAM_PROTO_GetShiftState [14:05:05]wFMCommunicate request_size=4 [14:05:05]MH_SAM_APDU [14:05:05]CAPDU: 80 13 01 00 [14:05:05]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [14:05:05]Write i2c OK [14:05:05]MH_I2C_Read... [14:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:05]Read from MH i2c: E2 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 0E 00 [14:05:05]MH_I2C_Read... [14:05:05]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 05 [14:05:05]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:05:05]wFMCommunicate OK [14:05:05]SAM_PROTO_GetShiftState done [14:05:05]FM_GetShiftState done [14:05:05]opened in 1729642527 [14:05:05]opened+sec_in_day 1729728927 [14:05:05]quantity*price = 8900 [14:05:05]sum+1 = 8901 [14:05:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 72 23.10.2024 14:05 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63343 ФПД: 159762464134831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140506&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63343&fm=159762464134831&tin=02508201610067®Number=0000000000091619&sum=8900 0 [14:05:06]StoreToDocumentArchive [14:05:06]shift 546 fd 63343 [14:05:06]save to /storage/0546/doc_00063343 [14:05:06]save last doc name /storage/0546/doc_00063343 to /storage/kkm_last_doc_name [14:05:06]save OK [14:05:06]Clear old archive folders... [14:05:06]ProcessDocumentItem done err = 0, tmpTLVsize=286 [14:05:06]tlvbuf is 00729CD0 [14:05:06]SAM_PROTO_ClearQueue [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 09 00 00 [14:05:06]Write to MH i2c: E2 08 00 A5 06 80 09 00 00 00 00 00 00 1D [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [14:05:06]RAPDU: 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_ClearQueue done [14:05:06]KKMCreateOFDPacket [14:05:06]OFDProtocolAddRootSTLVToBuf [14:05:06]FM_MakeSignedData [14:05:06]FM_MakeSignedData [14:05:06]SAM_PROTO_SignData [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 0D 01 02 [14:05:06]Write to MH i2c: E2 08 00 A6 06 80 0D 01 02 00 00 00 00 25 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [14:05:06]RAPDU: 90 00 [14:05:06]wFMCommunicate OK [14:05:06]wFMCommunicate request_size=255 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 92 02 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [14:05:06]Write to MH i2c: E2 02 01 A7 06 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 92 02 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 00 00 26 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [14:05:06]RAPDU: 90 00 [14:05:06]wFMCommunicate OK [14:05:06]wFMCommunicate request_size=45 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 0D 02 02 28 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F7 00 00 35 04 06 00 91 4D 98 EC 56 AF [14:05:06]Write to MH i2c: E2 30 00 A8 06 80 0D 02 02 28 00 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F7 00 00 35 04 06 00 91 4D 98 EC 56 AF 00 00 51 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [14:05:06]RAPDU: 90 00 [14:05:06]wFMCommunicate OK [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 0D 03 02 [14:05:06]Write to MH i2c: E2 08 00 A9 06 80 0D 03 02 00 00 00 00 2A [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0B 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0B 00 A9 06 00 2E 0D B7 8B 0A AA 1B FA 90 00 71 [14:05:06]RAPDU: 2E 0D B7 8B 0A AA 1B FA 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_SignData done [14:05:06]FM_MakeSignedData done [14:05:06]CreateOFDProtocolMessage [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 11 00 00 [14:05:06]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 83 [14:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:05:06]wFMCommunicate OK [14:05:06]CreateOFDProtocolMessage done [14:05:06]OFDSenderStorePacket 63343 [14:05:06]StoreOFDPacket docnum=63343 [14:05:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 32 01 00 00 CA BC 2A 01 36 AE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 92 02 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F7 00 00 35 04 06 00 91 4D 98 EC 56 AF 2E 0D B7 8B 0A AA 1B FA [14:05:06]CheckFolder [14:05:06]dirname=/storage/ofd_packets [14:05:06]CheckFolder done [14:05:06]ProducePacketName [14:05:06]name=ofd_packets/00063343 [14:05:06]NVStorageSaveData ofd_packets/00063343 [14:05:06]File name is /storage/ofd_packets/00063343 [14:05:06]Write 336 bytes [14:05:06]NVStorageSaveData done [14:05:06]OFDSenderStorePacket done [14:05:06]KKMCreateOFDPacket done [14:05:06]NVStorageSaveData kkm_last_timestamp [14:05:06]File name is /storage/kkm_last_timestamp [14:05:06]Write 4 bytes [14:05:06]NVStorageSaveData done [14:05:06]ExternCall_PrintAddStr [14:05:06]wPrintStart [14:05:06]Write to MH i2c: 01 00 00 AB 06 B1 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 FF 0F C6 [14:05:06]RasterBufferAndPrint [14:05:06]line Счет N : (3)47653 [14:05:06]line ИНН: 02508201610067 [14:05:06]line Контрольно-Кассовый Чек [14:05:06]line ПРОДАЖА [14:05:06]line Товар: 4700040114120 [14:05:06]line Султан чай 1л. чер персик [14:05:06]line 1.000 * 89.00 [14:05:06]line = 89.00 [14:05:06]line НДС 12% НСП 1% [14:05:06]line > о реализуемом товаре [14:05:06]line ИТОГО: 89.00 [14:05:06]line НСП 1% : 0.79 [14:05:06]line НДС 12% : 9.45 [14:05:06]line Наличными: 89.00 [14:05:06]line Безнал.: 0.00 [14:05:06]line Место: АЗС № 86 "Партнер Нефть" [14:05:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:06]line СНО: Общий режим [14:05:06]line Чек 72 23.10.2024 14:05 [14:05:06]line Смена: 546 ФФД: 1.0 [14:05:06]line ЗНМ: 0300000154 [14:05:06]line РНМ: 0000000000091619 [14:05:06]line Версия ККМ: 001 [14:05:06]line ФМ: 0000000000874676 [14:05:06]line ФД: 63343 [14:05:06]line ФПД: 159762464134831 [14:05:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T140506&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63343&fm=159762464134831&tin=02508201610067®Number=0000000000091619&sum=8900 [14:05:07]line 0 [14:05:07]OFD Sender: Processing packet 63343 [packets to send 232, broken 231] [14:05:07]ProducePacketName [14:05:07]name=ofd_packets/00063343 [14:05:07]OFD Sender: To server: pG, [14:05:07]CommunicateWithHost lk.salyk.kg:30040 [14:05:07]ConnectInit lk.salyk.kg [14:05:07]written 0, free lines is 4095 [14:05:07]Connected sock=10 [14:05:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 32 01 00 00 CA BC 2A 01 36 AE 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 92 02 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F7 00 00 35 04 06 00 91 4D 98 EC 56 AF 2E 0D B7 8B 0A AA 1B FA [14:05:07]Write to MH i2c: 01 00 00 D3 06 D9 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 14 0D 01 [14:05:07]RasterBufferAndPrint [14:05:07]line [14:05:07]line [14:05:07]line [14:05:07]line [14:05:07]line [14:05:07]written 0, free lines is 3354 [14:05:07]MH_Cut [14:05:07]Write to MH i2c: D1 01 00 DA 06 01 B2 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D1 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D1 01 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: D1 01 00 DA 06 00 B1 [14:05:07]Write to MH i2c: 01 00 00 DB 06 E1 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 F4 5E 47 00 98 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 6F F7 00 00 F4 03 04 00 8A AC 18 67 B6 04 01 00 00 97 42 A6 CB A3 2B FC BD [14:05:07]CommunicateWithHost err = 0 [14:05:07]CheckOFDResponse [14:05:07]1017 (14) - 77093643461234 [14:05:07]1041 (16) - 0000000000874676 [14:05:07]1040 (4) - 63343 [14:05:07]1012 (4) - 23.10.2024 07:58 [14:05:07]1206 (1) - 0 [14:05:07]OFD Sender: Remove packet 63343 [14:05:07]ProducePacketName [14:05:07]name=ofd_packets/00063343 [14:05:07]NVStorageDeleteData [14:05:08]*** Cut start [14:05:08]*** Partial cut [14:05:08]*** CUTSNS_PIN = 1 [14:05:08]OFD Sender: No OFD packet to send [14:05:08]*** CUTSNS_PIN = 0 [14:05:08]*** Brake cut motor [14:05:09]Read from MH i2c: 01 [14:05:09]MH_I2C_Read... [14:05:09]*** Stop cut motor [14:05:09]*** Cut end [14:05:09]Read from MH i2c: 01 07 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [14:05:09]process_action close_receipt done [14:05:09]requested_data is exist [14:05:09]produce_requested_data [14:05:09]requested_item fm.sn is exist - process it [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 11 00 00 [14:05:09]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 17 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B5 [14:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:05:09]wFMCommunicate OK [14:05:09]requested_item fd.num is exist - process it [14:05:09]SAM_PROTO_GetFieldsCounters [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 13 00 00 [14:05:09]Write to MH i2c: E2 08 00 DD 06 80 13 00 00 00 00 00 00 5F [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 62 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 62 00 DD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6F F7 00 00 0E 04 04 00 22 02 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 E9 [14:05:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6F F7 00 00 0E 04 04 00 22 02 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:05:09]wFMCommunicate OK [14:05:09]SAM_PROTO_GetFieldsCounters done [14:05:09]requested_item shift.num is exist - process it [14:05:09]requested_item shift.opened is exist - process it [14:05:09]req_shift_opened [14:05:09]FM_GetShiftState [14:05:09]SAM_PROTO_GetShiftState [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 13 01 00 [14:05:09]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0E 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 4B [14:05:09]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:05:09]wFMCommunicate OK [14:05:09]SAM_PROTO_GetShiftState done [14:05:09]FM_GetShiftState done [14:05:09]req_shift_opened done [14:05:09]requested_item shift.open_date is exist - process it [14:05:09]req_shift_open_date [14:05:09]req_shift_open_date done [14:05:09]produce_requested_data done [14:05:09]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63343,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [14:05:09]process_action_free close_receipt [14:05:09]json_value_free [14:05:09]json_value_free done [14:05:09]process_json_proto returns [14:05:09]Send response to host [14:05:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63343,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [14:05:09]free response buf [14:05:09]execute_script done [14:05:09]execute_script returns [14:05:09]free content buf [14:05:09]Sock 9.Close socket [14:05:09]Sock 9.Thread stoped [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:23:16]ConnectInit Can't connect to host [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:23:58]accept exits with 9 [14:23:58]New connection [14:23:58]New thread 3066633572 created [14:23:58]Waiting for new connection... [14:23:58] Sock 9.Parse request [14:23:58]Sock 9.Check first char [14:23:58]Sock 9.First char is OK [14:23:58]request: POST /json_proto HTTP/1.0 [14:23:58]Method: POST [14:23:58]URL: /json_proto [14:23:58]Method is POST - this is cgi request [14:23:58]url: /json_proto [14:23:58]query_string will be loaded in cgi processing [14:23:58]execute_cgi json_proto POST (null) [14:23:58]execute_cgi path=json_proto method=POST [14:23:58]POST find Content-Length [14:23:58]Host: 172.17.42.132:8080 [14:23:58]Content-Length: 215 [14:23:58]Content-Type: application/json [14:23:58] [14:23:58]POST finish read [14:23:58]Found Content-Length = 215 [14:23:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:58]execute_script... [14:23:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:58]POST & json_proto [14:23:58]process_json_proto [14:23:58]json parsed OK: [14:23:58]protocol is kg_v1.0 [14:23:58]action value=get_value [14:23:58]process_action get_value [14:23:58]cmd_get_value [14:23:58]process_action get_value done [14:23:58]requested_data is exist [14:23:58]produce_requested_data [14:23:58]requested_item kkm.sn is exist - process it [14:23:58]requested_item kkm.ver is exist - process it [14:23:58]requested_item fm.sn is exist - process it [14:23:58]wFMCommunicate request_size=4 [14:23:58]MH_SAM_APDU [14:23:58]CAPDU: 80 11 00 00 [14:23:58]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [14:23:58]Write i2c OK [14:23:58]MH_I2C_Read... [14:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:58]Read from MH i2c: E2 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: E2 17 00 [14:23:58]MH_I2C_Read... [14:23:58]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E3 [14:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:23:58]wFMCommunicate OK [14:23:58]requested_item fd.num is exist - process it [14:23:58]SAM_PROTO_GetFieldsCounters [14:23:58]wFMCommunicate request_size=4 [14:23:58]MH_SAM_APDU [14:23:58]CAPDU: 80 13 00 00 [14:23:58]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [14:23:58]Write i2c OK [14:23:58]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6F F7 00 00 0E 04 04 00 22 02 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 17 [14:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 6F F7 00 00 0E 04 04 00 22 02 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:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetFieldsCounters done [14:23:59]requested_item shift.num is exist - process it [14:23:59]requested_item shift.opened is exist - process it [14:23:59]req_shift_opened [14:23:59]FM_GetShiftState [14:23:59]SAM_PROTO_GetShiftState [14:23:59]wFMCommunicate request_size=4 [14:23:59]MH_SAM_APDU [14:23:59]CAPDU: 80 13 01 00 [14:23:59]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [14:23:59]Write i2c OK [14:23:59]MH_I2C_Read... [14:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:59]Read from MH i2c: E2 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 [14:23:59]MH_I2C_Read... [14:23:59]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 79 [14:23:59]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:23:59]wFMCommunicate OK [14:23:59]SAM_PROTO_GetShiftState done [14:23:59]FM_GetShiftState done [14:23:59]req_shift_opened done [14:23:59]requested_item shift.open_date is exist - process it [14:23:59]req_shift_open_date [14:23:59]req_shift_open_date done [14:23:59]produce_requested_data done [14:23:59]produce_requested_data return {"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63343,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [14:23:59]process_action_free get_value [14:23:59]json_value_free [14:23:59]json_value_free done [14:23:59]process_json_proto returns [14:23:59]Send response to host [14:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000154","kkm.ver":"001","fm.sn":"0000000000874676","fd.num":63343,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [14:23:59]free response buf [14:23:59]execute_script done [14:23:59]execute_script returns [14:23:59]free content buf [14:23:59]Sock 9.Close socket [14:23:59]Sock 9.Thread stoped [14:24:00]OFD Sender: No OFD packet to send [14:24:02]accept exits with 7 [14:24:02]New connection [14:24:02]New thread 3066490212 created [14:24:02]Thread 3066633572 joined [14:24:02]Waiting for new connection... [14:24:02] Sock 7.Parse request [14:24:02]Sock 7.Check first char [14:24:02]Sock 7.First char is OK [14:24:02]request: POST /json_proto HTTP/1.0 [14:24:02]Method: POST [14:24:02]URL: /json_proto [14:24:02]Method is POST - this is cgi request [14:24:02]url: /json_proto [14:24:02]query_string will be loaded in cgi processing [14:24:02]execute_cgi json_proto POST (null) [14:24:02]execute_cgi path=json_proto method=POST [14:24:02]POST find Content-Length [14:24:02]Host: 172.17.42.132:8080 [14:24:02]Content-Length: 331 [14:24:02]Content-Type: application/json [14:24:02] [14:24:02]POST finish read [14:24:02]Found Content-Length = 331 [14:24:02]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" ] } } [14:24:02]execute_script... [14:24:02]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" ] } } [14:24:02]POST & json_proto [14:24:02]process_json_proto [14:24:02]json parsed OK: [14:24:02]protocol is kg_v1.0 [14:24:02]action value=get_value [14:24:02]process_action get_value [14:24:02]cmd_get_value [14:24:02]process_action get_value done [14:24:02]requested_data is exist [14:24:02]produce_requested_data [14:24:02]requested_item fm.sale.total is exist - process it [14:24:02]SAM_PROTO_GetFMData [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 13 03 00 [14:24:02]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 FD 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 FD 00 13 00 00 C2 04 85 04 BE 04 6E 04 04 00 2B F3 00 00 69 04 A1 00 6F 04 04 00 F4 F2 00 00 B1 04 04 00 27 E8 F4 93 70 04 04 00 A8 4B A4 85 72 04 04 00 7F 9C 50 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A1 C7 B6 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A8 1F 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 BD [14:24:02]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 2B F3 00 00 69 04 A1 00 6F 04 04 00 F4 F2 00 00 B1 04 04 00 27 E8 F4 93 70 04 04 00 A8 4B A4 85 72 04 04 00 7F 9C 50 0E 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 A1 C7 B6 0F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 A8 1F 4F 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 9B 00 6F 04 04 00 37 00 00 00 B1 04 03 00 04 5C BD 70 04 03 00 18 F3 BC 72 04 02 00 EC 68 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 0A 1C 14 EF 03 09 00 F6 03 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 17 00 00 [14:24:02]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:02]Read from MH i2c: E2 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 FD 00 [14:24:02]MH_I2C_Read... [14:24:02]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6B [14:24:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 FD AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [14:24:02]wFMCommunicate OK [14:24:02]wFMCommunicate request_size=4 [14:24:02]MH_SAM_APDU [14:24:02]CAPDU: 80 17 00 00 [14:24:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [14:24:02]Write i2c OK [14:24:02]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 FD 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [14:24:03]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 17 00 00 [14:24:03]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 FD 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 FD 00 16 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [14:24:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [14:24:03]wFMCommunicate OK [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 17 00 00 [14:24:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [14:24:03]Read from MH i2c: E2 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 DF 00 [14:24:03]MH_I2C_Read... [14:24:03]Read from MH i2c: E2 DF 00 17 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [14:24:03]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:24:03]wFMCommunicate OK [14:24:03]SAM_PROTO_GetFMData done [14:24:03]requested_item fm.sale_refund.total is exist - process it [14:24:03]requested_item fm.buy.total is exist - process it [14:24:03]requested_item shift.sale.total is exist - process it [14:24:03]SAM_PROTO_GetShiftData [14:24:03]wFMCommunicate request_size=4 [14:24:03]MH_SAM_APDU [14:24:03]CAPDU: 80 13 02 00 [14:24:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [14:24:03]Write i2c OK [14:24:03]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 48 00 00 00 69 04 9B 00 6F 04 04 00 48 00 00 00 B1 04 03 00 31 4C 14 70 04 03 00 2C 69 10 72 04 03 00 05 E3 03 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 C0 27 02 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 F8 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 16 [14:24:04]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 48 00 00 00 69 04 9B 00 6F 04 04 00 48 00 00 00 B1 04 03 00 31 4C 14 70 04 03 00 2C 69 10 72 04 03 00 05 E3 03 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 C0 27 02 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 F8 2D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [14:24:04]wFMCommunicate OK [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 17 00 00 [14:24:04]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 19 00 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 BB [14:24:04]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 [14:24:04]wFMCommunicate OK [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 17 00 00 [14:24:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:04]Read from MH i2c: E2 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 [14:24:04]MH_I2C_Read... [14:24:04]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [14:24:04]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 [14:24:04]wFMCommunicate OK [14:24:04]wFMCommunicate request_size=4 [14:24:04]MH_SAM_APDU [14:24:04]CAPDU: 80 17 00 00 [14:24:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [14:24:04]Write i2c OK [14:24:04]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 FD 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 FD 00 1B 00 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 0D [14:24:05]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 [14:24:05]wFMCommunicate OK [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 17 00 00 [14:24:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 CB 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 CB 00 1C 00 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 85 [14:24:05]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 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetShiftData done [14:24:05]requested_item shift.sale.total_cash is exist - process it [14:24:05]requested_item shift.sale_refund.total is exist - process it [14:24:05]requested_item shift.sale_refund.total_cash is exist - process it [14:24:05]requested_item shift.buy.total is exist - process it [14:24:05]requested_item shift.buy.total_cash is exist - process it [14:24:05]produce_requested_data done [14:24:05]produce_requested_data return {"fm.sale.total":24823009.67,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":13302.25,"shift.sale.total_cash":10755.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} [14:24:05]process_action_free get_value [14:24:05]json_value_free [14:24:05]json_value_free done [14:24:05]process_json_proto returns [14:24:05]Send response to host [14:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":24823009.67,"fm.sale_refund.total":124098.60,"fm.buy.total":0.00,"shift.sale.total":13302.25,"shift.sale.total_cash":10755.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}}} [14:24:05]free response buf [14:24:05]execute_script done [14:24:05]execute_script returns [14:24:05]free content buf [14:24:05]Sock 7.Close socket [14:24:05]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25: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:49]accept exits with 9 [14:27:49]New connection [14:27:49]New thread 3066633572 created [14:27:49]Thread 3066490212 joined [14:27:49]Waiting for new connection... [14:27:49] Sock 9.Parse request [14:27:49]Sock 9.Check first char [14:27:49]Sock 9.First char is OK [14:27:49]request: POST /json_proto HTTP/1.0 [14:27:49]Method: POST [14:27:49]URL: /json_proto [14:27:49]Method is POST - this is cgi request [14:27:49]url: /json_proto [14:27:49]query_string will be loaded in cgi processing [14:27:49]execute_cgi json_proto POST (null) [14:27:49]execute_cgi path=json_proto method=POST [14:27:49]POST find Content-Length [14:27:49]Host: 172.17.42.132:8080 [14:27:49]Content-Length: 658 [14:27:49]Content-Type: application/json [14:27:49] [14:27:49]POST finish read [14:27:49]Found Content-Length = 658 [14:27:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47654", "tax_sys" : 0, "items" : [ { "code": "4870236011202", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421 \u0421\u0435\u0440\u0435\u0431\u0440\u043E\u043C 40% 0,48\u043B", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:49]execute_script... [14: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 : (3)47654", "tax_sys" : 0, "items" : [ { "code": "4870236011202", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421 \u0421\u0435\u0440\u0435\u0431\u0440\u043E\u043C 40% 0,48\u043B", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:49]POST & json_proto [14:27:49]process_json_proto [14:27:49]json parsed OK: [14:27:49]protocol is kg_v1.0 [14:27:49]action value=close_receipt [14:27:49]process_action close_receipt [14:27:49]cmd_close_receipt [14:27:49]MH_GetDate [14:27:49]Write to MH i2c: F0 00 00 1D 00 0C [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: F0 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: F0 09 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: F0 09 00 1D 00 00 E6 07 19 67 4C DF 56 66 69 [14:27:49]GetLastDocTimeStamp 1729692306 [14:27:49]current date 1729693670 [14:27:49]FM_GetShiftState [14:27:49]SAM_PROTO_GetShiftState [14:27:49]wFMCommunicate request_size=4 [14:27:49]MH_SAM_APDU [14:27:49]CAPDU: 80 13 01 00 [14:27:49]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [14:27:49]Write i2c OK [14:27:49]MH_I2C_Read... [14:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:49]Read from MH i2c: E2 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: E2 0E 00 [14:27:49]MH_I2C_Read... [14:27:49]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 85 [14:27:49]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:27:49]wFMCommunicate OK [14:27:49]SAM_PROTO_GetShiftState done [14:27:49]FM_GetShiftState done [14:27:49]opened in 1729642527 [14:27:49]opened+sec_in_day 1729728927 [14:27:49]quantity*price = 51000 [14:27:49]sum+1 = 51001 [14:27:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 73 23.10.2024 14:27 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63344 ФПД: 199039478713321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142750&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63344&fm=199039478713321&tin=02508201610067®Number=0000000000091619&sum=51000 0 [14:27:50]StoreToDocumentArchive [14:27:50]shift 546 fd 63344 [14:27:50]save to /storage/0546/doc_00063344 [14:27:50]save last doc name /storage/0546/doc_00063344 to /storage/kkm_last_doc_name [14:27:50]save OK [14:27:50]Clear old archive folders... [14:27:50]ProcessDocumentItem done err = 0, tmpTLVsize=283 [14:27:50]tlvbuf is 00B0F7C0 [14:27:50]SAM_PROTO_ClearQueue [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 09 00 00 [14:27:50]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 03 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [14:27:50]RAPDU: 90 00 [14:27:50]wFMCommunicate OK [14:27:50]SAM_PROTO_ClearQueue done [14:27:50]KKMCreateOFDPacket [14:27:50]OFDProtocolAddRootSTLVToBuf [14:27:50]FM_MakeSignedData [14:27:50]FM_MakeSignedData [14:27:50]SAM_PROTO_SignData [14:27:50]wFMCommunicate request_size=4 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 0D 01 02 [14:27:50]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:50]Read from MH i2c: E2 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 03 00 [14:27:50]MH_I2C_Read... [14:27:50]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [14:27:50]RAPDU: 90 00 [14:27:50]wFMCommunicate OK [14:27:50]wFMCommunicate request_size=255 [14:27:50]MH_SAM_APDU [14:27:50]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 33 36 30 31 31 32 30 32 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 20 D0 A1 D0 B5 D1 80 D0 B5 D0 B1 D1 80 D0 BE D0 BC 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E6 07 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [14:27:50]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 33 36 30 31 31 32 30 32 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 20 D0 A1 D0 B5 D1 80 D0 B5 D0 B1 D1 80 D0 BE D0 BC 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E6 07 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 00 00 71 [14:27:50]Write i2c OK [14:27:50]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [14:27:51]RAPDU: 90 00 [14:27:51]wFMCommunicate OK [14:27:51]wFMCommunicate request_size=42 [14:27:51]MH_SAM_APDU [14:27:51]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 70 F7 00 00 35 04 06 00 B5 06 7D 6C CB E9 [14:27:51]Write to MH i2c: E2 2D 00 2E 00 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 70 F7 00 00 35 04 06 00 B5 06 7D 6C CB E9 00 00 42 [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [14:27:51]RAPDU: 90 00 [14:27:51]wFMCommunicate OK [14:27:51]wFMCommunicate request_size=4 [14:27:51]MH_SAM_APDU [14:27:51]CAPDU: 80 0D 03 02 [14:27:51]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 0B 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 0B 00 2F 00 00 AE 0F 3B C9 C8 FD 34 D2 90 00 37 [14:27:51]RAPDU: AE 0F 3B C9 C8 FD 34 D2 90 00 [14:27:51]wFMCommunicate OK [14:27:51]SAM_PROTO_SignData done [14:27:51]FM_MakeSignedData done [14:27:51]CreateOFDProtocolMessage [14:27:51]wFMCommunicate request_size=4 [14:27:51]MH_SAM_APDU [14:27:51]CAPDU: 80 11 00 00 [14:27:51]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:51]Read from MH i2c: E2 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 17 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 03 [14:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:27:51]wFMCommunicate OK [14:27:51]CreateOFDProtocolMessage done [14:27:51]OFDSenderStorePacket 63344 [14:27:51]StoreOFDPacket docnum=63344 [14:27:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 AE BE 27 01 FA 6E 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 33 36 30 31 31 32 30 32 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 20 D0 A1 D0 B5 D1 80 D0 B5 D0 B1 D1 80 D0 BE D0 BC 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E6 07 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 70 F7 00 00 35 04 06 00 B5 06 7D 6C CB E9 AE 0F 3B C9 C8 FD 34 D2 [14:27:51]CheckFolder [14:27:51]dirname=/storage/ofd_packets [14:27:51]CheckFolder done [14:27:51]ProducePacketName [14:27:51]name=ofd_packets/00063344 [14:27:51]NVStorageSaveData ofd_packets/00063344 [14:27:51]File name is /storage/ofd_packets/00063344 [14:27:51]Write 333 bytes [14:27:51]NVStorageSaveData done [14:27:51]OFDSenderStorePacket done [14:27:51]KKMCreateOFDPacket done [14:27:51]NVStorageSaveData kkm_last_timestamp [14:27:51]File name is /storage/kkm_last_timestamp [14:27:51]Write 4 bytes [14:27:51]NVStorageSaveData done [14:27:51]ExternCall_PrintAddStr [14:27:51]wPrintStart [14:27:51]Write to MH i2c: 01 00 00 31 00 31 [14:27:51]Write i2c OK [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: 01 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: 01 07 00 [14:27:51]MH_I2C_Read... [14:27:51]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [14:27:51]RasterBufferAndPrint [14:27:51]line Счет N : (3)47654 [14:27:51]OFD Sender: Processing packet 63344 [packets to send 232, broken 231] [14:27:51]ProducePacketName [14:27:51]name=ofd_packets/00063344 [14:27:51]OFD Sender: To server: pG, [14:27:51]CommunicateWithHost lk.salyk.kg:30040 [14:27:51]ConnectInit lk.salyk.kg [14:27:51]line ИНН: 02508201610067 [14:27:51]line Контрольно-Кассовый Чек [14:27:51]line ПРОДАЖА [14:27:51]line Товар: 4870236011202 [14:27:51]line Водка С Серебром 40% 0,48л [14:27:51]line 1.000 * 510.00 [14:27:51]line = 510.00 [14:27:51]line НДС 12% НСП 1% [14:27:51]line > о реализуемом товаре [14:27:51]line ИТОГО: 510.00 [14:27:51]line НСП 1% : 4.51 [14:27:51]line НДС 12% : 54.16 [14:27:51]line Наличными: 510.00 [14:27:51]line Безнал.: 0.00 [14:27:51]line Место: АЗС № 86 "Партнер Нефть" [14:27:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:51]line СНО: Общий режим [14:27:51]line Чек 73 23.10.2024 14:27 [14:27:51]line Смена: 546 ФФД: 1.0 [14:27:51]line ЗНМ: 0300000154 [14:27:51]line РНМ: 0000000000091619 [14:27:51]line Версия ККМ: 001 [14:27:51]line ФМ: 0000000000874676 [14:27:51]line ФД: 63344 [14:27:51]line ФПД: 199039478713321 [14:27:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T142750&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63344&fm=199039478713321&tin=02508201610067®Number=0000000000091619&sum=51000 [14:27:51]line 0 [14:27:51]written 0, free lines is 4095 [14:27:52]Write to MH i2c: 01 00 00 59 00 59 [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 24 0D 91 [14:27:52]RasterBufferAndPrint [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]line [14:27:52]written 0, free lines is 3370 [14:27:52]MH_Cut [14:27:52]Write to MH i2c: D1 01 00 60 00 01 32 [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: D1 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: D1 01 00 [14:27:52]MH_I2C_Read... [14:27:52]Read from MH i2c: D1 01 00 60 00 00 31 [14:27:52]Write to MH i2c: 01 00 00 61 00 61 [14:27:52]Write i2c OK [14:27:52]MH_I2C_Read... [14:27:52]Connected sock=11 [14:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 AE BE 27 01 FA 6E 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 33 36 30 31 31 32 30 32 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 20 D0 A1 D0 B5 D1 80 D0 B5 D0 B1 D1 80 D0 BE D0 BC 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E6 07 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 70 F7 00 00 35 04 06 00 B5 06 7D 6C CB E9 AE 0F 3B C9 C8 FD 34 D2 [14:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 3B EA 47 00 D5 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 70 F7 00 00 F4 03 04 00 DD B1 18 67 B6 04 01 00 00 0F 3A E7 1F C8 62 26 80 [14:27:52]CommunicateWithHost err = 0 [14:27:52]CheckOFDResponse [14:27:52]1017 (14) - 77093643461234 [14:27:52]1041 (16) - 0000000000874676 [14:27:52]1040 (4) - 63344 [14:27:52]1012 (4) - 23.10.2024 08:20 [14:27:52]1206 (1) - 0 [14:27:52]OFD Sender: Remove packet 63344 [14:27:52]ProducePacketName [14:27:52]name=ofd_packets/00063344 [14:27:52]NVStorageDeleteData [14:27:52]*** Cut start [14:27:52]*** Partial cut [14:27:52]*** CUTSNS_PIN = 1 [14:27:52]*** CUTSNS_PIN = 0 [14:27:52]OFD Sender: No OFD packet to send [14:27:53]*** Brake cut motor [14:27:53]Read from MH i2c: 01 [14:27:53]MH_I2C_Read... [14:27:53]*** Stop cut motor [14:27:53]*** Cut end [14:27:53]Read from MH i2c: 01 07 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [14:27:53]process_action close_receipt done [14:27:53]requested_data is exist [14:27:53]produce_requested_data [14:27:53]requested_item fm.sn is exist - process it [14:27:53]wFMCommunicate request_size=4 [14:27:53]MH_SAM_APDU [14:27:53]CAPDU: 80 11 00 00 [14:27:53]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:53]Read from MH i2c: E2 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 17 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 35 [14:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:27:53]wFMCommunicate OK [14:27:53]requested_item fd.num is exist - process it [14:27:53]SAM_PROTO_GetFieldsCounters [14:27:53]wFMCommunicate request_size=4 [14:27:53]MH_SAM_APDU [14:27:53]CAPDU: 80 13 00 00 [14:27:53]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:53]Read from MH i2c: E2 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 62 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 70 F7 00 00 0E 04 04 00 22 02 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 6D [14:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 70 F7 00 00 0E 04 04 00 22 02 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:27:53]wFMCommunicate OK [14:27:53]SAM_PROTO_GetFieldsCounters done [14:27:53]requested_item shift.num is exist - process it [14:27:53]requested_item shift.opened is exist - process it [14:27:53]req_shift_opened [14:27:53]FM_GetShiftState [14:27:53]SAM_PROTO_GetShiftState [14:27:53]wFMCommunicate request_size=4 [14:27:53]MH_SAM_APDU [14:27:53]CAPDU: 80 13 01 00 [14:27:53]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [14:27:53]Write i2c OK [14:27:53]MH_I2C_Read... [14:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:53]Read from MH i2c: E2 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 0E 00 [14:27:53]MH_I2C_Read... [14:27:53]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CB [14:27:53]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:27:53]wFMCommunicate OK [14:27:53]SAM_PROTO_GetShiftState done [14:27:53]FM_GetShiftState done [14:27:53]req_shift_opened done [14:27:53]requested_item shift.open_date is exist - process it [14:27:53]req_shift_open_date [14:27:53]req_shift_open_date done [14:27:53]produce_requested_data done [14:27:53]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63344,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [14:27:53]process_action_free close_receipt [14:27:53]json_value_free [14:27:53]json_value_free done [14:27:53]process_json_proto returns [14:27:53]Send response to host [14:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63344,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [14:27:53]free response buf [14:27:53]execute_script done [14:27:53]execute_script returns [14:27:53]free content buf [14:27:53]Sock 9.Close socket [14:27:53]Sock 9.Thread stoped [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:58]OFD Sender: No OFD packet to send [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:46]accept exits with 7 [14:55:46]New connection [14:55:46]New thread 3066490212 created [14:55:46]Thread 3066633572 joined [14:55:46]Waiting for new connection... [14:55:46] Sock 7.Parse request [14:55:46]Sock 7.Check first char [14:55:46]Sock 7.First char is OK [14:55:46]request: POST /json_proto HTTP/1.0 [14:55:46]Method: POST [14:55:46]URL: /json_proto [14:55:46]Method is POST - this is cgi request [14:55:46]url: /json_proto [14:55:46]query_string will be loaded in cgi processing [14:55:46]execute_cgi json_proto POST (null) [14:55:46]execute_cgi path=json_proto method=POST [14:55:46]POST find Content-Length [14:55:46]Host: 172.17.42.132:8080 [14:55:46]Content-Length: 646 [14:55:46]Content-Type: application/json [14:55:46] [14:55:46]POST finish read [14:55:46]Found Content-Length = 646 [14:55:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47655", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:46]execute_script... [14:55: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 : (3)47655", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:46]POST & json_proto [14:55:46]process_json_proto [14:55:46]json parsed OK: [14:55:46]protocol is kg_v1.0 [14:55:46]action value=close_receipt [14:55:46]process_action close_receipt [14:55:46]cmd_close_receipt [14:55:46]MH_GetDate [14:55:46]Write to MH i2c: F0 00 00 65 00 54 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: F0 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: F0 09 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: F0 09 00 65 00 00 73 0E 19 67 4C DF 56 66 45 [14:55:46]GetLastDocTimeStamp 1729693670 [14:55:46]current date 1729695347 [14:55:46]FM_GetShiftState [14:55:46]SAM_PROTO_GetShiftState [14:55:46]wFMCommunicate request_size=4 [14:55:46]MH_SAM_APDU [14:55:46]CAPDU: 80 13 01 00 [14:55:46]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [14:55:46]Write i2c OK [14:55:46]MH_I2C_Read... [14:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:46]Read from MH i2c: E2 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0E 00 [14:55:46]MH_I2C_Read... [14:55:46]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 CD [14:55:46]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:55:46]wFMCommunicate OK [14:55:46]SAM_PROTO_GetShiftState done [14:55:46]FM_GetShiftState done [14:55:46]opened in 1729642527 [14:55:46]opened+sec_in_day 1729728927 [14:55:46]quantity*price = 13000 [14:55:46]sum+1 = 13001 [14:55:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 74 23.10.2024 14:55 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63345 ФПД: 99541800506102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145547&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63345&fm=99541800506102&tin=02508201610067®Number=0000000000091619&sum=13000 0 [14:55:47]StoreToDocumentArchive [14:55:47]shift 546 fd 63345 [14:55:47]save to /storage/0546/doc_00063345 [14:55:47]save last doc name /storage/0546/doc_00063345 to /storage/kkm_last_doc_name [14:55:47]save OK [14:55:47]Clear old archive folders... [14:55:47]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:55:47]tlvbuf is 00B31E10 [14:55:47]SAM_PROTO_ClearQueue [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 09 00 00 [14:55:47]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [14:55:47]RAPDU: 90 00 [14:55:47]wFMCommunicate OK [14:55:47]SAM_PROTO_ClearQueue done [14:55:47]KKMCreateOFDPacket [14:55:47]OFDProtocolAddRootSTLVToBuf [14:55:47]FM_MakeSignedData [14:55:47]FM_MakeSignedData [14:55:47]SAM_PROTO_SignData [14:55:47]wFMCommunicate request_size=4 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 0D 01 02 [14:55:47]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:47]Read from MH i2c: E2 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 [14:55:47]MH_I2C_Read... [14:55:47]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [14:55:47]RAPDU: 90 00 [14:55:47]wFMCommunicate OK [14:55:47]wFMCommunicate request_size=255 [14:55:47]MH_SAM_APDU [14:55:47]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 73 0E 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [14:55:47]Write to MH i2c: E2 02 01 75 00 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 73 0E 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 FB [14:55:47]Write i2c OK [14:55:47]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=31 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 71 F7 00 00 35 04 06 00 5A 88 61 A8 D2 F6 [14:55:48]Write to MH i2c: E2 22 00 76 00 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 71 F7 00 00 35 04 06 00 5A 88 61 A8 D2 F6 00 00 3C [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [14:55:48]RAPDU: 90 00 [14:55:48]wFMCommunicate OK [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 0D 03 02 [14:55:48]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0B 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 0B 00 77 00 00 D9 95 2B 8A 84 F7 2B 7A 90 00 36 [14:55:48]RAPDU: D9 95 2B 8A 84 F7 2B 7A 90 00 [14:55:48]wFMCommunicate OK [14:55:48]SAM_PROTO_SignData done [14:55:48]FM_MakeSignedData done [14:55:48]CreateOFDProtocolMessage [14:55:48]wFMCommunicate request_size=4 [14:55:48]MH_SAM_APDU [14:55:48]CAPDU: 80 11 00 00 [14:55:48]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:48]Read from MH i2c: E2 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4B [14:55:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:55:48]wFMCommunicate OK [14:55:48]CreateOFDProtocolMessage done [14:55:48]OFDSenderStorePacket 63345 [14:55:48]StoreOFDPacket docnum=63345 [14:55:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 BC 04 1C 01 66 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 73 0E 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 71 F7 00 00 35 04 06 00 5A 88 61 A8 D2 F6 D9 95 2B 8A 84 F7 2B 7A [14:55:48]CheckFolder [14:55:48]dirname=/storage/ofd_packets [14:55:48]CheckFolder done [14:55:48]ProducePacketName [14:55:48]name=ofd_packets/00063345 [14:55:48]NVStorageSaveData ofd_packets/00063345 [14:55:48]File name is /storage/ofd_packets/00063345 [14:55:48]Write 322 bytes [14:55:48]NVStorageSaveData done [14:55:48]OFDSenderStorePacket done [14:55:48]KKMCreateOFDPacket done [14:55:48]NVStorageSaveData kkm_last_timestamp [14:55:48]File name is /storage/kkm_last_timestamp [14:55:48]Write 4 bytes [14:55:48]NVStorageSaveData done [14:55:48]ExternCall_PrintAddStr [14:55:48]wPrintStart [14:55:48]Write to MH i2c: 01 00 00 79 00 79 [14:55:48]Write i2c OK [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 [14:55:48]MH_I2C_Read... [14:55:48]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [14:55:48]RasterBufferAndPrint [14:55:48]line Счет N : (3)47655 [14:55:48]line ИНН: 02508201610067 [14:55:48]line Контрольно-Кассовый Чек [14:55:48]line ПРОДАЖА [14:55:48]line Товар: 47011656 [14:55:48]line Водка Пшеничная 0,1л [14:55:48]line 2.000 * 65.00 [14:55:48]line = 130.00 [14:55:48]line НДС 12% НСП 1% [14:55:48]line > о реализуемом товаре [14:55:48]line ИТОГО: 130.00 [14:55:48]line НСП 1% : 1.15 [14:55:48]line НДС 12% : 13.80 [14:55:48]line Наличными: 130.00 [14:55:48]line Безнал.: 0.00 [14:55:48]line Место: АЗС № 86 "Партнер Нефть" [14:55:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:55:48]line СНО: Общий режим [14:55:48]line Чек 74 23.10.2024 14:55 [14:55:48]line Смена: 546 ФФД: 1.0 [14:55:48]line ЗНМ: 0300000154 [14:55:48]line РНМ: 0000000000091619 [14:55:48]line Версия ККМ: 001 [14:55:48]line ФМ: 0000000000874676 [14:55:48]line ФД: 63345 [14:55:48]line ФПД: 99541800506102 [14:55:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145547&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63345&fm=99541800506102&tin=02508201610067®Number=0000000000091619&sum=13000 [14:55:48]OFD Sender: Processing packet 63345 [packets to send 232, broken 231] [14:55:48]ProducePacketName [14:55:48]name=ofd_packets/00063345 [14:55:48]OFD Sender: To server: pG, [14:55:48]CommunicateWithHost lk.salyk.kg:30040 [14:55:48]ConnectInit lk.salyk.kg [14:55:48]line 0 [14:55:48]written 0, free lines is 4095 [14:55:49]Connected sock=10 [14:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 BC 04 1C 01 66 EE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 73 0E 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 71 F7 00 00 35 04 06 00 5A 88 61 A8 D2 F6 D9 95 2B 8A 84 F7 2B 7A [14:55:49]Write to MH i2c: 01 00 00 A1 00 A1 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: 01 07 00 A1 00 00 00 00 00 00 1D 0D D2 [14:55:49]RasterBufferAndPrint [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]line [14:55:49]written 0, free lines is 3363 [14:55:49]MH_Cut [14:55:49]Write to MH i2c: D1 01 00 A8 00 01 7A [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 01 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: D1 01 00 A8 00 00 79 [14:55:49]Write to MH i2c: 01 00 00 A9 00 A9 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CC B8 47 00 C8 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 71 F7 00 00 F4 03 04 00 6A B8 18 67 B6 04 01 00 00 80 8F 98 7C 76 B7 19 66 [14:55:49]CommunicateWithHost err = 0 [14:55:49]CheckOFDResponse [14:55:49]1017 (14) - 77093643461234 [14:55:49]1041 (16) - 0000000000874676 [14:55:49]1040 (4) - 63345 [14:55:49]1012 (4) - 23.10.2024 08:48 [14:55:49]1206 (1) - 0 [14:55:49]OFD Sender: Remove packet 63345 [14:55:49]ProducePacketName [14:55:49]name=ofd_packets/00063345 [14:55:49]NVStorageDeleteData [14:55:49]*** Cut start [14:55:49]*** Partial cut [14:55:49]*** CUTSNS_PIN = 1 [14:55:49]OFD Sender: No OFD packet to send [14:55:49]*** CUTSNS_PIN = 0 [14:55:50]*** Brake cut motor [14:55:50]Read from MH i2c: 01 [14:55:50]MH_I2C_Read... [14:55:50]*** Stop cut motor [14:55:50]*** Cut end [14:55:50]Read from MH i2c: 01 07 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: 01 07 00 A9 00 00 00 00 00 00 FF 0F BE [14:55:50]process_action close_receipt done [14:55:50]requested_data is exist [14:55:50]produce_requested_data [14:55:50]requested_item fm.sn is exist - process it [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 11 00 00 [14:55:50]Write to MH i2c: E2 08 00 AA 00 80 11 00 00 00 00 00 00 24 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 17 00 AA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 7D [14:55:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:55:50]wFMCommunicate OK [14:55:50]requested_item fd.num is exist - process it [14:55:50]SAM_PROTO_GetFieldsCounters [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 00 00 [14:55:50]Write to MH i2c: E2 08 00 AB 00 80 13 00 00 00 00 00 00 27 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 62 00 [14:55:50]MH_I2C_Read... [14:55:50]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 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 71 F7 00 00 0E 04 04 00 22 02 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 B9 [14:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 71 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_GetFieldsCounters done [14:55:50]requested_item shift.num is exist - process it [14:55:50]requested_item shift.opened is exist - process it [14:55:50]req_shift_opened [14:55:50]FM_GetShiftState [14:55:50]SAM_PROTO_GetShiftState [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 13 01 00 [14:55:50]Write to MH i2c: E2 08 00 AC 00 80 13 01 00 00 00 00 00 29 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 0E 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 0E 00 AC 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 13 [14:55:50]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_GetShiftState done [14:55:50]FM_GetShiftState done [14:55:50]req_shift_opened done [14:55:50]requested_item shift.open_date is exist - process it [14:55:50]req_shift_open_date [14:55:50]req_shift_open_date done [14:55:50]produce_requested_data done [14:55:50]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63345,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [14:55:50]process_action_free close_receipt [14:55:50]json_value_free [14:55:50]json_value_free done [14:55:50]process_json_proto returns [14:55:50]Send response to host [14:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63345,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [14:55:50]free response buf [14:55:50]execute_script done [14:55:50]execute_script returns [14:55:50]free content buf [14:55:50]Sock 7.Close socket [14:55:50]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:07]accept exits with 9 [14:58:07]New connection [14:58:07]New thread 3066633572 created [14:58:07]Thread 3066490212 joined [14:58:07]Waiting for new connection... [14:58:07] Sock 9.Parse request [14:58:07]Sock 9.Check first char [14:58:07]Sock 9.First char is OK [14:58:07]request: POST /json_proto HTTP/1.0 [14:58:07]Method: POST [14:58:07]URL: /json_proto [14:58:07]Method is POST - this is cgi request [14:58:07]url: /json_proto [14:58:07]query_string will be loaded in cgi processing [14:58:07]execute_cgi json_proto POST (null) [14:58:07]execute_cgi path=json_proto method=POST [14:58:07]POST find Content-Length [14:58:07]Host: 172.17.42.132:8080 [14:58:07]Content-Length: 831 [14:58:07]Content-Type: application/json [14:58:07] [14:58:07]POST finish read [14:58:07]Found Content-Length = 831 [14:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47656", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 68.39, "quantity" : 1.000, "sum" : 68.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 68.39 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:07]execute_script... [14:58: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 : (3)47656", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 68.39, "quantity" : 1.000, "sum" : 68.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 68.39 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:07]POST & json_proto [14:58:07]process_json_proto [14:58:07]json parsed OK: [14:58:07]protocol is kg_v1.0 [14:58:07]action value=close_receipt [14:58:07]process_action close_receipt [14:58:07]cmd_close_receipt [14:58:07]MH_GetDate [14:58:07]Write to MH i2c: F0 00 00 AD 00 9C [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: F0 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: F0 09 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: F0 09 00 AD 00 00 00 0F 19 67 4C DF 56 66 1B [14:58:07]GetLastDocTimeStamp 1729695347 [14:58:07]current date 1729695488 [14:58:07]FM_GetShiftState [14:58:07]SAM_PROTO_GetShiftState [14:58:07]wFMCommunicate request_size=4 [14:58:07]MH_SAM_APDU [14:58:07]CAPDU: 80 13 01 00 [14:58:07]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [14:58:07]Write i2c OK [14:58:07]MH_I2C_Read... [14:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:07]Read from MH i2c: E2 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0E 00 [14:58:07]MH_I2C_Read... [14:58:07]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 15 [14:58:07]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:58:07]wFMCommunicate OK [14:58:07]SAM_PROTO_GetShiftState done [14:58:07]FM_GetShiftState done [14:58:07]opened in 1729642527 [14:58:07]opened+sec_in_day 1729728927 [14:58:07]quantity*price = 6839 [14:58:07]sum+1 = 6840 [14:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 68.39 НСП 1% : 0.60 НДС 12% : 7.26 Наличными: 0.00 Безнал.: 68.39 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 75 23.10.2024 14:58 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874676 ФД: 63346 ФПД: 169672456694105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145808&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63346&fm=169672456694105&tin=02508201610067®Number=0000000000091619&sum=6839 0 [14:58:08]StoreToDocumentArchive [14:58:08]shift 546 fd 63346 [14:58:08]save to /storage/0546/doc_00063346 [14:58:08]save last doc name /storage/0546/doc_00063346 to /storage/kkm_last_doc_name [14:58:08]save OK [14:58:08]Clear old archive folders... [14:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:58:08]tlvbuf is 00B320B0 [14:58:08]SAM_PROTO_ClearQueue [14:58:08]wFMCommunicate request_size=4 [14:58:08]MH_SAM_APDU [14:58:08]CAPDU: 80 09 00 00 [14:58:08]Write to MH i2c: E2 08 00 BB 00 80 09 00 00 00 00 00 00 2D [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:08]Read from MH i2c: E2 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 03 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [14:58:08]RAPDU: 90 00 [14:58:08]wFMCommunicate OK [14:58:08]SAM_PROTO_ClearQueue done [14:58:08]KKMCreateOFDPacket [14:58:08]OFDProtocolAddRootSTLVToBuf [14:58:08]FM_MakeSignedData [14:58:08]FM_MakeSignedData [14:58:08]SAM_PROTO_SignData [14:58:08]wFMCommunicate request_size=4 [14:58:08]MH_SAM_APDU [14:58:08]CAPDU: 80 0D 01 02 [14:58:08]Write to MH i2c: E2 08 00 BC 00 80 0D 01 02 00 00 00 00 35 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:08]Read from MH i2c: E2 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 03 00 [14:58:08]MH_I2C_Read... [14:58:08]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [14:58:08]RAPDU: 90 00 [14:58:08]wFMCommunicate OK [14:58:08]wFMCommunicate request_size=255 [14:58:08]MH_SAM_APDU [14:58:08]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B7 1A 00 00 00 00 13 04 06 00 B7 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 0F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:58:08]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B7 1A 00 00 00 00 13 04 06 00 B7 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 0F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 46 [14:58:08]Write i2c OK [14:58:08]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 03 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [14:58:09]RAPDU: 90 00 [14:58:09]wFMCommunicate OK [14:58:09]wFMCommunicate request_size=53 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F7 00 00 35 04 06 00 9A 50 F2 82 69 59 [14:58:09]Write to MH i2c: E2 38 00 BE 00 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F7 00 00 35 04 06 00 9A 50 F2 82 69 59 00 00 BD [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 03 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [14:58:09]RAPDU: 90 00 [14:58:09]wFMCommunicate OK [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 0D 03 02 [14:58:09]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0B 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 0B 00 BF 00 00 43 B1 40 F0 AF DC 29 A3 90 00 B6 [14:58:09]RAPDU: 43 B1 40 F0 AF DC 29 A3 90 00 [14:58:09]wFMCommunicate OK [14:58:09]SAM_PROTO_SignData done [14:58:09]FM_MakeSignedData done [14:58:09]CreateOFDProtocolMessage [14:58:09]wFMCommunicate request_size=4 [14:58:09]MH_SAM_APDU [14:58:09]CAPDU: 80 11 00 00 [14:58:09]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:09]Read from MH i2c: E2 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 17 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 93 [14:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:58:09]wFMCommunicate OK [14:58:09]CreateOFDProtocolMessage done [14:58:09]OFDSenderStorePacket 63346 [14:58:09]StoreOFDPacket docnum=63346 [14:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 A5 DD 32 01 10 DF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B7 1A 00 00 00 00 13 04 06 00 B7 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 0F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F7 00 00 35 04 06 00 9A 50 F2 82 69 59 43 B1 40 F0 AF DC 29 A3 [14:58:09]CheckFolder [14:58:09]dirname=/storage/ofd_packets [14:58:09]CheckFolder done [14:58:09]ProducePacketName [14:58:09]name=ofd_packets/00063346 [14:58:09]NVStorageSaveData ofd_packets/00063346 [14:58:09]File name is /storage/ofd_packets/00063346 [14:58:09]Write 344 bytes [14:58:09]NVStorageSaveData done [14:58:09]OFDSenderStorePacket done [14:58:09]KKMCreateOFDPacket done [14:58:09]NVStorageSaveData kkm_last_timestamp [14:58:09]File name is /storage/kkm_last_timestamp [14:58:09]Write 4 bytes [14:58:09]NVStorageSaveData done [14:58:09]ExternCall_PrintAddStr [14:58:09]wPrintStart [14:58:09]Write to MH i2c: 01 00 00 C1 00 C1 [14:58:09]Write i2c OK [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 [14:58:09]MH_I2C_Read... [14:58:09]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [14:58:09]RasterBufferAndPrint [14:58:09]line Счет N : (3)47656 [14:58:09]line ИНН: 02508201610067 [14:58:09]line Контрольно-Кассовый Чек [14:58:09]line ПРОДАЖА [14:58:09]line Товар: 4600682557456 [14:58:09]line Напиток FLash up energy эн ж/б 0,5/0,45л [14:58:09]line 1.000 * 68.39 [14:58:09]line = 68.39 [14:58:09]line НДС 12% НСП 1% [14:58:09]line > о реализуемом товаре [14:58:09]line ИТОГО: 68.39 [14:58:09]line НСП 1% : 0.60 [14:58:09]line НДС 12% : 7.26 [14:58:09]line Наличными: 0.00 [14:58:09]line Безнал.: 68.39 [14:58:09]line Место: АЗС № 86 "Партнер Нефть" [14:58:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:58:09]line СНО: Общий режим [14:58:09]line Чек 75 23.10.2024 14:58 [14:58:09]line Смена: 546 ФФД: 1.0 [14:58:09]line ЗНМ: 0300000154 [14:58:09]line РНМ: 0000000000091619 [14:58:09]line Версия ККМ: 001 [14:58:09]line Платежная система: Бакай Банк [14:58:09]line ФМ: 0000000000874676 [14:58:09]line ФД: 63346 [14:58:09]line ФПД: 169672456694105 [14:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T145808&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63346&fm=169672456694105&tin=02508201610067®Number=0000000000091619&sum=6839 [14:58:09]line 0 [14:58:09]OFD Sender: Processing packet 63346 [packets to send 232, broken 231] [14:58:09]ProducePacketName [14:58:09]name=ofd_packets/00063346 [14:58:09]OFD Sender: To server: pG, [14:58:09]CommunicateWithHost lk.salyk.kg:30040 [14:58:09]ConnectInit lk.salyk.kg [14:58:09]written 0, free lines is 4095 [14:58:10]Connected sock=10 [14:58:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 3A 01 00 00 A5 DD 32 01 10 DF 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B7 1A 00 00 00 00 13 04 06 00 B7 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B7 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B7 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 00 0F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F7 00 00 35 04 06 00 9A 50 F2 82 69 59 43 B1 40 F0 AF DC 29 A3 [14:58:10]Write to MH i2c: 01 00 00 EC 00 EC [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 07 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: 01 07 00 EC 00 00 00 00 00 00 F2 0C F1 [14:58:10]RasterBufferAndPrint [14:58:10]line [14:58:10]line [14:58:10]line [14:58:10]line [14:58:10]line [14:58:10]written 0, free lines is 3322 [14:58:10]MH_Cut [14:58:10]Write to MH i2c: D1 01 00 F3 00 01 C5 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: D1 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: D1 01 00 [14:58:10]MH_I2C_Read... [14:58:10]Read from MH i2c: D1 01 00 F3 00 00 C4 [14:58:10]Write to MH i2c: 01 00 00 F4 00 F4 [14:58:10]Write i2c OK [14:58:10]MH_I2C_Read... [14:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C9 9A 47 00 CB 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 72 F7 00 00 F4 03 04 00 F7 B8 18 67 B6 04 01 00 00 39 DC 11 23 03 70 AA 2F [14:58:10]CommunicateWithHost err = 0 [14:58:10]CheckOFDResponse [14:58:10]1017 (14) - 77093643461234 [14:58:10]1041 (16) - 0000000000874676 [14:58:10]1040 (4) - 63346 [14:58:10]1012 (4) - 23.10.2024 08:51 [14:58:10]1206 (1) - 0 [14:58:10]OFD Sender: Remove packet 63346 [14:58:10]ProducePacketName [14:58:10]name=ofd_packets/00063346 [14:58:10]NVStorageDeleteData [14:58:10]*** Cut start [14:58:10]*** Partial cut [14:58:10]*** CUTSNS_PIN = 1 [14:58:10]*** CUTSNS_PIN = 0 [14:58:10]OFD Sender: No OFD packet to send [14:58:11]*** Brake cut motor [14:58:11]Read from MH i2c: 01 [14:58:11]MH_I2C_Read... [14:58:11]*** Stop cut motor [14:58:11]*** Cut end [14:58:11]Read from MH i2c: 01 07 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: 01 07 00 F4 00 00 00 00 00 00 FF 0F 09 [14:58:11]process_action close_receipt done [14:58:11]requested_data is exist [14:58:11]produce_requested_data [14:58:11]requested_item fm.sn is exist - process it [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 11 00 00 [14:58:11]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C8 [14:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [14:58:11]wFMCommunicate OK [14:58:11]requested_item fd.num is exist - process it [14:58:11]SAM_PROTO_GetFieldsCounters [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 13 00 00 [14:58:11]Write to MH i2c: E2 08 00 F6 00 80 13 00 00 00 00 00 00 72 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 62 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 62 00 F6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 72 F7 00 00 0E 04 04 00 22 02 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 08 [14:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 72 F7 00 00 0E 04 04 00 22 02 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:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_GetFieldsCounters done [14:58:11]requested_item shift.num is exist - process it [14:58:11]requested_item shift.opened is exist - process it [14:58:11]req_shift_opened [14:58:11]FM_GetShiftState [14:58:11]SAM_PROTO_GetShiftState [14:58:11]wFMCommunicate request_size=4 [14:58:11]MH_SAM_APDU [14:58:11]CAPDU: 80 13 01 00 [14:58:11]Write to MH i2c: E2 08 00 F7 00 80 13 01 00 00 00 00 00 74 [14:58:11]Write i2c OK [14:58:11]MH_I2C_Read... [14:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:11]Read from MH i2c: E2 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0E 00 [14:58:11]MH_I2C_Read... [14:58:11]Read from MH i2c: E2 0E 00 F7 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5E [14:58:11]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [14:58:11]wFMCommunicate OK [14:58:11]SAM_PROTO_GetShiftState done [14:58:11]FM_GetShiftState done [14:58:11]req_shift_opened done [14:58:11]requested_item shift.open_date is exist - process it [14:58:11]req_shift_open_date [14:58:11]req_shift_open_date done [14:58:11]produce_requested_data done [14:58:11]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63346,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [14:58:11]process_action_free close_receipt [14:58:11]json_value_free [14:58:11]json_value_free done [14:58:11]process_json_proto returns [14:58:11]Send response to host [14:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63346,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [14:58:11]free response buf [14:58:11]execute_script done [14:58:11]execute_script returns [14:58:11]free content buf [14:58:11]Sock 9.Close socket [14:58:11]Sock 9.Thread stoped [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]accept exits with 7 [15:04:26]New connection [15:04:26]New thread 3066490212 created [15:04:26]Thread 3066633572 joined [15:04:26]Waiting for new connection... [15:04:26] Sock 7.Parse request [15:04:26]Sock 7.Check first char [15:04:26]Sock 7.First char is OK [15:04:26]request: POST /json_proto HTTP/1.0 [15:04:26]Method: POST [15:04:26]URL: /json_proto [15:04:26]Method is POST - this is cgi request [15:04:26]url: /json_proto [15:04:26]query_string will be loaded in cgi processing [15:04:26]execute_cgi json_proto POST (null) [15:04:26]execute_cgi path=json_proto method=POST [15:04:26]POST find Content-Length [15:04:26]Host: 172.17.42.132:8080 [15:04:26]Content-Length: 1682 [15:04:26]Content-Type: application/json [15:04:26] [15:04:26]POST finish read [15:04:26]Found Content-Length = 1682 [15:04:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47657", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 208.14, "quantity" : 1.000, "sum" : 208.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 49.56, "quantity" : 2.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 34.69, "quantity" : 2.000, "sum" : 69.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 282.48, "quantity" : 1.000, "sum" : 282.48, "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", "payments": [ { "type": 1, "sum" : 659.12 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:26]execute_script... [15:04: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 : (3)47657", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 208.14, "quantity" : 1.000, "sum" : 208.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 49.56, "quantity" : 2.000, "sum" : 99.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100091993", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0438\u043B\u043A\u0438 \u0412\u0435\u0439 26\u0433", "price" : 34.69, "quantity" : 2.000, "sum" : 69.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 282.48, "quantity" : 1.000, "sum" : 282.48, "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", "payments": [ { "type": 1, "sum" : 659.12 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:26]POST & json_proto [15:04:26]process_json_proto [15:04:26]json parsed OK: [15:04:26]protocol is kg_v1.0 [15:04:26]action value=close_receipt [15:04:26]process_action close_receipt [15:04:26]cmd_close_receipt [15:04:26]MH_GetDate [15:04:26]Write to MH i2c: F0 00 00 F8 00 E7 [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 09 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: F0 09 00 F8 00 00 7B 10 19 67 4C DF 56 66 E2 [15:04:26]GetLastDocTimeStamp 1729695488 [15:04:26]current date 1729695867 [15:04:26]FM_GetShiftState [15:04:26]SAM_PROTO_GetShiftState [15:04:26]wFMCommunicate request_size=4 [15:04:26]MH_SAM_APDU [15:04:26]CAPDU: 80 13 01 00 [15:04:26]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:26]Read from MH i2c: E2 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: E2 0E 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 60 [15:04:26]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:04:26]wFMCommunicate OK [15:04:26]SAM_PROTO_GetShiftState done [15:04:26]FM_GetShiftState done [15:04:26]opened in 1729642527 [15:04:26]opened+sec_in_day 1729728927 [15:04:26]quantity*price = 20814 [15:04:26]sum+1 = 20815 [15:04:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010018 Чай хол Let`s Go! зел лим ПЭТ 0,5л 2.000 * 49.56 = 99.12 НДС 12% НСП 1% > о реализуемом товаре Товар: 4011100091993 Шок Батончик Милки Вей 26г 2.000 * 34.69 = 69.38 НДС 12% НСП 1% > о реализуемом товаре Товар: 8901086040022 Жидкость стеклоомывающая ПН -20 4,5л 1.000 * 282.48 = 282.48 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 659.12 НСП 1% : 5.83 НДС 12% : 70.00 Наличными: 0.00 Безнал.: 659.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 76 23.10.2024 15:04 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63347 ФПД: 239661989684980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150427&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63347&fm=239661989684980&tin=02508201610067®Number=0000000000091619&sum=65912 0 [15:04:27]StoreToDocumentArchive [15:04:27]shift 546 fd 63347 [15:04:27]save to /storage/0546/doc_00063347 [15:04:27]save last doc name /storage/0546/doc_00063347 to /storage/kkm_last_doc_name [15:04:27]save OK [15:04:27]Clear old archive folders... [15:04:27]ProcessDocumentItem done err = 0, tmpTLVsize=650 [15:04:27]tlvbuf is 00B43480 [15:04:27]SAM_PROTO_ClearQueue [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 09 00 00 [15:04:27]Write to MH i2c: E2 08 00 06 01 80 09 00 00 00 00 00 00 79 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 06 01 00 90 00 7B [15:04:27]RAPDU: 90 00 [15:04:27]wFMCommunicate OK [15:04:27]SAM_PROTO_ClearQueue done [15:04:27]KKMCreateOFDPacket [15:04:27]OFDProtocolAddRootSTLVToBuf [15:04:27]FM_MakeSignedData [15:04:27]FM_MakeSignedData [15:04:27]SAM_PROTO_SignData [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 0D 01 02 [15:04:27]Write to MH i2c: E2 08 00 07 01 80 0D 01 02 00 00 00 00 81 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 03 00 07 01 00 90 00 7C [15:04:27]RAPDU: 90 00 [15:04:27]wFMCommunicate OK [15:04:27]wFMCommunicate request_size=255 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 0D 02 02 FA 03 00 8A 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4E 51 00 00 00 00 13 04 06 00 4E 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 [15:04:27]Write to MH i2c: E2 02 01 08 01 80 0D 02 02 FA 00 03 00 8A 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4E 51 00 00 00 00 13 04 06 00 4E 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 00 00 5A [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [15:04:28]RAPDU: 90 00 [15:04:28]wFMCommunicate OK [15:04:28]wFMCommunicate request_size=255 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 0D 02 02 FA 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 1A 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 6E 00 00 00 00 13 04 06 00 58 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 01 01 00 00 00 EB [15:04:28]Write to MH i2c: E2 02 01 09 01 80 0D 02 02 FA 00 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 1A 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 6E 00 00 00 00 13 04 06 00 58 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 01 01 00 00 00 EB 00 00 63 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [15:04:28]RAPDU: 90 00 [15:04:28]wFMCommunicate OK [15:04:28]wFMCommunicate request_size=159 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 10 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F7 00 00 35 04 06 00 D9 F8 A7 C2 E6 F4 [15:04:28]Write to MH i2c: E2 A2 00 0A 01 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 10 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F7 00 00 35 04 06 00 D9 F8 A7 C2 E6 F4 00 00 41 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [15:04:28]RAPDU: 90 00 [15:04:28]wFMCommunicate OK [15:04:28]wFMCommunicate request_size=4 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 0D 03 02 [15:04:28]Write to MH i2c: E2 08 00 0B 01 80 0D 03 02 00 00 00 00 87 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 0B 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 0B 00 0B 01 00 3E C7 98 09 5C 8E 73 61 90 00 EC [15:04:28]RAPDU: 3E C7 98 09 5C 8E 73 61 90 00 [15:04:28]wFMCommunicate OK [15:04:28]SAM_PROTO_SignData done [15:04:28]FM_MakeSignedData done [15:04:28]CreateOFDProtocolMessage [15:04:28]wFMCommunicate request_size=4 [15:04:28]MH_SAM_APDU [15:04:28]CAPDU: 80 11 00 00 [15:04:28]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:28]Read from MH i2c: E2 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 17 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E0 [15:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:04:28]wFMCommunicate OK [15:04:28]CreateOFDProtocolMessage done [15:04:28]OFDSenderStorePacket 63347 [15:04:28]StoreOFDPacket docnum=63347 [15:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9E 02 00 00 EB D6 96 02 BF 10 5A 03 01 00 03 00 8A 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4E 51 00 00 00 00 13 04 06 00 4E 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 1A 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 6E 00 00 00 00 13 04 06 00 58 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 10 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F7 00 00 35 04 06 00 D9 F8 A7 C2 E6 F4 3E C7 98 09 5C 8E 73 61 [15:04:28]CheckFolder [15:04:28]dirname=/storage/ofd_packets [15:04:28]CheckFolder done [15:04:28]ProducePacketName [15:04:28]name=ofd_packets/00063347 [15:04:28]NVStorageSaveData ofd_packets/00063347 [15:04:28]File name is /storage/ofd_packets/00063347 [15:04:28]Write 700 bytes [15:04:28]NVStorageSaveData done [15:04:28]OFDSenderStorePacket done [15:04:28]KKMCreateOFDPacket done [15:04:28]NVStorageSaveData kkm_last_timestamp [15:04:28]File name is /storage/kkm_last_timestamp [15:04:28]Write 4 bytes [15:04:28]NVStorageSaveData done [15:04:28]ExternCall_PrintAddStr [15:04:28]wPrintStart [15:04:28]Write to MH i2c: 01 00 00 0D 01 0E [15:04:28]Write i2c OK [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 [15:04:28]MH_I2C_Read... [15:04:28]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [15:04:28]RasterBufferAndPrint [15:04:28]line Счет N : (3)47657 [15:04:28]line ИНН: 02508201610067 [15:04:28]line Контрольно-Кассовый Чек [15:04:28]line ПРОДАЖА [15:04:28]line Товар: 4780022460452 [15:04:28]line Антифриз Yumiko gold 1кг [15:04:28]line 1.000 * 208.14 [15:04:28]line = 208.14 [15:04:28]line НДС 12% НСП 1% [15:04:28]line > о реализуемом товаре [15:04:28]line Товар: 4700003010018 [15:04:28]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [15:04:28]line 2.000 * 49.56 [15:04:28]line = 99.12 [15:04:28]line НДС 12% НСП 1% [15:04:28]line > о реализуемом товаре [15:04:28]line Товар: 4011100091993 [15:04:28]line Шок Батончик Милки Вей 26г [15:04:28]line 2.000 * 34.69 [15:04:28]line = 69.38 [15:04:28]line НДС 12% НСП 1% [15:04:28]line > о реализуемом товаре [15:04:28]line Товар: 8901086040022 [15:04:28]line Жидкость стеклоомывающая ПН -20 4,5л [15:04:28]line 1.000 * 282.48 [15:04:28]line = 282.48 [15:04:28]line НДС 12% НСП 1% [15:04:28]line > о реализуемом товаре [15:04:28]line ИТОГО: 659.12 [15:04:28]line НСП 1% : 5.83 [15:04:28]line НДС 12% : 70.00 [15:04:28]line Наличными: 0.00 [15:04:28]line Безнал.: 659.12 [15:04:28]line Место: АЗС № 86 "Партнер Нефть" [15:04:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:04:28]line СНО: Общий режим [15:04:28]line Чек 76 23.10.2024 15:04 [15:04:28]line Смена: 546 ФФД: 1.0 [15:04:28]line ЗНМ: 0300000154 [15:04:28]line РНМ: 0000000000091619 [15:04:28]line Версия ККМ: 001 [15:04:28]line Платежная система: Mbank [15:04:28]line ФМ: 0000000000874676 [15:04:28]line ФД: 63347 [15:04:28]line ФПД: 239661989684980 [15:04:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150427&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63347&fm=239661989684980&tin=02508201610067®Number=0000000000091619&sum=65912 [15:04:28]line 0 [15:04:28]OFD Sender: Processing packet 63347 [packets to send 232, broken 231] [15:04:28]ProducePacketName [15:04:28]name=ofd_packets/00063347 [15:04:28]OFD Sender: To server: pG, [15:04:28]CommunicateWithHost lk.salyk.kg:30040 [15:04:28]ConnectInit lk.salyk.kg [15:04:28]written 0, free lines is 4095 [15:04:29]Connected sock=9 [15:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9E 02 00 00 EB D6 96 02 BF 10 5A 03 01 00 03 00 8A 02 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4E 51 00 00 00 00 13 04 06 00 4E 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 13 00 00 00 00 13 04 06 00 B8 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 8D 0D 00 00 00 00 13 04 06 00 1A 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 6E 00 00 00 00 13 04 06 00 58 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 01 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 7B 10 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F7 00 00 35 04 06 00 D9 F8 A7 C2 E6 F4 3E C7 98 09 5C 8E 73 61 [15:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 FD 15 47 00 93 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 73 F7 00 00 F4 03 04 00 72 BA 18 67 B6 04 01 00 00 B9 A1 87 CC 35 33 90 8B [15:04:29]CommunicateWithHost err = 0 [15:04:29]CheckOFDResponse [15:04:29]1017 (14) - 77093643461234 [15:04:29]1041 (16) - 0000000000874676 [15:04:29]1040 (4) - 63347 [15:04:29]1012 (4) - 23.10.2024 08:57 [15:04:29]1206 (1) - 0 [15:04:29]OFD Sender: Remove packet 63347 [15:04:29]ProducePacketName [15:04:29]name=ofd_packets/00063347 [15:04:29]NVStorageDeleteData [15:04:29]Write to MH i2c: 01 00 00 4A 01 4B [15:04:29]Write i2c OK [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: 01 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: 01 07 00 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: 01 07 00 4A 01 00 00 00 00 00 3A 0C 98 [15:04:29]RasterBufferAndPrint [15:04:29]line [15:04:29]line [15:04:29]line [15:04:29]line [15:04:29]line [15:04:29]written 0, free lines is 3139 [15:04:29]MH_Cut [15:04:29]Write to MH i2c: D1 01 00 51 01 01 24 [15:04:29]Write i2c OK [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: D1 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: D1 01 00 [15:04:29]MH_I2C_Read... [15:04:29]Read from MH i2c: D1 01 00 51 01 00 23 [15:04:29]Write to MH i2c: 01 00 00 52 01 53 [15:04:29]Write i2c OK [15:04:29]MH_I2C_Read... [15:04:30]OFD Sender: No OFD packet to send [15:04:30]*** Cut start [15:04:30]*** Partial cut [15:04:30]*** CUTSNS_PIN = 1 [15:04:30]*** CUTSNS_PIN = 0 [15:04:30]*** Brake cut motor [15:04:31]Read from MH i2c: 01 [15:04:31]MH_I2C_Read... [15:04:31]*** Stop cut motor [15:04:31]*** Cut end [15:04:31]Read from MH i2c: 01 07 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: 01 07 00 52 01 00 00 00 00 00 FF 0F 68 [15:04:31]process_action close_receipt done [15:04:31]requested_data is exist [15:04:31]produce_requested_data [15:04:31]requested_item fm.sn is exist - process it [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 11 00 00 [15:04:31]Write to MH i2c: E2 08 00 53 01 80 11 00 00 00 00 00 00 CE [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 17 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 17 00 53 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [15:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:04:31]wFMCommunicate OK [15:04:31]requested_item fd.num is exist - process it [15:04:31]SAM_PROTO_GetFieldsCounters [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 13 00 00 [15:04:31]Write to MH i2c: E2 08 00 54 01 80 13 00 00 00 00 00 00 D1 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 62 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 62 00 54 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 73 F7 00 00 0E 04 04 00 22 02 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 6B [15:04:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 73 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:31]wFMCommunicate OK [15:04:31]SAM_PROTO_GetFieldsCounters done [15:04:31]requested_item shift.num is exist - process it [15:04:31]requested_item shift.opened is exist - process it [15:04:31]req_shift_opened [15:04:31]FM_GetShiftState [15:04:31]SAM_PROTO_GetShiftState [15:04:31]wFMCommunicate request_size=4 [15:04:31]MH_SAM_APDU [15:04:31]CAPDU: 80 13 01 00 [15:04:31]Write to MH i2c: E2 08 00 55 01 80 13 01 00 00 00 00 00 D3 [15:04:31]Write i2c OK [15:04:31]MH_I2C_Read... [15:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:31]Read from MH i2c: E2 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 0E 00 [15:04:31]MH_I2C_Read... [15:04:31]Read from MH i2c: E2 0E 00 55 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BD [15:04:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:04:31]wFMCommunicate OK [15:04:31]SAM_PROTO_GetShiftState done [15:04:31]FM_GetShiftState done [15:04:31]req_shift_opened done [15:04:31]requested_item shift.open_date is exist - process it [15:04:31]req_shift_open_date [15:04:31]req_shift_open_date done [15:04:31]produce_requested_data done [15:04:31]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63347,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [15:04:31]process_action_free close_receipt [15:04:31]json_value_free [15:04:31]json_value_free done [15:04:31]process_json_proto returns [15:04:31]Send response to host [15:04:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63347,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [15:04:31]free response buf [15:04:31]execute_script done [15:04:31]execute_script returns [15:04:31]free content buf [15:04:31]Sock 7.Close socket [15:04:31]Sock 7.Thread stoped [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:17]accept exits with 10 [15:09:17]New connection [15:09:17]New thread 3066633572 created [15:09:17]Thread 3066490212 joined [15:09:17]Waiting for new connection... [15:09:17] Sock 10.Parse request [15:09:17]Sock 10.Check first char [15:09:17]Sock 10.First char is OK [15:09:17]request: POST /json_proto HTTP/1.0 [15:09:17]Method: POST [15:09:17]URL: /json_proto [15:09:17]Method is POST - this is cgi request [15:09:17]url: /json_proto [15:09:17]query_string will be loaded in cgi processing [15:09:17]execute_cgi json_proto POST (null) [15:09:17]execute_cgi path=json_proto method=POST [15:09:17]POST find Content-Length [15:09:17]Host: 172.17.42.132:8080 [15:09:17]Content-Length: 631 [15:09:17]Content-Type: application/json [15:09:17] [15:09:17]POST finish read [15:09:17]Found Content-Length = 631 [15:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47658", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:17]execute_script... [15:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47658", "tax_sys" : 0, "items" : [ { "code": "4780022460452", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko gold 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:17]POST & json_proto [15:09:17]process_json_proto [15:09:17]json parsed OK: [15:09:17]protocol is kg_v1.0 [15:09:17]action value=close_receipt [15:09:17]process_action close_receipt [15:09:17]cmd_close_receipt [15:09:17]MH_GetDate [15:09:17]Write to MH i2c: F0 00 00 56 01 46 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: F0 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: F0 09 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: F0 09 00 56 01 00 9E 11 19 67 4C DF 56 66 65 [15:09:17]GetLastDocTimeStamp 1729695867 [15:09:17]current date 1729696158 [15:09:17]FM_GetShiftState [15:09:17]SAM_PROTO_GetShiftState [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 13 01 00 [15:09:17]Write to MH i2c: E2 08 00 57 01 80 13 01 00 00 00 00 00 D5 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0E 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 0E 00 57 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BF [15:09:17]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_GetShiftState done [15:09:17]FM_GetShiftState done [15:09:17]opened in 1729642527 [15:09:17]opened+sec_in_day 1729728927 [15:09:17]quantity*price = 21000 [15:09:17]sum+1 = 21001 [15:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 23.10.2024 15:09 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63348 ФПД: 41038047408660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150918&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63348&fm=41038047408660&tin=02508201610067®Number=0000000000091619&sum=21000 0 [15:09:18]StoreToDocumentArchive [15:09:18]shift 546 fd 63348 [15:09:18]save to /storage/0546/doc_00063348 [15:09:18]save last doc name /storage/0546/doc_00063348 to /storage/kkm_last_doc_name [15:09:18]save OK [15:09:18]Clear old archive folders... [15:09:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:09:18]tlvbuf is 00B05660 [15:09:18]SAM_PROTO_ClearQueue [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 09 00 00 [15:09:18]Write to MH i2c: E2 08 00 64 01 80 09 00 00 00 00 00 00 D7 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 64 01 00 90 00 D9 [15:09:18]RAPDU: 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_ClearQueue done [15:09:18]KKMCreateOFDPacket [15:09:18]OFDProtocolAddRootSTLVToBuf [15:09:18]FM_MakeSignedData [15:09:18]FM_MakeSignedData [15:09:18]SAM_PROTO_SignData [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 0D 01 02 [15:09:18]Write to MH i2c: E2 08 00 65 01 80 0D 01 02 00 00 00 00 DF [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 65 01 00 90 00 DA [15:09:18]RAPDU: 90 00 [15:09:18]wFMCommunicate OK [15:09:18]wFMCommunicate request_size=255 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E 11 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [15:09:18]Write to MH i2c: E2 02 01 66 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E 11 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 00 00 57 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 66 01 00 90 00 DB [15:09:19]RAPDU: 90 00 [15:09:19]wFMCommunicate OK [15:09:19]wFMCommunicate request_size=35 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 74 F7 00 00 35 04 06 00 25 52 EA 3C F2 14 [15:09:19]Write to MH i2c: E2 26 00 67 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 74 F7 00 00 35 04 06 00 25 52 EA 3C F2 14 00 00 E9 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 03 00 67 01 00 90 00 DC [15:09:19]RAPDU: 90 00 [15:09:19]wFMCommunicate OK [15:09:19]wFMCommunicate request_size=4 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 0D 03 02 [15:09:19]Write to MH i2c: E2 08 00 68 01 80 0D 03 02 00 00 00 00 E4 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 0B 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 0B 00 68 01 00 E3 DD 47 D7 F3 57 6D 53 90 00 CD [15:09:19]RAPDU: E3 DD 47 D7 F3 57 6D 53 90 00 [15:09:19]wFMCommunicate OK [15:09:19]SAM_PROTO_SignData done [15:09:19]FM_MakeSignedData done [15:09:19]CreateOFDProtocolMessage [15:09:19]wFMCommunicate request_size=4 [15:09:19]MH_SAM_APDU [15:09:19]CAPDU: 80 11 00 00 [15:09:19]Write to MH i2c: E2 08 00 69 01 80 11 00 00 00 00 00 00 E4 [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:19]Read from MH i2c: E2 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 17 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: E2 17 00 69 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3D [15:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:09:19]wFMCommunicate OK [15:09:19]CreateOFDProtocolMessage done [15:09:19]OFDSenderStorePacket 63348 [15:09:19]StoreOFDPacket docnum=63348 [15:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 75 37 20 01 B8 8E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E 11 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 74 F7 00 00 35 04 06 00 25 52 EA 3C F2 14 E3 DD 47 D7 F3 57 6D 53 [15:09:19]CheckFolder [15:09:19]dirname=/storage/ofd_packets [15:09:19]CheckFolder done [15:09:19]ProducePacketName [15:09:19]name=ofd_packets/00063348 [15:09:19]NVStorageSaveData ofd_packets/00063348 [15:09:19]File name is /storage/ofd_packets/00063348 [15:09:19]Write 326 bytes [15:09:19]NVStorageSaveData done [15:09:19]OFDSenderStorePacket done [15:09:19]KKMCreateOFDPacket done [15:09:19]NVStorageSaveData kkm_last_timestamp [15:09:19]File name is /storage/kkm_last_timestamp [15:09:19]Write 4 bytes [15:09:19]NVStorageSaveData done [15:09:19]ExternCall_PrintAddStr [15:09:19]wPrintStart [15:09:19]Write to MH i2c: 01 00 00 6A 01 6B [15:09:19]Write i2c OK [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: 01 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: 01 07 00 [15:09:19]MH_I2C_Read... [15:09:19]Read from MH i2c: 01 07 00 6A 01 00 00 00 00 00 FF 0F 80 [15:09:19]RasterBufferAndPrint [15:09:19]line Счет N : (3)47658 [15:09:19]line ИНН: 02508201610067 [15:09:19]line Контрольно-Кассовый Чек [15:09:19]line ПРОДАЖА [15:09:19]line Товар: 4780022460452 [15:09:19]line Антифриз Yumiko gold 1кг [15:09:19]line 1.000 * 210.00 [15:09:19]line = 210.00 [15:09:19]line НДС 12% НСП 1% [15:09:19]line > о реализуемом товаре [15:09:19]line ИТОГО: 210.00 [15:09:19]line НСП 1% : 1.86 [15:09:19]line НДС 12% : 22.30 [15:09:19]line Наличными: 210.00 [15:09:19]line Безнал.: 0.00 [15:09:19]line Место: АЗС № 86 "Партнер Нефть" [15:09:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:09:19]line СНО: Общий режим [15:09:19]line Чек 77 23.10.2024 15:09 [15:09:19]line Смена: 546 ФФД: 1.0 [15:09:19]line ЗНМ: 0300000154 [15:09:19]line РНМ: 0000000000091619 [15:09:19]line Версия ККМ: 001 [15:09:19]line ФМ: 0000000000874676 [15:09:19]line ФД: 63348 [15:09:19]line ФПД: 41038047408660 [15:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T150918&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63348&fm=41038047408660&tin=02508201610067®Number=0000000000091619&sum=21000 [15:09:19]OFD Sender: Processing packet 63348 [packets to send 232, broken 231] [15:09:19]ProducePacketName [15:09:19]name=ofd_packets/00063348 [15:09:19]OFD Sender: To server: pG, [15:09:19]CommunicateWithHost lk.salyk.kg:30040 [15:09:19]ConnectInit lk.salyk.kg [15:09:19]line 0 [15:09:19]written 0, free lines is 4095 [15:09:19]Connected sock=9 [15:09:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 75 37 20 01 B8 8E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9E 11 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 74 F7 00 00 35 04 06 00 25 52 EA 3C F2 14 E3 DD 47 D7 F3 57 6D 53 [15:09:20]Write to MH i2c: 01 00 00 92 01 93 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 22 0D C9 [15:09:20]RasterBufferAndPrint [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]line [15:09:20]written 0, free lines is 3368 [15:09:20]MH_Cut [15:09:20]Write to MH i2c: D1 01 00 99 01 01 6C [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 01 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: D1 01 00 99 01 00 6B [15:09:20]Write to MH i2c: 01 00 00 9A 01 9B [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 C4 91 47 00 FC 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 74 F7 00 00 F4 03 04 00 95 BB 18 67 B6 04 01 00 00 25 B6 87 5A 66 A5 13 64 [15:09:20]CommunicateWithHost err = 0 [15:09:20]CheckOFDResponse [15:09:20]1017 (14) - 77093643461234 [15:09:20]1041 (16) - 0000000000874676 [15:09:20]1040 (4) - 63348 [15:09:20]1012 (4) - 23.10.2024 09:02 [15:09:20]1206 (1) - 0 [15:09:20]OFD Sender: Remove packet 63348 [15:09:20]ProducePacketName [15:09:20]name=ofd_packets/00063348 [15:09:20]NVStorageDeleteData [15:09:20]*** Cut start [15:09:20]*** Partial cut [15:09:20]*** CUTSNS_PIN = 1 [15:09:20]*** CUTSNS_PIN = 0 [15:09:20]OFD Sender: No OFD packet to send [15:09:20]*** Brake cut motor [15:09:21]Read from MH i2c: 01 [15:09:21]MH_I2C_Read... [15:09:21]*** Stop cut motor [15:09:21]*** Cut end [15:09:21]Read from MH i2c: 01 07 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 FF 0F B0 [15:09:21]process_action close_receipt done [15:09:21]requested_data is exist [15:09:21]produce_requested_data [15:09:21]requested_item fm.sn is exist - process it [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 11 00 00 [15:09:21]Write to MH i2c: E2 08 00 9B 01 80 11 00 00 00 00 00 00 16 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 17 00 9B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6F [15:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:09:21]wFMCommunicate OK [15:09:21]requested_item fd.num is exist - process it [15:09:21]SAM_PROTO_GetFieldsCounters [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 13 00 00 [15:09:21]Write to MH i2c: E2 08 00 9C 01 80 13 00 00 00 00 00 00 19 [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 62 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 62 00 9C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 74 F7 00 00 0E 04 04 00 22 02 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 B7 [15:09:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 74 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_GetFieldsCounters done [15:09:21]requested_item shift.num is exist - process it [15:09:21]requested_item shift.opened is exist - process it [15:09:21]req_shift_opened [15:09:21]FM_GetShiftState [15:09:21]SAM_PROTO_GetShiftState [15:09:21]wFMCommunicate request_size=4 [15:09:21]MH_SAM_APDU [15:09:21]CAPDU: 80 13 01 00 [15:09:21]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [15:09:21]Write i2c OK [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 [15:09:21]MH_I2C_Read... [15:09:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:21]Read from MH i2c: E2 0E 00 [15:09:21]MH_I2C_Read... [15:09:21]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 05 [15:09:21]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:09:21]wFMCommunicate OK [15:09:21]SAM_PROTO_GetShiftState done [15:09:21]FM_GetShiftState done [15:09:21]req_shift_opened done [15:09:21]requested_item shift.open_date is exist - process it [15:09:21]req_shift_open_date [15:09:21]req_shift_open_date done [15:09:21]produce_requested_data done [15:09:21]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63348,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [15:09:21]process_action_free close_receipt [15:09:21]json_value_free [15:09:21]json_value_free done [15:09:21]process_json_proto returns [15:09:21]Send response to host [15:09:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63348,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [15:09:21]free response buf [15:09:21]execute_script done [15:09:21]execute_script returns [15:09:21]free content buf [15:09:21]Sock 10.Close socket [15:09:21]Sock 10.Thread stoped [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:16]OFD Sender: No OFD packet to send [15:12:21]OFD Sender: No OFD packet to send [15:12:26]OFD Sender: No OFD packet to send [15:12:31]OFD Sender: No OFD packet to send [15:12:36]OFD Sender: No OFD packet to send [15:12:41]OFD Sender: No OFD packet to send [15:12:46]OFD Sender: No OFD packet to send [15:12:51]OFD Sender: No OFD packet to send [15:12:56]OFD Sender: No OFD packet to send [15:13:01]OFD Sender: No OFD packet to send [15:13:06]OFD Sender: No OFD packet to send [15:13:11]OFD Sender: No OFD packet to send [15:13:16]OFD Sender: No OFD packet to send [15:13:21]OFD Sender: No OFD packet to send [15:13:26]OFD Sender: No OFD packet to send [15:13:31]OFD Sender: No OFD packet to send [15:13:36]OFD Sender: No OFD packet to send [15:13:41]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:14]accept exits with 7 [15:22:14]New connection [15:22:14]New thread 3066490212 created [15:22:14]Thread 3066633572 joined [15:22:14]Waiting for new connection... [15:22:14] Sock 7.Parse request [15:22:14]Sock 7.Check first char [15:22:14]Sock 7.First char is OK [15:22:14]request: POST /json_proto HTTP/1.0 [15:22:14]Method: POST [15:22:14]URL: /json_proto [15:22:14]Method is POST - this is cgi request [15:22:14]url: /json_proto [15:22:14]query_string will be loaded in cgi processing [15:22:14]execute_cgi json_proto POST (null) [15:22:14]execute_cgi path=json_proto method=POST [15:22:14]POST find Content-Length [15:22:14]Host: 172.17.42.132:8080 [15:22:14]Content-Length: 628 [15:22:14]Content-Type: application/json [15:22:14] [15:22:14]POST finish read [15:22:14]Found Content-Length = 628 [15:22:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47659", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:14]execute_script... [15:22:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47659", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:14]POST & json_proto [15:22:14]process_json_proto [15:22:14]json parsed OK: [15:22:14]protocol is kg_v1.0 [15:22:14]action value=close_receipt [15:22:14]process_action close_receipt [15:22:14]cmd_close_receipt [15:22:14]MH_GetDate [15:22:14]Write to MH i2c: F0 00 00 9E 01 8E [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: F0 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: F0 09 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: F0 09 00 9E 01 00 A7 14 19 67 4C DF 56 66 B9 [15:22:14]GetLastDocTimeStamp 1729696158 [15:22:14]current date 1729696935 [15:22:14]FM_GetShiftState [15:22:14]SAM_PROTO_GetShiftState [15:22:14]wFMCommunicate request_size=4 [15:22:14]MH_SAM_APDU [15:22:14]CAPDU: 80 13 01 00 [15:22:14]Write to MH i2c: E2 08 00 9F 01 80 13 01 00 00 00 00 00 1D [15:22:14]Write i2c OK [15:22:14]MH_I2C_Read... [15:22:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:14]Read from MH i2c: E2 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 0E 00 [15:22:14]MH_I2C_Read... [15:22:14]Read from MH i2c: E2 0E 00 9F 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 07 [15:22:14]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:22:14]wFMCommunicate OK [15:22:14]SAM_PROTO_GetShiftState done [15:22:14]FM_GetShiftState done [15:22:14]opened in 1729642527 [15:22:14]opened+sec_in_day 1729728927 [15:22:14]quantity*price = 13000 [15:22:14]sum+1 = 13001 [15:22:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 78 23.10.2024 15:22 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63349 ФПД: 126038591433963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152215&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63349&fm=126038591433963&tin=02508201610067®Number=0000000000091619&sum=13000 0 [15:22:15]StoreToDocumentArchive [15:22:15]shift 546 fd 63349 [15:22:15]save to /storage/0546/doc_00063349 [15:22:15]save last doc name /storage/0546/doc_00063349 to /storage/kkm_last_doc_name [15:22:15]save OK [15:22:15]Clear old archive folders... [15:22:15]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:22:15]tlvbuf is 00B03B30 [15:22:15]SAM_PROTO_ClearQueue [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 09 00 00 [15:22:15]Write to MH i2c: E2 08 00 AC 01 80 09 00 00 00 00 00 00 1F [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [15:22:15]RAPDU: 90 00 [15:22:15]wFMCommunicate OK [15:22:15]SAM_PROTO_ClearQueue done [15:22:15]KKMCreateOFDPacket [15:22:15]OFDProtocolAddRootSTLVToBuf [15:22:15]FM_MakeSignedData [15:22:15]FM_MakeSignedData [15:22:15]SAM_PROTO_SignData [15:22:15]wFMCommunicate request_size=4 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 0D 01 02 [15:22:15]Write to MH i2c: E2 08 00 AD 01 80 0D 01 02 00 00 00 00 27 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [15:22:15]RAPDU: 90 00 [15:22:15]wFMCommunicate OK [15:22:15]wFMCommunicate request_size=255 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A7 14 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:22:15]Write to MH i2c: E2 02 01 AE 01 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A7 14 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 FD [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:15]Read from MH i2c: E2 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 [15:22:15]MH_I2C_Read... [15:22:15]Read from MH i2c: E2 03 00 AE 01 00 90 00 23 [15:22:15]RAPDU: 90 00 [15:22:15]wFMCommunicate OK [15:22:15]wFMCommunicate request_size=28 [15:22:15]MH_SAM_APDU [15:22:15]CAPDU: 80 0D 02 02 17 37 34 36 37 36 10 04 04 00 75 F7 00 00 35 04 06 00 72 A1 A5 78 6C EB [15:22:15]Write to MH i2c: E2 1F 00 AF 01 80 0D 02 02 17 00 37 34 36 37 36 10 04 04 00 75 F7 00 00 35 04 06 00 72 A1 A5 78 6C EB 00 00 B0 [15:22:15]Write i2c OK [15:22:15]MH_I2C_Read... [15:22:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:16]Read from MH i2c: E2 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 03 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 03 00 AF 01 00 90 00 24 [15:22:16]RAPDU: 90 00 [15:22:16]wFMCommunicate OK [15:22:16]wFMCommunicate request_size=4 [15:22:16]MH_SAM_APDU [15:22:16]CAPDU: 80 0D 03 02 [15:22:16]Write to MH i2c: E2 08 00 B0 01 80 0D 03 02 00 00 00 00 2C [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:16]Read from MH i2c: E2 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 0B 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 0B 00 B0 01 00 22 3B 6D B8 EC 52 31 00 90 00 1E [15:22:16]RAPDU: 22 3B 6D B8 EC 52 31 00 90 00 [15:22:16]wFMCommunicate OK [15:22:16]SAM_PROTO_SignData done [15:22:16]FM_MakeSignedData done [15:22:16]CreateOFDProtocolMessage [15:22:16]wFMCommunicate request_size=4 [15:22:16]MH_SAM_APDU [15:22:16]CAPDU: 80 11 00 00 [15:22:16]Write to MH i2c: E2 08 00 B1 01 80 11 00 00 00 00 00 00 2C [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:16]Read from MH i2c: E2 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 17 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: E2 17 00 B1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 85 [15:22:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:22:16]wFMCommunicate OK [15:22:16]CreateOFDProtocolMessage done [15:22:16]OFDSenderStorePacket 63349 [15:22:16]StoreOFDPacket docnum=63349 [15:22:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 2D 60 19 01 3F 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A7 14 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 75 F7 00 00 35 04 06 00 72 A1 A5 78 6C EB 22 3B 6D B8 EC 52 31 00 [15:22:16]CheckFolder [15:22:16]dirname=/storage/ofd_packets [15:22:16]CheckFolder done [15:22:16]ProducePacketName [15:22:16]name=ofd_packets/00063349 [15:22:16]NVStorageSaveData ofd_packets/00063349 [15:22:16]File name is /storage/ofd_packets/00063349 [15:22:16]Write 319 bytes [15:22:16]NVStorageSaveData done [15:22:16]OFDSenderStorePacket done [15:22:16]KKMCreateOFDPacket done [15:22:16]NVStorageSaveData kkm_last_timestamp [15:22:16]File name is /storage/kkm_last_timestamp [15:22:16]Write 4 bytes [15:22:16]NVStorageSaveData done [15:22:16]ExternCall_PrintAddStr [15:22:16]wPrintStart [15:22:16]Write to MH i2c: 01 00 00 B2 01 B3 [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 07 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 07 00 B2 01 00 00 00 00 00 FF 0F C8 [15:22:16]RasterBufferAndPrint [15:22:16]line Счет N : (3)47659 [15:22:16]line ИНН: 02508201610067 [15:22:16]line Контрольно-Кассовый Чек [15:22:16]line ПРОДАЖА [15:22:16]line Товар: 4620006996716 [15:22:16]line Водка Талка 0,1л [15:22:16]line 1.000 * 130.00 [15:22:16]line = 130.00 [15:22:16]line НДС 12% НСП 1% [15:22:16]line > о реализуемом товаре [15:22:16]line ИТОГО: 130.00 [15:22:16]line НСП 1% : 1.15 [15:22:16]line НДС 12% : 13.80 [15:22:16]line Наличными: 130.00 [15:22:16]line Безнал.: 0.00 [15:22:16]line Место: АЗС № 86 "Партнер Нефть" [15:22:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:22:16]line СНО: Общий режим [15:22:16]line Чек 78 23.10.2024 15:22 [15:22:16]line Смена: 546 ФФД: 1.0 [15:22:16]line ЗНМ: 0300000154 [15:22:16]line РНМ: 0000000000091619 [15:22:16]line Версия ККМ: 001 [15:22:16]line ФМ: 0000000000874676 [15:22:16]line ФД: 63349 [15:22:16]line ФПД: 126038591433963 [15:22:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T152215&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63349&fm=126038591433963&tin=02508201610067®Number=0000000000091619&sum=13000 [15:22:16]OFD Sender: Processing packet 63349 [packets to send 232, broken 231] [15:22:16]ProducePacketName [15:22:16]name=ofd_packets/00063349 [15:22:16]OFD Sender: To server: pG, [15:22:16]CommunicateWithHost lk.salyk.kg:30040 [15:22:16]ConnectInit lk.salyk.kg [15:22:16]line 0 [15:22:16]written 0, free lines is 4095 [15:22:16]Connected sock=10 [15:22:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 21 01 00 00 2D 60 19 01 3F 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A7 14 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 75 F7 00 00 35 04 06 00 72 A1 A5 78 6C EB 22 3B 6D B8 EC 52 31 00 [15:22:16]Write to MH i2c: 01 00 00 DA 01 DB [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 07 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 1F 0D 0E [15:22:16]RasterBufferAndPrint [15:22:16]line [15:22:16]line [15:22:16]line [15:22:16]line [15:22:16]line [15:22:16]written 0, free lines is 3365 [15:22:16]MH_Cut [15:22:16]Write to MH i2c: D1 01 00 E1 01 01 B4 [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: D1 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: D1 01 00 [15:22:16]MH_I2C_Read... [15:22:16]Read from MH i2c: D1 01 00 E1 01 00 B3 [15:22:16]Write to MH i2c: 01 00 00 E2 01 E3 [15:22:16]Write i2c OK [15:22:16]MH_I2C_Read... [15:22:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 29 0B 47 00 6D 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 75 F7 00 00 F4 03 04 00 9E BE 18 67 B6 04 01 00 00 3F 79 2D 43 2A 42 18 4E [15:22:17]CommunicateWithHost err = 0 [15:22:17]CheckOFDResponse [15:22:17]1017 (14) - 77093643461234 [15:22:17]1041 (16) - 0000000000874676 [15:22:17]1040 (4) - 63349 [15:22:17]1012 (4) - 23.10.2024 09:15 [15:22:17]1206 (1) - 0 [15:22:17]OFD Sender: Remove packet 63349 [15:22:17]ProducePacketName [15:22:17]name=ofd_packets/00063349 [15:22:17]NVStorageDeleteData [15:22:17]*** Cut start [15:22:17]*** Partial cut [15:22:17]*** CUTSNS_PIN = 1 [15:22:17]OFD Sender: No OFD packet to send [15:22:17]*** CUTSNS_PIN = 0 [15:22:17]*** Brake cut motor [15:22:18]Read from MH i2c: 01 [15:22:18]MH_I2C_Read... [15:22:18]*** Stop cut motor [15:22:18]*** Cut end [15:22:18]Read from MH i2c: 01 07 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [15:22:18]process_action close_receipt done [15:22:18]requested_data is exist [15:22:18]produce_requested_data [15:22:18]requested_item fm.sn is exist - process it [15:22:18]wFMCommunicate request_size=4 [15:22:18]MH_SAM_APDU [15:22:18]CAPDU: 80 11 00 00 [15:22:18]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [15:22:18]Write i2c OK [15:22:18]MH_I2C_Read... [15:22:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:18]Read from MH i2c: E2 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 17 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B7 [15:22:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:22:18]wFMCommunicate OK [15:22:18]requested_item fd.num is exist - process it [15:22:18]SAM_PROTO_GetFieldsCounters [15:22:18]wFMCommunicate request_size=4 [15:22:18]MH_SAM_APDU [15:22:18]CAPDU: 80 13 00 00 [15:22:18]Write to MH i2c: E2 08 00 E4 01 80 13 00 00 00 00 00 00 61 [15:22:18]Write i2c OK [15:22:18]MH_I2C_Read... [15:22:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:18]Read from MH i2c: E2 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 62 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 62 00 E4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 75 F7 00 00 0E 04 04 00 22 02 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 03 [15:22:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 75 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:18]wFMCommunicate OK [15:22:18]SAM_PROTO_GetFieldsCounters done [15:22:18]requested_item shift.num is exist - process it [15:22:18]requested_item shift.opened is exist - process it [15:22:18]req_shift_opened [15:22:18]FM_GetShiftState [15:22:18]SAM_PROTO_GetShiftState [15:22:18]wFMCommunicate request_size=4 [15:22:18]MH_SAM_APDU [15:22:18]CAPDU: 80 13 01 00 [15:22:18]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [15:22:18]Write i2c OK [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 [15:22:18]MH_I2C_Read... [15:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:18]Read from MH i2c: E2 0E 00 [15:22:18]MH_I2C_Read... [15:22:18]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 4D [15:22:18]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:22:18]wFMCommunicate OK [15:22:18]SAM_PROTO_GetShiftState done [15:22:18]FM_GetShiftState done [15:22:18]req_shift_opened done [15:22:18]requested_item shift.open_date is exist - process it [15:22:18]req_shift_open_date [15:22:18]req_shift_open_date done [15:22:18]produce_requested_data done [15:22:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63349,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [15:22:18]process_action_free close_receipt [15:22:18]json_value_free [15:22:18]json_value_free done [15:22:18]process_json_proto returns [15:22:18]Send response to host [15:22:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63349,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [15:22:18]free response buf [15:22:18]execute_script done [15:22:18]execute_script returns [15:22:18]free content buf [15:22:18]Sock 7.Close socket [15:22:18]Sock 7.Thread stoped [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:53]OFD Sender: No OFD packet to send [15:31:58]OFD Sender: No OFD packet to send [15:32:03]OFD Sender: No OFD packet to send [15:32:08]OFD Sender: No OFD packet to send [15:32:13]OFD Sender: No OFD packet to send [15:32:18]OFD Sender: No OFD packet to send [15:32:23]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:48]OFD Sender: No OFD packet to send [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [15:34:33]OFD Sender: No OFD packet to send [15:34:38]OFD Sender: No OFD packet to send [15:34:43]OFD Sender: No OFD packet to send [15:34:48]OFD Sender: No OFD packet to send [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:38]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:44]OFD Sender: No OFD packet to send [15:40:49]OFD Sender: No OFD packet to send [15:40:54]OFD Sender: No OFD packet to send [15:40:59]OFD Sender: No OFD packet to send [15:41:04]OFD Sender: No OFD packet to send [15:41:09]OFD Sender: No OFD packet to send [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:03]accept exits with 9 [15:48:03]New connection [15:48:03]New thread 3066633572 created [15:48:03]Thread 3066490212 joined [15:48:03]Waiting for new connection... [15:48:03] Sock 9.Parse request [15:48:03]Sock 9.Check first char [15:48:03]Sock 9.First char is OK [15:48:03]request: POST /json_proto HTTP/1.0 [15:48:03]Method: POST [15:48:03]URL: /json_proto [15:48:03]Method is POST - this is cgi request [15:48:03]url: /json_proto [15:48:03]query_string will be loaded in cgi processing [15:48:03]execute_cgi json_proto POST (null) [15:48:03]execute_cgi path=json_proto method=POST [15:48:03]POST find Content-Length [15:48:03]Host: 172.17.42.132:8080 [15:48:03]Content-Length: 770 [15:48:03]Content-Type: application/json [15:48:03] [15:48:03]POST finish read [15:48:03]Found Content-Length = 770 [15:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47660", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "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", "payments": [ { "type": 1, "sum" : 113.98 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:03]execute_script... [15:48:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47660", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 113.98, "quantity" : 1.000, "sum" : 113.98, "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", "payments": [ { "type": 1, "sum" : 113.98 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:03]POST & json_proto [15:48:03]process_json_proto [15:48:03]json parsed OK: [15:48:03]protocol is kg_v1.0 [15:48:03]action value=close_receipt [15:48:03]process_action close_receipt [15:48:03]cmd_close_receipt [15:48:03]MH_GetDate [15:48:03]Write to MH i2c: F0 00 00 E6 01 D6 [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: F0 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: F0 09 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: F0 09 00 E6 01 00 B4 1A 19 67 4C DF 56 66 14 [15:48:03]GetLastDocTimeStamp 1729696935 [15:48:03]current date 1729698484 [15:48:03]FM_GetShiftState [15:48:03]SAM_PROTO_GetShiftState [15:48:03]wFMCommunicate request_size=4 [15:48:03]MH_SAM_APDU [15:48:03]CAPDU: 80 13 01 00 [15:48:03]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [15:48:03]Write i2c OK [15:48:03]MH_I2C_Read... [15:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:03]Read from MH i2c: E2 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 0E 00 [15:48:03]MH_I2C_Read... [15:48:03]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 4F [15:48:03]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:48:03]wFMCommunicate OK [15:48:03]SAM_PROTO_GetShiftState done [15:48:03]FM_GetShiftState done [15:48:03]opened in 1729642527 [15:48:03]opened+sec_in_day 1729728927 [15:48:03]quantity*price = 11398 [15:48:03]sum+1 = 11399 [15:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 113.98 НСП 1% : 1.01 НДС 12% : 12.10 Наличными: 0.00 Безнал.: 113.98 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 23.10.2024 15:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63350 ФПД: 46035940946276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154804&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63350&fm=46035940946276&tin=02508201610067®Number=0000000000091619&sum=11398 0 [15:48:04]StoreToDocumentArchive [15:48:04]shift 546 fd 63350 [15:48:04]save to /storage/0546/doc_00063350 [15:48:04]save last doc name /storage/0546/doc_00063350 to /storage/kkm_last_doc_name [15:48:04]save OK [15:48:04]Clear old archive folders... [15:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:48:04]tlvbuf is 00B04DA0 [15:48:04]SAM_PROTO_ClearQueue [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 09 00 00 [15:48:04]Write to MH i2c: E2 08 00 F4 01 80 09 00 00 00 00 00 00 67 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]SAM_PROTO_ClearQueue done [15:48:04]KKMCreateOFDPacket [15:48:04]OFDProtocolAddRootSTLVToBuf [15:48:04]FM_MakeSignedData [15:48:04]FM_MakeSignedData [15:48:04]SAM_PROTO_SignData [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 01 02 [15:48:04]Write to MH i2c: E2 08 00 F5 01 80 0D 01 02 00 00 00 00 6F [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=255 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 1A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 [15:48:04]Write to MH i2c: E2 02 01 F6 01 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 1A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 00 00 CD [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=39 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F7 00 00 35 04 06 00 29 DE 93 E8 31 64 [15:48:04]Write to MH i2c: E2 2A 00 F7 01 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F7 00 00 35 04 06 00 29 DE 93 E8 31 64 00 00 B7 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:04]Read from MH i2c: E2 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 [15:48:04]MH_I2C_Read... [15:48:04]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [15:48:04]RAPDU: 90 00 [15:48:04]wFMCommunicate OK [15:48:04]wFMCommunicate request_size=4 [15:48:04]MH_SAM_APDU [15:48:04]CAPDU: 80 0D 03 02 [15:48:04]Write to MH i2c: E2 08 00 F8 01 80 0D 03 02 00 00 00 00 74 [15:48:04]Write i2c OK [15:48:04]MH_I2C_Read... [15:48:04]OFD Sender: No OFD packet to send [15:48:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:05]Read from MH i2c: E2 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 0B 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 0B 00 F8 01 00 62 EC D0 AA CA FF E8 E4 90 00 D2 [15:48:05]RAPDU: 62 EC D0 AA CA FF E8 E4 90 00 [15:48:05]wFMCommunicate OK [15:48:05]SAM_PROTO_SignData done [15:48:05]FM_MakeSignedData done [15:48:05]CreateOFDProtocolMessage [15:48:05]wFMCommunicate request_size=4 [15:48:05]MH_SAM_APDU [15:48:05]CAPDU: 80 11 00 00 [15:48:05]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:05]Read from MH i2c: E2 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 17 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 CD [15:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:48:05]wFMCommunicate OK [15:48:05]CreateOFDProtocolMessage done [15:48:05]OFDSenderStorePacket 63350 [15:48:05]StoreOFDPacket docnum=63350 [15:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2C 01 00 00 62 F3 24 01 E2 B9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 1A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F7 00 00 35 04 06 00 29 DE 93 E8 31 64 62 EC D0 AA CA FF E8 E4 [15:48:05]CheckFolder [15:48:05]dirname=/storage/ofd_packets [15:48:05]CheckFolder done [15:48:05]ProducePacketName [15:48:05]name=ofd_packets/00063350 [15:48:05]NVStorageSaveData ofd_packets/00063350 [15:48:05]File name is /storage/ofd_packets/00063350 [15:48:05]Write 330 bytes [15:48:05]NVStorageSaveData done [15:48:05]OFDSenderStorePacket done [15:48:05]KKMCreateOFDPacket done [15:48:05]NVStorageSaveData kkm_last_timestamp [15:48:05]File name is /storage/kkm_last_timestamp [15:48:05]Write 4 bytes [15:48:05]NVStorageSaveData done [15:48:05]ExternCall_PrintAddStr [15:48:05]wPrintStart [15:48:05]Write to MH i2c: 01 00 00 FA 01 FB [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 FF 0F 10 [15:48:05]RasterBufferAndPrint [15:48:05]line Счет N : (3)47660 [15:48:05]line ИНН: 02508201610067 [15:48:05]line Контрольно-Кассовый Чек [15:48:05]line ПРОДАЖА [15:48:05]line Товар: 2000036210013 [15:48:05]line Кофе Капучино (GABB TRADE) [15:48:05]line 1.000 * 113.98 [15:48:05]line = 113.98 [15:48:05]line НДС 12% НСП 1% [15:48:05]line > о реализуемом товаре [15:48:05]line ИТОГО: 113.98 [15:48:05]line НСП 1% : 1.01 [15:48:05]line НДС 12% : 12.10 [15:48:05]line Наличными: 0.00 [15:48:05]line Безнал.: 113.98 [15:48:05]line Место: АЗС № 86 "Партнер Нефть" [15:48:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:48:05]line СНО: Общий режим [15:48:05]line Чек 79 23.10.2024 15:48 [15:48:05]line Смена: 546 ФФД: 1.0 [15:48:05]line ЗНМ: 0300000154 [15:48:05]line РНМ: 0000000000091619 [15:48:05]line Версия ККМ: 001 [15:48:05]line Платежная система: Mbank [15:48:05]line ФМ: 0000000000874676 [15:48:05]line ФД: 63350 [15:48:05]line ФПД: 46035940946276 [15:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T154804&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63350&fm=46035940946276&tin=02508201610067®Number=0000000000091619&sum=11398 [15:48:05]line 0 [15:48:05]written 0, free lines is 4095 [15:48:05]OFD Sender: Processing packet 63350 [packets to send 232, broken 231] [15:48:05]ProducePacketName [15:48:05]name=ofd_packets/00063350 [15:48:05]OFD Sender: To server: pG, [15:48:05]CommunicateWithHost lk.salyk.kg:30040 [15:48:05]ConnectInit lk.salyk.kg [15:48:05]Connected sock=11 [15:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2C 01 00 00 62 F3 24 01 E2 B9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 86 2C 00 00 00 00 13 04 06 00 86 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 B4 1A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F7 00 00 35 04 06 00 29 DE 93 E8 31 64 62 EC D0 AA CA FF E8 E4 [15:48:05]Write to MH i2c: 01 00 00 23 02 25 [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 0D 0D 46 [15:48:05]RasterBufferAndPrint [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]line [15:48:05]written 0, free lines is 3348 [15:48:05]MH_Cut [15:48:05]Write to MH i2c: D1 01 00 2A 02 01 FE [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 [15:48:05]MH_I2C_Read... [15:48:05]Read from MH i2c: D1 01 00 2A 02 00 FD [15:48:05]Write to MH i2c: 01 00 00 2B 02 2D [15:48:05]Write i2c OK [15:48:05]MH_I2C_Read... [15:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 CC 93 47 00 45 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 76 F7 00 00 F4 03 04 00 AB C4 18 67 B6 04 01 00 00 1D AF 7F E1 E1 13 F9 94 [15:48:05]CommunicateWithHost err = 0 [15:48:05]CheckOFDResponse [15:48:05]1017 (14) - 77093643461234 [15:48:05]1041 (16) - 0000000000874676 [15:48:05]1040 (4) - 63350 [15:48:05]1012 (4) - 23.10.2024 09:40 [15:48:05]1206 (1) - 0 [15:48:05]OFD Sender: Remove packet 63350 [15:48:05]ProducePacketName [15:48:05]name=ofd_packets/00063350 [15:48:05]NVStorageDeleteData [15:48:06]*** Cut start [15:48:06]*** Partial cut [15:48:06]*** CUTSNS_PIN = 1 [15:48:06]*** CUTSNS_PIN = 0 [15:48:06]OFD Sender: No OFD packet to send [15:48:06]*** Brake cut motor [15:48:06]Read from MH i2c: 01 [15:48:06]MH_I2C_Read... [15:48:06]*** Stop cut motor [15:48:06]*** Cut end [15:48:06]Read from MH i2c: 01 07 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [15:48:06]process_action close_receipt done [15:48:06]requested_data is exist [15:48:06]produce_requested_data [15:48:06]requested_item fm.sn is exist - process it [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 11 00 00 [15:48:06]Write to MH i2c: E2 08 00 2C 02 80 11 00 00 00 00 00 00 A8 [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:06]Read from MH i2c: E2 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 [15:48:06]MH_I2C_Read... [15:48:06]Read from MH i2c: E2 17 00 2C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 01 [15:48:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:48:06]wFMCommunicate OK [15:48:06]requested_item fd.num is exist - process it [15:48:06]SAM_PROTO_GetFieldsCounters [15:48:06]wFMCommunicate request_size=4 [15:48:06]MH_SAM_APDU [15:48:06]CAPDU: 80 13 00 00 [15:48:06]Write to MH i2c: E2 08 00 2D 02 80 13 00 00 00 00 00 00 AB [15:48:06]Write i2c OK [15:48:06]MH_I2C_Read... [15:48:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 62 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 62 00 2D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 76 F7 00 00 0E 04 04 00 22 02 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 51 [15:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 76 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:07]wFMCommunicate OK [15:48:07]SAM_PROTO_GetFieldsCounters done [15:48:07]requested_item shift.num is exist - process it [15:48:07]requested_item shift.opened is exist - process it [15:48:07]req_shift_opened [15:48:07]FM_GetShiftState [15:48:07]SAM_PROTO_GetShiftState [15:48:07]wFMCommunicate request_size=4 [15:48:07]MH_SAM_APDU [15:48:07]CAPDU: 80 13 01 00 [15:48:07]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [15:48:07]Write i2c OK [15:48:07]MH_I2C_Read... [15:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:07]Read from MH i2c: E2 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 0E 00 [15:48:07]MH_I2C_Read... [15:48:07]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 97 [15:48:07]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:48:07]wFMCommunicate OK [15:48:07]SAM_PROTO_GetShiftState done [15:48:07]FM_GetShiftState done [15:48:07]req_shift_opened done [15:48:07]requested_item shift.open_date is exist - process it [15:48:07]req_shift_open_date [15:48:07]req_shift_open_date done [15:48:07]produce_requested_data done [15:48:07]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63350,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [15:48:07]process_action_free close_receipt [15:48:07]json_value_free [15:48:07]json_value_free done [15:48:07]process_json_proto returns [15:48:07]Send response to host [15:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63350,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [15:48:07]free response buf [15:48:07]execute_script done [15:48:07]execute_script returns [15:48:07]free content buf [15:48:07]Sock 9.Close socket [15:48:07]Sock 9.Thread stoped [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:19]accept exits with 7 [15:53:19]New connection [15:53:19]New thread 3066490212 created [15:53:19]Thread 3066633572 joined [15:53:19]Waiting for new connection... [15:53:19] Sock 7.Parse request [15:53:19]Sock 7.Check first char [15:53:19]Sock 7.First char is OK [15:53:19]request: POST /json_proto HTTP/1.0 [15:53:19]Method: POST [15:53:19]URL: /json_proto [15:53:19]Method is POST - this is cgi request [15:53:19]url: /json_proto [15:53:19]query_string will be loaded in cgi processing [15:53:19]execute_cgi json_proto POST (null) [15:53:19]execute_cgi path=json_proto method=POST [15:53:19]POST find Content-Length [15:53:19]Host: 172.17.42.132:8080 [15:53:19]Content-Length: 747 [15:53:19]Content-Type: application/json [15:53:19] [15:53:19]POST finish read [15:53:19]Found Content-Length = 747 [15:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47661", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:19]execute_script... [15:53:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47661", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 142.73 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:19]POST & json_proto [15:53:19]process_json_proto [15:53:19]json parsed OK: [15:53:19]protocol is kg_v1.0 [15:53:19]action value=close_receipt [15:53:19]process_action close_receipt [15:53:19]cmd_close_receipt [15:53:19]MH_GetDate [15:53:19]Write to MH i2c: F0 00 00 2F 02 20 [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: F0 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: F0 09 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: F0 09 00 2F 02 00 F0 1B 19 67 4C DF 56 66 9B [15:53:19]GetLastDocTimeStamp 1729698484 [15:53:19]current date 1729698800 [15:53:19]FM_GetShiftState [15:53:19]SAM_PROTO_GetShiftState [15:53:19]wFMCommunicate request_size=4 [15:53:19]MH_SAM_APDU [15:53:19]CAPDU: 80 13 01 00 [15:53:19]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [15:53:19]Write i2c OK [15:53:19]MH_I2C_Read... [15:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:19]Read from MH i2c: E2 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 0E 00 [15:53:19]MH_I2C_Read... [15:53:19]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 99 [15:53:19]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:53:19]wFMCommunicate OK [15:53:19]SAM_PROTO_GetShiftState done [15:53:19]FM_GetShiftState done [15:53:19]opened in 1729642527 [15:53:19]opened+sec_in_day 1729728927 [15:53:19]quantity*price = 14273 [15:53:19]sum+1 = 14274 [15:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 142.73 НСП 1% : 1.26 НДС 12% : 15.16 Наличными: 0.00 Безнал.: 142.73 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 80 23.10.2024 15:53 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63351 ФПД: 231667395307983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155320&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63351&fm=231667395307983&tin=02508201610067®Number=0000000000091619&sum=14273 0 [15:53:20]StoreToDocumentArchive [15:53:20]shift 546 fd 63351 [15:53:20]save to /storage/0546/doc_00063351 [15:53:20]save last doc name /storage/0546/doc_00063351 to /storage/kkm_last_doc_name [15:53:20]save OK [15:53:20]Clear old archive folders... [15:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:53:20]tlvbuf is 00B06C90 [15:53:20]SAM_PROTO_ClearQueue [15:53:20]wFMCommunicate request_size=4 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 09 00 00 [15:53:20]Write to MH i2c: E2 08 00 3D 02 80 09 00 00 00 00 00 00 B1 [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [15:53:20]RAPDU: 90 00 [15:53:20]wFMCommunicate OK [15:53:20]SAM_PROTO_ClearQueue done [15:53:20]KKMCreateOFDPacket [15:53:20]OFDProtocolAddRootSTLVToBuf [15:53:20]FM_MakeSignedData [15:53:20]FM_MakeSignedData [15:53:20]SAM_PROTO_SignData [15:53:20]wFMCommunicate request_size=4 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 0D 01 02 [15:53:20]Write to MH i2c: E2 08 00 3E 02 80 0D 01 02 00 00 00 00 B9 [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [15:53:20]RAPDU: 90 00 [15:53:20]wFMCommunicate OK [15:53:20]wFMCommunicate request_size=255 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 1B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [15:53:20]Write to MH i2c: E2 02 01 3F 02 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 1B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 15 [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [15:53:20]RAPDU: 90 00 [15:53:20]wFMCommunicate OK [15:53:20]wFMCommunicate request_size=32 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F7 00 00 35 04 06 00 D2 B3 44 CD A9 CF [15:53:20]Write to MH i2c: E2 23 00 40 02 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F7 00 00 35 04 06 00 D2 B3 44 CD A9 CF 00 00 9B [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [15:53:20]RAPDU: 90 00 [15:53:20]wFMCommunicate OK [15:53:20]wFMCommunicate request_size=4 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 0D 03 02 [15:53:20]Write to MH i2c: E2 08 00 41 02 80 0D 03 02 00 00 00 00 BE [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 0B 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 0B 00 41 02 00 D3 AF 9C A0 88 42 88 0C 90 00 DB [15:53:20]RAPDU: D3 AF 9C A0 88 42 88 0C 90 00 [15:53:20]wFMCommunicate OK [15:53:20]SAM_PROTO_SignData done [15:53:20]FM_MakeSignedData done [15:53:20]CreateOFDProtocolMessage [15:53:20]wFMCommunicate request_size=4 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 11 00 00 [15:53:20]Write to MH i2c: E2 08 00 42 02 80 11 00 00 00 00 00 00 BE [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 17 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 17 00 42 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 17 [15:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:53:20]wFMCommunicate OK [15:53:20]CreateOFDProtocolMessage done [15:53:20]OFDSenderStorePacket 63351 [15:53:20]StoreOFDPacket docnum=63351 [15:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 67 C3 1D 01 F6 12 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 1B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F7 00 00 35 04 06 00 D2 B3 44 CD A9 CF D3 AF 9C A0 88 42 88 0C [15:53:20]CheckFolder [15:53:20]dirname=/storage/ofd_packets [15:53:20]CheckFolder done [15:53:20]ProducePacketName [15:53:20]name=ofd_packets/00063351 [15:53:20]NVStorageSaveData ofd_packets/00063351 [15:53:20]File name is /storage/ofd_packets/00063351 [15:53:20]Write 323 bytes [15:53:20]NVStorageSaveData done [15:53:20]OFDSenderStorePacket done [15:53:20]KKMCreateOFDPacket done [15:53:20]NVStorageSaveData kkm_last_timestamp [15:53:20]File name is /storage/kkm_last_timestamp [15:53:20]Write 4 bytes [15:53:20]NVStorageSaveData done [15:53:20]ExternCall_PrintAddStr [15:53:20]wPrintStart [15:53:20]Write to MH i2c: 01 00 00 43 02 45 [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: 01 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: 01 07 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: 01 07 00 43 02 00 00 00 00 00 FF 0F 5A [15:53:20]RasterBufferAndPrint [15:53:20]line Счет N : (3)47661 [15:53:20]line ИНН: 02508201610067 [15:53:20]line Контрольно-Кассовый Чек [15:53:20]line ПРОДАЖА [15:53:20]line Товар: 48743570 [15:53:20]line Сигареты Winston XStyle Blue [15:53:20]line 1.000 * 142.73 [15:53:20]line = 142.73 [15:53:20]line НДС 12% НСП 1% [15:53:20]line > о реализуемом товаре [15:53:20]line ИТОГО: 142.73 [15:53:20]line НСП 1% : 1.26 [15:53:20]line НДС 12% : 15.16 [15:53:20]line Наличными: 0.00 [15:53:20]line Безнал.: 142.73 [15:53:20]line Место: АЗС № 86 "Партнер Нефть" [15:53:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:53:20]line СНО: Общий режим [15:53:20]line Чек 80 23.10.2024 15:53 [15:53:20]line Смена: 546 ФФД: 1.0 [15:53:20]line ЗНМ: 0300000154 [15:53:20]line РНМ: 0000000000091619 [15:53:20]line Версия ККМ: 001 [15:53:20]line Платежная система: Mbank [15:53:20]line ФМ: 0000000000874676 [15:53:20]line ФД: 63351 [15:53:20]line ФПД: 231667395307983 [15:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T155320&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63351&fm=231667395307983&tin=02508201610067®Number=0000000000091619&sum=14273 [15:53:21]OFD Sender: Processing packet 63351 [packets to send 232, broken 231] [15:53:21]ProducePacketName [15:53:21]name=ofd_packets/00063351 [15:53:21]OFD Sender: To server: pG, [15:53:21]CommunicateWithHost lk.salyk.kg:30040 [15:53:21]ConnectInit lk.salyk.kg [15:53:21]line 0 [15:53:21]written 0, free lines is 4095 [15:53:21]Connected sock=10 [15:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 67 C3 1D 01 F6 12 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C1 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EC 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C1 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 F0 1B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F7 00 00 35 04 06 00 D2 B3 44 CD A9 CF D3 AF 9C A0 88 42 88 0C [15:53:21]Write to MH i2c: 01 00 00 6C 02 6E [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 FE 0C 7F [15:53:21]RasterBufferAndPrint [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]line [15:53:21]written 0, free lines is 3332 [15:53:21]MH_Cut [15:53:21]Write to MH i2c: D1 01 00 73 02 01 47 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: D1 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: D1 01 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: D1 01 00 73 02 00 46 [15:53:21]Write to MH i2c: 01 00 00 74 02 76 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AE 75 47 00 69 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 77 F7 00 00 F4 03 04 00 E7 C5 18 67 B6 04 01 00 00 ED F8 D1 69 73 E9 4A E1 [15:53:21]CommunicateWithHost err = 0 [15:53:21]CheckOFDResponse [15:53:21]1017 (14) - 77093643461234 [15:53:21]1041 (16) - 0000000000874676 [15:53:21]1040 (4) - 63351 [15:53:21]1012 (4) - 23.10.2024 09:46 [15:53:21]1206 (1) - 0 [15:53:21]OFD Sender: Remove packet 63351 [15:53:21]ProducePacketName [15:53:21]name=ofd_packets/00063351 [15:53:21]NVStorageDeleteData [15:53:22]*** Cut start [15:53:22]*** Partial cut [15:53:22]*** CUTSNS_PIN = 1 [15:53:22]OFD Sender: No OFD packet to send [15:53:22]*** CUTSNS_PIN = 0 [15:53:22]*** Brake cut motor [15:53:22]Read from MH i2c: 01 [15:53:22]MH_I2C_Read... [15:53:22]*** Stop cut motor [15:53:22]*** Cut end [15:53:22]Read from MH i2c: 01 07 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [15:53:22]process_action close_receipt done [15:53:22]requested_data is exist [15:53:22]produce_requested_data [15:53:22]requested_item fm.sn is exist - process it [15:53:22]wFMCommunicate request_size=4 [15:53:22]MH_SAM_APDU [15:53:22]CAPDU: 80 11 00 00 [15:53:22]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 17 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 4A [15:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [15:53:23]wFMCommunicate OK [15:53:23]requested_item fd.num is exist - process it [15:53:23]SAM_PROTO_GetFieldsCounters [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 13 00 00 [15:53:23]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 62 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 77 F7 00 00 0E 04 04 00 22 02 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 9E [15:53:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 77 F7 00 00 0E 04 04 00 22 02 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 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_GetFieldsCounters done [15:53:23]requested_item shift.num is exist - process it [15:53:23]requested_item shift.opened is exist - process it [15:53:23]req_shift_opened [15:53:23]FM_GetShiftState [15:53:23]SAM_PROTO_GetShiftState [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 13 01 00 [15:53:23]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:23]Read from MH i2c: E2 0E 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 E0 [15:53:23]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_GetShiftState done [15:53:23]FM_GetShiftState done [15:53:23]req_shift_opened done [15:53:23]requested_item shift.open_date is exist - process it [15:53:23]req_shift_open_date [15:53:23]req_shift_open_date done [15:53:23]produce_requested_data done [15:53:23]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63351,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [15:53:23]process_action_free close_receipt [15:53:23]json_value_free [15:53:23]json_value_free done [15:53:23]process_json_proto returns [15:53:23]Send response to host [15:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63351,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [15:53:23]free response buf [15:53:23]execute_script done [15:53:23]execute_script returns [15:53:23]free content buf [15:53:23]Sock 7.Close socket [15:53:23]Sock 7.Thread stoped [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11: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:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22: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:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:26]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44: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:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:37]OFD Sender: No OFD packet to send [16:52:42]OFD Sender: No OFD packet to send [16:52:47]OFD Sender: No OFD packet to send [16:52:52]OFD Sender: No OFD packet to send [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:48]accept exits with 9 [16:54:48]New connection [16:54:48]New thread 3066633572 created [16:54:48]Thread 3066490212 joined [16:54:48]Waiting for new connection... [16:54:48] Sock 9.Parse request [16:54:48]Sock 9.Check first char [16:54:48]Sock 9.First char is OK [16:54:48]request: POST /json_proto HTTP/1.0 [16:54:48]Method: POST [16:54:48]URL: /json_proto [16:54:48]Method is POST - this is cgi request [16:54:48]url: /json_proto [16:54:48]query_string will be loaded in cgi processing [16:54:48]execute_cgi json_proto POST (null) [16:54:48]execute_cgi path=json_proto method=POST [16:54:48]POST find Content-Length [16:54:48]Host: 172.17.42.132:8080 [16:54:48]Content-Length: 621 [16:54:48]Content-Type: application/json [16:54:48] [16:54:48]POST finish read [16:54:48]Found Content-Length = 621 [16:54:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47662", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:48]execute_script... [16:54:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47662", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:48]POST & json_proto [16:54:48]process_json_proto [16:54:48]json parsed OK: [16:54:48]protocol is kg_v1.0 [16:54:48]action value=close_receipt [16:54:48]process_action close_receipt [16:54:48]cmd_close_receipt [16:54:48]MH_GetDate [16:54:48]Write to MH i2c: F0 00 00 78 02 69 [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: F0 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: F0 09 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: F0 09 00 78 02 00 59 2A 19 67 4C DF 56 66 5C [16:54:48]GetLastDocTimeStamp 1729698800 [16:54:48]current date 1729702489 [16:54:48]FM_GetShiftState [16:54:48]SAM_PROTO_GetShiftState [16:54:48]wFMCommunicate request_size=4 [16:54:48]MH_SAM_APDU [16:54:48]CAPDU: 80 13 01 00 [16:54:48]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [16:54:48]Write i2c OK [16:54:48]MH_I2C_Read... [16:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:48]Read from MH i2c: E2 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 0E 00 [16:54:48]MH_I2C_Read... [16:54:48]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 E2 [16:54:48]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [16:54:48]wFMCommunicate OK [16:54:48]SAM_PROTO_GetShiftState done [16:54:48]FM_GetShiftState done [16:54:48]opened in 1729642527 [16:54:48]opened+sec_in_day 1729728927 [16:54:48]quantity*price = 15900 [16:54:48]sum+1 = 15901 [16:54:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 81 23.10.2024 16:54 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63352 ФПД: 244966703124172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165449&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63352&fm=244966703124172&tin=02508201610067®Number=0000000000091619&sum=15900 0 [16:54:49]StoreToDocumentArchive [16:54:49]shift 546 fd 63352 [16:54:49]save to /storage/0546/doc_00063352 [16:54:49]save last doc name /storage/0546/doc_00063352 to /storage/kkm_last_doc_name [16:54:49]save OK [16:54:49]Clear old archive folders... [16:54:49]ProcessDocumentItem done err = 0, tmpTLVsize=274 [16:54:49]tlvbuf is 00B0FBB0 [16:54:49]SAM_PROTO_ClearQueue [16:54:49]wFMCommunicate request_size=4 [16:54:49]MH_SAM_APDU [16:54:49]CAPDU: 80 09 00 00 [16:54:49]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [16:54:49]Write i2c OK [16:54:49]MH_I2C_Read... [16:54:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:49]Read from MH i2c: E2 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 03 00 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [16:54:49]RAPDU: 90 00 [16:54:49]wFMCommunicate OK [16:54:49]SAM_PROTO_ClearQueue done [16:54:49]KKMCreateOFDPacket [16:54:49]OFDProtocolAddRootSTLVToBuf [16:54:49]FM_MakeSignedData [16:54:49]FM_MakeSignedData [16:54:49]SAM_PROTO_SignData [16:54:49]wFMCommunicate request_size=4 [16:54:49]MH_SAM_APDU [16:54:49]CAPDU: 80 0D 01 02 [16:54:49]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [16:54:49]Write i2c OK [16:54:49]MH_I2C_Read... [16:54:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:49]Read from MH i2c: E2 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 03 00 [16:54:49]MH_I2C_Read... [16:54:49]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [16:54:49]RAPDU: 90 00 [16:54:49]wFMCommunicate OK [16:54:49]wFMCommunicate request_size=255 [16:54:49]MH_SAM_APDU [16:54:49]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 59 2A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [16:54:49]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 59 2A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 9F [16:54:49]Write i2c OK [16:54:49]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [16:54:50]RAPDU: 90 00 [16:54:50]wFMCommunicate OK [16:54:50]wFMCommunicate request_size=33 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F7 00 00 35 04 06 00 DE CB C1 52 4E CC [16:54:50]Write to MH i2c: E2 24 00 89 02 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F7 00 00 35 04 06 00 DE CB C1 52 4E CC 00 00 DF [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [16:54:50]RAPDU: 90 00 [16:54:50]wFMCommunicate OK [16:54:50]wFMCommunicate request_size=4 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 0D 03 02 [16:54:50]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 0B 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 0B 00 8A 02 00 80 DD 51 1F 61 F9 97 B7 90 00 7D [16:54:50]RAPDU: 80 DD 51 1F 61 F9 97 B7 90 00 [16:54:50]wFMCommunicate OK [16:54:50]SAM_PROTO_SignData done [16:54:50]FM_MakeSignedData done [16:54:50]CreateOFDProtocolMessage [16:54:50]wFMCommunicate request_size=4 [16:54:50]MH_SAM_APDU [16:54:50]CAPDU: 80 11 00 00 [16:54:50]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:50]Read from MH i2c: E2 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 17 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 60 [16:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:54:50]wFMCommunicate OK [16:54:50]CreateOFDProtocolMessage done [16:54:50]OFDSenderStorePacket 63352 [16:54:50]StoreOFDPacket docnum=63352 [16:54:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 06 4F 1E 01 09 3F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 59 2A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F7 00 00 35 04 06 00 DE CB C1 52 4E CC 80 DD 51 1F 61 F9 97 B7 [16:54:50]CheckFolder [16:54:50]dirname=/storage/ofd_packets [16:54:50]CheckFolder done [16:54:50]ProducePacketName [16:54:50]name=ofd_packets/00063352 [16:54:50]NVStorageSaveData ofd_packets/00063352 [16:54:50]File name is /storage/ofd_packets/00063352 [16:54:50]Write 324 bytes [16:54:50]NVStorageSaveData done [16:54:50]OFDSenderStorePacket done [16:54:50]KKMCreateOFDPacket done [16:54:50]NVStorageSaveData kkm_last_timestamp [16:54:50]File name is /storage/kkm_last_timestamp [16:54:50]Write 4 bytes [16:54:50]NVStorageSaveData done [16:54:50]OFD Sender: Processing packet 63352 [packets to send 232, broken 231] [16:54:50]ProducePacketName [16:54:50]name=ofd_packets/00063352 [16:54:50]OFD Sender: To server: pG, [16:54:50]CommunicateWithHost lk.salyk.kg:30040 [16:54:50]ConnectInit lk.salyk.kg [16:54:50]ExternCall_PrintAddStr [16:54:50]wPrintStart [16:54:50]Write to MH i2c: 01 00 00 8C 02 8E [16:54:50]Write i2c OK [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: 01 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: 01 07 00 [16:54:50]MH_I2C_Read... [16:54:50]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [16:54:50]RasterBufferAndPrint [16:54:50]line Счет N : (3)47662 [16:54:50]line ИНН: 02508201610067 [16:54:50]line Контрольно-Кассовый Чек [16:54:50]line ПРОДАЖА [16:54:50]line Товар: 4640030091645 [16:54:50]line Сигареты ESSE Exchange M [16:54:50]line 1.000 * 159.00 [16:54:50]line = 159.00 [16:54:50]line НДС 12% НСП 1% [16:54:50]line > о реализуемом товаре [16:54:50]line ИТОГО: 159.00 [16:54:50]line НСП 1% : 1.41 [16:54:50]line НДС 12% : 16.88 [16:54:50]line Наличными: 159.00 [16:54:50]line Безнал.: 0.00 [16:54:50]line Место: АЗС № 86 "Партнер Нефть" [16:54:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:54:50]line СНО: Общий режим [16:54:50]line Чек 81 23.10.2024 16:54 [16:54:50]line Смена: 546 ФФД: 1.0 [16:54:50]line ЗНМ: 0300000154 [16:54:50]line РНМ: 0000000000091619 [16:54:50]line Версия ККМ: 001 [16:54:50]line ФМ: 0000000000874676 [16:54:50]line ФД: 63352 [16:54:50]line ФПД: 244966703124172 [16:54:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T165449&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63352&fm=244966703124172&tin=02508201610067®Number=0000000000091619&sum=15900 [16:54:50]Connected sock=11 [16:54:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 06 4F 1E 01 09 3F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 59 2A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F7 00 00 35 04 06 00 DE CB C1 52 4E CC 80 DD 51 1F 61 F9 97 B7 [16:54:50]line 0 [16:54:50]written 0, free lines is 4095 [16:54:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8E 21 47 00 18 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 78 F7 00 00 F4 03 04 00 50 D4 18 67 B6 04 01 00 00 7D 36 2A F2 20 95 56 4D [16:54:50]CommunicateWithHost err = 0 [16:54:50]CheckOFDResponse [16:54:50]1017 (14) - 77093643461234 [16:54:50]1041 (16) - 0000000000874676 [16:54:50]1040 (4) - 63352 [16:54:50]1012 (4) - 23.10.2024 10:47 [16:54:50]1206 (1) - 0 [16:54:50]OFD Sender: Remove packet 63352 [16:54:50]ProducePacketName [16:54:50]name=ofd_packets/00063352 [16:54:50]NVStorageDeleteData [16:54:51]Write to MH i2c: 01 00 00 B4 02 B6 [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 07 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 14 0D DE [16:54:51]RasterBufferAndPrint [16:54:51]line [16:54:51]line [16:54:51]line [16:54:51]line [16:54:51]line [16:54:51]written 0, free lines is 3354 [16:54:51]MH_Cut [16:54:51]Write to MH i2c: D1 01 00 BB 02 01 8F [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: D1 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: D1 01 00 [16:54:51]MH_I2C_Read... [16:54:51]Read from MH i2c: D1 01 00 BB 02 00 8E [16:54:51]Write to MH i2c: 01 00 00 BC 02 BE [16:54:51]Write i2c OK [16:54:51]MH_I2C_Read... [16:54:51]OFD Sender: No OFD packet to send [16:54:51]*** Cut start [16:54:51]*** Partial cut [16:54:51]*** CUTSNS_PIN = 1 [16:54:51]*** CUTSNS_PIN = 0 [16:54:52]*** Brake cut motor [16:54:52]Read from MH i2c: 01 [16:54:52]MH_I2C_Read... [16:54:52]*** Stop cut motor [16:54:52]*** Cut end [16:54:52]Read from MH i2c: 01 07 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 FF 0F D3 [16:54:52]process_action close_receipt done [16:54:52]requested_data is exist [16:54:52]produce_requested_data [16:54:52]requested_item fm.sn is exist - process it [16:54:52]wFMCommunicate request_size=4 [16:54:52]MH_SAM_APDU [16:54:52]CAPDU: 80 11 00 00 [16:54:52]Write to MH i2c: E2 08 00 BD 02 80 11 00 00 00 00 00 00 39 [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:52]Read from MH i2c: E2 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 17 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 17 00 BD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 92 [16:54:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [16:54:52]wFMCommunicate OK [16:54:52]requested_item fd.num is exist - process it [16:54:52]SAM_PROTO_GetFieldsCounters [16:54:52]wFMCommunicate request_size=4 [16:54:52]MH_SAM_APDU [16:54:52]CAPDU: 80 13 00 00 [16:54:52]Write to MH i2c: E2 08 00 BE 02 80 13 00 00 00 00 00 00 3C [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:52]Read from MH i2c: E2 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 62 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 62 00 BE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 78 F7 00 00 0E 04 04 00 22 02 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 EA [16:54:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 78 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:52]wFMCommunicate OK [16:54:52]SAM_PROTO_GetFieldsCounters done [16:54:52]requested_item shift.num is exist - process it [16:54:52]requested_item shift.opened is exist - process it [16:54:52]req_shift_opened [16:54:52]FM_GetShiftState [16:54:52]SAM_PROTO_GetShiftState [16:54:52]wFMCommunicate request_size=4 [16:54:52]MH_SAM_APDU [16:54:52]CAPDU: 80 13 01 00 [16:54:52]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [16:54:52]Write i2c OK [16:54:52]MH_I2C_Read... [16:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:52]Read from MH i2c: E2 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 0E 00 [16:54:52]MH_I2C_Read... [16:54:52]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 28 [16:54:52]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [16:54:52]wFMCommunicate OK [16:54:52]SAM_PROTO_GetShiftState done [16:54:52]FM_GetShiftState done [16:54:52]req_shift_opened done [16:54:52]requested_item shift.open_date is exist - process it [16:54:52]req_shift_open_date [16:54:52]req_shift_open_date done [16:54:52]produce_requested_data done [16:54:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63352,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [16:54:52]process_action_free close_receipt [16:54:52]json_value_free [16:54:52]json_value_free done [16:54:52]process_json_proto returns [16:54:52]Send response to host [16:54:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63352,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [16:54:52]free response buf [16:54:52]execute_script done [16:54:52]execute_script returns [16:54:52]free content buf [16:54:52]Sock 9.Close socket [16:54:52]Sock 9.Thread stoped [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:31]accept exits with 7 [17:07:31]New connection [17:07:31]New thread 3066490212 created [17:07:31]Thread 3066633572 joined [17:07:31]Waiting for new connection... [17:07:31] Sock 7.Parse request [17:07:31]Sock 7.Check first char [17:07:31]Sock 7.First char is OK [17:07:31]request: POST /json_proto HTTP/1.0 [17:07:31]Method: POST [17:07:31]URL: /json_proto [17:07:31]Method is POST - this is cgi request [17:07:31]url: /json_proto [17:07:31]query_string will be loaded in cgi processing [17:07:31]execute_cgi json_proto POST (null) [17:07:31]execute_cgi path=json_proto method=POST [17:07:31]POST find Content-Length [17:07:31]Host: 172.17.42.132:8080 [17:07:31]Content-Length: 666 [17:07:31]Content-Type: application/json [17:07:31] [17:07:31]POST finish read [17:07:31]Found Content-Length = 666 [17:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47663", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:31]execute_script... [17:07: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 : (3)47663", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:07:31]POST & json_proto [17:07:31]process_json_proto [17:07:31]json parsed OK: [17:07:31]protocol is kg_v1.0 [17:07:31]action value=close_receipt [17:07:31]process_action close_receipt [17:07:31]cmd_close_receipt [17:07:31]MH_GetDate [17:07:31]Write to MH i2c: F0 00 00 C0 02 B1 [17:07:31]Write i2c OK [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: F0 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: F0 09 00 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: F0 09 00 C0 02 00 54 2D 19 67 4C DF 56 66 A2 [17:07:31]GetLastDocTimeStamp 1729702489 [17:07:31]current date 1729703252 [17:07:31]FM_GetShiftState [17:07:31]SAM_PROTO_GetShiftState [17:07:31]wFMCommunicate request_size=4 [17:07:31]MH_SAM_APDU [17:07:31]CAPDU: 80 13 01 00 [17:07:31]Write to MH i2c: E2 08 00 C1 02 80 13 01 00 00 00 00 00 40 [17:07:31]Write i2c OK [17:07:31]MH_I2C_Read... [17:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:31]Read from MH i2c: E2 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: E2 0E 00 [17:07:31]MH_I2C_Read... [17:07:31]Read from MH i2c: E2 0E 00 C1 02 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 2A [17:07:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:07:31]wFMCommunicate OK [17:07:31]SAM_PROTO_GetShiftState done [17:07:31]FM_GetShiftState done [17:07:31]opened in 1729642527 [17:07:31]opened+sec_in_day 1729728927 [17:07:31]quantity*price = 20000 [17:07:31]sum+1 = 20001 [17:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 23.10.2024 17:07 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63353 ФПД: 201433828777551 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170732&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63353&fm=201433828777551&tin=02508201610067®Number=0000000000091619&sum=20000 0 [17:07:32]StoreToDocumentArchive [17:07:32]shift 546 fd 63353 [17:07:32]save to /storage/0546/doc_00063353 [17:07:32]save last doc name /storage/0546/doc_00063353 to /storage/kkm_last_doc_name [17:07:32]save OK [17:07:32]Clear old archive folders... [17:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=283 [17:07:32]tlvbuf is 00B1AA40 [17:07:32]SAM_PROTO_ClearQueue [17:07:32]wFMCommunicate request_size=4 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 09 00 00 [17:07:32]Write to MH i2c: E2 08 00 CE 02 80 09 00 00 00 00 00 00 42 [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:07:32]RAPDU: 90 00 [17:07:32]wFMCommunicate OK [17:07:32]SAM_PROTO_ClearQueue done [17:07:32]KKMCreateOFDPacket [17:07:32]OFDProtocolAddRootSTLVToBuf [17:07:32]FM_MakeSignedData [17:07:32]FM_MakeSignedData [17:07:32]SAM_PROTO_SignData [17:07:32]wFMCommunicate request_size=4 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 0D 01 02 [17:07:32]Write to MH i2c: E2 08 00 CF 02 80 0D 01 02 00 00 00 00 4A [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:32]Read from MH i2c: E2 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 [17:07:32]MH_I2C_Read... [17:07:32]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:07:32]RAPDU: 90 00 [17:07:32]wFMCommunicate OK [17:07:32]wFMCommunicate request_size=255 [17:07:32]MH_SAM_APDU [17:07:32]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 52 00 00 00 F4 03 04 00 54 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 [17:07:32]Write to MH i2c: E2 02 01 D0 02 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 52 00 00 00 F4 03 04 00 54 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 00 00 30 [17:07:32]Write i2c OK [17:07:32]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 03 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [17:07:33]RAPDU: 90 00 [17:07:33]wFMCommunicate OK [17:07:33]wFMCommunicate request_size=42 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 79 F7 00 00 35 04 06 00 B7 33 F7 CF 5E 4F [17:07:33]Write to MH i2c: E2 2D 00 D1 02 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 79 F7 00 00 35 04 06 00 B7 33 F7 CF 5E 4F 00 00 F5 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 03 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [17:07:33]RAPDU: 90 00 [17:07:33]wFMCommunicate OK [17:07:33]wFMCommunicate request_size=4 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 0D 03 02 [17:07:33]Write to MH i2c: E2 08 00 D2 02 80 0D 03 02 00 00 00 00 4F [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0B 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 0B 00 D2 02 00 FE F7 11 7B BD 3A 83 BC 90 00 07 [17:07:33]RAPDU: FE F7 11 7B BD 3A 83 BC 90 00 [17:07:33]wFMCommunicate OK [17:07:33]SAM_PROTO_SignData done [17:07:33]FM_MakeSignedData done [17:07:33]CreateOFDProtocolMessage [17:07:33]wFMCommunicate request_size=4 [17:07:33]MH_SAM_APDU [17:07:33]CAPDU: 80 11 00 00 [17:07:33]Write to MH i2c: E2 08 00 D3 02 80 11 00 00 00 00 00 00 4F [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:33]Read from MH i2c: E2 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 17 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: E2 17 00 D3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A8 [17:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:07:33]wFMCommunicate OK [17:07:33]CreateOFDProtocolMessage done [17:07:33]OFDSenderStorePacket 63353 [17:07:33]StoreOFDPacket docnum=63353 [17:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 53 CD 27 01 1A 38 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 52 00 00 00 F4 03 04 00 54 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 79 F7 00 00 35 04 06 00 B7 33 F7 CF 5E 4F FE F7 11 7B BD 3A 83 BC [17:07:33]CheckFolder [17:07:33]dirname=/storage/ofd_packets [17:07:33]CheckFolder done [17:07:33]ProducePacketName [17:07:33]name=ofd_packets/00063353 [17:07:33]NVStorageSaveData ofd_packets/00063353 [17:07:33]File name is /storage/ofd_packets/00063353 [17:07:33]Write 333 bytes [17:07:33]NVStorageSaveData done [17:07:33]OFDSenderStorePacket done [17:07:33]KKMCreateOFDPacket done [17:07:33]NVStorageSaveData kkm_last_timestamp [17:07:33]File name is /storage/kkm_last_timestamp [17:07:33]Write 4 bytes [17:07:33]NVStorageSaveData done [17:07:33]ExternCall_PrintAddStr [17:07:33]wPrintStart [17:07:33]Write to MH i2c: 01 00 00 D4 02 D6 [17:07:33]Write i2c OK [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: 01 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: 01 07 00 [17:07:33]MH_I2C_Read... [17:07:33]Read from MH i2c: 01 07 00 D4 02 00 00 00 00 00 FF 0F EB [17:07:33]RasterBufferAndPrint [17:07:33]line Счет N : (3)47663 [17:07:33]line ИНН: 02508201610067 [17:07:33]line Контрольно-Кассовый Чек [17:07:33]line ПРОДАЖА [17:07:33]line Товар: 4700002085444 [17:07:33]line Водка Белое золото 0,24л [17:07:33]line 1.000 * 200.00 [17:07:33]line = 200.00 [17:07:33]line НДС 12% НСП 1% [17:07:33]line > о реализуемом товаре [17:07:33]line ИТОГО: 200.00 [17:07:33]line НСП 1% : 1.77 [17:07:33]line НДС 12% : 21.24 [17:07:33]line Наличными: 200.00 [17:07:33]line Безнал.: 0.00 [17:07:33]line Место: АЗС № 86 "Партнер Нефть" [17:07:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:07:33]line СНО: Общий режим [17:07:33]line Чек 82 23.10.2024 17:07 [17:07:33]line Смена: 546 ФФД: 1.0 [17:07:33]line ЗНМ: 0300000154 [17:07:33]line РНМ: 0000000000091619 [17:07:33]line Версия ККМ: 001 [17:07:33]line ФМ: 0000000000874676 [17:07:33]line ФД: 63353 [17:07:33]line ФПД: 201433828777551 [17:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170732&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63353&fm=201433828777551&tin=02508201610067®Number=0000000000091619&sum=20000 [17:07:33]line 0 [17:07:33]OFD Sender: Processing packet 63353 [packets to send 232, broken 231] [17:07:33]ProducePacketName [17:07:33]name=ofd_packets/00063353 [17:07:33]OFD Sender: To server: pG, [17:07:33]CommunicateWithHost lk.salyk.kg:30040 [17:07:33]ConnectInit lk.salyk.kg [17:07:33]written 0, free lines is 4095 [17:07:33]Connected sock=10 [17:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2F 01 00 00 53 CD 27 01 1A 38 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 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 52 00 00 00 F4 03 04 00 54 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 79 F7 00 00 35 04 06 00 B7 33 F7 CF 5E 4F FE F7 11 7B BD 3A 83 BC [17:07:34]Write to MH i2c: 01 00 00 FC 02 FE [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: 01 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: 01 07 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 13 0D 25 [17:07:34]RasterBufferAndPrint [17:07:34]line [17:07:34]line [17:07:34]line [17:07:34]line [17:07:34]line [17:07:34]written 0, free lines is 3354 [17:07:34]MH_Cut [17:07:34]Write to MH i2c: D1 01 00 03 03 01 D8 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: D1 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: D1 01 00 [17:07:34]MH_I2C_Read... [17:07:34]Read from MH i2c: D1 01 00 03 03 00 D7 [17:07:34]Write to MH i2c: 01 00 00 04 03 07 [17:07:34]Write i2c OK [17:07:34]MH_I2C_Read... [17:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 08 19 47 00 62 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 38 37 34 36 37 36 10 04 04 00 79 F7 00 00 F4 03 04 00 4B D7 18 67 B6 04 01 00 00 33 04 DD 17 01 3E E2 C6 [17:07:34]CommunicateWithHost err = 0 [17:07:34]CheckOFDResponse [17:07:34]1017 (14) - 77093643461234 [17:07:34]1041 (16) - 0000000000874676 [17:07:34]1040 (4) - 63353 [17:07:34]1012 (4) - 23.10.2024 11:00 [17:07:34]1206 (1) - 0 [17:07:34]OFD Sender: Remove packet 63353 [17:07:34]ProducePacketName [17:07:34]name=ofd_packets/00063353 [17:07:34]NVStorageDeleteData [17:07:34]OFD Sender: No OFD packet to send [17:07:34]*** Cut start [17:07:34]*** Partial cut [17:07:34]*** CUTSNS_PIN = 1 [17:07:34]*** CUTSNS_PIN = 0 [17:07:35]*** Brake cut motor [17:07:35]Read from MH i2c: 01 [17:07:35]MH_I2C_Read... [17:07:35]*** Stop cut motor [17:07:35]*** Cut end [17:07:35]Read from MH i2c: 01 07 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [17:07:35]process_action close_receipt done [17:07:35]requested_data is exist [17:07:35]produce_requested_data [17:07:35]requested_item fm.sn is exist - process it [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 11 00 00 [17:07:35]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DB [17:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:07:35]wFMCommunicate OK [17:07:35]requested_item fd.num is exist - process it [17:07:35]SAM_PROTO_GetFieldsCounters [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 13 00 00 [17:07:35]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 62 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 79 F7 00 00 0E 04 04 00 22 02 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 37 [17:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 79 F7 00 00 0E 04 04 00 22 02 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 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_GetFieldsCounters done [17:07:35]requested_item shift.num is exist - process it [17:07:35]requested_item shift.opened is exist - process it [17:07:35]req_shift_opened [17:07:35]FM_GetShiftState [17:07:35]SAM_PROTO_GetShiftState [17:07:35]wFMCommunicate request_size=4 [17:07:35]MH_SAM_APDU [17:07:35]CAPDU: 80 13 01 00 [17:07:35]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [17:07:35]Write i2c OK [17:07:35]MH_I2C_Read... [17:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:35]Read from MH i2c: E2 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0E 00 [17:07:35]MH_I2C_Read... [17:07:35]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 71 [17:07:35]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:07:35]wFMCommunicate OK [17:07:35]SAM_PROTO_GetShiftState done [17:07:35]FM_GetShiftState done [17:07:35]req_shift_opened done [17:07:35]requested_item shift.open_date is exist - process it [17:07:35]req_shift_open_date [17:07:35]req_shift_open_date done [17:07:35]produce_requested_data done [17:07:35]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63353,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:07:35]process_action_free close_receipt [17:07:35]json_value_free [17:07:35]json_value_free done [17:07:35]process_json_proto returns [17:07:35]Send response to host [17:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63353,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:07:35]free response buf [17:07:35]execute_script done [17:07:35]execute_script returns [17:07:35]free content buf [17:07:35]Sock 7.Close socket [17:07:35]Sock 7.Thread stoped [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:23]accept exits with 9 [17:09:23]New connection [17:09:23]New thread 3066633572 created [17:09:23]Thread 3066490212 joined [17:09:23]Waiting for new connection... [17:09:23] Sock 9.Parse request [17:09:23]Sock 9.Check first char [17:09:23]Sock 9.First char is OK [17:09:23]request: POST /json_proto HTTP/1.0 [17:09:23]Method: POST [17:09:23]URL: /json_proto [17:09:23]Method is POST - this is cgi request [17:09:23]url: /json_proto [17:09:23]query_string will be loaded in cgi processing [17:09:23]execute_cgi json_proto POST (null) [17:09:23]execute_cgi path=json_proto method=POST [17:09:23]POST find Content-Length [17:09:23]Host: 172.17.42.132:8080 [17:09:23]Content-Length: 1597 [17:09:23]Content-Type: application/json [17:09:23] [17:09:23]POST finish read [17:09:23]Found Content-Length = 1597 [17:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47664", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 94.16, "quantity" : 2.000, "sum" : 188.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 145.70, "quantity" : 1.000, "sum" : 145.70, "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", "payments": [ { "type": 1, "sum" : 570.91 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:23]execute_script... [17:09:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47664", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 94.16, "quantity" : 1.000, "sum" : 94.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 94.16, "quantity" : 2.000, "sum" : 188.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "price" : 142.73, "quantity" : 1.000, "sum" : 142.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "price" : 145.70, "quantity" : 1.000, "sum" : 145.70, "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", "payments": [ { "type": 1, "sum" : 570.91 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:23]POST & json_proto [17:09:23]process_json_proto [17:09:23]json parsed OK: [17:09:23]protocol is kg_v1.0 [17:09:23]action value=close_receipt [17:09:23]process_action close_receipt [17:09:23]cmd_close_receipt [17:09:23]MH_GetDate [17:09:23]Write to MH i2c: F0 00 00 08 03 FA [17:09:23]Write i2c OK [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 09 00 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: F0 09 00 08 03 00 C4 2D 19 67 4C DF 56 66 5B [17:09:23]GetLastDocTimeStamp 1729703252 [17:09:23]current date 1729703364 [17:09:23]FM_GetShiftState [17:09:23]SAM_PROTO_GetShiftState [17:09:23]wFMCommunicate request_size=4 [17:09:23]MH_SAM_APDU [17:09:23]CAPDU: 80 13 01 00 [17:09:23]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [17:09:23]Write i2c OK [17:09:23]MH_I2C_Read... [17:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:23]Read from MH i2c: E2 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 73 [17:09:23]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:09:23]wFMCommunicate OK [17:09:23]SAM_PROTO_GetShiftState done [17:09:23]FM_GetShiftState done [17:09:23]opened in 1729642527 [17:09:23]opened+sec_in_day 1729728927 [17:09:23]quantity*price = 9416 [17:09:23]sum+1 = 9417 [17:09:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 2.000 * 94.16 = 188.32 НДС 12% НСП 1% > о реализуемом товаре Товар: 48745024 Сигареты Winston Superslims Expand Purpl 1.000 * 142.73 = 142.73 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744683 Сигареты Winston XStyle Caster+ 1.000 * 145.70 = 145.70 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 570.91 НСП 1% : 5.05 НДС 12% : 60.63 Наличными: 0.00 Безнал.: 570.91 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 23.10.2024 17:09 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63354 ФПД: 100431059556669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170924&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63354&fm=100431059556669&tin=02508201610067®Number=0000000000091619&sum=57091 0 [17:09:24]StoreToDocumentArchive [17:09:24]shift 546 fd 63354 [17:09:24]save to /storage/0546/doc_00063354 [17:09:24]save last doc name /storage/0546/doc_00063354 to /storage/kkm_last_doc_name [17:09:24]save OK [17:09:24]Clear old archive folders... [17:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=648 [17:09:24]tlvbuf is 00B190B0 [17:09:24]SAM_PROTO_ClearQueue [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 09 00 00 [17:09:24]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:24]Read from MH i2c: E2 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 [17:09:24]MH_I2C_Read... [17:09:24]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [17:09:24]RAPDU: 90 00 [17:09:24]wFMCommunicate OK [17:09:24]SAM_PROTO_ClearQueue done [17:09:24]KKMCreateOFDPacket [17:09:24]OFDProtocolAddRootSTLVToBuf [17:09:24]FM_MakeSignedData [17:09:24]FM_MakeSignedData [17:09:24]SAM_PROTO_SignData [17:09:24]wFMCommunicate request_size=4 [17:09:24]MH_SAM_APDU [17:09:24]CAPDU: 80 0D 01 02 [17:09:24]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [17:09:24]Write i2c OK [17:09:24]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:25]OFD Sender: No OFD packet to send [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [17:09:25]RAPDU: 90 00 [17:09:25]wFMCommunicate OK [17:09:25]wFMCommunicate request_size=255 [17:09:25]MH_SAM_APDU [17:09:25]CAPDU: 80 0D 02 02 FA 03 00 88 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 90 49 00 00 00 [17:09:25]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 88 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 90 49 00 00 00 00 00 82 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [17:09:25]RAPDU: 90 00 [17:09:25]wFMCommunicate OK [17:09:25]wFMCommunicate request_size=255 [17:09:25]MH_SAM_APDU [17:09:25]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EA 38 00 00 00 00 13 04 06 00 EA 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 DF 00 00 00 00 EB 03 26 [17:09:25]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EA 38 00 00 00 00 13 04 06 00 EA 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 DF 00 00 00 00 EB 03 26 00 00 F0 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [17:09:25]RAPDU: 90 00 [17:09:25]wFMCommunicate OK [17:09:25]wFMCommunicate request_size=157 [17:09:25]MH_SAM_APDU [17:09:25]CAPDU: 80 0D 02 02 98 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 AF 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 DF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C4 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7A F7 00 00 35 04 06 00 5B 57 6D A1 19 3D [17:09:25]Write to MH i2c: E2 A0 00 1A 03 80 0D 02 02 98 00 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 AF 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 DF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C4 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7A F7 00 00 35 04 06 00 5B 57 6D A1 19 3D 00 00 08 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [17:09:25]RAPDU: 90 00 [17:09:25]wFMCommunicate OK [17:09:25]wFMCommunicate request_size=4 [17:09:25]MH_SAM_APDU [17:09:25]CAPDU: 80 0D 03 02 [17:09:25]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 0B 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 0B 00 1B 03 00 9C 42 0F C1 C3 22 AB 56 90 00 2E [17:09:25]RAPDU: 9C 42 0F C1 C3 22 AB 56 90 00 [17:09:25]wFMCommunicate OK [17:09:25]SAM_PROTO_SignData done [17:09:25]FM_MakeSignedData done [17:09:25]CreateOFDProtocolMessage [17:09:25]wFMCommunicate request_size=4 [17:09:25]MH_SAM_APDU [17:09:25]CAPDU: 80 11 00 00 [17:09:25]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:25]Read from MH i2c: E2 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 17 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F2 [17:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:09:25]wFMCommunicate OK [17:09:25]CreateOFDProtocolMessage done [17:09:25]OFDSenderStorePacket 63354 [17:09:25]StoreOFDPacket docnum=63354 [17:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9C 02 00 00 FF 3F 94 02 8E 09 5A 03 01 00 03 00 88 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 90 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EA 38 00 00 00 00 13 04 06 00 EA 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 DF 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 AF 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 DF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C4 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7A F7 00 00 35 04 06 00 5B 57 6D A1 19 3D 9C 42 0F C1 C3 22 AB 56 [17:09:25]CheckFolder [17:09:25]dirname=/storage/ofd_packets [17:09:25]CheckFolder done [17:09:25]ProducePacketName [17:09:25]name=ofd_packets/00063354 [17:09:25]NVStorageSaveData ofd_packets/00063354 [17:09:25]File name is /storage/ofd_packets/00063354 [17:09:25]Write 698 bytes [17:09:25]NVStorageSaveData done [17:09:25]OFDSenderStorePacket done [17:09:25]KKMCreateOFDPacket done [17:09:25]NVStorageSaveData kkm_last_timestamp [17:09:25]File name is /storage/kkm_last_timestamp [17:09:25]Write 4 bytes [17:09:25]NVStorageSaveData done [17:09:25]ExternCall_PrintAddStr [17:09:25]wPrintStart [17:09:25]Write to MH i2c: 01 00 00 1D 03 20 [17:09:25]Write i2c OK [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 07 00 [17:09:25]MH_I2C_Read... [17:09:25]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [17:09:25]RasterBufferAndPrint [17:09:25]line Счет N : (3)47664 [17:09:25]line ИНН: 02508201610067 [17:09:25]line Контрольно-Кассовый Чек [17:09:25]line ПРОДАЖА [17:09:25]line Товар: 4700000480302 [17:09:26]line Напиток энерг Nitro манго-клуб 0.45 ж/б [17:09:26]line 1.000 * 94.16 [17:09:26]line = 94.16 [17:09:26]line НДС 12% НСП 1% [17:09:26]line > о реализуемом товаре [17:09:26]line Товар: 4700000480050 [17:09:26]line Напиток Nitro Energy эн green ж/б 0,45л [17:09:26]line 2.000 * 94.16 [17:09:26]line = 188.32 [17:09:26]line НДС 12% НСП 1% [17:09:26]line > о реализуемом товаре [17:09:26]line Товар: 48745024 [17:09:26]line Сигареты Winston Superslims Expand Purpl [17:09:26]line 1.000 * 142.73 [17:09:26]line = 142.73 [17:09:26]line НДС 12% НСП 1% [17:09:26]line > о реализуемом товаре [17:09:26]line Товар: 48744683 [17:09:26]line Сигареты Winston XStyle Caster+ [17:09:26]line 1.000 * 145.70 [17:09:26]line = 145.70 [17:09:26]line НДС 12% НСП 1% [17:09:26]line > о реализуемом товаре [17:09:26]line ИТОГО: 570.91 [17:09:26]line НСП 1% : 5.05 [17:09:26]line НДС 12% : 60.63 [17:09:26]line Наличными: 0.00 [17:09:26]line Безнал.: 570.91 [17:09:26]line Место: АЗС № 86 "Партнер Нефть" [17:09:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:09:26]line СНО: Общий режим [17:09:26]line Чек 83 23.10.2024 17:09 [17:09:26]line Смена: 546 ФФД: 1.0 [17:09:26]line ЗНМ: 0300000154 [17:09:26]line РНМ: 0000000000091619 [17:09:26]line Версия ККМ: 001 [17:09:26]line Платежная система: Mbank [17:09:26]line ФМ: 0000000000874676 [17:09:26]line ФД: 63354 [17:09:26]line ФПД: 100431059556669 [17:09:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T170924&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63354&fm=100431059556669&tin=02508201610067®Number=0000000000091619&sum=57091 [17:09:26]OFD Sender: Processing packet 63354 [packets to send 232, broken 231] [17:09:26]ProducePacketName [17:09:26]name=ofd_packets/00063354 [17:09:26]OFD Sender: To server: pG, [17:09:26]CommunicateWithHost lk.salyk.kg:30040 [17:09:26]ConnectInit lk.salyk.kg [17:09:26]line 0 [17:09:26]written 0, free lines is 4095 [17:09:26]Connected sock=7 [17:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9C 02 00 00 FF 3F 94 02 8E 09 5A 03 01 00 03 00 88 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 C8 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 24 00 00 00 00 13 04 06 00 90 49 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C1 37 00 00 00 00 13 04 06 00 C1 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EA 38 00 00 00 00 13 04 06 00 EA 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 03 DF 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 AF 17 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 03 DF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C4 2D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7A F7 00 00 35 04 06 00 5B 57 6D A1 19 3D 9C 42 0F C1 C3 22 AB 56 [17:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 2B FC 47 00 CD 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 38 37 34 36 37 36 10 04 04 00 7A F7 00 00 F4 03 04 00 BC D7 18 67 B6 04 01 00 00 CE 9C 16 3B E4 2C 8A 3F [17:09:26]CommunicateWithHost err = 0 [17:09:26]CheckOFDResponse [17:09:26]1017 (14) - 77093643461234 [17:09:26]1041 (16) - 0000000000874676 [17:09:26]1040 (4) - 63354 [17:09:26]1012 (4) - 23.10.2024 11:02 [17:09:26]1206 (1) - 0 [17:09:26]OFD Sender: Remove packet 63354 [17:09:26]ProducePacketName [17:09:26]name=ofd_packets/00063354 [17:09:26]NVStorageDeleteData [17:09:26]Write to MH i2c: 01 00 00 5C 03 5F [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: 01 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: 01 07 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: 01 07 00 5C 03 00 00 00 00 00 F9 0B 6A [17:09:26]RasterBufferAndPrint [17:09:26]line [17:09:26]line [17:09:26]line [17:09:26]line [17:09:26]line [17:09:26]written 0, free lines is 3073 [17:09:26]MH_Cut [17:09:26]Write to MH i2c: D1 01 00 63 03 01 38 [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: D1 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: D1 01 00 [17:09:26]MH_I2C_Read... [17:09:26]Read from MH i2c: D1 01 00 63 03 00 37 [17:09:26]Write to MH i2c: 01 00 00 64 03 67 [17:09:26]Write i2c OK [17:09:26]MH_I2C_Read... [17:09:27]OFD Sender: No OFD packet to send [17:09:27]*** Cut start [17:09:27]*** Partial cut [17:09:27]*** CUTSNS_PIN = 1 [17:09:27]*** CUTSNS_PIN = 0 [17:09:28]*** Brake cut motor [17:09:28]Read from MH i2c: 01 [17:09:28]MH_I2C_Read... [17:09:28]*** Stop cut motor [17:09:28]*** Cut end [17:09:28]Read from MH i2c: 01 07 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [17:09:28]process_action close_receipt done [17:09:28]requested_data is exist [17:09:28]produce_requested_data [17:09:28]requested_item fm.sn is exist - process it [17:09:28]wFMCommunicate request_size=4 [17:09:28]MH_SAM_APDU [17:09:28]CAPDU: 80 11 00 00 [17:09:28]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:28]Read from MH i2c: E2 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 17 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3B [17:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:09:28]wFMCommunicate OK [17:09:28]requested_item fd.num is exist - process it [17:09:28]SAM_PROTO_GetFieldsCounters [17:09:28]wFMCommunicate request_size=4 [17:09:28]MH_SAM_APDU [17:09:28]CAPDU: 80 13 00 00 [17:09:28]Write to MH i2c: E2 08 00 66 03 80 13 00 00 00 00 00 00 E5 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:28]Read from MH i2c: E2 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 62 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 62 00 66 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7A F7 00 00 0E 04 04 00 22 02 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 9B [17:09:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7A F7 00 00 0E 04 04 00 22 02 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 [17:09:28]wFMCommunicate OK [17:09:28]SAM_PROTO_GetFieldsCounters done [17:09:28]requested_item shift.num is exist - process it [17:09:28]requested_item shift.opened is exist - process it [17:09:28]req_shift_opened [17:09:28]FM_GetShiftState [17:09:28]SAM_PROTO_GetShiftState [17:09:28]wFMCommunicate request_size=4 [17:09:28]MH_SAM_APDU [17:09:28]CAPDU: 80 13 01 00 [17:09:28]Write to MH i2c: E2 08 00 67 03 80 13 01 00 00 00 00 00 E7 [17:09:28]Write i2c OK [17:09:28]MH_I2C_Read... [17:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:28]Read from MH i2c: E2 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 [17:09:28]MH_I2C_Read... [17:09:28]Read from MH i2c: E2 0E 00 67 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D1 [17:09:28]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:09:28]wFMCommunicate OK [17:09:28]SAM_PROTO_GetShiftState done [17:09:28]FM_GetShiftState done [17:09:28]req_shift_opened done [17:09:28]requested_item shift.open_date is exist - process it [17:09:28]req_shift_open_date [17:09:28]req_shift_open_date done [17:09:28]produce_requested_data done [17:09:28]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63354,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:09:28]process_action_free close_receipt [17:09:28]json_value_free [17:09:28]json_value_free done [17:09:28]process_json_proto returns [17:09:28]Send response to host [17:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63354,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:09:28]free response buf [17:09:28]execute_script done [17:09:28]execute_script returns [17:09:28]free content buf [17:09:28]Sock 9.Close socket [17:09:28]Sock 9.Thread stoped [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:42]OFD Sender: No OFD packet to send [17:10:47]OFD Sender: No OFD packet to send [17:10:52]OFD Sender: No OFD packet to send [17:10:57]OFD Sender: No OFD packet to send [17:11:02]OFD Sender: No OFD packet to send [17:11:07]OFD Sender: No OFD packet to send [17:11:12]OFD Sender: No OFD packet to send [17:11:17]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: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:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:53]accept exits with 10 [17:38:53]New connection [17:38:53]New thread 3066490212 created [17:38:53]Thread 3066633572 joined [17:38:53]Waiting for new connection... [17:38:53] Sock 10.Parse request [17:38:53]Sock 10.Check first char [17:38:53]Sock 10.First char is OK [17:38:53]request: POST /json_proto HTTP/1.0 [17:38:53]Method: POST [17:38:53]URL: /json_proto [17:38:53]Method is POST - this is cgi request [17:38:53]url: /json_proto [17:38:53]query_string will be loaded in cgi processing [17:38:53]execute_cgi json_proto POST (null) [17:38:53]execute_cgi path=json_proto method=POST [17:38:53]POST find Content-Length [17:38:53]Host: 172.17.42.132:8080 [17:38:53]Content-Length: 645 [17:38:53]Content-Type: application/json [17:38:53] [17:38:53]POST finish read [17:38:53]Found Content-Length = 645 [17:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47665", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:53]execute_script... [17:38:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47665", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 3.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 390.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:53]POST & json_proto [17:38:53]process_json_proto [17:38:53]json parsed OK: [17:38:53]protocol is kg_v1.0 [17:38:53]action value=close_receipt [17:38:53]process_action close_receipt [17:38:53]cmd_close_receipt [17:38:53]MH_GetDate [17:38:53]Write to MH i2c: F0 00 00 68 03 5A [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 09 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: F0 09 00 68 03 00 AE 34 19 67 4C DF 56 66 AC [17:38:53]GetLastDocTimeStamp 1729703364 [17:38:53]current date 1729705134 [17:38:53]FM_GetShiftState [17:38:53]SAM_PROTO_GetShiftState [17:38:53]wFMCommunicate request_size=4 [17:38:53]MH_SAM_APDU [17:38:53]CAPDU: 80 13 01 00 [17:38:53]Write to MH i2c: E2 08 00 69 03 80 13 01 00 00 00 00 00 E9 [17:38:53]Write i2c OK [17:38:53]MH_I2C_Read... [17:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:53]Read from MH i2c: E2 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 [17:38:53]MH_I2C_Read... [17:38:53]Read from MH i2c: E2 0E 00 69 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D3 [17:38:53]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:38:53]wFMCommunicate OK [17:38:53]SAM_PROTO_GetShiftState done [17:38:53]FM_GetShiftState done [17:38:53]opened in 1729642527 [17:38:53]opened+sec_in_day 1729728927 [17:38:53]quantity*price = 39000 [17:38:53]sum+1 = 39001 [17:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 390.00 НСП 1% : 3.45 НДС 12% : 41.42 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 84 23.10.2024 17:38 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63355 ФПД: 127149977718362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173854&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63355&fm=127149977718362&tin=02508201610067®Number=0000000000091619&sum=39000 0 [17:38:54]StoreToDocumentArchive [17:38:54]shift 546 fd 63355 [17:38:54]save to /storage/0546/doc_00063355 [17:38:54]save last doc name /storage/0546/doc_00063355 to /storage/kkm_last_doc_name [17:38:54]save OK [17:38:54]Clear old archive folders... [17:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=282 [17:38:54]tlvbuf is 00AFBE90 [17:38:54]SAM_PROTO_ClearQueue [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 09 00 00 [17:38:54]Write to MH i2c: E2 08 00 76 03 80 09 00 00 00 00 00 00 EB [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [17:38:54]RAPDU: 90 00 [17:38:54]wFMCommunicate OK [17:38:54]SAM_PROTO_ClearQueue done [17:38:54]KKMCreateOFDPacket [17:38:54]OFDProtocolAddRootSTLVToBuf [17:38:54]FM_MakeSignedData [17:38:54]FM_MakeSignedData [17:38:54]SAM_PROTO_SignData [17:38:54]wFMCommunicate request_size=4 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 0D 01 02 [17:38:54]Write to MH i2c: E2 08 00 77 03 80 0D 01 02 00 00 00 00 F3 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:54]Read from MH i2c: E2 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 [17:38:54]MH_I2C_Read... [17:38:54]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [17:38:54]RAPDU: 90 00 [17:38:54]wFMCommunicate OK [17:38:54]wFMCommunicate request_size=255 [17:38:54]MH_SAM_APDU [17:38:54]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 34 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 [17:38:54]Write to MH i2c: E2 02 01 78 03 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 34 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 00 00 53 [17:38:54]Write i2c OK [17:38:54]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=41 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F7 00 00 35 04 06 00 73 A4 69 41 4E 5A [17:38:55]Write to MH i2c: E2 2C 00 79 03 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F7 00 00 35 04 06 00 73 A4 69 41 4E 5A 00 00 A6 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [17:38:55]RAPDU: 90 00 [17:38:55]wFMCommunicate OK [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 0D 03 02 [17:38:55]Write to MH i2c: E2 08 00 7A 03 80 0D 03 02 00 00 00 00 F8 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]OFD Sender: No OFD packet to send [17:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0B 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 0B 00 7A 03 00 D0 71 C8 3C 80 5F CC 33 90 00 1C [17:38:55]RAPDU: D0 71 C8 3C 80 5F CC 33 90 00 [17:38:55]wFMCommunicate OK [17:38:55]SAM_PROTO_SignData done [17:38:55]FM_MakeSignedData done [17:38:55]CreateOFDProtocolMessage [17:38:55]wFMCommunicate request_size=4 [17:38:55]MH_SAM_APDU [17:38:55]CAPDU: 80 11 00 00 [17:38:55]Write to MH i2c: E2 08 00 7B 03 80 11 00 00 00 00 00 00 F8 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:55]Read from MH i2c: E2 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: E2 17 00 7B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 51 [17:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:38:55]wFMCommunicate OK [17:38:55]CreateOFDProtocolMessage done [17:38:55]OFDSenderStorePacket 63355 [17:38:55]StoreOFDPacket docnum=63355 [17:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 5E 4F 26 01 EC 05 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 34 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F7 00 00 35 04 06 00 73 A4 69 41 4E 5A D0 71 C8 3C 80 5F CC 33 [17:38:55]CheckFolder [17:38:55]dirname=/storage/ofd_packets [17:38:55]CheckFolder done [17:38:55]ProducePacketName [17:38:55]name=ofd_packets/00063355 [17:38:55]NVStorageSaveData ofd_packets/00063355 [17:38:55]File name is /storage/ofd_packets/00063355 [17:38:55]Write 332 bytes [17:38:55]NVStorageSaveData done [17:38:55]OFDSenderStorePacket done [17:38:55]KKMCreateOFDPacket done [17:38:55]NVStorageSaveData kkm_last_timestamp [17:38:55]File name is /storage/kkm_last_timestamp [17:38:55]Write 4 bytes [17:38:55]NVStorageSaveData done [17:38:55]ExternCall_PrintAddStr [17:38:55]wPrintStart [17:38:55]Write to MH i2c: 01 00 00 7C 03 7F [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [17:38:55]RasterBufferAndPrint [17:38:55]line Счет N : (3)47665 [17:38:55]line ИНН: 02508201610067 [17:38:55]line Контрольно-Кассовый Чек [17:38:55]line ПРОДАЖА [17:38:55]line Товар: 2000036220012 [17:38:55]line Кофе Капучино XL(GABB TRADE) [17:38:55]line 3.000 * 130.00 [17:38:55]line = 390.00 [17:38:55]line НДС 12% НСП 1% [17:38:55]line > о реализуемом товаре [17:38:55]line ИТОГО: 390.00 [17:38:55]line НСП 1% : 3.45 [17:38:55]line НДС 12% : 41.42 [17:38:55]line Наличными: 390.00 [17:38:55]line Безнал.: 0.00 [17:38:55]line Место: АЗС № 86 "Партнер Нефть" [17:38:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:38:55]line СНО: Общий режим [17:38:55]line Чек 84 23.10.2024 17:38 [17:38:55]line Смена: 546 ФФД: 1.0 [17:38:55]line ЗНМ: 0300000154 [17:38:55]line РНМ: 0000000000091619 [17:38:55]line Версия ККМ: 001 [17:38:55]line ФМ: 0000000000874676 [17:38:55]line ФД: 63355 [17:38:55]line ФПД: 127149977718362 [17:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T173854&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63355&fm=127149977718362&tin=02508201610067®Number=0000000000091619&sum=39000 [17:38:55]line 0 [17:38:55]OFD Sender: Processing packet 63355 [packets to send 232, broken 231] [17:38:55]ProducePacketName [17:38:55]name=ofd_packets/00063355 [17:38:55]OFD Sender: To server: pG, [17:38:55]CommunicateWithHost lk.salyk.kg:30040 [17:38:55]ConnectInit lk.salyk.kg [17:38:55]written 0, free lines is 4095 [17:38:55]Connected sock=9 [17:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 2E 01 00 00 5E 4F 26 01 EC 05 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AE 34 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F7 00 00 35 04 06 00 73 A4 69 41 4E 5A D0 71 C8 3C 80 5F CC 33 [17:38:55]Write to MH i2c: 01 00 00 A5 03 A8 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0C BA [17:38:55]RasterBufferAndPrint [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]line [17:38:55]written 0, free lines is 3333 [17:38:55]MH_Cut [17:38:55]Write to MH i2c: D1 01 00 AC 03 01 81 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 01 00 [17:38:55]MH_I2C_Read... [17:38:55]Read from MH i2c: D1 01 00 AC 03 00 80 [17:38:55]Write to MH i2c: 01 00 00 AD 03 B0 [17:38:55]Write i2c OK [17:38:55]MH_I2C_Read... [17:38:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 22 EB 47 00 4A CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7B F7 00 00 F4 03 04 00 A5 DE 18 67 B6 04 01 00 00 D1 01 F7 41 D7 CD D0 B8 [17:38:56]CommunicateWithHost err = 0 [17:38:56]CheckOFDResponse [17:38:56]1017 (14) - 77093643461234 [17:38:56]1041 (16) - 0000000000874676 [17:38:56]1040 (4) - 63355 [17:38:56]1012 (4) - 23.10.2024 11:31 [17:38:56]1206 (1) - 0 [17:38:56]OFD Sender: Remove packet 63355 [17:38:56]ProducePacketName [17:38:56]name=ofd_packets/00063355 [17:38:56]NVStorageDeleteData [17:38:56]OFD Sender: No OFD packet to send [17:38:56]*** Cut start [17:38:56]*** Partial cut [17:38:56]*** CUTSNS_PIN = 1 [17:38:56]*** CUTSNS_PIN = 0 [17:38:56]*** Brake cut motor [17:38:57]Read from MH i2c: 01 [17:38:57]MH_I2C_Read... [17:38:57]*** Stop cut motor [17:38:57]*** Cut end [17:38:57]Read from MH i2c: 01 07 00 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [17:38:57]process_action close_receipt done [17:38:57]requested_data is exist [17:38:57]produce_requested_data [17:38:57]requested_item fm.sn is exist - process it [17:38:57]wFMCommunicate request_size=4 [17:38:57]MH_SAM_APDU [17:38:57]CAPDU: 80 11 00 00 [17:38:57]Write to MH i2c: E2 08 00 AE 03 80 11 00 00 00 00 00 00 2B [17:38:57]Write i2c OK [17:38:57]MH_I2C_Read... [17:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:57]Read from MH i2c: E2 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 17 00 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 17 00 AE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 84 [17:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:38:57]wFMCommunicate OK [17:38:57]requested_item fd.num is exist - process it [17:38:57]SAM_PROTO_GetFieldsCounters [17:38:57]wFMCommunicate request_size=4 [17:38:57]MH_SAM_APDU [17:38:57]CAPDU: 80 13 00 00 [17:38:57]Write to MH i2c: E2 08 00 AF 03 80 13 00 00 00 00 00 00 2E [17:38:57]Write i2c OK [17:38:57]MH_I2C_Read... [17:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:57]Read from MH i2c: E2 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 62 00 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 62 00 AF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7B F7 00 00 0E 04 04 00 22 02 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 E8 [17:38:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7B F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:57]wFMCommunicate OK [17:38:57]SAM_PROTO_GetFieldsCounters done [17:38:57]requested_item shift.num is exist - process it [17:38:57]requested_item shift.opened is exist - process it [17:38:57]req_shift_opened [17:38:57]FM_GetShiftState [17:38:57]SAM_PROTO_GetShiftState [17:38:57]wFMCommunicate request_size=4 [17:38:57]MH_SAM_APDU [17:38:57]CAPDU: 80 13 01 00 [17:38:57]Write to MH i2c: E2 08 00 B0 03 80 13 01 00 00 00 00 00 30 [17:38:57]Write i2c OK [17:38:57]MH_I2C_Read... [17:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:57]Read from MH i2c: E2 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 0E 00 [17:38:57]MH_I2C_Read... [17:38:57]Read from MH i2c: E2 0E 00 B0 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 1A [17:38:57]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:38:57]wFMCommunicate OK [17:38:57]SAM_PROTO_GetShiftState done [17:38:57]FM_GetShiftState done [17:38:57]req_shift_opened done [17:38:57]requested_item shift.open_date is exist - process it [17:38:57]req_shift_open_date [17:38:57]req_shift_open_date done [17:38:57]produce_requested_data done [17:38:57]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63355,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:38:57]process_action_free close_receipt [17:38:57]json_value_free [17:38:57]json_value_free done [17:38:57]process_json_proto returns [17:38:57]Send response to host [17:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63355,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:38:57]free response buf [17:38:57]execute_script done [17:38:57]execute_script returns [17:38:57]free content buf [17:38:57]Sock 10.Close socket [17:38:57]Sock 10.Thread stoped [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:02]OFD Sender: No OFD packet to send [17:43:07]OFD Sender: No OFD packet to send [17:43:12]OFD Sender: No OFD packet to send [17:43:17]OFD Sender: No OFD packet to send [17:43:22]OFD Sender: No OFD packet to send [17:43:27]OFD Sender: No OFD packet to send [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:55]accept exits with 7 [17:43:55]New connection [17:43:55]New thread 3066633572 created [17:43:55]Thread 3066490212 joined [17:43:55]Waiting for new connection... [17:43:55] Sock 7.Parse request [17:43:55]Sock 7.Check first char [17:43:55]Sock 7.First char is OK [17:43:55]request: POST /json_proto HTTP/1.0 [17:43:55]Method: POST [17:43:55]URL: /json_proto [17:43:55]Method is POST - this is cgi request [17:43:55]url: /json_proto [17:43:55]query_string will be loaded in cgi processing [17:43:55]execute_cgi json_proto POST (null) [17:43:55]execute_cgi path=json_proto method=POST [17:43:55]POST find Content-Length [17:43:55]Host: 172.17.42.132:8080 [17:43:55]Content-Length: 1178 [17:43:55]Content-Type: application/json [17:43:55] [17:43:55]POST finish read [17:43:55]Found Content-Length = 1178 [17:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47666", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]execute_script... [17:43:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47666", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 309.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:55]POST & json_proto [17:43:55]process_json_proto [17:43:55]json parsed OK: [17:43:55]protocol is kg_v1.0 [17:43:55]action value=close_receipt [17:43:55]process_action close_receipt [17:43:55]cmd_close_receipt [17:43:55]MH_GetDate [17:43:55]Write to MH i2c: F0 00 00 B1 03 A3 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: F0 09 00 B1 03 00 DD 35 19 67 4C DF 56 66 25 [17:43:55]GetLastDocTimeStamp 1729705134 [17:43:55]current date 1729705437 [17:43:55]FM_GetShiftState [17:43:55]SAM_PROTO_GetShiftState [17:43:55]wFMCommunicate request_size=4 [17:43:55]MH_SAM_APDU [17:43:55]CAPDU: 80 13 01 00 [17:43:55]Write to MH i2c: E2 08 00 B2 03 80 13 01 00 00 00 00 00 32 [17:43:55]Write i2c OK [17:43:55]MH_I2C_Read... [17:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:55]Read from MH i2c: E2 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 [17:43:55]MH_I2C_Read... [17:43:55]Read from MH i2c: E2 0E 00 B2 03 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 1C [17:43:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:43:55]wFMCommunicate OK [17:43:55]SAM_PROTO_GetShiftState done [17:43:55]FM_GetShiftState done [17:43:55]opened in 1729642527 [17:43:55]opened+sec_in_day 1729728927 [17:43:55]quantity*price = 13000 [17:43:55]sum+1 = 13001 [17:43:55]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214621 Р/ж mentos тутти-фрутти ролл 16г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 309.00 НСП 1% : 2.73 НДС 12% : 32.80 Наличными: 309.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 85 23.10.2024 17:43 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63356 ФПД: 187178124596938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174357&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63356&fm=187178124596938&tin=02508201610067®Number=0000000000091619&sum=30900 0 [17:43:56]StoreToDocumentArchive [17:43:56]shift 546 fd 63356 [17:43:56]save to /storage/0546/doc_00063356 [17:43:56]save last doc name /storage/0546/doc_00063356 to /storage/kkm_last_doc_name [17:43:56]save OK [17:43:56]Clear old archive folders... [17:43:57]ProcessDocumentItem done err = 0, tmpTLVsize=505 [17:43:57]tlvbuf is 00B02940 [17:43:57]SAM_PROTO_ClearQueue [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 09 00 00 [17:43:57]Write to MH i2c: E2 08 00 BF 03 80 09 00 00 00 00 00 00 34 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]SAM_PROTO_ClearQueue done [17:43:57]KKMCreateOFDPacket [17:43:57]OFDProtocolAddRootSTLVToBuf [17:43:57]FM_MakeSignedData [17:43:57]FM_MakeSignedData [17:43:57]SAM_PROTO_SignData [17:43:57]wFMCommunicate request_size=4 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 01 02 [17:43:57]Write to MH i2c: E2 08 00 C0 03 80 0D 01 02 00 00 00 00 3C [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=255 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 02 02 FA 03 00 F9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F [17:43:57]Write to MH i2c: E2 02 01 C1 03 80 0D 02 02 FA 00 03 00 F9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F 00 00 CF [17:43:57]OFD Sender: No OFD packet to send [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=255 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 02 02 FA D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DD 35 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7C F7 00 00 35 [17:43:57]Write to MH i2c: E2 02 01 C2 03 80 0D 02 02 FA 00 D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DD 35 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7C F7 00 00 35 00 00 54 [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:57]Read from MH i2c: E2 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 [17:43:57]MH_I2C_Read... [17:43:57]Read from MH i2c: E2 03 00 C2 03 00 90 00 39 [17:43:57]RAPDU: 90 00 [17:43:57]wFMCommunicate OK [17:43:57]wFMCommunicate request_size=14 [17:43:57]MH_SAM_APDU [17:43:57]CAPDU: 80 0D 02 02 09 04 06 00 AA 3C CD A0 56 CA [17:43:57]Write to MH i2c: E2 11 00 C3 03 80 0D 02 02 09 00 04 06 00 AA 3C CD A0 56 CA 00 00 CF [17:43:57]Write i2c OK [17:43:57]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 03 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 03 00 C3 03 00 90 00 3A [17:43:58]RAPDU: 90 00 [17:43:58]wFMCommunicate OK [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 0D 03 02 [17:43:58]Write to MH i2c: E2 08 00 C4 03 80 0D 03 02 00 00 00 00 42 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 0B 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 0B 00 C4 03 00 EE 7A B3 12 2C 8C 33 A0 90 00 FB [17:43:58]RAPDU: EE 7A B3 12 2C 8C 33 A0 90 00 [17:43:58]wFMCommunicate OK [17:43:58]SAM_PROTO_SignData done [17:43:58]FM_MakeSignedData done [17:43:58]CreateOFDProtocolMessage [17:43:58]wFMCommunicate request_size=4 [17:43:58]MH_SAM_APDU [17:43:58]CAPDU: 80 11 00 00 [17:43:58]Write to MH i2c: E2 08 00 C5 03 80 11 00 00 00 00 00 00 42 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:58]Read from MH i2c: E2 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: E2 17 00 C5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9B [17:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:43:58]wFMCommunicate OK [17:43:58]CreateOFDProtocolMessage done [17:43:58]OFDSenderStorePacket 63356 [17:43:58]StoreOFDPacket docnum=63356 [17:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 02 00 00 60 C2 05 02 C1 1E 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DD 35 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7C F7 00 00 35 04 06 00 AA 3C CD A0 56 CA EE 7A B3 12 2C 8C 33 A0 [17:43:58]CheckFolder [17:43:58]dirname=/storage/ofd_packets [17:43:58]CheckFolder done [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00063356 [17:43:58]NVStorageSaveData ofd_packets/00063356 [17:43:58]File name is /storage/ofd_packets/00063356 [17:43:58]Write 555 bytes [17:43:58]NVStorageSaveData done [17:43:58]OFDSenderStorePacket done [17:43:58]KKMCreateOFDPacket done [17:43:58]NVStorageSaveData kkm_last_timestamp [17:43:58]File name is /storage/kkm_last_timestamp [17:43:58]Write 4 bytes [17:43:58]NVStorageSaveData done [17:43:58]ExternCall_PrintAddStr [17:43:58]wPrintStart [17:43:58]Write to MH i2c: 01 00 00 C6 03 C9 [17:43:58]Write i2c OK [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 [17:43:58]MH_I2C_Read... [17:43:58]Read from MH i2c: 01 07 00 C6 03 00 00 00 00 00 FF 0F DE [17:43:58]RasterBufferAndPrint [17:43:58]line Счет N : (3)47666 [17:43:58]line ИНН: 02508201610067 [17:43:58]line Контрольно-Кассовый Чек [17:43:58]line ПРОДАЖА [17:43:58]line Товар: 2000036220012 [17:43:58]line Кофе Капучино XL(GABB TRADE) [17:43:58]line 1.000 * 130.00 [17:43:58]line = 130.00 [17:43:58]line НДС 12% НСП 1% [17:43:58]line > о реализуемом товаре [17:43:58]line Товар: 2000036230011 [17:43:58]line Кофе Латте XL(GABB TRADE) [17:43:58]line 1.000 * 130.00 [17:43:58]line = 130.00 [17:43:58]line НДС 12% НСП 1% [17:43:58]line > о реализуемом товаре [17:43:58]line Товар: 46214621 [17:43:58]line Р/ж mentos тутти-фрутти ролл 16г [17:43:58]line 1.000 * 49.00 [17:43:58]line = 49.00 [17:43:58]line НДС 12% НСП 1% [17:43:58]line > о реализуемом товаре [17:43:58]line ИТОГО: 309.00 [17:43:58]line НСП 1% : 2.73 [17:43:58]line НДС 12% : 32.80 [17:43:58]line Наличными: 309.00 [17:43:58]line Безнал.: 0.00 [17:43:58]line Место: АЗС № 86 "Партнер Нефть" [17:43:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:43:58]line СНО: Общий режим [17:43:58]line Чек 85 23.10.2024 17:43 [17:43:58]line Смена: 546 ФФД: 1.0 [17:43:58]line ЗНМ: 0300000154 [17:43:58]line РНМ: 0000000000091619 [17:43:58]line Версия ККМ: 001 [17:43:58]line ФМ: 0000000000874676 [17:43:58]line ФД: 63356 [17:43:58]line ФПД: 187178124596938 [17:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174357&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63356&fm=187178124596938&tin=02508201610067®Number=0000000000091619&sum=30900 [17:43:58]OFD Sender: Processing packet 63356 [packets to send 232, broken 231] [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00063356 [17:43:58]OFD Sender: To server: pG, [17:43:58]CommunicateWithHost lk.salyk.kg:30040 [17:43:58]ConnectInit lk.salyk.kg [17:43:58]Connected sock=10 [17:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 02 00 00 60 C2 05 02 C1 1E 5A 03 01 00 03 00 F9 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 78 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 0C 00 00 00 00 07 04 06 00 B4 78 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 DD 35 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7C F7 00 00 35 04 06 00 AA 3C CD A0 56 CA EE 7A B3 12 2C 8C 33 A0 [17:43:58]line 0 [17:43:58]written 0, free lines is 4095 [17:43:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6B E9 47 00 84 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7C F7 00 00 F4 03 04 00 D4 DF 18 67 B6 04 01 00 00 33 3D 60 1E EB E8 C3 0B [17:43:58]CommunicateWithHost err = 0 [17:43:58]CheckOFDResponse [17:43:58]1017 (14) - 77093643461234 [17:43:58]1041 (16) - 0000000000874676 [17:43:58]1040 (4) - 63356 [17:43:58]1012 (4) - 23.10.2024 11:36 [17:43:58]1206 (1) - 0 [17:43:58]OFD Sender: Remove packet 63356 [17:43:58]ProducePacketName [17:43:58]name=ofd_packets/00063356 [17:43:58]NVStorageDeleteData [17:43:59]Write to MH i2c: 01 00 00 FC 03 FF [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: 01 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: 01 07 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 5C 0C 6E [17:43:59]RasterBufferAndPrint [17:43:59]line [17:43:59]line [17:43:59]line [17:43:59]line [17:43:59]line [17:43:59]written 0, free lines is 3170 [17:43:59]MH_Cut [17:43:59]Write to MH i2c: D1 01 00 03 04 01 D9 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: D1 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: D1 01 00 [17:43:59]MH_I2C_Read... [17:43:59]Read from MH i2c: D1 01 00 03 04 00 D8 [17:43:59]Write to MH i2c: 01 00 00 04 04 08 [17:43:59]Write i2c OK [17:43:59]MH_I2C_Read... [17:43:59]OFD Sender: No OFD packet to send [17:43:59]*** Cut start [17:43:59]*** Partial cut [17:43:59]*** CUTSNS_PIN = 1 [17:43:59]*** CUTSNS_PIN = 0 [17:44:00]*** Brake cut motor [17:44:00]Read from MH i2c: 01 [17:44:00]MH_I2C_Read... [17:44:00]*** Stop cut motor [17:44:00]*** Cut end [17:44:00]Read from MH i2c: 01 07 00 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: 01 07 00 04 04 00 00 00 00 00 FF 0F 1D [17:44:00]process_action close_receipt done [17:44:00]requested_data is exist [17:44:00]produce_requested_data [17:44:00]requested_item fm.sn is exist - process it [17:44:00]wFMCommunicate request_size=4 [17:44:00]MH_SAM_APDU [17:44:00]CAPDU: 80 11 00 00 [17:44:00]Write to MH i2c: E2 08 00 05 04 80 11 00 00 00 00 00 00 83 [17:44:00]Write i2c OK [17:44:00]MH_I2C_Read... [17:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:00]Read from MH i2c: E2 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 17 00 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 17 00 05 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 DC [17:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:44:00]wFMCommunicate OK [17:44:00]requested_item fd.num is exist - process it [17:44:00]SAM_PROTO_GetFieldsCounters [17:44:00]wFMCommunicate request_size=4 [17:44:00]MH_SAM_APDU [17:44:00]CAPDU: 80 13 00 00 [17:44:00]Write to MH i2c: E2 08 00 06 04 80 13 00 00 00 00 00 00 86 [17:44:00]Write i2c OK [17:44:00]MH_I2C_Read... [17:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:00]Read from MH i2c: E2 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 62 00 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 62 00 06 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7C F7 00 00 0E 04 04 00 22 02 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 44 [17:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7C F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:00]wFMCommunicate OK [17:44:00]SAM_PROTO_GetFieldsCounters done [17:44:00]requested_item shift.num is exist - process it [17:44:00]requested_item shift.opened is exist - process it [17:44:00]req_shift_opened [17:44:00]FM_GetShiftState [17:44:00]SAM_PROTO_GetShiftState [17:44:00]wFMCommunicate request_size=4 [17:44:00]MH_SAM_APDU [17:44:00]CAPDU: 80 13 01 00 [17:44:00]Write to MH i2c: E2 08 00 07 04 80 13 01 00 00 00 00 00 88 [17:44:00]Write i2c OK [17:44:00]MH_I2C_Read... [17:44:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:00]Read from MH i2c: E2 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 0E 00 [17:44:00]MH_I2C_Read... [17:44:00]Read from MH i2c: E2 0E 00 07 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 72 [17:44:00]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:44:00]wFMCommunicate OK [17:44:00]SAM_PROTO_GetShiftState done [17:44:00]FM_GetShiftState done [17:44:00]req_shift_opened done [17:44:00]requested_item shift.open_date is exist - process it [17:44:00]req_shift_open_date [17:44:00]req_shift_open_date done [17:44:00]produce_requested_data done [17:44:00]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63356,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:44:00]process_action_free close_receipt [17:44:00]json_value_free [17:44:00]json_value_free done [17:44:00]process_json_proto returns [17:44:00]Send response to host [17:44:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63356,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:44:00]free response buf [17:44:00]execute_script done [17:44:00]execute_script returns [17:44:00]free content buf [17:44:00]Sock 7.Close socket [17:44:00]Sock 7.Thread stoped [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:40]accept exits with 9 [17:48:40]New connection [17:48:40]New thread 3066490212 created [17:48:40]Thread 3066633572 joined [17:48:40]Waiting for new connection... [17:48:40] Sock 9.Parse request [17:48:40]Sock 9.Check first char [17:48:40]Sock 9.First char is OK [17:48:40]request: POST /json_proto HTTP/1.0 [17:48:40]Method: POST [17:48:40]URL: /json_proto [17:48:40]Method is POST - this is cgi request [17:48:40]url: /json_proto [17:48:40]query_string will be loaded in cgi processing [17:48:40]execute_cgi json_proto POST (null) [17:48:40]execute_cgi path=json_proto method=POST [17:48:40]POST find Content-Length [17:48:40]Host: 172.17.42.132:8080 [17:48:40]Content-Length: 627 [17:48:40]Content-Type: application/json [17:48:40] [17:48:40]POST finish read [17:48:40]Found Content-Length = 627 [17:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47667", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:40]execute_script... [17:48: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 : (3)47667", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:40]POST & json_proto [17:48:40]process_json_proto [17:48:40]json parsed OK: [17:48:40]protocol is kg_v1.0 [17:48:40]action value=close_receipt [17:48:40]process_action close_receipt [17:48:40]cmd_close_receipt [17:48:40]MH_GetDate [17:48:40]Write to MH i2c: F0 00 00 08 04 FB [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: F0 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: F0 09 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: F0 09 00 08 04 00 F9 36 19 67 4C DF 56 66 9A [17:48:40]GetLastDocTimeStamp 1729705437 [17:48:40]current date 1729705721 [17:48:40]FM_GetShiftState [17:48:40]SAM_PROTO_GetShiftState [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 13 01 00 [17:48:40]Write to MH i2c: E2 08 00 09 04 80 13 01 00 00 00 00 00 8A [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 09 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 74 [17:48:40]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_GetShiftState done [17:48:40]FM_GetShiftState done [17:48:40]opened in 1729642527 [17:48:40]opened+sec_in_day 1729728927 [17:48:40]quantity*price = 13000 [17:48:40]sum+1 = 13001 [17:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 23.10.2024 17:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63357 ФПД: 17578658700350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63357&fm=17578658700350&tin=02508201610067®Number=0000000000091619&sum=13000 0 [17:48:41]StoreToDocumentArchive [17:48:41]shift 546 fd 63357 [17:48:41]save to /storage/0546/doc_00063357 [17:48:41]save last doc name /storage/0546/doc_00063357 to /storage/kkm_last_doc_name [17:48:41]save OK [17:48:41]Clear old archive folders... [17:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:48:41]tlvbuf is 00B25B30 [17:48:41]SAM_PROTO_ClearQueue [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 09 00 00 [17:48:41]Write to MH i2c: E2 08 00 16 04 80 09 00 00 00 00 00 00 8C [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 16 04 00 90 00 8E [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]SAM_PROTO_ClearQueue done [17:48:41]KKMCreateOFDPacket [17:48:41]OFDProtocolAddRootSTLVToBuf [17:48:41]FM_MakeSignedData [17:48:41]FM_MakeSignedData [17:48:41]SAM_PROTO_SignData [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 01 02 [17:48:41]Write to MH i2c: E2 08 00 17 04 80 0D 01 02 00 00 00 00 94 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 17 04 00 90 00 8F [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]wFMCommunicate request_size=255 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F9 36 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 [17:48:41]Write to MH i2c: E2 02 01 18 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F9 36 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 00 00 D9 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 18 04 00 90 00 90 [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]wFMCommunicate request_size=35 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7D F7 00 00 35 04 06 00 0F FC D9 B5 1C 3E [17:48:41]Write to MH i2c: E2 26 00 19 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7D F7 00 00 35 04 06 00 0F FC D9 B5 1C 3E 00 00 F7 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 03 00 19 04 00 90 00 91 [17:48:41]RAPDU: 90 00 [17:48:41]wFMCommunicate OK [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 0D 03 02 [17:48:41]Write to MH i2c: E2 08 00 1A 04 80 0D 03 02 00 00 00 00 99 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0B 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 0B 00 1A 04 00 6F 93 A3 43 57 A4 83 2A 90 00 2A [17:48:42]RAPDU: 6F 93 A3 43 57 A4 83 2A 90 00 [17:48:42]wFMCommunicate OK [17:48:42]SAM_PROTO_SignData done [17:48:42]FM_MakeSignedData done [17:48:42]CreateOFDProtocolMessage [17:48:42]wFMCommunicate request_size=4 [17:48:42]MH_SAM_APDU [17:48:42]CAPDU: 80 11 00 00 [17:48:42]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:42]Read from MH i2c: E2 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F2 [17:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:48:42]wFMCommunicate OK [17:48:42]CreateOFDProtocolMessage done [17:48:42]OFDSenderStorePacket 63357 [17:48:42]StoreOFDPacket docnum=63357 [17:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 D2 E4 20 01 BA A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F9 36 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7D F7 00 00 35 04 06 00 0F FC D9 B5 1C 3E 6F 93 A3 43 57 A4 83 2A [17:48:42]CheckFolder [17:48:42]dirname=/storage/ofd_packets [17:48:42]CheckFolder done [17:48:42]ProducePacketName [17:48:42]name=ofd_packets/00063357 [17:48:42]NVStorageSaveData ofd_packets/00063357 [17:48:42]File name is /storage/ofd_packets/00063357 [17:48:42]Write 326 bytes [17:48:42]NVStorageSaveData done [17:48:42]OFDSenderStorePacket done [17:48:42]KKMCreateOFDPacket done [17:48:42]NVStorageSaveData kkm_last_timestamp [17:48:42]File name is /storage/kkm_last_timestamp [17:48:42]Write 4 bytes [17:48:42]NVStorageSaveData done [17:48:42]ExternCall_PrintAddStr [17:48:42]wPrintStart [17:48:42]Write to MH i2c: 01 00 00 1C 04 20 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [17:48:42]RasterBufferAndPrint [17:48:42]line Счет N : (3)47667 [17:48:42]line ИНН: 02508201610067 [17:48:42]line Контрольно-Кассовый Чек [17:48:42]line ПРОДАЖА [17:48:42]line Товар: 2000036230011 [17:48:42]line Кофе Латте XL(GABB TRADE) [17:48:42]line 1.000 * 130.00 [17:48:42]line = 130.00 [17:48:42]line НДС 12% НСП 1% [17:48:42]line > о реализуемом товаре [17:48:42]line ИТОГО: 130.00 [17:48:42]line НСП 1% : 1.15 [17:48:42]line НДС 12% : 13.80 [17:48:42]line Наличными: 130.00 [17:48:42]line Безнал.: 0.00 [17:48:42]line Место: АЗС № 86 "Партнер Нефть" [17:48:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:48:42]line СНО: Общий режим [17:48:42]line Чек 86 23.10.2024 17:48 [17:48:42]line Смена: 546 ФФД: 1.0 [17:48:42]line ЗНМ: 0300000154 [17:48:42]line РНМ: 0000000000091619 [17:48:42]line Версия ККМ: 001 [17:48:42]line ФМ: 0000000000874676 [17:48:42]line ФД: 63357 [17:48:42]line ФПД: 17578658700350 [17:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T174841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63357&fm=17578658700350&tin=02508201610067®Number=0000000000091619&sum=13000 [17:48:42]line 0 [17:48:42]OFD Sender: Processing packet 63357 [packets to send 232, broken 231] [17:48:42]ProducePacketName [17:48:42]name=ofd_packets/00063357 [17:48:42]OFD Sender: To server: pG, [17:48:42]CommunicateWithHost lk.salyk.kg:30040 [17:48:42]ConnectInit lk.salyk.kg [17:48:42]written 0, free lines is 4095 [17:48:42]Connected sock=10 [17:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 28 01 00 00 D2 E4 20 01 BA A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F9 36 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7D F7 00 00 35 04 06 00 0F FC D9 B5 1C 3E 6F 93 A3 43 57 A4 83 2A [17:48:42]Write to MH i2c: 01 00 00 44 04 48 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 27 0D 83 [17:48:42]RasterBufferAndPrint [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]line [17:48:42]written 0, free lines is 3373 [17:48:42]MH_Cut [17:48:42]Write to MH i2c: D1 01 00 4B 04 01 21 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: D1 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: D1 01 00 [17:48:42]MH_I2C_Read... [17:48:42]Read from MH i2c: D1 01 00 4B 04 00 20 [17:48:42]Write to MH i2c: 01 00 00 4C 04 50 [17:48:42]Write i2c OK [17:48:42]MH_I2C_Read... [17:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 E2 65 47 00 EB 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 38 37 34 36 37 36 10 04 04 00 7D F7 00 00 F4 03 04 00 F0 E0 18 67 B6 04 01 00 00 0E 2D 2C 0D E0 7C 52 F5 [17:48:42]CommunicateWithHost err = 0 [17:48:42]CheckOFDResponse [17:48:42]1017 (14) - 77093643461234 [17:48:42]1041 (16) - 0000000000874676 [17:48:42]1040 (4) - 63357 [17:48:42]1012 (4) - 23.10.2024 11:41 [17:48:42]1206 (1) - 0 [17:48:42]OFD Sender: Remove packet 63357 [17:48:42]ProducePacketName [17:48:42]name=ofd_packets/00063357 [17:48:42]NVStorageDeleteData [17:48:43]*** Cut start [17:48:43]*** Partial cut [17:48:43]*** CUTSNS_PIN = 1 [17:48:43]OFD Sender: No OFD packet to send [17:48:43]*** CUTSNS_PIN = 0 [17:48:43]*** Brake cut motor [17:48:44]Read from MH i2c: 01 [17:48:44]MH_I2C_Read... [17:48:44]*** Stop cut motor [17:48:44]*** Cut end [17:48:44]Read from MH i2c: 01 07 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: 01 07 00 4C 04 00 00 00 00 00 FF 0F 65 [17:48:44]process_action close_receipt done [17:48:44]requested_data is exist [17:48:44]produce_requested_data [17:48:44]requested_item fm.sn is exist - process it [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 11 00 00 [17:48:44]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 24 [17:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:48:44]wFMCommunicate OK [17:48:44]requested_item fd.num is exist - process it [17:48:44]SAM_PROTO_GetFieldsCounters [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 13 00 00 [17:48:44]Write to MH i2c: E2 08 00 4E 04 80 13 00 00 00 00 00 00 CE [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 62 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 62 00 4E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7D F7 00 00 0E 04 04 00 22 02 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 90 [17:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7D F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_GetFieldsCounters done [17:48:44]requested_item shift.num is exist - process it [17:48:44]requested_item shift.opened is exist - process it [17:48:44]req_shift_opened [17:48:44]FM_GetShiftState [17:48:44]SAM_PROTO_GetShiftState [17:48:44]wFMCommunicate request_size=4 [17:48:44]MH_SAM_APDU [17:48:44]CAPDU: 80 13 01 00 [17:48:44]Write to MH i2c: E2 08 00 4F 04 80 13 01 00 00 00 00 00 D0 [17:48:44]Write i2c OK [17:48:44]MH_I2C_Read... [17:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:44]Read from MH i2c: E2 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0E 00 [17:48:44]MH_I2C_Read... [17:48:44]Read from MH i2c: E2 0E 00 4F 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BA [17:48:44]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:48:44]wFMCommunicate OK [17:48:44]SAM_PROTO_GetShiftState done [17:48:44]FM_GetShiftState done [17:48:44]req_shift_opened done [17:48:44]requested_item shift.open_date is exist - process it [17:48:44]req_shift_open_date [17:48:44]req_shift_open_date done [17:48:44]produce_requested_data done [17:48:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63357,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:48:44]process_action_free close_receipt [17:48:44]json_value_free [17:48:44]json_value_free done [17:48:44]process_json_proto returns [17:48:44]Send response to host [17:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63357,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:48:44]free response buf [17:48:44]execute_script done [17:48:44]execute_script returns [17:48:44]free content buf [17:48:44]Sock 9.Close socket [17:48:44]Sock 9.Thread stoped [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:03]OFD Sender: No OFD packet to send [17:49:08]OFD Sender: No OFD packet to send [17:49:13]OFD Sender: No OFD packet to send [17:49:18]OFD Sender: No OFD packet to send [17:49:23]OFD Sender: No OFD packet to send [17:49:28]OFD Sender: No OFD packet to send [17:49:33]OFD Sender: No OFD packet to send [17:49:38]OFD Sender: No OFD packet to send [17:49:43]OFD Sender: No OFD packet to send [17:49:48]OFD Sender: No OFD packet to send [17:49:53]OFD Sender: No OFD packet to send [17:49:58]OFD Sender: No OFD packet to send [17:50:03]OFD Sender: No OFD packet to send [17:50:08]OFD Sender: No OFD packet to send [17:50:13]OFD Sender: No OFD packet to send [17:50:18]OFD Sender: No OFD packet to send [17:50:23]OFD Sender: No OFD packet to send [17:50:28]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:18]accept exits with 7 [17:54:18]New connection [17:54:18]New thread 3066633572 created [17:54:18]Thread 3066490212 joined [17:54:18]Waiting for new connection... [17:54:18] Sock 7.Parse request [17:54:18]Sock 7.Check first char [17:54:18]Sock 7.First char is OK [17:54:18]request: POST /json_proto HTTP/1.0 [17:54:18]Method: POST [17:54:18]URL: /json_proto [17:54:18]Method is POST - this is cgi request [17:54:18]url: /json_proto [17:54:18]query_string will be loaded in cgi processing [17:54:18]execute_cgi json_proto POST (null) [17:54:18]execute_cgi path=json_proto method=POST [17:54:18]POST find Content-Length [17:54:18]Host: 172.17.42.132:8080 [17:54:18]Content-Length: 924 [17:54:18]Content-Type: application/json [17:54:18] [17:54:18]POST finish read [17:54:18]Found Content-Length = 924 [17:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47668", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:18]execute_script... [17:54: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 : (3)47668", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 249.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:18]POST & json_proto [17:54:18]process_json_proto [17:54:18]json parsed OK: [17:54:18]protocol is kg_v1.0 [17:54:18]action value=close_receipt [17:54:18]process_action close_receipt [17:54:18]cmd_close_receipt [17:54:18]MH_GetDate [17:54:18]Write to MH i2c: F0 00 00 50 04 43 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 09 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: F0 09 00 50 04 00 4B 38 19 67 4C DF 56 66 36 [17:54:18]GetLastDocTimeStamp 1729705721 [17:54:18]current date 1729706059 [17:54:18]FM_GetShiftState [17:54:18]SAM_PROTO_GetShiftState [17:54:18]wFMCommunicate request_size=4 [17:54:18]MH_SAM_APDU [17:54:18]CAPDU: 80 13 01 00 [17:54:18]Write to MH i2c: E2 08 00 51 04 80 13 01 00 00 00 00 00 D2 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:18]Read from MH i2c: E2 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: E2 0E 00 51 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BC [17:54:18]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:54:18]wFMCommunicate OK [17:54:18]SAM_PROTO_GetShiftState done [17:54:18]FM_GetShiftState done [17:54:18]opened in 1729642527 [17:54:18]opened+sec_in_day 1729728927 [17:54:18]quantity*price = 7900 [17:54:18]sum+1 = 7901 [17:54:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000176448 Сок Piko Pulpy апельсин ПЭТ 1л 1.000 * 170.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 249.00 НСП 1% : 2.20 НДС 12% : 26.44 Наличными: 249.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 23.10.2024 17:54 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63358 ФПД: 128806403438393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175420&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63358&fm=128806403438393&tin=02508201610067®Number=0000000000091619&sum=24900 0 [17:54:19]StoreToDocumentArchive [17:54:19]shift 546 fd 63358 [17:54:19]save to /storage/0546/doc_00063358 [17:54:19]save last doc name /storage/0546/doc_00063358 to /storage/kkm_last_doc_name [17:54:19]save OK [17:54:19]Clear old archive folders... [17:54:19]ProcessDocumentItem done err = 0, tmpTLVsize=393 [17:54:19]tlvbuf is 00B21F90 [17:54:19]SAM_PROTO_ClearQueue [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 09 00 00 [17:54:19]Write to MH i2c: E2 08 00 5E 04 80 09 00 00 00 00 00 00 D4 [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 03 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [17:54:19]RAPDU: 90 00 [17:54:19]wFMCommunicate OK [17:54:19]SAM_PROTO_ClearQueue done [17:54:19]KKMCreateOFDPacket [17:54:19]OFDProtocolAddRootSTLVToBuf [17:54:19]FM_MakeSignedData [17:54:19]FM_MakeSignedData [17:54:19]SAM_PROTO_SignData [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 0D 01 02 [17:54:19]Write to MH i2c: E2 08 00 5F 04 80 0D 01 02 00 00 00 00 DC [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 03 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 03 00 5F 04 00 90 00 D7 [17:54:19]RAPDU: 90 00 [17:54:19]wFMCommunicate OK [17:54:19]wFMCommunicate request_size=255 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 [17:54:19]Write to MH i2c: E2 02 01 60 04 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 23 [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 60 04 00 90 00 D8 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=152 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4C 38 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7E F7 00 00 35 04 06 00 75 26 13 EB F7 39 [17:54:20]Write to MH i2c: E2 9B 00 61 04 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4C 38 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7E F7 00 00 35 04 06 00 75 26 13 EB F7 39 00 00 D0 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 03 00 61 04 00 90 00 D9 [17:54:20]RAPDU: 90 00 [17:54:20]wFMCommunicate OK [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 0D 03 02 [17:54:20]Write to MH i2c: E2 08 00 62 04 80 0D 03 02 00 00 00 00 E1 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0B 00 62 04 00 A2 1F F1 14 B2 CF F4 91 90 00 AE [17:54:20]RAPDU: A2 1F F1 14 B2 CF F4 91 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_SignData done [17:54:20]FM_MakeSignedData done [17:54:20]CreateOFDProtocolMessage [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 11 00 00 [17:54:20]Write to MH i2c: E2 08 00 63 04 80 11 00 00 00 00 00 00 E1 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 17 00 63 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3A [17:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:54:20]wFMCommunicate OK [17:54:20]CreateOFDProtocolMessage done [17:54:20]OFDSenderStorePacket 63358 [17:54:20]StoreOFDPacket docnum=63358 [17:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9D 01 00 00 CB 14 95 01 FA 1C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4C 38 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7E F7 00 00 35 04 06 00 75 26 13 EB F7 39 A2 1F F1 14 B2 CF F4 91 [17:54:20]CheckFolder [17:54:20]dirname=/storage/ofd_packets [17:54:20]CheckFolder done [17:54:20]ProducePacketName [17:54:20]name=ofd_packets/00063358 [17:54:20]NVStorageSaveData ofd_packets/00063358 [17:54:20]File name is /storage/ofd_packets/00063358 [17:54:20]Write 443 bytes [17:54:20]NVStorageSaveData done [17:54:20]OFDSenderStorePacket done [17:54:20]KKMCreateOFDPacket done [17:54:20]NVStorageSaveData kkm_last_timestamp [17:54:20]File name is /storage/kkm_last_timestamp [17:54:20]Write 4 bytes [17:54:20]NVStorageSaveData done [17:54:20]ExternCall_PrintAddStr [17:54:20]wPrintStart [17:54:20]Write to MH i2c: 01 00 00 64 04 68 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 07 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 FF 0F 7D [17:54:20]RasterBufferAndPrint [17:54:20]line Счет N : (3)47668 [17:54:20]line ИНН: 02508201610067 [17:54:20]line Контрольно-Кассовый Чек [17:54:20]line ПРОДАЖА [17:54:20]line Товар: 4700000310043 [17:54:20]line Вода Жалалабат 27 1л [17:54:20]line 1.000 * 79.00 [17:54:20]line = 79.00 [17:54:20]line НДС 12% НСП 1% [17:54:20]line > о реализуемом товаре [17:54:20]line Товар: 5449000176448 [17:54:20]line Сок Piko Pulpy апельсин ПЭТ 1л [17:54:20]line 1.000 * 170.00 [17:54:20]line = 170.00 [17:54:20]line НДС 12% НСП 1% [17:54:20]line > о реализуемом товаре [17:54:20]line ИТОГО: 249.00 [17:54:20]line НСП 1% : 2.20 [17:54:20]line НДС 12% : 26.44 [17:54:20]line Наличными: 249.00 [17:54:20]line Безнал.: 0.00 [17:54:20]line Место: АЗС № 86 "Партнер Нефть" [17:54:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:54:20]line СНО: Общий режим [17:54:20]line Чек 87 23.10.2024 17:54 [17:54:20]line Смена: 546 ФФД: 1.0 [17:54:20]line ЗНМ: 0300000154 [17:54:20]line РНМ: 0000000000091619 [17:54:20]line Версия ККМ: 001 [17:54:20]line ФМ: 0000000000874676 [17:54:20]line ФД: 63358 [17:54:20]line ФПД: 128806403438393 [17:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T175420&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63358&fm=128806403438393&tin=02508201610067®Number=0000000000091619&sum=24900 [17:54:20]line 0 [17:54:20]OFD Sender: Processing packet 63358 [packets to send 232, broken 231] [17:54:20]ProducePacketName [17:54:20]name=ofd_packets/00063358 [17:54:20]OFD Sender: To server: pG, [17:54:20]CommunicateWithHost lk.salyk.kg:30040 [17:54:20]ConnectInit lk.salyk.kg [17:54:20]written 0, free lines is 4095 [17:54:21]Connected sock=10 [17:54:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9D 01 00 00 CB 14 95 01 FA 1C 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 0A 00 00 00 00 07 04 06 00 44 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 4C 38 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7E F7 00 00 35 04 06 00 75 26 13 EB F7 39 A2 1F F1 14 B2 CF F4 91 [17:54:21]Write to MH i2c: 01 00 00 93 04 97 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: 01 07 00 93 04 00 00 00 00 00 C3 0C 6D [17:54:21]RasterBufferAndPrint [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]line [17:54:21]written 0, free lines is 3273 [17:54:21]MH_Cut [17:54:21]Write to MH i2c: D1 01 00 9A 04 01 70 [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 01 00 [17:54:21]MH_I2C_Read... [17:54:21]Read from MH i2c: D1 01 00 9A 04 00 6F [17:54:21]Write to MH i2c: 01 00 00 9B 04 9F [17:54:21]Write i2c OK [17:54:21]MH_I2C_Read... [17:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 42 BE 47 00 7C 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7E F7 00 00 F4 03 04 00 42 E2 18 67 B6 04 01 00 00 B8 50 07 3B C8 16 81 3B [17:54:21]CommunicateWithHost err = 0 [17:54:21]CheckOFDResponse [17:54:21]1017 (14) - 77093643461234 [17:54:21]1041 (16) - 0000000000874676 [17:54:21]1040 (4) - 63358 [17:54:21]1012 (4) - 23.10.2024 11:47 [17:54:21]1206 (1) - 0 [17:54:21]OFD Sender: Remove packet 63358 [17:54:21]ProducePacketName [17:54:21]name=ofd_packets/00063358 [17:54:21]NVStorageDeleteData [17:54:21]OFD Sender: No OFD packet to send [17:54:21]*** Cut start [17:54:21]*** Partial cut [17:54:21]*** CUTSNS_PIN = 1 [17:54:22]*** CUTSNS_PIN = 0 [17:54:22]*** Brake cut motor [17:54:22]Read from MH i2c: 01 [17:54:22]MH_I2C_Read... [17:54:22]*** Stop cut motor [17:54:22]*** Cut end [17:54:22]Read from MH i2c: 01 07 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: 01 07 00 9B 04 00 00 00 00 00 FF 0F B4 [17:54:22]process_action close_receipt done [17:54:22]requested_data is exist [17:54:22]produce_requested_data [17:54:22]requested_item fm.sn is exist - process it [17:54:22]wFMCommunicate request_size=4 [17:54:22]MH_SAM_APDU [17:54:22]CAPDU: 80 11 00 00 [17:54:22]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [17:54:22]Write i2c OK [17:54:22]MH_I2C_Read... [17:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:22]Read from MH i2c: E2 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 17 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [17:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [17:54:22]wFMCommunicate OK [17:54:22]requested_item fd.num is exist - process it [17:54:22]SAM_PROTO_GetFieldsCounters [17:54:22]wFMCommunicate request_size=4 [17:54:22]MH_SAM_APDU [17:54:22]CAPDU: 80 13 00 00 [17:54:22]Write to MH i2c: E2 08 00 9D 04 80 13 00 00 00 00 00 00 1D [17:54:22]Write i2c OK [17:54:22]MH_I2C_Read... [17:54:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:22]Read from MH i2c: E2 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 62 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 62 00 9D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7E F7 00 00 0E 04 04 00 22 02 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 E3 [17:54:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7E F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:22]wFMCommunicate OK [17:54:22]SAM_PROTO_GetFieldsCounters done [17:54:22]requested_item shift.num is exist - process it [17:54:22]requested_item shift.opened is exist - process it [17:54:22]req_shift_opened [17:54:22]FM_GetShiftState [17:54:22]SAM_PROTO_GetShiftState [17:54:22]wFMCommunicate request_size=4 [17:54:22]MH_SAM_APDU [17:54:22]CAPDU: 80 13 01 00 [17:54:22]Write to MH i2c: E2 08 00 9E 04 80 13 01 00 00 00 00 00 1F [17:54:22]Write i2c OK [17:54:22]MH_I2C_Read... [17:54:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:22]Read from MH i2c: E2 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 0E 00 [17:54:22]MH_I2C_Read... [17:54:22]Read from MH i2c: E2 0E 00 9E 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 09 [17:54:22]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [17:54:22]wFMCommunicate OK [17:54:22]SAM_PROTO_GetShiftState done [17:54:22]FM_GetShiftState done [17:54:22]req_shift_opened done [17:54:22]requested_item shift.open_date is exist - process it [17:54:22]req_shift_open_date [17:54:22]req_shift_open_date done [17:54:22]produce_requested_data done [17:54:22]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63358,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [17:54:22]process_action_free close_receipt [17:54:22]json_value_free [17:54:22]json_value_free done [17:54:22]process_json_proto returns [17:54:22]Send response to host [17:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63358,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [17:54:22]free response buf [17:54:22]execute_script done [17:54:22]execute_script returns [17:54:22]free content buf [17:54:22]Sock 7.Close socket [17:54:22]Sock 7.Thread stoped [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:51]accept exits with 9 [18:01:51]New connection [18:01:51]New thread 3066490212 created [18:01:51]Thread 3066633572 joined [18:01:51]Waiting for new connection... [18:01:51] Sock 9.Parse request [18:01:51]Sock 9.Check first char [18:01:51]Sock 9.First char is OK [18:01:51]request: POST /json_proto HTTP/1.0 [18:01:51]Method: POST [18:01:51]URL: /json_proto [18:01:51]Method is POST - this is cgi request [18:01:51]url: /json_proto [18:01:51]query_string will be loaded in cgi processing [18:01:51]execute_cgi json_proto POST (null) [18:01:51]execute_cgi path=json_proto method=POST [18:01:51]POST find Content-Length [18:01:51]Host: 172.17.42.132:8080 [18:01:51]Content-Length: 878 [18:01:51]Content-Type: application/json [18:01:51] [18:01:51]POST finish read [18:01:51]Found Content-Length = 878 [18:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47669", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:51]execute_script... [18:01:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47669", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 490.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:51]POST & json_proto [18:01:51]process_json_proto [18:01:51]json parsed OK: [18:01:51]protocol is kg_v1.0 [18:01:51]action value=close_receipt [18:01:51]process_action close_receipt [18:01:51]cmd_close_receipt [18:01:51]MH_GetDate [18:01:51]Write to MH i2c: F0 00 00 9F 04 92 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: F0 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: F0 09 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: F0 09 00 9F 04 00 10 3A 19 67 4C DF 56 66 4C [18:01:51]GetLastDocTimeStamp 1729706060 [18:01:51]current date 1729706512 [18:01:51]FM_GetShiftState [18:01:51]SAM_PROTO_GetShiftState [18:01:51]wFMCommunicate request_size=4 [18:01:51]MH_SAM_APDU [18:01:51]CAPDU: 80 13 01 00 [18:01:51]Write to MH i2c: E2 08 00 A0 04 80 13 01 00 00 00 00 00 21 [18:01:51]Write i2c OK [18:01:51]MH_I2C_Read... [18:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:51]Read from MH i2c: E2 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0E 00 [18:01:51]MH_I2C_Read... [18:01:51]Read from MH i2c: E2 0E 00 A0 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 0B [18:01:51]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:01:51]wFMCommunicate OK [18:01:51]SAM_PROTO_GetShiftState done [18:01:51]FM_GetShiftState done [18:01:51]opened in 1729642527 [18:01:51]opened+sec_in_day 1729728927 [18:01:51]quantity*price = 33000 [18:01:51]sum+1 = 33001 [18:01:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 160.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 490.00 НСП 1% : 4.34 НДС 12% : 52.03 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 88 23.10.2024 18:01 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63359 ФПД: 169289650690822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180153&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63359&fm=169289650690822&tin=02508201610067®Number=0000000000091619&sum=49000 0 [18:01:52]StoreToDocumentArchive [18:01:52]shift 546 fd 63359 [18:01:52]save to /storage/0546/doc_00063359 [18:01:52]save last doc name /storage/0546/doc_00063359 to /storage/kkm_last_doc_name [18:01:52]save OK [18:01:52]Clear old archive folders... [18:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=377 [18:01:52]tlvbuf is 00B14E70 [18:01:52]SAM_PROTO_ClearQueue [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 09 00 00 [18:01:52]Write to MH i2c: E2 08 00 AD 04 80 09 00 00 00 00 00 00 23 [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 AD 04 00 90 00 25 [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_ClearQueue done [18:01:52]KKMCreateOFDPacket [18:01:52]OFDProtocolAddRootSTLVToBuf [18:01:52]FM_MakeSignedData [18:01:52]FM_MakeSignedData [18:01:52]SAM_PROTO_SignData [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 01 02 [18:01:52]Write to MH i2c: E2 08 00 AE 04 80 0D 01 02 00 00 00 00 2B [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 03 00 AE 04 00 90 00 26 [18:01:52]RAPDU: 90 00 [18:01:52]wFMCommunicate OK [18:01:52]wFMCommunicate request_size=255 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 0D 02 02 FA 03 00 79 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE [18:01:52]Write to MH i2c: E2 02 01 AF 04 80 0D 02 02 FA 00 03 00 79 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 00 00 DC [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 AF 04 00 90 00 27 [18:01:53]RAPDU: 90 00 [18:01:53]wFMCommunicate OK [18:01:53]wFMCommunicate request_size=136 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 11 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F7 00 00 35 04 06 00 99 F7 D1 7E 5B 06 [18:01:53]Write to MH i2c: E2 8B 00 B0 04 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 11 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F7 00 00 35 04 06 00 99 F7 D1 7E 5B 06 00 00 05 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 03 00 B0 04 00 90 00 28 [18:01:53]RAPDU: 90 00 [18:01:53]wFMCommunicate OK [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 0D 03 02 [18:01:53]Write to MH i2c: E2 08 00 B1 04 80 0D 03 02 00 00 00 00 30 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0B 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 0B 00 B1 04 00 5E AE 41 8C 65 06 39 B0 90 00 5E [18:01:53]RAPDU: 5E AE 41 8C 65 06 39 B0 90 00 [18:01:53]wFMCommunicate OK [18:01:53]SAM_PROTO_SignData done [18:01:53]FM_MakeSignedData done [18:01:53]CreateOFDProtocolMessage [18:01:53]wFMCommunicate request_size=4 [18:01:53]MH_SAM_APDU [18:01:53]CAPDU: 80 11 00 00 [18:01:53]Write to MH i2c: E2 08 00 B2 04 80 11 00 00 00 00 00 00 30 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:53]Read from MH i2c: E2 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: E2 17 00 B2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 89 [18:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:01:53]wFMCommunicate OK [18:01:53]CreateOFDProtocolMessage done [18:01:53]OFDSenderStorePacket 63359 [18:01:53]StoreOFDPacket docnum=63359 [18:01:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8D 01 00 00 B6 6D 85 01 F9 2E 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 11 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F7 00 00 35 04 06 00 99 F7 D1 7E 5B 06 5E AE 41 8C 65 06 39 B0 [18:01:53]CheckFolder [18:01:53]dirname=/storage/ofd_packets [18:01:53]CheckFolder done [18:01:53]ProducePacketName [18:01:53]name=ofd_packets/00063359 [18:01:53]NVStorageSaveData ofd_packets/00063359 [18:01:53]File name is /storage/ofd_packets/00063359 [18:01:53]Write 427 bytes [18:01:53]NVStorageSaveData done [18:01:53]OFDSenderStorePacket done [18:01:53]KKMCreateOFDPacket done [18:01:53]NVStorageSaveData kkm_last_timestamp [18:01:53]File name is /storage/kkm_last_timestamp [18:01:53]Write 4 bytes [18:01:53]NVStorageSaveData done [18:01:53]ExternCall_PrintAddStr [18:01:53]wPrintStart [18:01:53]Write to MH i2c: 01 00 00 B3 04 B7 [18:01:53]Write i2c OK [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 07 00 [18:01:53]MH_I2C_Read... [18:01:53]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 FF 0F CC [18:01:53]RasterBufferAndPrint [18:01:53]line Счет N : (3)47669 [18:01:53]line ИНН: 02508201610067 [18:01:53]line Контрольно-Кассовый Чек [18:01:53]line ПРОДАЖА [18:01:53]line Товар: 4700001060169 [18:01:53]line Коньяк Бишкек 0,2л [18:01:53]line 1.000 * 330.00 [18:01:53]line = 330.00 [18:01:53]line НДС 12% НСП 1% [18:01:53]line > о реализуемом товаре [18:01:53]line Товар: 48741958 [18:01:53]line Сигареты Parliament Aqua Blue [18:01:53]line 1.000 * 160.00 [18:01:53]line = 160.00 [18:01:53]line НДС 12% НСП 1% [18:01:53]line > о реализуемом товаре [18:01:53]line ИТОГО: 490.00 [18:01:53]line НСП 1% : 4.34 [18:01:53]line НДС 12% : 52.03 [18:01:53]line Наличными: 490.00 [18:01:53]line Безнал.: 0.00 [18:01:53]line Место: АЗС № 86 "Партнер Нефть" [18:01:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:01:53]line СНО: Общий режим [18:01:53]line Чек 88 23.10.2024 18:01 [18:01:53]line Смена: 546 ФФД: 1.0 [18:01:53]line ЗНМ: 0300000154 [18:01:53]line РНМ: 0000000000091619 [18:01:53]line Версия ККМ: 001 [18:01:53]line ФМ: 0000000000874676 [18:01:53]line ФД: 63359 [18:01:53]line ФПД: 169289650690822 [18:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180153&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63359&fm=169289650690822&tin=02508201610067®Number=0000000000091619&sum=49000 [18:01:53]line 0 [18:01:53]OFD Sender: Processing packet 63359 [packets to send 232, broken 231] [18:01:53]ProducePacketName [18:01:53]name=ofd_packets/00063359 [18:01:53]OFD Sender: To server: pG, [18:01:53]CommunicateWithHost lk.salyk.kg:30040 [18:01:53]ConnectInit lk.salyk.kg [18:01:53]written 0, free lines is 4095 [18:01:53]Connected sock=7 [18:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8D 01 00 00 B6 6D 85 01 F9 2E 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 14 00 00 00 00 07 04 06 00 68 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 11 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F7 00 00 35 04 06 00 99 F7 D1 7E 5B 06 5E AE 41 8C 65 06 39 B0 [18:01:54]Write to MH i2c: 01 00 00 E2 04 E6 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 E2 04 00 00 00 00 00 BA 0C B3 [18:01:54]RasterBufferAndPrint [18:01:54]line [18:01:54]line [18:01:54]line [18:01:54]line [18:01:54]line [18:01:54]written 0, free lines is 3267 [18:01:54]MH_Cut [18:01:54]Write to MH i2c: D1 01 00 E9 04 01 BF [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: D1 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: D1 01 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: D1 01 00 E9 04 00 BE [18:01:54]Write to MH i2c: 01 00 00 EA 04 EE [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 61 40 47 00 32 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 7F F7 00 00 F4 03 04 00 07 E4 18 67 B6 04 01 00 00 0E C4 21 2C F0 EC 07 8D [18:01:54]CommunicateWithHost err = 0 [18:01:54]CheckOFDResponse [18:01:54]1017 (14) - 77093643461234 [18:01:54]1041 (16) - 0000000000874676 [18:01:54]1040 (4) - 63359 [18:01:54]1012 (4) - 23.10.2024 11:54 [18:01:54]1206 (1) - 0 [18:01:54]OFD Sender: Remove packet 63359 [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00063359 [18:01:54]NVStorageDeleteData [18:01:54]OFD Sender: No OFD packet to send [18:01:54]*** Cut start [18:01:54]*** Partial cut [18:01:54]*** CUTSNS_PIN = 1 [18:01:55]*** CUTSNS_PIN = 0 [18:01:55]*** Brake cut motor [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]*** Stop cut motor [18:01:55]*** Cut end [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 EA 04 00 00 00 00 00 FF 0F 03 [18:01:55]process_action close_receipt done [18:01:55]requested_data is exist [18:01:55]produce_requested_data [18:01:55]requested_item fm.sn is exist - process it [18:01:55]wFMCommunicate request_size=4 [18:01:55]MH_SAM_APDU [18:01:55]CAPDU: 80 11 00 00 [18:01:55]Write to MH i2c: E2 08 00 EB 04 80 11 00 00 00 00 00 00 69 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 17 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 17 00 EB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 C2 [18:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:01:55]wFMCommunicate OK [18:01:55]requested_item fd.num is exist - process it [18:01:55]SAM_PROTO_GetFieldsCounters [18:01:55]wFMCommunicate request_size=4 [18:01:55]MH_SAM_APDU [18:01:55]CAPDU: 80 13 00 00 [18:01:55]Write to MH i2c: E2 08 00 EC 04 80 13 00 00 00 00 00 00 6C [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 62 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 62 00 EC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7F F7 00 00 0E 04 04 00 22 02 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 36 [18:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 7F F7 00 00 0E 04 04 00 22 02 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 [18:01:55]wFMCommunicate OK [18:01:55]SAM_PROTO_GetFieldsCounters done [18:01:55]requested_item shift.num is exist - process it [18:01:55]requested_item shift.opened is exist - process it [18:01:55]req_shift_opened [18:01:55]FM_GetShiftState [18:01:55]SAM_PROTO_GetShiftState [18:01:55]wFMCommunicate request_size=4 [18:01:55]MH_SAM_APDU [18:01:55]CAPDU: 80 13 01 00 [18:01:55]Write to MH i2c: E2 08 00 ED 04 80 13 01 00 00 00 00 00 6E [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:55]Read from MH i2c: E2 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 0E 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: E2 0E 00 ED 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 58 [18:01:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:01:55]wFMCommunicate OK [18:01:55]SAM_PROTO_GetShiftState done [18:01:55]FM_GetShiftState done [18:01:55]req_shift_opened done [18:01:55]requested_item shift.open_date is exist - process it [18:01:55]req_shift_open_date [18:01:55]req_shift_open_date done [18:01:55]produce_requested_data done [18:01:55]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63359,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:01:55]process_action_free close_receipt [18:01:55]json_value_free [18:01:55]json_value_free done [18:01:55]process_json_proto returns [18:01:55]Send response to host [18:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63359,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:01:55]free response buf [18:01:55]execute_script done [18:01:55]execute_script returns [18:01:55]free content buf [18:01:55]Sock 9.Close socket [18:01:55]Sock 9.Thread stoped [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:10]accept exits with 10 [18:05:10]New connection [18:05:10]New thread 3066633572 created [18:05:10]Thread 3066490212 joined [18:05:10]Waiting for new connection... [18:05:10] Sock 10.Parse request [18:05:10]Sock 10.Check first char [18:05:10]Sock 10.First char is OK [18:05:10]request: POST /json_proto HTTP/1.0 [18:05:10]Method: POST [18:05:10]URL: /json_proto [18:05:10]Method is POST - this is cgi request [18:05:10]url: /json_proto [18:05:10]query_string will be loaded in cgi processing [18:05:10]execute_cgi json_proto POST (null) [18:05:10]execute_cgi path=json_proto method=POST [18:05:10]POST find Content-Length [18:05:10]Host: 172.17.42.132:8080 [18:05:10]Content-Length: 646 [18:05:10]Content-Type: application/json [18:05:10] [18:05:10]POST finish read [18:05:10]Found Content-Length = 646 [18:05:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47670", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:10]execute_script... [18:05:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47670", "tax_sys" : 0, "items" : [ { "code": "4700001061104", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,2\u043B", "price" : 270.00, "quantity" : 1.000, "sum" : 270.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 270.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:10]POST & json_proto [18:05:10]process_json_proto [18:05:10]json parsed OK: [18:05:10]protocol is kg_v1.0 [18:05:10]action value=close_receipt [18:05:10]process_action close_receipt [18:05:10]cmd_close_receipt [18:05:10]MH_GetDate [18:05:10]Write to MH i2c: F0 00 00 EE 04 E1 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: F0 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: F0 09 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: F0 09 00 EE 04 00 D7 3A 19 67 4C DF 56 66 62 [18:05:10]GetLastDocTimeStamp 1729706513 [18:05:10]current date 1729706711 [18:05:10]FM_GetShiftState [18:05:10]SAM_PROTO_GetShiftState [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 13 01 00 [18:05:10]Write to MH i2c: E2 08 00 EF 04 80 13 01 00 00 00 00 00 70 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 0E 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 0E 00 EF 04 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 5A [18:05:10]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:05:10]wFMCommunicate OK [18:05:10]SAM_PROTO_GetShiftState done [18:05:10]FM_GetShiftState done [18:05:10]opened in 1729642527 [18:05:10]opened+sec_in_day 1729728927 [18:05:10]quantity*price = 27000 [18:05:10]sum+1 = 27001 [18:05:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.00 НСП 1% : 2.39 НДС 12% : 28.67 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 23.10.2024 18:05 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63360 ФПД: 151976989206589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180511&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63360&fm=151976989206589&tin=02508201610067®Number=0000000000091619&sum=27000 0 [18:05:11]StoreToDocumentArchive [18:05:11]shift 546 fd 63360 [18:05:11]save to /storage/0546/doc_00063360 [18:05:11]save last doc name /storage/0546/doc_00063360 to /storage/kkm_last_doc_name [18:05:11]save OK [18:05:11]Clear old archive folders... [18:05:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:05:11]tlvbuf is 00B25440 [18:05:11]SAM_PROTO_ClearQueue [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 09 00 00 [18:05:11]Write to MH i2c: E2 08 00 FC 04 80 09 00 00 00 00 00 00 72 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 FC 04 00 90 00 74 [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]SAM_PROTO_ClearQueue done [18:05:11]KKMCreateOFDPacket [18:05:11]OFDProtocolAddRootSTLVToBuf [18:05:11]FM_MakeSignedData [18:05:11]FM_MakeSignedData [18:05:11]SAM_PROTO_SignData [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 01 02 [18:05:11]Write to MH i2c: E2 08 00 FD 04 80 0D 01 02 00 00 00 00 7A [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]wFMCommunicate request_size=255 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D7 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [18:05:11]Write to MH i2c: E2 02 01 FE 04 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D7 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 98 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]wFMCommunicate request_size=34 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 80 F7 00 00 35 04 06 00 8A 38 E6 74 A8 3D [18:05:11]Write to MH i2c: E2 25 00 FF 04 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 80 F7 00 00 35 04 06 00 8A 38 E6 74 A8 3D 00 00 BC [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 03 02 [18:05:11]Write to MH i2c: E2 08 00 00 05 80 0D 03 02 00 00 00 00 80 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0B 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0B 00 00 05 00 31 E2 8E 23 6F 16 08 8D 90 00 5F [18:05:11]RAPDU: 31 E2 8E 23 6F 16 08 8D 90 00 [18:05:11]wFMCommunicate OK [18:05:11]SAM_PROTO_SignData done [18:05:11]FM_MakeSignedData done [18:05:11]CreateOFDProtocolMessage [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 11 00 00 [18:05:11]Write to MH i2c: E2 08 00 01 05 80 11 00 00 00 00 00 00 80 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 01 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D9 [18:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:05:11]wFMCommunicate OK [18:05:11]CreateOFDProtocolMessage done [18:05:11]OFDSenderStorePacket 63360 [18:05:11]StoreOFDPacket docnum=63360 [18:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 3D CD 1F 01 67 47 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D7 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 80 F7 00 00 35 04 06 00 8A 38 E6 74 A8 3D 31 E2 8E 23 6F 16 08 8D [18:05:11]CheckFolder [18:05:11]dirname=/storage/ofd_packets [18:05:11]CheckFolder done [18:05:11]ProducePacketName [18:05:11]name=ofd_packets/00063360 [18:05:11]NVStorageSaveData ofd_packets/00063360 [18:05:11]File name is /storage/ofd_packets/00063360 [18:05:11]Write 325 bytes [18:05:11]NVStorageSaveData done [18:05:11]OFDSenderStorePacket done [18:05:11]KKMCreateOFDPacket done [18:05:11]NVStorageSaveData kkm_last_timestamp [18:05:11]File name is /storage/kkm_last_timestamp [18:05:11]Write 4 bytes [18:05:11]NVStorageSaveData done [18:05:11]ExternCall_PrintAddStr [18:05:11]wPrintStart [18:05:11]Write to MH i2c: 01 00 00 02 05 07 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 02 05 00 00 00 00 00 FF 0F 1C [18:05:11]RasterBufferAndPrint [18:05:11]line Счет N : (3)47670 [18:05:11]line ИНН: 02508201610067 [18:05:11]line Контрольно-Кассовый Чек [18:05:11]line ПРОДАЖА [18:05:11]line Товар: 4700001061104 [18:05:11]line Коньяк Семетей 0,2л [18:05:11]line 1.000 * 270.00 [18:05:11]line = 270.00 [18:05:11]line НДС 12% НСП 1% [18:05:11]line > о реализуемом товаре [18:05:11]line ИТОГО: 270.00 [18:05:11]line НСП 1% : 2.39 [18:05:11]line НДС 12% : 28.67 [18:05:11]line Наличными: 270.00 [18:05:11]line Безнал.: 0.00 [18:05:11]line Место: АЗС № 86 "Партнер Нефть" [18:05:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:05:11]line СНО: Общий режим [18:05:11]line Чек 89 23.10.2024 18:05 [18:05:11]line Смена: 546 ФФД: 1.0 [18:05:11]line ЗНМ: 0300000154 [18:05:11]line РНМ: 0000000000091619 [18:05:11]line Версия ККМ: 001 [18:05:11]line ФМ: 0000000000874676 [18:05:11]line ФД: 63360 [18:05:11]line ФПД: 151976989206589 [18:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T180511&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63360&fm=151976989206589&tin=02508201610067®Number=0000000000091619&sum=27000 [18:05:12]OFD Sender: Processing packet 63360 [packets to send 232, broken 231] [18:05:12]ProducePacketName [18:05:12]name=ofd_packets/00063360 [18:05:12]OFD Sender: To server: pG, [18:05:12]CommunicateWithHost lk.salyk.kg:30040 [18:05:12]ConnectInit lk.salyk.kg [18:05:12]line 0 [18:05:12]written 0, free lines is 4095 [18:05:12]Connected sock=9 [18:05:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 3D CD 1F 01 67 47 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 31 30 34 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 69 00 00 00 00 13 04 06 00 78 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 D7 3A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 80 F7 00 00 35 04 06 00 8A 38 E6 74 A8 3D 31 E2 8E 23 6F 16 08 8D [18:05:12]Write to MH i2c: 01 00 00 2A 05 2F [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 07 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 20 0D 63 [18:05:12]RasterBufferAndPrint [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]written 0, free lines is 3366 [18:05:12]MH_Cut [18:05:12]Write to MH i2c: D1 01 00 31 05 01 08 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 01 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 01 00 31 05 00 07 [18:05:12]Write to MH i2c: 01 00 00 32 05 37 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 8C 68 47 00 2D 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 80 F7 00 00 F4 03 04 00 CE E4 18 67 B6 04 01 00 00 41 C1 89 35 2C 25 71 E8 [18:05:12]CommunicateWithHost err = 0 [18:05:12]CheckOFDResponse [18:05:12]1017 (14) - 77093643461234 [18:05:12]1041 (16) - 0000000000874676 [18:05:12]1040 (4) - 63360 [18:05:12]1012 (4) - 23.10.2024 11:58 [18:05:12]1206 (1) - 0 [18:05:12]OFD Sender: Remove packet 63360 [18:05:12]ProducePacketName [18:05:12]name=ofd_packets/00063360 [18:05:12]NVStorageDeleteData [18:05:13]OFD Sender: No OFD packet to send [18:05:13]*** Cut start [18:05:13]*** Partial cut [18:05:13]*** CUTSNS_PIN = 1 [18:05:13]*** CUTSNS_PIN = 0 [18:05:13]*** Brake cut motor [18:05:14]Read from MH i2c: 01 [18:05:14]MH_I2C_Read... [18:05:14]*** Stop cut motor [18:05:14]*** Cut end [18:05:14]Read from MH i2c: 01 07 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 FF 0F 4C [18:05:14]process_action close_receipt done [18:05:14]requested_data is exist [18:05:14]produce_requested_data [18:05:14]requested_item fm.sn is exist - process it [18:05:14]wFMCommunicate request_size=4 [18:05:14]MH_SAM_APDU [18:05:14]CAPDU: 80 11 00 00 [18:05:14]Write to MH i2c: E2 08 00 33 05 80 11 00 00 00 00 00 00 B2 [18:05:14]Write i2c OK [18:05:14]MH_I2C_Read... [18:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:14]Read from MH i2c: E2 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 17 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 17 00 33 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0B [18:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:05:14]wFMCommunicate OK [18:05:14]requested_item fd.num is exist - process it [18:05:14]SAM_PROTO_GetFieldsCounters [18:05:14]wFMCommunicate request_size=4 [18:05:14]MH_SAM_APDU [18:05:14]CAPDU: 80 13 00 00 [18:05:14]Write to MH i2c: E2 08 00 34 05 80 13 00 00 00 00 00 00 B5 [18:05:14]Write i2c OK [18:05:14]MH_I2C_Read... [18:05:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:14]Read from MH i2c: E2 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 62 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 62 00 34 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 80 F7 00 00 0E 04 04 00 22 02 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 83 [18:05:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 80 F7 00 00 0E 04 04 00 22 02 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 [18:05:14]wFMCommunicate OK [18:05:14]SAM_PROTO_GetFieldsCounters done [18:05:14]requested_item shift.num is exist - process it [18:05:14]requested_item shift.opened is exist - process it [18:05:14]req_shift_opened [18:05:14]FM_GetShiftState [18:05:14]SAM_PROTO_GetShiftState [18:05:14]wFMCommunicate request_size=4 [18:05:14]MH_SAM_APDU [18:05:14]CAPDU: 80 13 01 00 [18:05:14]Write to MH i2c: E2 08 00 35 05 80 13 01 00 00 00 00 00 B7 [18:05:14]Write i2c OK [18:05:14]MH_I2C_Read... [18:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:14]Read from MH i2c: E2 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 0E 00 [18:05:14]MH_I2C_Read... [18:05:14]Read from MH i2c: E2 0E 00 35 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A1 [18:05:14]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:05:14]wFMCommunicate OK [18:05:14]SAM_PROTO_GetShiftState done [18:05:14]FM_GetShiftState done [18:05:14]req_shift_opened done [18:05:14]requested_item shift.open_date is exist - process it [18:05:14]req_shift_open_date [18:05:14]req_shift_open_date done [18:05:14]produce_requested_data done [18:05:14]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63360,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:05:14]process_action_free close_receipt [18:05:14]json_value_free [18:05:14]json_value_free done [18:05:14]process_json_proto returns [18:05:14]Send response to host [18:05:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63360,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:05:14]free response buf [18:05:14]execute_script done [18:05:14]execute_script returns [18:05:14]free content buf [18:05:14]Sock 10.Close socket [18:05:14]Sock 10.Thread stoped [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:49]accept exits with 7 [18:13:49]New connection [18:13:49]New thread 3066490212 created [18:13:49]Thread 3066633572 joined [18:13:49]Waiting for new connection... [18:13:49] Sock 7.Parse request [18:13:49]Sock 7.Check first char [18:13:49]Sock 7.First char is OK [18:13:49]request: POST /json_proto HTTP/1.0 [18:13:49]Method: POST [18:13:49]URL: /json_proto [18:13:49]Method is POST - this is cgi request [18:13:49]url: /json_proto [18:13:49]query_string will be loaded in cgi processing [18:13:49]execute_cgi json_proto POST (null) [18:13:49]execute_cgi path=json_proto method=POST [18:13:49]POST find Content-Length [18:13:49]Host: 172.17.42.132:8080 [18:13:49]Content-Length: 619 [18:13:49]Content-Type: application/json [18:13:49] [18:13:49]POST finish read [18:13:49]Found Content-Length = 619 [18:13:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47671", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:49]execute_script... [18:13:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47671", "tax_sys" : 0, "items" : [ { "code": "48745536", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston SS Caster+", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:49]POST & json_proto [18:13:49]process_json_proto [18:13:49]json parsed OK: [18:13:49]protocol is kg_v1.0 [18:13:49]action value=close_receipt [18:13:49]process_action close_receipt [18:13:49]cmd_close_receipt [18:13:49]MH_GetDate [18:13:49]Write to MH i2c: F0 00 00 36 05 2A [18:13:49]Write i2c OK [18:13:49]MH_I2C_Read... [18:13:49]Read from MH i2c: F0 [18:13:49]MH_I2C_Read... [18:13:49]Read from MH i2c: F0 09 00 [18:13:49]MH_I2C_Read... [18:13:49]Read from MH i2c: F0 09 00 36 05 00 DE 3C 19 67 4C DF 56 66 B4 [18:13:49]GetLastDocTimeStamp 1729706711 [18:13:49]current date 1729707230 [18:13:49]FM_GetShiftState [18:13:49]SAM_PROTO_GetShiftState [18:13:49]wFMCommunicate request_size=4 [18:13:49]MH_SAM_APDU [18:13:49]CAPDU: 80 13 01 00 [18:13:49]Write to MH i2c: E2 08 00 37 05 80 13 01 00 00 00 00 00 B9 [18:13:49]Write i2c OK [18:13:49]MH_I2C_Read... [18:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:49]Read from MH i2c: E2 [18:13:49]MH_I2C_Read... [18:13:49]Read from MH i2c: E2 0E 00 [18:13:49]MH_I2C_Read... [18:13:49]Read from MH i2c: E2 0E 00 37 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A3 [18:13:49]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:13:49]wFMCommunicate OK [18:13:49]SAM_PROTO_GetShiftState done [18:13:49]FM_GetShiftState done [18:13:49]opened in 1729642527 [18:13:49]opened+sec_in_day 1729728927 [18:13:49]quantity*price = 14700 [18:13:49]sum+1 = 14701 [18:13:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 НСП 1% : 1.30 НДС 12% : 15.61 Наличными: 147.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 23.10.2024 18:13 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63361 ФПД: 129595101949924 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181350&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63361&fm=129595101949924&tin=02508201610067®Number=0000000000091619&sum=14700 0 [18:13:50]StoreToDocumentArchive [18:13:50]shift 546 fd 63361 [18:13:50]save to /storage/0546/doc_00063361 [18:13:50]save last doc name /storage/0546/doc_00063361 to /storage/kkm_last_doc_name [18:13:50]save OK [18:13:50]Clear old archive folders... [18:13:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [18:13:50]tlvbuf is 00B22510 [18:13:50]SAM_PROTO_ClearQueue [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 09 00 00 [18:13:50]Write to MH i2c: E2 08 00 44 05 80 09 00 00 00 00 00 00 BB [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 44 05 00 90 00 BD [18:13:50]RAPDU: 90 00 [18:13:50]wFMCommunicate OK [18:13:50]SAM_PROTO_ClearQueue done [18:13:50]KKMCreateOFDPacket [18:13:50]OFDProtocolAddRootSTLVToBuf [18:13:50]FM_MakeSignedData [18:13:50]FM_MakeSignedData [18:13:50]SAM_PROTO_SignData [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 0D 01 02 [18:13:50]Write to MH i2c: E2 08 00 45 05 80 0D 01 02 00 00 00 00 C3 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 45 05 00 90 00 BE [18:13:50]RAPDU: 90 00 [18:13:50]wFMCommunicate OK [18:13:50]wFMCommunicate request_size=255 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 3C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [18:13:50]Write to MH i2c: E2 02 01 46 05 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 3C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 91 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 46 05 00 90 00 BF [18:13:50]RAPDU: 90 00 [18:13:50]wFMCommunicate OK [18:13:50]wFMCommunicate request_size=31 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 81 F7 00 00 35 04 06 00 75 DD B6 04 2F E4 [18:13:50]Write to MH i2c: E2 22 00 47 05 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 81 F7 00 00 35 04 06 00 75 DD B6 04 2F E4 00 00 8E [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 03 00 47 05 00 90 00 C0 [18:13:50]RAPDU: 90 00 [18:13:50]wFMCommunicate OK [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 0D 03 02 [18:13:50]Write to MH i2c: E2 08 00 48 05 80 0D 03 02 00 00 00 00 C8 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0B 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0B 00 48 05 00 85 71 07 56 EA 1C C8 A7 90 00 91 [18:13:50]RAPDU: 85 71 07 56 EA 1C C8 A7 90 00 [18:13:50]wFMCommunicate OK [18:13:50]SAM_PROTO_SignData done [18:13:50]FM_MakeSignedData done [18:13:50]CreateOFDProtocolMessage [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 11 00 00 [18:13:50]Write to MH i2c: E2 08 00 49 05 80 11 00 00 00 00 00 00 C8 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:51]Read from MH i2c: E2 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 17 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: E2 17 00 49 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 21 [18:13:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:13:51]wFMCommunicate OK [18:13:51]CreateOFDProtocolMessage done [18:13:51]OFDSenderStorePacket 63361 [18:13:51]StoreOFDPacket docnum=63361 [18:13:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 DD 82 1C 01 6B 52 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 3C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 81 F7 00 00 35 04 06 00 75 DD B6 04 2F E4 85 71 07 56 EA 1C C8 A7 [18:13:51]CheckFolder [18:13:51]dirname=/storage/ofd_packets [18:13:51]CheckFolder done [18:13:51]ProducePacketName [18:13:51]name=ofd_packets/00063361 [18:13:51]NVStorageSaveData ofd_packets/00063361 [18:13:51]File name is /storage/ofd_packets/00063361 [18:13:51]Write 322 bytes [18:13:51]NVStorageSaveData done [18:13:51]OFDSenderStorePacket done [18:13:51]KKMCreateOFDPacket done [18:13:51]NVStorageSaveData kkm_last_timestamp [18:13:51]File name is /storage/kkm_last_timestamp [18:13:51]Write 4 bytes [18:13:51]NVStorageSaveData done [18:13:51]ExternCall_PrintAddStr [18:13:51]wPrintStart [18:13:51]Write to MH i2c: 01 00 00 4A 05 4F [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 07 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 07 00 4A 05 00 00 00 00 00 FF 0F 64 [18:13:51]RasterBufferAndPrint [18:13:51]line Счет N : (3)47671 [18:13:51]line ИНН: 02508201610067 [18:13:51]line Контрольно-Кассовый Чек [18:13:51]line ПРОДАЖА [18:13:51]line Товар: 48745536 [18:13:51]line Сигареты Winston SS Caster+ [18:13:51]line 1.000 * 147.00 [18:13:51]line = 147.00 [18:13:51]line НДС 12% НСП 1% [18:13:51]line > о реализуемом товаре [18:13:51]line ИТОГО: 147.00 [18:13:51]line НСП 1% : 1.30 [18:13:51]line НДС 12% : 15.61 [18:13:51]line Наличными: 147.00 [18:13:51]line Безнал.: 0.00 [18:13:51]line Место: АЗС № 86 "Партнер Нефть" [18:13:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:13:51]line СНО: Общий режим [18:13:51]line Чек 90 23.10.2024 18:13 [18:13:51]line Смена: 546 ФФД: 1.0 [18:13:51]line ЗНМ: 0300000154 [18:13:51]line РНМ: 0000000000091619 [18:13:51]line Версия ККМ: 001 [18:13:51]line ФМ: 0000000000874676 [18:13:51]line ФД: 63361 [18:13:51]line ФПД: 129595101949924 [18:13:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T181350&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63361&fm=129595101949924&tin=02508201610067®Number=0000000000091619&sum=14700 [18:13:51]line 0 [18:13:51]written 0, free lines is 4095 [18:13:51]OFD Sender: Processing packet 63361 [packets to send 232, broken 231] [18:13:51]ProducePacketName [18:13:51]name=ofd_packets/00063361 [18:13:51]OFD Sender: To server: pG, [18:13:51]CommunicateWithHost lk.salyk.kg:30040 [18:13:51]ConnectInit lk.salyk.kg [18:13:51]Connected sock=10 [18:13:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 DD 82 1C 01 6B 52 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 35 33 36 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 53 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 39 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 39 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 06 00 00 00 00 07 04 06 00 6C 39 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 DE 3C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 81 F7 00 00 35 04 06 00 75 DD B6 04 2F E4 85 71 07 56 EA 1C C8 A7 [18:13:51]Write to MH i2c: 01 00 00 72 05 77 [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 07 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 15 0D A0 [18:13:51]RasterBufferAndPrint [18:13:51]line [18:13:51]line [18:13:51]line [18:13:51]line [18:13:51]line [18:13:51]written 0, free lines is 3356 [18:13:51]MH_Cut [18:13:51]Write to MH i2c: D1 01 00 79 05 01 50 [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: D1 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: D1 01 00 [18:13:51]MH_I2C_Read... [18:13:51]Read from MH i2c: D1 01 00 79 05 00 4F [18:13:51]Write to MH i2c: 01 00 00 7A 05 7F [18:13:51]Write i2c OK [18:13:51]MH_I2C_Read... [18:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 85 9D 47 00 90 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 81 F7 00 00 F4 03 04 00 D5 E6 18 67 B6 04 01 00 00 4E 73 4A 4C 28 AF 1D 47 [18:13:51]CommunicateWithHost err = 0 [18:13:51]CheckOFDResponse [18:13:51]1017 (14) - 77093643461234 [18:13:51]1041 (16) - 0000000000874676 [18:13:51]1040 (4) - 63361 [18:13:51]1012 (4) - 23.10.2024 12:06 [18:13:51]1206 (1) - 0 [18:13:51]OFD Sender: Remove packet 63361 [18:13:51]ProducePacketName [18:13:51]name=ofd_packets/00063361 [18:13:51]NVStorageDeleteData [18:13:52]*** Cut start [18:13:52]*** Partial cut [18:13:52]*** CUTSNS_PIN = 1 [18:13:52]OFD Sender: No OFD packet to send [18:13:52]*** CUTSNS_PIN = 0 [18:13:52]*** Brake cut motor [18:13:52]Read from MH i2c: 01 [18:13:52]MH_I2C_Read... [18:13:52]*** Stop cut motor [18:13:52]*** Cut end [18:13:52]Read from MH i2c: 01 07 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: 01 07 00 7A 05 00 00 00 00 00 FF 0F 94 [18:13:52]process_action close_receipt done [18:13:52]requested_data is exist [18:13:52]produce_requested_data [18:13:52]requested_item fm.sn is exist - process it [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 11 00 00 [18:13:52]Write to MH i2c: E2 08 00 7B 05 80 11 00 00 00 00 00 00 FA [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 17 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 17 00 7B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 53 [18:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:13:52]wFMCommunicate OK [18:13:52]requested_item fd.num is exist - process it [18:13:52]SAM_PROTO_GetFieldsCounters [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 13 00 00 [18:13:52]Write to MH i2c: E2 08 00 7C 05 80 13 00 00 00 00 00 00 FD [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 62 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 62 00 7C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 81 F7 00 00 0E 04 04 00 22 02 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 CF [18:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 81 F7 00 00 0E 04 04 00 22 02 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 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_GetFieldsCounters done [18:13:52]requested_item shift.num is exist - process it [18:13:52]requested_item shift.opened is exist - process it [18:13:52]req_shift_opened [18:13:52]FM_GetShiftState [18:13:52]SAM_PROTO_GetShiftState [18:13:52]wFMCommunicate request_size=4 [18:13:52]MH_SAM_APDU [18:13:52]CAPDU: 80 13 01 00 [18:13:52]Write to MH i2c: E2 08 00 7D 05 80 13 01 00 00 00 00 00 FF [18:13:52]Write i2c OK [18:13:52]MH_I2C_Read... [18:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:52]Read from MH i2c: E2 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 0E 00 [18:13:52]MH_I2C_Read... [18:13:52]Read from MH i2c: E2 0E 00 7D 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 E9 [18:13:52]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:13:52]wFMCommunicate OK [18:13:52]SAM_PROTO_GetShiftState done [18:13:52]FM_GetShiftState done [18:13:52]req_shift_opened done [18:13:52]requested_item shift.open_date is exist - process it [18:13:52]req_shift_open_date [18:13:52]req_shift_open_date done [18:13:52]produce_requested_data done [18:13:52]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63361,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:13:52]process_action_free close_receipt [18:13:52]json_value_free [18:13:52]json_value_free done [18:13:52]process_json_proto returns [18:13:52]Send response to host [18:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63361,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:13:52]free response buf [18:13:52]execute_script done [18:13:52]execute_script returns [18:13:52]free content buf [18:13:52]Sock 7.Close socket [18:13:52]Sock 7.Thread stoped [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:55]accept exits with 9 [18:27:55]New connection [18:27:55]New thread 3066633572 created [18:27:55]Thread 3066490212 joined [18:27:55]Waiting for new connection... [18:27:55] Sock 9.Parse request [18:27:55]Sock 9.Check first char [18:27:55]Sock 9.First char is OK [18:27:55]request: POST /json_proto HTTP/1.0 [18:27:55]Method: POST [18:27:55]URL: /json_proto [18:27:55]Method is POST - this is cgi request [18:27:55]url: /json_proto [18:27:55]query_string will be loaded in cgi processing [18:27:55]execute_cgi json_proto POST (null) [18:27:55]execute_cgi path=json_proto method=POST [18:27:55]POST find Content-Length [18:27:55]Host: 172.17.42.132:8080 [18:27:55]Content-Length: 1047 [18:27:55]Content-Type: application/json [18:27:55] [18:27:55]POST finish read [18:27:55]Found Content-Length = 1047 [18:27:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47672", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 48.57, "quantity" : 1.000, "sum" : 48.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 177.42 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:55]execute_script... [18:27:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47672", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 128.85, "quantity" : 1.000, "sum" : 128.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030017", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439", "price" : 48.57, "quantity" : 1.000, "sum" : 48.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 177.42 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:55]POST & json_proto [18:27:55]process_json_proto [18:27:55]json parsed OK: [18:27:55]protocol is kg_v1.0 [18:27:55]action value=close_receipt [18:27:55]process_action close_receipt [18:27:55]cmd_close_receipt [18:27:55]MH_GetDate [18:27:55]Write to MH i2c: F0 00 00 7E 05 72 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 09 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: F0 09 00 7E 05 00 2C 40 19 67 4C DF 56 66 4E [18:27:55]GetLastDocTimeStamp 1729707230 [18:27:55]current date 1729708076 [18:27:55]FM_GetShiftState [18:27:55]SAM_PROTO_GetShiftState [18:27:55]wFMCommunicate request_size=4 [18:27:55]MH_SAM_APDU [18:27:55]CAPDU: 80 13 01 00 [18:27:55]Write to MH i2c: E2 08 00 7F 05 80 13 01 00 00 00 00 00 01 [18:27:55]Write i2c OK [18:27:55]MH_I2C_Read... [18:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:55]Read from MH i2c: E2 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0E 00 [18:27:55]MH_I2C_Read... [18:27:55]Read from MH i2c: E2 0E 00 7F 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 EB [18:27:55]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:27:55]wFMCommunicate OK [18:27:55]SAM_PROTO_GetShiftState done [18:27:55]FM_GetShiftState done [18:27:55]opened in 1729642527 [18:27:55]opened+sec_in_day 1729728927 [18:27:55]quantity*price = 12885 [18:27:55]sum+1 = 12886 [18:27:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030017 Курут классический 1.000 * 48.57 = 48.57 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 177.42 НСП 1% : 1.57 НДС 12% : 18.84 Наличными: 0.00 Безнал.: 177.42 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 23.10.2024 18:27 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63362 ФПД: 142515705620461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182756&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63362&fm=142515705620461&tin=02508201610067®Number=0000000000091619&sum=17742 0 [18:27:56]StoreToDocumentArchive [18:27:56]shift 546 fd 63362 [18:27:56]save to /storage/0546/doc_00063362 [18:27:56]save last doc name /storage/0546/doc_00063362 to /storage/kkm_last_doc_name [18:27:56]save OK [18:27:56]Clear old archive folders... [18:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=389 [18:27:56]tlvbuf is 00AFB7D0 [18:27:56]SAM_PROTO_ClearQueue [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 09 00 00 [18:27:56]Write to MH i2c: E2 08 00 8C 05 80 09 00 00 00 00 00 00 03 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 8C 05 00 90 00 05 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]SAM_PROTO_ClearQueue done [18:27:56]KKMCreateOFDPacket [18:27:56]OFDProtocolAddRootSTLVToBuf [18:27:56]FM_MakeSignedData [18:27:56]FM_MakeSignedData [18:27:56]SAM_PROTO_SignData [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 01 02 [18:27:56]Write to MH i2c: E2 08 00 8D 05 80 0D 01 02 00 00 00 00 0B [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 8D 05 00 90 00 06 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]wFMCommunicate request_size=255 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 12 00 00 00 00 13 04 06 00 F9 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [18:27:56]Write to MH i2c: E2 02 01 8E 05 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 12 00 00 00 00 13 04 06 00 F9 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 20 [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 03 00 8E 05 00 90 00 07 [18:27:56]RAPDU: 90 00 [18:27:56]wFMCommunicate OK [18:27:56]wFMCommunicate request_size=148 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2C 40 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F7 00 00 35 04 06 00 81 9E 06 02 27 ED [18:27:56]Write to MH i2c: E2 97 00 8F 05 80 0D 02 02 8F 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2C 40 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F7 00 00 35 04 06 00 81 9E 06 02 27 ED 00 00 13 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 03 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 03 00 8F 05 00 90 00 08 [18:27:57]RAPDU: 90 00 [18:27:57]wFMCommunicate OK [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 0D 03 02 [18:27:57]Write to MH i2c: E2 08 00 90 05 80 0D 03 02 00 00 00 00 10 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 0B 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 0B 00 90 05 00 C6 19 C6 86 7E B3 86 01 90 00 F4 [18:27:57]RAPDU: C6 19 C6 86 7E B3 86 01 90 00 [18:27:57]wFMCommunicate OK [18:27:57]SAM_PROTO_SignData done [18:27:57]FM_MakeSignedData done [18:27:57]CreateOFDProtocolMessage [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 11 00 00 [18:27:57]Write to MH i2c: E2 08 00 91 05 80 11 00 00 00 00 00 00 10 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 17 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 17 00 91 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 69 [18:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:27:57]wFMCommunicate OK [18:27:57]CreateOFDProtocolMessage done [18:27:57]OFDSenderStorePacket 63362 [18:27:57]StoreOFDPacket docnum=63362 [18:27:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 99 01 00 00 C2 E9 91 01 14 54 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 12 00 00 00 00 13 04 06 00 F9 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2C 40 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F7 00 00 35 04 06 00 81 9E 06 02 27 ED C6 19 C6 86 7E B3 86 01 [18:27:57]CheckFolder [18:27:57]dirname=/storage/ofd_packets [18:27:57]CheckFolder done [18:27:57]ProducePacketName [18:27:57]name=ofd_packets/00063362 [18:27:57]NVStorageSaveData ofd_packets/00063362 [18:27:57]File name is /storage/ofd_packets/00063362 [18:27:57]Write 439 bytes [18:27:57]NVStorageSaveData done [18:27:57]OFDSenderStorePacket done [18:27:57]KKMCreateOFDPacket done [18:27:57]NVStorageSaveData kkm_last_timestamp [18:27:57]File name is /storage/kkm_last_timestamp [18:27:57]Write 4 bytes [18:27:57]NVStorageSaveData done [18:27:57]ExternCall_PrintAddStr [18:27:57]wPrintStart [18:27:57]Write to MH i2c: 01 00 00 92 05 97 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 07 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 FF 0F AC [18:27:57]RasterBufferAndPrint [18:27:57]line Счет N : (3)47672 [18:27:57]line ИНН: 02508201610067 [18:27:57]line Контрольно-Кассовый Чек [18:27:57]line ПРОДАЖА [18:27:57]line Товар: 2000036220012 [18:27:57]line Кофе Капучино XL(GABB TRADE) [18:27:57]line 1.000 * 128.85 [18:27:57]line = 128.85 [18:27:57]line НДС 12% НСП 1% [18:27:57]line > о реализуемом товаре [18:27:57]line Товар: 4700026030017 [18:27:57]line Курут классический [18:27:57]line 1.000 * 48.57 [18:27:57]line = 48.57 [18:27:57]line НДС 12% НСП 1% [18:27:57]line > о реализуемом товаре [18:27:57]line ИТОГО: 177.42 [18:27:57]line НСП 1% : 1.57 [18:27:57]line НДС 12% : 18.84 [18:27:57]line Наличными: 0.00 [18:27:57]line Безнал.: 177.42 [18:27:57]line Место: АЗС № 86 "Партнер Нефть" [18:27:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:27:57]line СНО: Общий режим [18:27:57]line Чек 91 23.10.2024 18:27 [18:27:57]line Смена: 546 ФФД: 1.0 [18:27:57]line ЗНМ: 0300000154 [18:27:57]line РНМ: 0000000000091619 [18:27:57]line Версия ККМ: 001 [18:27:57]line Платежная система: Mbank [18:27:57]line ФМ: 0000000000874676 [18:27:57]line ФД: 63362 [18:27:57]line ФПД: 142515705620461 [18:27:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T182756&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63362&fm=142515705620461&tin=02508201610067®Number=0000000000091619&sum=17742 [18:27:57]line 0 [18:27:57]OFD Sender: Processing packet 63362 [packets to send 232, broken 231] [18:27:57]ProducePacketName [18:27:57]name=ofd_packets/00063362 [18:27:57]OFD Sender: To server: pG, [18:27:57]CommunicateWithHost lk.salyk.kg:30040 [18:27:57]ConnectInit lk.salyk.kg [18:27:57]written 0, free lines is 4095 [18:27:57]Connected sock=10 [18:27:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 99 01 00 00 C2 E9 91 01 14 54 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 55 32 00 00 00 00 13 04 06 00 55 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 31 37 06 04 23 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F9 12 00 00 00 00 13 04 06 00 F9 12 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 2C 40 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F7 00 00 35 04 06 00 81 9E 06 02 27 ED C6 19 C6 86 7E B3 86 01 [18:27:58]Write to MH i2c: 01 00 00 C2 05 C7 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 07 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 07 00 C2 05 00 00 00 00 00 C0 0C 9A [18:27:58]RasterBufferAndPrint [18:27:58]line [18:27:58]line [18:27:58]line [18:27:58]line [18:27:58]line [18:27:58]written 0, free lines is 3272 [18:27:58]MH_Cut [18:27:58]Write to MH i2c: D1 01 00 C9 05 01 A0 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: D1 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: D1 01 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: D1 01 00 C9 05 00 9F [18:27:58]Write to MH i2c: 01 00 00 CA 05 CF [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 41 50 47 00 F9 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 82 F7 00 00 F4 03 04 00 23 EA 18 67 B6 04 01 00 00 FD D6 80 13 77 E4 B4 15 [18:27:58]CommunicateWithHost err = 0 [18:27:58]CheckOFDResponse [18:27:58]1017 (14) - 77093643461234 [18:27:58]1041 (16) - 0000000000874676 [18:27:58]1040 (4) - 63362 [18:27:58]1012 (4) - 23.10.2024 12:20 [18:27:58]1206 (1) - 0 [18:27:58]OFD Sender: Remove packet 63362 [18:27:58]ProducePacketName [18:27:58]name=ofd_packets/00063362 [18:27:58]NVStorageDeleteData [18:27:58]OFD Sender: No OFD packet to send [18:27:58]*** Cut start [18:27:58]*** Partial cut [18:27:58]*** CUTSNS_PIN = 1 [18:27:58]*** CUTSNS_PIN = 0 [18:27:59]*** Brake cut motor [18:27:59]Read from MH i2c: 01 [18:27:59]MH_I2C_Read... [18:27:59]*** Stop cut motor [18:27:59]*** Cut end [18:27:59]Read from MH i2c: 01 07 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [18:27:59]process_action close_receipt done [18:27:59]requested_data is exist [18:27:59]produce_requested_data [18:27:59]requested_item fm.sn is exist - process it [18:27:59]wFMCommunicate request_size=4 [18:27:59]MH_SAM_APDU [18:27:59]CAPDU: 80 11 00 00 [18:27:59]Write to MH i2c: E2 08 00 CB 05 80 11 00 00 00 00 00 00 4A [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:59]Read from MH i2c: E2 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 17 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 17 00 CB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A3 [18:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:27:59]wFMCommunicate OK [18:27:59]requested_item fd.num is exist - process it [18:27:59]SAM_PROTO_GetFieldsCounters [18:27:59]wFMCommunicate request_size=4 [18:27:59]MH_SAM_APDU [18:27:59]CAPDU: 80 13 00 00 [18:27:59]Write to MH i2c: E2 08 00 CC 05 80 13 00 00 00 00 00 00 4D [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:59]Read from MH i2c: E2 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 62 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 62 00 CC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 82 F7 00 00 0E 04 04 00 22 02 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 23 [18:27:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 82 F7 00 00 0E 04 04 00 22 02 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 [18:27:59]wFMCommunicate OK [18:27:59]SAM_PROTO_GetFieldsCounters done [18:27:59]requested_item shift.num is exist - process it [18:27:59]requested_item shift.opened is exist - process it [18:27:59]req_shift_opened [18:27:59]FM_GetShiftState [18:27:59]SAM_PROTO_GetShiftState [18:27:59]wFMCommunicate request_size=4 [18:27:59]MH_SAM_APDU [18:27:59]CAPDU: 80 13 01 00 [18:27:59]Write to MH i2c: E2 08 00 CD 05 80 13 01 00 00 00 00 00 4F [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 [18:27:59]MH_I2C_Read... [18:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:59]Read from MH i2c: E2 0E 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: E2 0E 00 CD 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 39 [18:27:59]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:27:59]wFMCommunicate OK [18:27:59]SAM_PROTO_GetShiftState done [18:27:59]FM_GetShiftState done [18:27:59]req_shift_opened done [18:27:59]requested_item shift.open_date is exist - process it [18:27:59]req_shift_open_date [18:27:59]req_shift_open_date done [18:27:59]produce_requested_data done [18:27:59]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63362,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:27:59]process_action_free close_receipt [18:27:59]json_value_free [18:27:59]json_value_free done [18:27:59]process_json_proto returns [18:27:59]Send response to host [18:27:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63362,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:27:59]free response buf [18:27:59]execute_script done [18:27:59]execute_script returns [18:27:59]free content buf [18:27:59]Sock 9.Close socket [18:27:59]Sock 9.Thread stoped [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:29]OFD Sender: No OFD packet to send [18:30:34]OFD Sender: No OFD packet to send [18:30:39]OFD Sender: No OFD packet to send [18:30:44]OFD Sender: No OFD packet to send [18:30:49]OFD Sender: No OFD packet to send [18:30:54]OFD Sender: No OFD packet to send [18:30:59]OFD Sender: No OFD packet to send [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:39]accept exits with 7 [18:48:39]New connection [18:48:39]New thread 3066490212 created [18:48:39]Thread 3066633572 joined [18:48:39]Waiting for new connection... [18:48:39] Sock 7.Parse request [18:48:39]Sock 7.Check first char [18:48:39]Sock 7.First char is OK [18:48:39]request: POST /json_proto HTTP/1.0 [18:48:39]Method: POST [18:48:39]URL: /json_proto [18:48:39]Method is POST - this is cgi request [18:48:39]url: /json_proto [18:48:39]query_string will be loaded in cgi processing [18:48:39]execute_cgi json_proto POST (null) [18:48:39]execute_cgi path=json_proto method=POST [18:48:39]POST find Content-Length [18:48:39]Host: 172.17.42.132:8080 [18:48:39]Content-Length: 1827 [18:48:39]Content-Type: application/json [18:48:39] [18:48:39]POST finish read [18:48:39]Found Content-Length = 1827 [18:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47673", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 697.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:39]execute_script... [18:48: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 : (3)47673", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015235333", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 350\u0433", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 697.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:40]POST & json_proto [18:48:40]process_json_proto [18:48:40]json parsed OK: [18:48:40]protocol is kg_v1.0 [18:48:40]action value=close_receipt [18:48:40]process_action close_receipt [18:48:40]cmd_close_receipt [18:48:40]MH_GetDate [18:48:40]Write to MH i2c: F0 00 00 CE 05 C2 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: F0 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: F0 09 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: F0 09 00 CE 05 00 09 45 19 67 4C DF 56 66 80 [18:48:40]GetLastDocTimeStamp 1729708076 [18:48:40]current date 1729709321 [18:48:40]FM_GetShiftState [18:48:40]SAM_PROTO_GetShiftState [18:48:40]wFMCommunicate request_size=4 [18:48:40]MH_SAM_APDU [18:48:40]CAPDU: 80 13 01 00 [18:48:40]Write to MH i2c: E2 08 00 CF 05 80 13 01 00 00 00 00 00 51 [18:48:40]Write i2c OK [18:48:40]MH_I2C_Read... [18:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:40]Read from MH i2c: E2 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 0E 00 [18:48:40]MH_I2C_Read... [18:48:40]Read from MH i2c: E2 0E 00 CF 05 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3B [18:48:40]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:48:40]wFMCommunicate OK [18:48:40]SAM_PROTO_GetShiftState done [18:48:40]FM_GetShiftState done [18:48:40]opened in 1729642527 [18:48:40]opened+sec_in_day 1729728927 [18:48:40]quantity*price = 8400 [18:48:40]sum+1 = 8401 [18:48:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 2.000 * 130.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015235333 Пряники Яшкино с вареной сгущенкой 350г 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 697.00 НСП 1% : 6.16 НДС 12% : 74.01 Наличными: 697.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 23.10.2024 18:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63363 ФПД: 242828569033556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63363&fm=242828569033556&tin=02508201610067®Number=0000000000091619&sum=69700 0 [18:48:41]StoreToDocumentArchive [18:48:41]shift 546 fd 63363 [18:48:41]save to /storage/0546/doc_00063363 [18:48:41]save last doc name /storage/0546/doc_00063363 to /storage/kkm_last_doc_name [18:48:41]save OK [18:48:41]Clear old archive folders... [18:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=760 [18:48:41]tlvbuf is 00AFD470 [18:48:41]SAM_PROTO_ClearQueue [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 09 00 00 [18:48:41]Write to MH i2c: E2 08 00 DC 05 80 09 00 00 00 00 00 00 53 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [18:48:41]RAPDU: 90 00 [18:48:41]wFMCommunicate OK [18:48:41]SAM_PROTO_ClearQueue done [18:48:41]KKMCreateOFDPacket [18:48:41]OFDProtocolAddRootSTLVToBuf [18:48:41]FM_MakeSignedData [18:48:41]FM_MakeSignedData [18:48:41]SAM_PROTO_SignData [18:48:41]wFMCommunicate request_size=4 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 0D 01 02 [18:48:41]Write to MH i2c: E2 08 00 DD 05 80 0D 01 02 00 00 00 00 5B [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 DD 05 00 90 00 56 [18:48:41]RAPDU: 90 00 [18:48:41]wFMCommunicate OK [18:48:41]wFMCommunicate request_size=255 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 0D 02 02 FA 03 00 F8 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 [18:48:41]Write to MH i2c: E2 02 01 DE 05 80 0D 02 02 FA 00 03 00 F8 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 00 00 82 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:41]Read from MH i2c: E2 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 [18:48:41]MH_I2C_Read... [18:48:41]Read from MH i2c: E2 03 00 DE 05 00 90 00 57 [18:48:41]RAPDU: 90 00 [18:48:41]wFMCommunicate OK [18:48:41]wFMCommunicate request_size=255 [18:48:41]MH_SAM_APDU [18:48:41]CAPDU: 80 0D 02 02 FA 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 [18:48:41]Write to MH i2c: E2 02 01 DF 05 80 0D 02 02 FA 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 00 00 04 [18:48:41]Write i2c OK [18:48:41]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 DF 05 00 90 00 58 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=255 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 02 02 FA 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 10 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 1C 00 00 00 00 07 04 06 00 44 10 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 09 45 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 [18:48:42]Write to MH i2c: E2 02 01 E0 05 80 0D 02 02 FA 00 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 10 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 1C 00 00 00 00 07 04 06 00 44 10 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 09 45 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 00 00 FF [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 E0 05 00 90 00 59 [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=19 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 02 02 0E 83 F7 00 00 35 04 06 00 DC D9 EE 99 3B 54 [18:48:42]Write to MH i2c: E2 16 00 E1 05 80 0D 02 02 0E 00 83 F7 00 00 35 04 06 00 DC D9 EE 99 3B 54 00 00 00 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [18:48:42]RAPDU: 90 00 [18:48:42]wFMCommunicate OK [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 0D 03 02 [18:48:42]Write to MH i2c: E2 08 00 E2 05 80 0D 03 02 00 00 00 00 62 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 0B 00 E2 05 00 80 78 2E 0D 26 34 55 21 90 00 66 [18:48:42]RAPDU: 80 78 2E 0D 26 34 55 21 90 00 [18:48:42]wFMCommunicate OK [18:48:42]SAM_PROTO_SignData done [18:48:42]FM_MakeSignedData done [18:48:42]CreateOFDProtocolMessage [18:48:42]wFMCommunicate request_size=4 [18:48:42]MH_SAM_APDU [18:48:42]CAPDU: 80 11 00 00 [18:48:42]Write to MH i2c: E2 08 00 E3 05 80 11 00 00 00 00 00 00 62 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:42]Read from MH i2c: E2 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 17 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: E2 17 00 E3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BB [18:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:48:42]wFMCommunicate OK [18:48:42]CreateOFDProtocolMessage done [18:48:42]OFDSenderStorePacket 63363 [18:48:42]StoreOFDPacket docnum=63363 [18:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0C 03 00 00 3A 8A 04 03 38 47 5A 03 01 00 03 00 F8 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 10 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 1C 00 00 00 00 07 04 06 00 44 10 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 09 45 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 83 F7 00 00 35 04 06 00 DC D9 EE 99 3B 54 80 78 2E 0D 26 34 55 21 [18:48:42]CheckFolder [18:48:42]dirname=/storage/ofd_packets [18:48:42]CheckFolder done [18:48:42]ProducePacketName [18:48:42]name=ofd_packets/00063363 [18:48:42]NVStorageSaveData ofd_packets/00063363 [18:48:42]File name is /storage/ofd_packets/00063363 [18:48:42]Write 810 bytes [18:48:42]NVStorageSaveData done [18:48:42]OFDSenderStorePacket done [18:48:42]KKMCreateOFDPacket done [18:48:42]NVStorageSaveData kkm_last_timestamp [18:48:42]File name is /storage/kkm_last_timestamp [18:48:42]Write 4 bytes [18:48:42]NVStorageSaveData done [18:48:42]ExternCall_PrintAddStr [18:48:42]wPrintStart [18:48:42]Write to MH i2c: 01 00 00 E4 05 E9 [18:48:42]Write i2c OK [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 [18:48:42]MH_I2C_Read... [18:48:42]Read from MH i2c: 01 07 00 E4 05 00 00 00 00 00 FF 0F FE [18:48:42]RasterBufferAndPrint [18:48:42]line Счет N : (3)47673 [18:48:42]line ИНН: 02508201610067 [18:48:42]line Контрольно-Кассовый Чек [18:48:42]line ПРОДАЖА [18:48:42]line Товар: 4870001571030 [18:48:42]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [18:48:42]line 1.000 * 84.00 [18:48:42]line = 84.00 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line Товар: 4700000160204 [18:48:42]line Вода Легенда 1,5л [18:48:42]line 1.000 * 60.00 [18:48:42]line = 60.00 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line Товар: 48743570 [18:48:42]line Сигареты Winston XStyle Blue [18:48:42]line 1.000 * 144.00 [18:48:42]line = 144.00 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line Товар: 2000036220012 [18:48:42]line Кофе Капучино XL(GABB TRADE) [18:48:42]line 2.000 * 130.00 [18:48:42]line = 260.00 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line Товар: 4607015235333 [18:48:42]line Пряники Яшкино с вареной сгущенкой 350г [18:48:42]line 1.000 * 149.00 [18:48:42]line = 149.00 [18:48:42]line НДС 12% НСП 1% [18:48:42]line > о реализуемом товаре [18:48:42]line ИТОГО: 697.00 [18:48:42]line НСП 1% : 6.16 [18:48:42]line НДС 12% : 74.01 [18:48:42]line Наличными: 697.00 [18:48:42]line Безнал.: 0.00 [18:48:42]line Место: АЗС № 86 "Партнер Нефть" [18:48:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:48:42]line СНО: Общий режим [18:48:42]line Чек 92 23.10.2024 18:48 [18:48:42]line Смена: 546 ФФД: 1.0 [18:48:42]line ЗНМ: 0300000154 [18:48:42]line РНМ: 0000000000091619 [18:48:42]line Версия ККМ: 001 [18:48:42]line ФМ: 0000000000874676 [18:48:42]line ФД: 63363 [18:48:42]line ФПД: 242828569033556 [18:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T184841&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63363&fm=242828569033556&tin=02508201610067®Number=0000000000091619&sum=69700 [18:48:42]line 0 [18:48:42]written 0, free lines is 4095 [18:48:42]OFD Sender: Processing packet 63363 [packets to send 232, broken 231] [18:48:42]ProducePacketName [18:48:42]name=ofd_packets/00063363 [18:48:42]OFD Sender: To server: pG, [18:48:42]CommunicateWithHost lk.salyk.kg:30040 [18:48:42]ConnectInit lk.salyk.kg [18:48:43]Connected sock=10 [18:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0C 03 00 00 3A 8A 04 03 38 47 5A 03 01 00 03 00 F8 02 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 33 33 33 06 04 46 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 10 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 68 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 1C 00 00 00 00 07 04 06 00 44 10 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 09 45 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 83 F7 00 00 35 04 06 00 DC D9 EE 99 3B 54 80 78 2E 0D 26 34 55 21 [18:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 58 A7 47 00 52 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 83 F7 00 00 F4 03 04 00 01 EF 18 67 B6 04 01 00 00 88 3E AB B2 14 D9 42 EB [18:48:43]CommunicateWithHost err = 0 [18:48:43]CheckOFDResponse [18:48:43]1017 (14) - 77093643461234 [18:48:43]1041 (16) - 0000000000874676 [18:48:43]1040 (4) - 63363 [18:48:43]1012 (4) - 23.10.2024 12:41 [18:48:43]1206 (1) - 0 [18:48:43]OFD Sender: Remove packet 63363 [18:48:43]ProducePacketName [18:48:43]name=ofd_packets/00063363 [18:48:43]NVStorageDeleteData [18:48:43]Write to MH i2c: 01 00 00 27 06 2D [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 D9 0B 18 [18:48:43]RasterBufferAndPrint [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]line [18:48:43]written 0, free lines is 3045 [18:48:43]MH_Cut [18:48:43]Write to MH i2c: D1 01 00 2E 06 01 06 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 [18:48:43]MH_I2C_Read... [18:48:43]Read from MH i2c: D1 01 00 2E 06 00 05 [18:48:43]Write to MH i2c: 01 00 00 2F 06 35 [18:48:43]Write i2c OK [18:48:43]MH_I2C_Read... [18:48:44]OFD Sender: No OFD packet to send [18:48:44]*** Cut start [18:48:44]*** Partial cut [18:48:44]*** CUTSNS_PIN = 1 [18:48:44]*** CUTSNS_PIN = 0 [18:48:44]*** Brake cut motor [18:48:45]Read from MH i2c: 01 [18:48:45]MH_I2C_Read... [18:48:45]*** Stop cut motor [18:48:45]*** Cut end [18:48:45]Read from MH i2c: 01 07 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [18:48:45]process_action close_receipt done [18:48:45]requested_data is exist [18:48:45]produce_requested_data [18:48:45]requested_item fm.sn is exist - process it [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 11 00 00 [18:48:45]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 09 [18:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:48:45]wFMCommunicate OK [18:48:45]requested_item fd.num is exist - process it [18:48:45]SAM_PROTO_GetFieldsCounters [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 00 00 [18:48:45]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 62 00 31 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 83 F7 00 00 0E 04 04 00 22 02 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 8D [18:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 83 F7 00 00 0E 04 04 00 22 02 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 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetFieldsCounters done [18:48:45]requested_item shift.num is exist - process it [18:48:45]requested_item shift.opened is exist - process it [18:48:45]req_shift_opened [18:48:45]FM_GetShiftState [18:48:45]SAM_PROTO_GetShiftState [18:48:45]wFMCommunicate request_size=4 [18:48:45]MH_SAM_APDU [18:48:45]CAPDU: 80 13 01 00 [18:48:45]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [18:48:45]Write i2c OK [18:48:45]MH_I2C_Read... [18:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:45]Read from MH i2c: E2 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 [18:48:45]MH_I2C_Read... [18:48:45]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 9F [18:48:45]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:48:45]wFMCommunicate OK [18:48:45]SAM_PROTO_GetShiftState done [18:48:45]FM_GetShiftState done [18:48:45]req_shift_opened done [18:48:45]requested_item shift.open_date is exist - process it [18:48:45]req_shift_open_date [18:48:45]req_shift_open_date done [18:48:45]produce_requested_data done [18:48:45]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63363,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:48:45]process_action_free close_receipt [18:48:45]json_value_free [18:48:45]json_value_free done [18:48:45]process_json_proto returns [18:48:45]Send response to host [18:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63363,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:48:45]free response buf [18:48:45]execute_script done [18:48:45]execute_script returns [18:48:45]free content buf [18:48:45]Sock 7.Close socket [18:48:45]Sock 7.Thread stoped [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:01]int [18:50:01]Write to MH i2c: 01 00 00 33 06 39 [18:50:01]*** FLAG_PRN_PAP1 set [18:50:01]Write i2c OK [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 [18:50:01]MH_I2C_Read... [18:50:01]Read from MH i2c: 01 07 00 33 06 00 01 00 00 00 FF 0F 4F [18:50:01]state=0 [18:50:01]No paper [18:50:04]OFD Sender: No OFD packet to send [18:50:05]int [18:50:05]Write to MH i2c: 01 00 00 34 06 3A [18:50:05]*** FLAG_PRN_PAP2 set [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 07 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 07 00 34 06 00 03 00 00 00 FF 0F 52 [18:50:05]state=0 [18:50:05]No paper [18:50:05]Cover opened [18:50:05]int [18:50:05]Write to MH i2c: 01 00 00 35 06 3B [18:50:05]*** FLAG_PRN_PAP2 reset [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 07 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: 01 07 00 35 06 00 01 00 00 00 FF 0F 51 [18:50:05]state=3 [18:50:05]No paper [18:50:05]Cover closed [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]int [18:50:34]Write to MH i2c: 01 00 00 36 06 3C [18:50:34]*** FLAG_PRN_PAP1 reset [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: 01 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: 01 07 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [18:50:34]state=0 [18:50:34]OFD Sender: No OFD packet to send [18:50:37]int [18:50:37]Write to MH i2c: 01 00 00 37 06 3D [18:50:37]*** FLAG_PRN_PAP1 set [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 37 06 00 01 00 00 00 FF 0F 53 [18:50:37]state=0 [18:50:37]No paper [18:50:37]int [18:50:37]Write to MH i2c: 01 00 00 38 06 3E [18:50:37]*** FLAG_PRN_PAP2 set [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 38 06 00 03 00 00 00 FF 0F 56 [18:50:37]state=0 [18:50:37]No paper [18:50:37]Cover opened [18:50:37]int [18:50:37]Write to MH i2c: 01 00 00 39 06 3F [18:50:37]*** FLAG_PRN_PAP2 reset [18:50:37]Write i2c OK [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 [18:50:37]MH_I2C_Read... [18:50:37]Read from MH i2c: 01 07 00 39 06 00 01 00 00 00 FF 0F 55 [18:50:37]state=3 [18:50:37]No paper [18:50:37]Cover closed [18:50:39]OFD Sender: No OFD packet to send [18:50:40]int [18:50:40]Write to MH i2c: 01 00 00 3A 06 40 [18:50:40]*** FLAG_PRN_PAP1 reset [18:50:40]Write i2c OK [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 07 00 [18:50:40]MH_I2C_Read... [18:50:40]Read from MH i2c: 01 07 00 3A 06 00 00 00 00 00 FF 0F 55 [18:50:40]state=0 [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:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:39]accept exits with 9 [18:59:39]New connection [18:59:39]New thread 3066633572 created [18:59:39]Thread 3066490212 joined [18:59:39]Waiting for new connection... [18:59:39] Sock 9.Parse request [18:59:39]Sock 9.Check first char [18:59:39]Sock 9.First char is OK [18:59:39]request: POST /json_proto HTTP/1.0 [18:59:39]Method: POST [18:59:39]URL: /json_proto [18:59:39]Method is POST - this is cgi request [18:59:39]url: /json_proto [18:59:39]query_string will be loaded in cgi processing [18:59:39]execute_cgi json_proto POST (null) [18:59:39]execute_cgi path=json_proto method=POST [18:59:39]POST find Content-Length [18:59:39]Host: 172.17.42.132:8080 [18:59:39]Content-Length: 910 [18:59:39]Content-Type: application/json [18:59:39] [18:59:39]POST finish read [18:59:39]Found Content-Length = 910 [18:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47674", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:39]execute_script... [18: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 : (3)47674", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214621", "name": "\u0420/\u0436 mentos \u0442\u0443\u0442\u0442\u0438-\u0444\u0440\u0443\u0442\u0442\u0438 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 208.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:39]POST & json_proto [18:59:39]process_json_proto [18:59:39]json parsed OK: [18:59:39]protocol is kg_v1.0 [18:59:39]action value=close_receipt [18:59:39]process_action close_receipt [18:59:39]cmd_close_receipt [18:59:39]MH_GetDate [18:59:39]Write to MH i2c: F0 00 00 3B 06 30 [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 09 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: F0 09 00 3B 06 00 9C 47 19 67 4C DF 56 66 83 [18:59:39]GetLastDocTimeStamp 1729709321 [18:59:39]current date 1729709980 [18:59:39]FM_GetShiftState [18:59:39]SAM_PROTO_GetShiftState [18:59:39]wFMCommunicate request_size=4 [18:59:39]MH_SAM_APDU [18:59:39]CAPDU: 80 13 01 00 [18:59:39]Write to MH i2c: E2 08 00 3C 06 80 13 01 00 00 00 00 00 BF [18:59:39]Write i2c OK [18:59:39]MH_I2C_Read... [18:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:39]Read from MH i2c: E2 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 [18:59:39]MH_I2C_Read... [18:59:39]Read from MH i2c: E2 0E 00 3C 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 A9 [18:59:39]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:59:39]wFMCommunicate OK [18:59:39]SAM_PROTO_GetShiftState done [18:59:39]FM_GetShiftState done [18:59:39]opened in 1729642527 [18:59:39]opened+sec_in_day 1729728927 [18:59:39]quantity*price = 15900 [18:59:39]sum+1 = 15901 [18:59:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214621 Р/ж mentos тутти-фрутти ролл 16г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 208.00 НСП 1% : 1.84 НДС 12% : 22.08 Наличными: 208.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 23.10.2024 18:59 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63364 ФПД: 66256410169428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185940&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63364&fm=66256410169428&tin=02508201610067®Number=0000000000091619&sum=20800 0 [18:59:40]StoreToDocumentArchive [18:59:40]shift 546 fd 63364 [18:59:40]save to /storage/0546/doc_00063364 [18:59:40]save last doc name /storage/0546/doc_00063364 to /storage/kkm_last_doc_name [18:59:40]save OK [18:59:40]Clear old archive folders... [18:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=391 [18:59:40]tlvbuf is 00B8EFF0 [18:59:40]SAM_PROTO_ClearQueue [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 09 00 00 [18:59:40]Write to MH i2c: E2 08 00 49 06 80 09 00 00 00 00 00 00 C1 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 49 06 00 90 00 C3 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_ClearQueue done [18:59:40]KKMCreateOFDPacket [18:59:40]OFDProtocolAddRootSTLVToBuf [18:59:40]FM_MakeSignedData [18:59:40]FM_MakeSignedData [18:59:40]SAM_PROTO_SignData [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 01 02 [18:59:40]Write to MH i2c: E2 08 00 4A 06 80 0D 01 02 00 00 00 00 C9 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=255 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [18:59:40]Write to MH i2c: E2 02 01 4B 06 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 FC [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=150 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9C 47 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F7 00 00 35 04 06 00 3C 42 85 CA D0 54 [18:59:40]Write to MH i2c: E2 99 00 4C 06 80 0D 02 02 91 00 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9C 47 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F7 00 00 35 04 06 00 3C 42 85 CA D0 54 00 00 65 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [18:59:40]RAPDU: 90 00 [18:59:40]wFMCommunicate OK [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 0D 03 02 [18:59:40]Write to MH i2c: E2 08 00 4D 06 80 0D 03 02 00 00 00 00 CE [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0B 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0B 00 4D 06 00 AD 5B 8E 2B AF 12 7D 58 90 00 26 [18:59:40]RAPDU: AD 5B 8E 2B AF 12 7D 58 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_SignData done [18:59:40]FM_MakeSignedData done [18:59:40]CreateOFDProtocolMessage [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 11 00 00 [18:59:40]Write to MH i2c: E2 08 00 4E 06 80 11 00 00 00 00 00 00 CE [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 4E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [18:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:59:40]wFMCommunicate OK [18:59:40]CreateOFDProtocolMessage done [18:59:40]OFDSenderStorePacket 63364 [18:59:40]StoreOFDPacket docnum=63364 [18:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9B 01 00 00 8E 4A 93 01 7F F9 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9C 47 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F7 00 00 35 04 06 00 3C 42 85 CA D0 54 AD 5B 8E 2B AF 12 7D 58 [18:59:40]CheckFolder [18:59:40]dirname=/storage/ofd_packets [18:59:40]CheckFolder done [18:59:40]ProducePacketName [18:59:40]name=ofd_packets/00063364 [18:59:40]NVStorageSaveData ofd_packets/00063364 [18:59:40]File name is /storage/ofd_packets/00063364 [18:59:40]Write 441 bytes [18:59:40]NVStorageSaveData done [18:59:40]OFDSenderStorePacket done [18:59:40]KKMCreateOFDPacket done [18:59:40]NVStorageSaveData kkm_last_timestamp [18:59:40]File name is /storage/kkm_last_timestamp [18:59:40]Write 4 bytes [18:59:40]NVStorageSaveData done [18:59:40]ExternCall_PrintAddStr [18:59:40]wPrintStart [18:59:40]Write to MH i2c: 01 00 00 4F 06 55 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 4F 06 00 00 00 00 00 FF 0F 6A [18:59:40]RasterBufferAndPrint [18:59:40]line Счет N : (3)47674 [18:59:40]line ИНН: 02508201610067 [18:59:40]line Контрольно-Кассовый Чек [18:59:40]line ПРОДАЖА [18:59:40]line Товар: 4640030091645 [18:59:40]line Сигареты ESSE Exchange M [18:59:40]line 1.000 * 159.00 [18:59:40]line = 159.00 [18:59:40]line НДС 12% НСП 1% [18:59:40]line > о реализуемом товаре [18:59:41]line Товар: 46214621 [18:59:41]line Р/ж mentos тутти-фрутти ролл 16г [18:59:41]line 1.000 * 49.00 [18:59:41]line = 49.00 [18:59:41]line НДС 12% НСП 1% [18:59:41]line > о реализуемом товаре [18:59:41]line ИТОГО: 208.00 [18:59:41]line НСП 1% : 1.84 [18:59:41]line НДС 12% : 22.08 [18:59:41]line Наличными: 208.00 [18:59:41]line Безнал.: 0.00 [18:59:41]line Место: АЗС № 86 "Партнер Нефть" [18:59:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:59:41]line СНО: Общий режим [18:59:41]line Чек 93 23.10.2024 18:59 [18:59:41]line Смена: 546 ФФД: 1.0 [18:59:41]line ЗНМ: 0300000154 [18:59:41]line РНМ: 0000000000091619 [18:59:41]line Версия ККМ: 001 [18:59:41]line ФМ: 0000000000874676 [18:59:41]line ФД: 63364 [18:59:41]line ФПД: 66256410169428 [18:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T185940&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63364&fm=66256410169428&tin=02508201610067®Number=0000000000091619&sum=20800 [18:59:41]line 0 [18:59:41]OFD Sender: Processing packet 63364 [packets to send 232, broken 231] [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00063364 [18:59:41]OFD Sender: To server: pG, [18:59:41]CommunicateWithHost lk.salyk.kg:30040 [18:59:41]ConnectInit lk.salyk.kg [18:59:41]written 0, free lines is 4095 [18:59:41]Connected sock=10 [18:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9B 01 00 00 8E 4A 93 01 7F F9 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 32 31 34 36 32 31 06 04 32 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D1 82 D1 83 D1 82 D1 82 D0 B8 2D D1 84 D1 80 D1 83 D1 82 D1 82 D0 B8 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 08 00 00 00 00 07 04 06 00 40 51 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9C 47 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F7 00 00 35 04 06 00 3C 42 85 CA D0 54 AD 5B 8E 2B AF 12 7D 58 [18:59:41]Write to MH i2c: 01 00 00 7E 06 84 [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 B7 0C 4E [18:59:41]RasterBufferAndPrint [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]line [18:59:41]written 0, free lines is 3263 [18:59:41]MH_Cut [18:59:41]Write to MH i2c: D1 01 00 85 06 01 5D [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 [18:59:41]MH_I2C_Read... [18:59:41]Read from MH i2c: D1 01 00 85 06 00 5C [18:59:41]Write to MH i2c: 01 00 00 86 06 8C [18:59:41]Write i2c OK [18:59:41]MH_I2C_Read... [18:59:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 82 99 47 00 F4 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 84 F7 00 00 F4 03 04 00 93 F1 18 67 B6 04 01 00 00 E4 68 5B 1F A1 D4 94 E2 [18:59:41]CommunicateWithHost err = 0 [18:59:41]CheckOFDResponse [18:59:41]1017 (14) - 77093643461234 [18:59:41]1041 (16) - 0000000000874676 [18:59:41]1040 (4) - 63364 [18:59:41]1012 (4) - 23.10.2024 12:52 [18:59:41]1206 (1) - 0 [18:59:41]OFD Sender: Remove packet 63364 [18:59:41]ProducePacketName [18:59:41]name=ofd_packets/00063364 [18:59:41]NVStorageDeleteData [18:59:42]OFD Sender: No OFD packet to send [18:59:42]*** Cut start [18:59:42]*** Partial cut [18:59:42]*** CUTSNS_PIN = 1 [18:59:42]*** CUTSNS_PIN = 0 [18:59:42]*** Brake cut motor [18:59:43]Read from MH i2c: 01 [18:59:43]MH_I2C_Read... [18:59:43]*** Stop cut motor [18:59:43]*** Cut end [18:59:43]Read from MH i2c: 01 07 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [18:59:43]process_action close_receipt done [18:59:43]requested_data is exist [18:59:43]produce_requested_data [18:59:43]requested_item fm.sn is exist - process it [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 11 00 00 [18:59:43]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 60 [18:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [18:59:43]wFMCommunicate OK [18:59:43]requested_item fd.num is exist - process it [18:59:43]SAM_PROTO_GetFieldsCounters [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 00 00 [18:59:43]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 84 F7 00 00 0E 04 04 00 22 02 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 E8 [18:59:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 84 F7 00 00 0E 04 04 00 22 02 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 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetFieldsCounters done [18:59:43]requested_item shift.num is exist - process it [18:59:43]requested_item shift.opened is exist - process it [18:59:43]req_shift_opened [18:59:43]FM_GetShiftState [18:59:43]SAM_PROTO_GetShiftState [18:59:43]wFMCommunicate request_size=4 [18:59:43]MH_SAM_APDU [18:59:43]CAPDU: 80 13 01 00 [18:59:43]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [18:59:43]Write i2c OK [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 [18:59:43]MH_I2C_Read... [18:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:43]Read from MH i2c: E2 0E 00 [18:59:43]MH_I2C_Read... [18:59:43]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F6 [18:59:43]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [18:59:43]wFMCommunicate OK [18:59:43]SAM_PROTO_GetShiftState done [18:59:43]FM_GetShiftState done [18:59:43]req_shift_opened done [18:59:43]requested_item shift.open_date is exist - process it [18:59:43]req_shift_open_date [18:59:43]req_shift_open_date done [18:59:43]produce_requested_data done [18:59:43]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63364,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [18:59:43]process_action_free close_receipt [18:59:43]json_value_free [18:59:43]json_value_free done [18:59:43]process_json_proto returns [18:59:43]Send response to host [18:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63364,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [18:59:43]free response buf [18:59:43]execute_script done [18:59:43]execute_script returns [18:59:43]free content buf [18:59:43]Sock 9.Close socket [18:59:43]Sock 9.Thread stoped [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:42]OFD Sender: No OFD packet to send [19:00:47]OFD Sender: No OFD packet to send [19:00:52]OFD Sender: No OFD packet to send [19:00:57]OFD Sender: No OFD packet to send [19:01:02]OFD Sender: No OFD packet to send [19:01:07]OFD Sender: No OFD packet to send [19:01:12]OFD Sender: No OFD packet to send [19:01:17]OFD Sender: No OFD packet to send [19:01:22]OFD Sender: No OFD packet to send [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:33]OFD Sender: No OFD packet to send [19:07:38]OFD Sender: No OFD packet to send [19:07:43]OFD Sender: No OFD packet to send [19:07:48]OFD Sender: No OFD packet to send [19:07:53]OFD Sender: No OFD packet to send [19:07:58]OFD Sender: No OFD packet to send [19:08:03]OFD Sender: No OFD packet to send [19:08:08]OFD Sender: No OFD packet to send [19:08:13]OFD Sender: No OFD packet to send [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11: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:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:21]accept exits with 7 [19:21:21]New connection [19:21:21]New thread 3066490212 created [19:21:21]Thread 3066633572 joined [19:21:21]Waiting for new connection... [19:21:21] Sock 7.Parse request [19:21:21]Sock 7.Check first char [19:21:21]Sock 7.First char is OK [19:21:21]request: POST /json_proto HTTP/1.0 [19:21:21]Method: POST [19:21:21]URL: /json_proto [19:21:21]Method is POST - this is cgi request [19:21:21]url: /json_proto [19:21:21]query_string will be loaded in cgi processing [19:21:21]execute_cgi json_proto POST (null) [19:21:21]execute_cgi path=json_proto method=POST [19:21:21]POST find Content-Length [19:21:21]Host: 172.17.42.132:8080 [19:21:21]Content-Length: 723 [19:21:21]Content-Type: application/json [19:21:21] [19:21:21]POST finish read [19:21:21]Found Content-Length = 723 [19:21:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47675", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:21]execute_script... [19:21:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47675", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:21]POST & json_proto [19:21:21]process_json_proto [19:21:21]json parsed OK: [19:21:21]protocol is kg_v1.0 [19:21:21]action value=close_receipt [19:21:21]process_action close_receipt [19:21:21]cmd_close_receipt [19:21:21]MH_GetDate [19:21:21]Write to MH i2c: F0 00 00 8A 06 7F [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 09 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: F0 09 00 8A 06 00 B3 4C 19 67 4C DF 56 66 EE [19:21:21]GetLastDocTimeStamp 1729709980 [19:21:21]current date 1729711283 [19:21:21]FM_GetShiftState [19:21:21]SAM_PROTO_GetShiftState [19:21:21]wFMCommunicate request_size=4 [19:21:21]MH_SAM_APDU [19:21:21]CAPDU: 80 13 01 00 [19:21:21]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [19:21:21]Write i2c OK [19:21:21]MH_I2C_Read... [19:21:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:21]Read from MH i2c: E2 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 [19:21:21]MH_I2C_Read... [19:21:21]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F8 [19:21:21]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [19:21:21]wFMCommunicate OK [19:21:21]SAM_PROTO_GetShiftState done [19:21:21]FM_GetShiftState done [19:21:21]opened in 1729642527 [19:21:21]opened+sec_in_day 1729728927 [19:21:21]quantity*price = 28500 [19:21:21]sum+1 = 28501 [19:21:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 23.10.2024 19:21 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63365 ФПД: 166499046380683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63365&fm=166499046380683&tin=02508201610067®Number=0000000000091619&sum=28500 0 [19:21:23]StoreToDocumentArchive [19:21:23]shift 546 fd 63365 [19:21:23]save to /storage/0546/doc_00063365 [19:21:23]save last doc name /storage/0546/doc_00063365 to /storage/kkm_last_doc_name [19:21:23]save OK [19:21:23]Clear old archive folders... [19:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:21:23]tlvbuf is 00B905F0 [19:21:23]SAM_PROTO_ClearQueue [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 09 00 00 [19:21:23]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_ClearQueue done [19:21:23]KKMCreateOFDPacket [19:21:23]OFDProtocolAddRootSTLVToBuf [19:21:23]FM_MakeSignedData [19:21:23]FM_MakeSignedData [19:21:23]SAM_PROTO_SignData [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 01 02 [19:21:23]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=255 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 B3 4C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 [19:21:23]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 B3 4C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 00 00 5C [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=63 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F7 00 00 35 04 06 00 97 6E 14 83 D4 8B [19:21:23]Write to MH i2c: E2 42 00 9B 06 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F7 00 00 35 04 06 00 97 6E 14 83 D4 8B 00 00 E3 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [19:21:23]RAPDU: 90 00 [19:21:23]wFMCommunicate OK [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 0D 03 02 [19:21:23]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0B 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 0B 00 9C 06 00 7A 0A B0 FB 0E 17 13 29 90 00 AE [19:21:23]RAPDU: 7A 0A B0 FB 0E 17 13 29 90 00 [19:21:23]wFMCommunicate OK [19:21:23]SAM_PROTO_SignData done [19:21:23]FM_MakeSignedData done [19:21:23]CreateOFDProtocolMessage [19:21:23]wFMCommunicate request_size=4 [19:21:23]MH_SAM_APDU [19:21:23]CAPDU: 80 11 00 00 [19:21:23]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:23]Read from MH i2c: E2 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 17 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 76 [19:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:21:23]wFMCommunicate OK [19:21:23]CreateOFDProtocolMessage done [19:21:23]OFDSenderStorePacket 63365 [19:21:23]StoreOFDPacket docnum=63365 [19:21:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 44 01 00 00 D2 47 3C 01 B4 00 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 B3 4C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F7 00 00 35 04 06 00 97 6E 14 83 D4 8B 7A 0A B0 FB 0E 17 13 29 [19:21:23]CheckFolder [19:21:23]dirname=/storage/ofd_packets [19:21:23]CheckFolder done [19:21:23]ProducePacketName [19:21:23]name=ofd_packets/00063365 [19:21:23]NVStorageSaveData ofd_packets/00063365 [19:21:23]File name is /storage/ofd_packets/00063365 [19:21:23]Write 354 bytes [19:21:23]NVStorageSaveData done [19:21:23]OFDSenderStorePacket done [19:21:23]KKMCreateOFDPacket done [19:21:23]NVStorageSaveData kkm_last_timestamp [19:21:23]File name is /storage/kkm_last_timestamp [19:21:23]Write 4 bytes [19:21:23]NVStorageSaveData done [19:21:23]ExternCall_PrintAddStr [19:21:23]wPrintStart [19:21:23]Write to MH i2c: 01 00 00 9E 06 A4 [19:21:23]Write i2c OK [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: 01 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: 01 07 00 [19:21:23]MH_I2C_Read... [19:21:23]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [19:21:23]RasterBufferAndPrint [19:21:23]line Счет N : (3)47675 [19:21:23]line ИНН: 02508201610067 [19:21:23]line Контрольно-Кассовый Чек [19:21:23]line ПРОДАЖА [19:21:23]line Товар: 8901086040022 [19:21:23]line Жидкость стеклоомывающая ПН -20 4,5л [19:21:23]line 1.000 * 285.00 [19:21:23]line = 285.00 [19:21:23]line НДС 12% НСП 1% [19:21:23]line > о реализуемом товаре [19:21:23]line ИТОГО: 285.00 [19:21:23]line НСП 1% : 2.52 [19:21:23]line НДС 12% : 30.26 [19:21:23]line Наличными: 285.00 [19:21:23]line Безнал.: 0.00 [19:21:23]line Место: АЗС № 86 "Партнер Нефть" [19:21:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:21:23]line СНО: Общий режим [19:21:23]line Чек 94 23.10.2024 19:21 [19:21:23]line Смена: 546 ФФД: 1.0 [19:21:23]line ЗНМ: 0300000154 [19:21:23]line РНМ: 0000000000091619 [19:21:23]line Версия ККМ: 001 [19:21:23]line ФМ: 0000000000874676 [19:21:23]line ФД: 63365 [19:21:23]line ФПД: 166499046380683 [19:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T192123&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63365&fm=166499046380683&tin=02508201610067®Number=0000000000091619&sum=28500 [19:21:24]line 0 [19:21:24]OFD Sender: Processing packet 63365 [packets to send 232, broken 231] [19:21:24]ProducePacketName [19:21:24]name=ofd_packets/00063365 [19:21:24]OFD Sender: To server: pG, [19:21:24]CommunicateWithHost lk.salyk.kg:30040 [19:21:24]ConnectInit lk.salyk.kg [19:21:24]written 0, free lines is 4095 [19:21:24]Connected sock=10 [19:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 44 01 00 00 D2 47 3C 01 B4 00 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 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 B3 4C 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F7 00 00 35 04 06 00 97 6E 14 83 D4 8B 7A 0A B0 FB 0E 17 13 29 [19:21:24]Write to MH i2c: 01 00 00 C7 06 CD [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: 01 07 00 C7 06 00 00 00 00 00 FD 0C DD [19:21:24]RasterBufferAndPrint [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]line [19:21:24]written 0, free lines is 3330 [19:21:24]MH_Cut [19:21:24]Write to MH i2c: D1 01 00 CE 06 01 A6 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 01 00 [19:21:24]MH_I2C_Read... [19:21:24]Read from MH i2c: D1 01 00 CE 06 00 A5 [19:21:24]Write to MH i2c: 01 00 00 CF 06 D5 [19:21:24]Write i2c OK [19:21:24]MH_I2C_Read... [19:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 2B 21 47 00 74 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 85 F7 00 00 F4 03 04 00 AA F6 18 67 B6 04 01 00 00 DD 10 22 5C F8 91 81 F3 [19:21:24]CommunicateWithHost err = 0 [19:21:24]CheckOFDResponse [19:21:24]1017 (14) - 77093643461234 [19:21:24]1041 (16) - 0000000000874676 [19:21:24]1040 (4) - 63365 [19:21:24]1012 (4) - 23.10.2024 13:14 [19:21:24]1206 (1) - 0 [19:21:24]OFD Sender: Remove packet 63365 [19:21:24]ProducePacketName [19:21:24]name=ofd_packets/00063365 [19:21:24]NVStorageDeleteData [19:21:25]OFD Sender: No OFD packet to send [19:21:25]*** Cut start [19:21:25]*** Partial cut [19:21:25]*** CUTSNS_PIN = 1 [19:21:25]*** CUTSNS_PIN = 0 [19:21:25]*** Brake cut motor [19:21:25]Read from MH i2c: 01 [19:21:25]MH_I2C_Read... [19:21:25]*** Stop cut motor [19:21:25]*** Cut end [19:21:25]Read from MH i2c: 01 07 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: 01 07 00 CF 06 00 00 00 00 00 FF 0F EA [19:21:25]process_action close_receipt done [19:21:25]requested_data is exist [19:21:25]produce_requested_data [19:21:25]requested_item fm.sn is exist - process it [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 11 00 00 [19:21:25]Write to MH i2c: E2 08 00 D0 06 80 11 00 00 00 00 00 00 50 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 17 00 D0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A9 [19:21:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:21:25]wFMCommunicate OK [19:21:25]requested_item fd.num is exist - process it [19:21:25]SAM_PROTO_GetFieldsCounters [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 00 00 [19:21:25]Write to MH i2c: E2 08 00 D1 06 80 13 00 00 00 00 00 00 53 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 62 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 62 00 D1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 85 F7 00 00 0E 04 04 00 22 02 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 35 [19:21:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 85 F7 00 00 0E 04 04 00 22 02 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 [19:21:25]wFMCommunicate OK [19:21:25]SAM_PROTO_GetFieldsCounters done [19:21:25]requested_item shift.num is exist - process it [19:21:25]requested_item shift.opened is exist - process it [19:21:25]req_shift_opened [19:21:25]FM_GetShiftState [19:21:25]SAM_PROTO_GetShiftState [19:21:25]wFMCommunicate request_size=4 [19:21:25]MH_SAM_APDU [19:21:25]CAPDU: 80 13 01 00 [19:21:25]Write to MH i2c: E2 08 00 D2 06 80 13 01 00 00 00 00 00 55 [19:21:25]Write i2c OK [19:21:25]MH_I2C_Read... [19:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:25]Read from MH i2c: E2 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 [19:21:25]MH_I2C_Read... [19:21:25]Read from MH i2c: E2 0E 00 D2 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3F [19:21:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [19:21:25]wFMCommunicate OK [19:21:25]SAM_PROTO_GetShiftState done [19:21:25]FM_GetShiftState done [19:21:25]req_shift_opened done [19:21:25]requested_item shift.open_date is exist - process it [19:21:25]req_shift_open_date [19:21:25]req_shift_open_date done [19:21:25]produce_requested_data done [19:21:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63365,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [19:21:25]process_action_free close_receipt [19:21:25]json_value_free [19:21:25]json_value_free done [19:21:25]process_json_proto returns [19:21:25]Send response to host [19:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63365,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [19:21:25]free response buf [19:21:25]execute_script done [19:21:25]execute_script returns [19:21:25]free content buf [19:21:25]Sock 7.Close socket [19:21:25]Sock 7.Thread stoped [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:11]OFD Sender: No OFD packet to send [19:34:16]OFD Sender: No OFD packet to send [19:34:21]OFD Sender: No OFD packet to send [19:34:26]OFD Sender: No OFD packet to send [19:34:31]OFD Sender: No OFD packet to send [19:34:36]OFD Sender: No OFD packet to send [19:34:41]OFD Sender: No OFD packet to send [19:34:46]OFD Sender: No OFD packet to send [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:02]OFD Sender: No OFD packet to send [19:48:07]OFD Sender: No OFD packet to send [19:48:12]OFD Sender: No OFD packet to send [19:48:17]OFD Sender: No OFD packet to send [19:48:22]OFD Sender: No OFD packet to send [19:48:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:41]accept exits with 9 [19:52:41]New connection [19:52:41]New thread 3066633572 created [19:52:41]Thread 3066490212 joined [19:52:41]Waiting for new connection... [19:52:41] Sock 9.Parse request [19:52:41]Sock 9.Check first char [19:52:41]Sock 9.First char is OK [19:52:41]request: POST /json_proto HTTP/1.0 [19:52:41]Method: POST [19:52:41]URL: /json_proto [19:52:41]Method is POST - this is cgi request [19:52:41]url: /json_proto [19:52:41]query_string will be loaded in cgi processing [19:52:41]execute_cgi json_proto POST (null) [19:52:41]execute_cgi path=json_proto method=POST [19:52:41]POST find Content-Length [19:52:41]Host: 172.17.42.132:8080 [19:52:41]Content-Length: 906 [19:52:41]Content-Type: application/json [19:52:41] [19:52:41]POST finish read [19:52:41]Found Content-Length = 906 [19:52:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47676", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:41]execute_script... [19:52:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47676", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:41]POST & json_proto [19:52:41]process_json_proto [19:52:41]json parsed OK: [19:52:41]protocol is kg_v1.0 [19:52:41]action value=close_receipt [19:52:41]process_action close_receipt [19:52:41]cmd_close_receipt [19:52:41]MH_GetDate [19:52:41]Write to MH i2c: F0 00 00 D3 06 C8 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 09 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: F0 09 00 D3 06 00 0B 54 19 67 4C DF 56 66 97 [19:52:41]GetLastDocTimeStamp 1729711283 [19:52:41]current date 1729713163 [19:52:41]FM_GetShiftState [19:52:41]SAM_PROTO_GetShiftState [19:52:41]wFMCommunicate request_size=4 [19:52:41]MH_SAM_APDU [19:52:41]CAPDU: 80 13 01 00 [19:52:41]Write to MH i2c: E2 08 00 D4 06 80 13 01 00 00 00 00 00 57 [19:52:41]Write i2c OK [19:52:41]MH_I2C_Read... [19:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:41]Read from MH i2c: E2 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 [19:52:41]MH_I2C_Read... [19:52:41]Read from MH i2c: E2 0E 00 D4 06 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 41 [19:52:41]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [19:52:41]wFMCommunicate OK [19:52:41]SAM_PROTO_GetShiftState done [19:52:41]FM_GetShiftState done [19:52:41]opened in 1729642527 [19:52:41]opened+sec_in_day 1729728927 [19:52:41]quantity*price = 14400 [19:52:41]sum+1 = 14401 [19:52:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010018 Чай хол Let`s Go! зел лим ПЭТ 0,5л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 194.00 НСП 1% : 1.71 НДС 12% : 20.60 Наличными: 194.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 23.10.2024 19:52 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63366 ФПД: 262715846092533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195243&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63366&fm=262715846092533&tin=02508201610067®Number=0000000000091619&sum=19400 0 [19:52:42]StoreToDocumentArchive [19:52:42]shift 546 fd 63366 [19:52:42]save to /storage/0546/doc_00063366 [19:52:42]save last doc name /storage/0546/doc_00063366 to /storage/kkm_last_doc_name [19:52:42]save OK [19:52:42]Clear old archive folders... [19:52:42]ProcessDocumentItem done err = 0, tmpTLVsize=395 [19:52:42]tlvbuf is 00B037D0 [19:52:42]SAM_PROTO_ClearQueue [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 09 00 00 [19:52:42]Write to MH i2c: E2 08 00 E1 06 80 09 00 00 00 00 00 00 59 [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 03 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [19:52:42]RAPDU: 90 00 [19:52:42]wFMCommunicate OK [19:52:42]SAM_PROTO_ClearQueue done [19:52:42]KKMCreateOFDPacket [19:52:42]OFDProtocolAddRootSTLVToBuf [19:52:42]FM_MakeSignedData [19:52:42]FM_MakeSignedData [19:52:42]SAM_PROTO_SignData [19:52:42]wFMCommunicate request_size=4 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 0D 01 02 [19:52:42]Write to MH i2c: E2 08 00 E2 06 80 0D 01 02 00 00 00 00 61 [19:52:42]Write i2c OK [19:52:42]MH_I2C_Read... [19:52:42]OFD Sender: No OFD packet to send [19:52:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:42]Read from MH i2c: E2 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 03 00 [19:52:42]MH_I2C_Read... [19:52:42]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [19:52:42]RAPDU: 90 00 [19:52:42]wFMCommunicate OK [19:52:42]wFMCommunicate request_size=255 [19:52:42]MH_SAM_APDU [19:52:42]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 [19:52:42]Write to MH i2c: E2 02 01 E3 06 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 00 00 65 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=154 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0B 54 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 86 F7 00 00 35 04 06 00 EE F0 4C AE E6 F5 [19:52:43]Write to MH i2c: E2 9D 00 E4 06 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0B 54 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 86 F7 00 00 35 04 06 00 EE F0 4C AE E6 F5 00 00 30 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [19:52:43]RAPDU: 90 00 [19:52:43]wFMCommunicate OK [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 0D 03 02 [19:52:43]Write to MH i2c: E2 08 00 E5 06 80 0D 03 02 00 00 00 00 66 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0B 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 0B 00 E5 06 00 7A E7 8E FC F7 78 53 9E 90 00 B2 [19:52:43]RAPDU: 7A E7 8E FC F7 78 53 9E 90 00 [19:52:43]wFMCommunicate OK [19:52:43]SAM_PROTO_SignData done [19:52:43]FM_MakeSignedData done [19:52:43]CreateOFDProtocolMessage [19:52:43]wFMCommunicate request_size=4 [19:52:43]MH_SAM_APDU [19:52:43]CAPDU: 80 11 00 00 [19:52:43]Write to MH i2c: E2 08 00 E6 06 80 11 00 00 00 00 00 00 66 [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:43]Read from MH i2c: E2 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 17 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: E2 17 00 E6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BF [19:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:52:43]wFMCommunicate OK [19:52:43]CreateOFDProtocolMessage done [19:52:43]OFDSenderStorePacket 63366 [19:52:43]StoreOFDPacket docnum=63366 [19:52:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9F 01 00 00 18 F3 97 01 F6 5F 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0B 54 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 86 F7 00 00 35 04 06 00 EE F0 4C AE E6 F5 7A E7 8E FC F7 78 53 9E [19:52:43]CheckFolder [19:52:43]dirname=/storage/ofd_packets [19:52:43]CheckFolder done [19:52:43]ProducePacketName [19:52:43]name=ofd_packets/00063366 [19:52:43]NVStorageSaveData ofd_packets/00063366 [19:52:43]File name is /storage/ofd_packets/00063366 [19:52:43]Write 445 bytes [19:52:43]NVStorageSaveData done [19:52:43]OFDSenderStorePacket done [19:52:43]KKMCreateOFDPacket done [19:52:43]NVStorageSaveData kkm_last_timestamp [19:52:43]File name is /storage/kkm_last_timestamp [19:52:43]Write 4 bytes [19:52:43]NVStorageSaveData done [19:52:43]ExternCall_PrintAddStr [19:52:43]wPrintStart [19:52:43]Write to MH i2c: 01 00 00 E7 06 ED [19:52:43]Write i2c OK [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 07 00 [19:52:43]MH_I2C_Read... [19:52:43]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 FF 0F 02 [19:52:43]RasterBufferAndPrint [19:52:43]line Счет N : (3)47676 [19:52:43]line ИНН: 02508201610067 [19:52:43]line Контрольно-Кассовый Чек [19:52:43]line ПРОДАЖА [19:52:43]line Товар: 48743570 [19:52:43]line Сигареты Winston XStyle Blue [19:52:43]line 1.000 * 144.00 [19:52:43]line = 144.00 [19:52:43]line НДС 12% НСП 1% [19:52:43]line > о реализуемом товаре [19:52:43]line Товар: 4700003010018 [19:52:43]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [19:52:43]line 1.000 * 50.00 [19:52:43]line = 50.00 [19:52:43]line НДС 12% НСП 1% [19:52:43]line > о реализуемом товаре [19:52:43]line ИТОГО: 194.00 [19:52:43]line НСП 1% : 1.71 [19:52:43]line НДС 12% : 20.60 [19:52:43]line Наличными: 194.00 [19:52:43]line Безнал.: 0.00 [19:52:43]line Место: АЗС № 86 "Партнер Нефть" [19:52:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:52:43]line СНО: Общий режим [19:52:43]line Чек 95 23.10.2024 19:52 [19:52:43]line Смена: 546 ФФД: 1.0 [19:52:43]line ЗНМ: 0300000154 [19:52:43]line РНМ: 0000000000091619 [19:52:43]line Версия ККМ: 001 [19:52:43]line ФМ: 0000000000874676 [19:52:43]line ФД: 63366 [19:52:43]line ФПД: 262715846092533 [19:52:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T195243&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63366&fm=262715846092533&tin=02508201610067®Number=0000000000091619&sum=19400 [19:52:43]line 0 [19:52:43]OFD Sender: Processing packet 63366 [packets to send 232, broken 231] [19:52:43]ProducePacketName [19:52:43]name=ofd_packets/00063366 [19:52:43]OFD Sender: To server: pG, [19:52:43]CommunicateWithHost lk.salyk.kg:30040 [19:52:43]ConnectInit lk.salyk.kg [19:52:43]written 0, free lines is 4095 [19:52:44]Connected sock=10 [19:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 9F 01 00 00 18 F3 97 01 F6 5F 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 0B 54 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 86 F7 00 00 35 04 06 00 EE F0 4C AE E6 F5 7A E7 8E FC F7 78 53 9E [19:52:44]Write to MH i2c: 01 00 00 16 07 1D [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 B6 0C E6 [19:52:44]RasterBufferAndPrint [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]line [19:52:44]written 0, free lines is 3262 [19:52:44]MH_Cut [19:52:44]Write to MH i2c: D1 01 00 1D 07 01 F6 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 01 00 [19:52:44]MH_I2C_Read... [19:52:44]Read from MH i2c: D1 01 00 1D 07 00 F5 [19:52:44]Write to MH i2c: 01 00 00 1E 07 25 [19:52:44]Write i2c OK [19:52:44]MH_I2C_Read... [19:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6D DC 47 00 FA 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 86 F7 00 00 F4 03 04 00 02 FE 18 67 B6 04 01 00 00 17 6B 69 E5 88 D1 51 7A [19:52:44]CommunicateWithHost err = 0 [19:52:44]CheckOFDResponse [19:52:44]1017 (14) - 77093643461234 [19:52:44]1041 (16) - 0000000000874676 [19:52:44]1040 (4) - 63366 [19:52:44]1012 (4) - 23.10.2024 13:45 [19:52:44]1206 (1) - 0 [19:52:44]OFD Sender: Remove packet 63366 [19:52:44]ProducePacketName [19:52:44]name=ofd_packets/00063366 [19:52:44]NVStorageDeleteData [19:52:44]OFD Sender: No OFD packet to send [19:52:45]*** Cut start [19:52:45]*** Partial cut [19:52:45]*** CUTSNS_PIN = 1 [19:52:45]*** CUTSNS_PIN = 0 [19:52:45]*** Brake cut motor [19:52:45]Read from MH i2c: 01 [19:52:45]MH_I2C_Read... [19:52:45]*** Stop cut motor [19:52:45]*** Cut end [19:52:45]Read from MH i2c: 01 07 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 FF 0F 3A [19:52:45]process_action close_receipt done [19:52:45]requested_data is exist [19:52:45]produce_requested_data [19:52:45]requested_item fm.sn is exist - process it [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 11 00 00 [19:52:45]Write to MH i2c: E2 08 00 1F 07 80 11 00 00 00 00 00 00 A0 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:45]Read from MH i2c: E2 17 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 17 00 1F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F9 [19:52:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [19:52:45]wFMCommunicate OK [19:52:45]requested_item fd.num is exist - process it [19:52:45]SAM_PROTO_GetFieldsCounters [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 00 00 [19:52:45]Write to MH i2c: E2 08 00 20 07 80 13 00 00 00 00 00 00 A3 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:45]Read from MH i2c: E2 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 [19:52:45]MH_I2C_Read... [19:52:45]Read from MH i2c: E2 62 00 20 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 86 F7 00 00 0E 04 04 00 22 02 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 89 [19:52:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 86 F7 00 00 0E 04 04 00 22 02 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 [19:52:45]wFMCommunicate OK [19:52:45]SAM_PROTO_GetFieldsCounters done [19:52:45]requested_item shift.num is exist - process it [19:52:45]requested_item shift.opened is exist - process it [19:52:45]req_shift_opened [19:52:45]FM_GetShiftState [19:52:45]SAM_PROTO_GetShiftState [19:52:45]wFMCommunicate request_size=4 [19:52:45]MH_SAM_APDU [19:52:45]CAPDU: 80 13 01 00 [19:52:45]Write to MH i2c: E2 08 00 21 07 80 13 01 00 00 00 00 00 A5 [19:52:45]Write i2c OK [19:52:45]MH_I2C_Read... [19:52:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:46]Read from MH i2c: E2 [19:52:46]MH_I2C_Read... [19:52:46]Read from MH i2c: E2 0E 00 [19:52:46]MH_I2C_Read... [19:52:46]Read from MH i2c: E2 0E 00 21 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 8F [19:52:46]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [19:52:46]wFMCommunicate OK [19:52:46]SAM_PROTO_GetShiftState done [19:52:46]FM_GetShiftState done [19:52:46]req_shift_opened done [19:52:46]requested_item shift.open_date is exist - process it [19:52:46]req_shift_open_date [19:52:46]req_shift_open_date done [19:52:46]produce_requested_data done [19:52:46]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63366,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [19:52:46]process_action_free close_receipt [19:52:46]json_value_free [19:52:46]json_value_free done [19:52:46]process_json_proto returns [19:52:46]Send response to host [19:52:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63366,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [19:52:46]free response buf [19:52:46]execute_script done [19:52:46]execute_script returns [19:52:46]free content buf [19:52:46]Sock 9.Close socket [19:52:46]Sock 9.Thread stoped [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:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]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:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14: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:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:14]accept exits with 7 [20:18:14]New connection [20:18:14]New thread 3066490212 created [20:18:14]Thread 3066633572 joined [20:18:14]Waiting for new connection... [20:18:14] Sock 7.Parse request [20:18:14]Sock 7.Check first char [20:18:14]Sock 7.First char is OK [20:18:14]request: POST /json_proto HTTP/1.0 [20:18:14]Method: POST [20:18:14]URL: /json_proto [20:18:14]Method is POST - this is cgi request [20:18:14]url: /json_proto [20:18:14]query_string will be loaded in cgi processing [20:18:14]execute_cgi json_proto POST (null) [20:18:14]execute_cgi path=json_proto method=POST [20:18:14]POST find Content-Length [20:18:14]Host: 172.17.42.132:8080 [20:18:14]Content-Length: 724 [20:18:14]Content-Type: application/json [20:18:14] [20:18:14]POST finish read [20:18:14]Found Content-Length = 724 [20:18:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47677", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:14]execute_script... [20:18:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47677", "tax_sys" : 0, "items" : [ { "code": "4870235681062", "name": "Grizzly \u0432\u043E\u043B\u043D\u0438\u0441\u0442\u044B\u0435 \u041A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 \u0441 \u0433\u043E\u0440\u0447\u0438\u0446\u0435\u0439 55", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:14]POST & json_proto [20:18:14]process_json_proto [20:18:14]json parsed OK: [20:18:14]protocol is kg_v1.0 [20:18:14]action value=close_receipt [20:18:14]process_action close_receipt [20:18:14]cmd_close_receipt [20:18:14]MH_GetDate [20:18:14]Write to MH i2c: F0 00 00 22 07 18 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: F0 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: F0 09 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: F0 09 00 22 07 00 08 5A 19 67 4C DF 56 66 EA [20:18:14]GetLastDocTimeStamp 1729713163 [20:18:14]current date 1729714696 [20:18:14]FM_GetShiftState [20:18:14]SAM_PROTO_GetShiftState [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 13 01 00 [20:18:14]Write to MH i2c: E2 08 00 23 07 80 13 01 00 00 00 00 00 A7 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0E 00 23 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 91 [20:18:14]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_GetShiftState done [20:18:14]FM_GetShiftState done [20:18:14]opened in 1729642527 [20:18:14]opened+sec_in_day 1729728927 [20:18:14]quantity*price = 9000 [20:18:14]sum+1 = 9001 [20:18:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 23.10.2024 20:18 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63367 ФПД: 80793654437747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201816&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63367&fm=80793654437747&tin=02508201610067®Number=0000000000091619&sum=9000 0 [20:18:15]StoreToDocumentArchive [20:18:15]shift 546 fd 63367 [20:18:15]save to /storage/0546/doc_00063367 [20:18:15]save last doc name /storage/0546/doc_00063367 to /storage/kkm_last_doc_name [20:18:15]save OK [20:18:15]Clear old archive folders... [20:18:15]ProcessDocumentItem done err = 0, tmpTLVsize=308 [20:18:15]tlvbuf is 00B21250 [20:18:15]SAM_PROTO_ClearQueue [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 09 00 00 [20:18:15]Write to MH i2c: E2 08 00 30 07 80 09 00 00 00 00 00 00 A9 [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 03 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [20:18:15]RAPDU: 90 00 [20:18:15]wFMCommunicate OK [20:18:15]SAM_PROTO_ClearQueue done [20:18:15]KKMCreateOFDPacket [20:18:15]OFDProtocolAddRootSTLVToBuf [20:18:15]FM_MakeSignedData [20:18:15]FM_MakeSignedData [20:18:15]SAM_PROTO_SignData [20:18:15]wFMCommunicate request_size=4 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 0D 01 02 [20:18:15]Write to MH i2c: E2 08 00 31 07 80 0D 01 02 00 00 00 00 B1 [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:15]Read from MH i2c: E2 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 03 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [20:18:15]RAPDU: 90 00 [20:18:15]wFMCommunicate OK [20:18:15]wFMCommunicate request_size=255 [20:18:15]MH_SAM_APDU [20:18:15]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 08 5A 19 67 0E 04 04 00 22 02 00 00 B9 [20:18:15]Write to MH i2c: E2 02 01 32 07 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 08 5A 19 67 0E 04 04 00 22 02 00 00 B9 00 00 69 [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [20:18:16]RAPDU: 90 00 [20:18:16]wFMCommunicate OK [20:18:16]wFMCommunicate request_size=67 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 87 F7 00 00 35 04 06 00 49 7B 3D 12 A7 73 [20:18:16]Write to MH i2c: E2 46 00 33 07 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 87 F7 00 00 35 04 06 00 49 7B 3D 12 A7 73 00 00 BE [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [20:18:16]RAPDU: 90 00 [20:18:16]wFMCommunicate OK [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 0D 03 02 [20:18:16]Write to MH i2c: E2 08 00 34 07 80 0D 03 02 00 00 00 00 B6 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0B 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0B 00 34 07 00 32 D1 9B 48 F6 D3 FC 13 90 00 75 [20:18:16]RAPDU: 32 D1 9B 48 F6 D3 FC 13 90 00 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_SignData done [20:18:16]FM_MakeSignedData done [20:18:16]CreateOFDProtocolMessage [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 11 00 00 [20:18:16]Write to MH i2c: E2 08 00 35 07 80 11 00 00 00 00 00 00 B6 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 17 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 17 00 35 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 0F [20:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:18:16]wFMCommunicate OK [20:18:16]CreateOFDProtocolMessage done [20:18:16]OFDSenderStorePacket 63367 [20:18:16]StoreOFDPacket docnum=63367 [20:18:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 48 01 00 00 F4 4C 40 01 DC 9C 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 08 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 87 F7 00 00 35 04 06 00 49 7B 3D 12 A7 73 32 D1 9B 48 F6 D3 FC 13 [20:18:16]CheckFolder [20:18:16]dirname=/storage/ofd_packets [20:18:16]CheckFolder done [20:18:16]ProducePacketName [20:18:16]name=ofd_packets/00063367 [20:18:16]NVStorageSaveData ofd_packets/00063367 [20:18:16]File name is /storage/ofd_packets/00063367 [20:18:16]Write 358 bytes [20:18:16]NVStorageSaveData done [20:18:16]OFDSenderStorePacket done [20:18:16]KKMCreateOFDPacket done [20:18:16]NVStorageSaveData kkm_last_timestamp [20:18:16]File name is /storage/kkm_last_timestamp [20:18:16]Write 4 bytes [20:18:16]NVStorageSaveData done [20:18:16]ExternCall_PrintAddStr [20:18:16]wPrintStart [20:18:16]Write to MH i2c: 01 00 00 36 07 3D [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 36 07 00 00 00 00 00 FF 0F 52 [20:18:16]RasterBufferAndPrint [20:18:16]line Счет N : (3)47677 [20:18:16]line ИНН: 02508201610067 [20:18:16]line Контрольно-Кассовый Чек [20:18:16]line ПРОДАЖА [20:18:16]line Товар: 4870235681062 [20:18:16]line Grizzly волнистые Колбаски с горчицей 55 [20:18:16]line 1.000 * 90.00 [20:18:16]line = 90.00 [20:18:16]line НДС 12% НСП 1% [20:18:16]line > о реализуемом товаре [20:18:16]line ИТОГО: 90.00 [20:18:16]line НСП 1% : 0.80 [20:18:16]line НДС 12% : 9.56 [20:18:16]line Наличными: 90.00 [20:18:16]line Безнал.: 0.00 [20:18:16]line Место: АЗС № 86 "Партнер Нефть" [20:18:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:18:16]line СНО: Общий режим [20:18:16]line Чек 96 23.10.2024 20:18 [20:18:16]line Смена: 546 ФФД: 1.0 [20:18:16]line ЗНМ: 0300000154 [20:18:16]line РНМ: 0000000000091619 [20:18:16]line Версия ККМ: 001 [20:18:16]line ФМ: 0000000000874676 [20:18:16]line ФД: 63367 [20:18:16]line ФПД: 80793654437747 [20:18:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201816&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63367&fm=80793654437747&tin=02508201610067®Number=0000000000091619&sum=9000 [20:18:16]line 0 [20:18:16]OFD Sender: Processing packet 63367 [packets to send 232, broken 231] [20:18:16]ProducePacketName [20:18:16]name=ofd_packets/00063367 [20:18:16]OFD Sender: To server: pG, [20:18:16]CommunicateWithHost lk.salyk.kg:30040 [20:18:16]ConnectInit lk.salyk.kg [20:18:16]written 0, free lines is 4095 [20:18:16]Connected sock=10 [20:18:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 48 01 00 00 F4 4C 40 01 DC 9C 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 30 36 32 06 04 42 00 47 72 69 7A 7A 6C 79 20 D0 B2 D0 BE D0 BB D0 BD D0 B8 D1 81 D1 82 D1 8B D0 B5 20 D0 9A D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 D1 81 20 D0 B3 D0 BE D1 80 D1 87 D0 B8 D1 86 D0 B5 D0 B9 20 35 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 08 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 87 F7 00 00 35 04 06 00 49 7B 3D 12 A7 73 32 D1 9B 48 F6 D3 FC 13 [20:18:16]Write to MH i2c: 01 00 00 5F 07 66 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 F4 0C 6D [20:18:16]RasterBufferAndPrint [20:18:16]line [20:18:16]line [20:18:16]line [20:18:16]line [20:18:16]line [20:18:16]written 0, free lines is 3322 [20:18:16]MH_Cut [20:18:16]Write to MH i2c: D1 01 00 66 07 01 3F [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: D1 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: D1 01 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: D1 01 00 66 07 00 3E [20:18:16]Write to MH i2c: 01 00 00 67 07 6E [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 0C AC 47 00 FB 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 38 37 34 36 37 36 10 04 04 00 87 F7 00 00 F4 03 04 00 FE 03 19 67 B6 04 01 00 00 FF 6A D4 AA E2 AF 66 90 [20:18:17]CommunicateWithHost err = 0 [20:18:17]CheckOFDResponse [20:18:17]1017 (14) - 77093643461234 [20:18:17]1041 (16) - 0000000000874676 [20:18:17]1040 (4) - 63367 [20:18:17]1012 (4) - 23.10.2024 14:11 [20:18:17]1206 (1) - 0 [20:18:17]OFD Sender: Remove packet 63367 [20:18:17]ProducePacketName [20:18:17]name=ofd_packets/00063367 [20:18:17]NVStorageDeleteData [20:18:17]OFD Sender: No OFD packet to send [20:18:17]*** Cut start [20:18:17]*** Partial cut [20:18:17]*** CUTSNS_PIN = 1 [20:18:17]*** CUTSNS_PIN = 0 [20:18:17]*** Brake cut motor [20:18:18]Read from MH i2c: 01 [20:18:18]MH_I2C_Read... [20:18:18]*** Stop cut motor [20:18:18]*** Cut end [20:18:18]Read from MH i2c: 01 07 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: 01 07 00 67 07 00 00 00 00 00 FF 0F 83 [20:18:18]process_action close_receipt done [20:18:18]requested_data is exist [20:18:18]produce_requested_data [20:18:18]requested_item fm.sn is exist - process it [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 11 00 00 [20:18:18]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 42 [20:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:18:18]wFMCommunicate OK [20:18:18]requested_item fd.num is exist - process it [20:18:18]SAM_PROTO_GetFieldsCounters [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 13 00 00 [20:18:18]Write to MH i2c: E2 08 00 69 07 80 13 00 00 00 00 00 00 EC [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 62 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 62 00 69 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 87 F7 00 00 0E 04 04 00 22 02 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 D6 [20:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 87 F7 00 00 0E 04 04 00 22 02 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 [20:18:18]wFMCommunicate OK [20:18:18]SAM_PROTO_GetFieldsCounters done [20:18:18]requested_item shift.num is exist - process it [20:18:18]requested_item shift.opened is exist - process it [20:18:18]req_shift_opened [20:18:18]FM_GetShiftState [20:18:18]SAM_PROTO_GetShiftState [20:18:18]wFMCommunicate request_size=4 [20:18:18]MH_SAM_APDU [20:18:18]CAPDU: 80 13 01 00 [20:18:18]Write to MH i2c: E2 08 00 6A 07 80 13 01 00 00 00 00 00 EE [20:18:18]Write i2c OK [20:18:18]MH_I2C_Read... [20:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:18]Read from MH i2c: E2 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0E 00 [20:18:18]MH_I2C_Read... [20:18:18]Read from MH i2c: E2 0E 00 6A 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D8 [20:18:18]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:18:18]wFMCommunicate OK [20:18:18]SAM_PROTO_GetShiftState done [20:18:18]FM_GetShiftState done [20:18:18]req_shift_opened done [20:18:18]requested_item shift.open_date is exist - process it [20:18:18]req_shift_open_date [20:18:18]req_shift_open_date done [20:18:18]produce_requested_data done [20:18:18]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63367,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [20:18:18]process_action_free close_receipt [20:18:18]json_value_free [20:18:18]json_value_free done [20:18:18]process_json_proto returns [20:18:18]Send response to host [20:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63367,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [20:18:18]free response buf [20:18:18]execute_script done [20:18:18]execute_script returns [20:18:18]free content buf [20:18:18]Sock 7.Close socket [20:18:18]Sock 7.Thread stoped [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:04]accept exits with 9 [20:19:04]New connection [20:19:04]New thread 3066633572 created [20:19:04]Thread 3066490212 joined [20:19:04]Waiting for new connection... [20:19:04] Sock 9.Parse request [20:19:04]Sock 9.Check first char [20:19:04]Sock 9.First char is OK [20:19:04]request: POST /json_proto HTTP/1.0 [20:19:04]Method: POST [20:19:04]URL: /json_proto [20:19:04]Method is POST - this is cgi request [20:19:04]url: /json_proto [20:19:04]query_string will be loaded in cgi processing [20:19:04]execute_cgi json_proto POST (null) [20:19:04]execute_cgi path=json_proto method=POST [20:19:04]POST find Content-Length [20:19:04]Host: 172.17.42.132:8080 [20:19:04]Content-Length: 1010 [20:19:04]Content-Type: application/json [20:19:04] [20:19:04]POST finish read [20:19:04]Found Content-Length = 1010 [20:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47678", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:04]execute_script... [20:19:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47678", "tax_sys" : 0, "items" : [ { "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 320.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:04]POST & json_proto [20:19:04]process_json_proto [20:19:04]json parsed OK: [20:19:04]protocol is kg_v1.0 [20:19:04]action value=close_receipt [20:19:04]process_action close_receipt [20:19:04]cmd_close_receipt [20:19:04]MH_GetDate [20:19:04]Write to MH i2c: F0 00 00 6B 07 61 [20:19:04]Write i2c OK [20:19:04]MH_I2C_Read... [20:19:04]Read from MH i2c: F0 [20:19:04]MH_I2C_Read... [20:19:04]Read from MH i2c: F0 09 00 [20:19:04]MH_I2C_Read... [20:19:04]Read from MH i2c: F0 09 00 6B 07 00 3A 5A 19 67 4C DF 56 66 65 [20:19:04]GetLastDocTimeStamp 1729714696 [20:19:04]current date 1729714746 [20:19:04]FM_GetShiftState [20:19:04]SAM_PROTO_GetShiftState [20:19:04]wFMCommunicate request_size=4 [20:19:04]MH_SAM_APDU [20:19:04]CAPDU: 80 13 01 00 [20:19:04]Write to MH i2c: E2 08 00 6C 07 80 13 01 00 00 00 00 00 F0 [20:19:04]Write i2c OK [20:19:04]MH_I2C_Read... [20:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:04]Read from MH i2c: E2 [20:19:04]MH_I2C_Read... [20:19:04]Read from MH i2c: E2 0E 00 [20:19:04]MH_I2C_Read... [20:19:04]Read from MH i2c: E2 0E 00 6C 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 DA [20:19:04]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:19:04]wFMCommunicate OK [20:19:04]SAM_PROTO_GetShiftState done [20:19:04]FM_GetShiftState done [20:19:04]opened in 1729642527 [20:19:04]opened+sec_in_day 1729728927 [20:19:04]quantity*price = 20000 [20:19:04]sum+1 = 20001 [20:19:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027474 Напиток FuzeTea зел чай манго,ромашка 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.98 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 23.10.2024 20:19 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63368 ФПД: 60005470716198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63368&fm=60005470716198&tin=02508201610067®Number=0000000000091619&sum=32000 0 [20:19:05]StoreToDocumentArchive [20:19:05]shift 546 fd 63368 [20:19:05]save to /storage/0546/doc_00063368 [20:19:05]save last doc name /storage/0546/doc_00063368 to /storage/kkm_last_doc_name [20:19:05]save OK [20:19:05]Clear old archive folders... [20:19:05]ProcessDocumentItem done err = 0, tmpTLVsize=421 [20:19:05]tlvbuf is 00B8FEF0 [20:19:05]SAM_PROTO_ClearQueue [20:19:05]wFMCommunicate request_size=4 [20:19:05]MH_SAM_APDU [20:19:05]CAPDU: 80 09 00 00 [20:19:05]Write to MH i2c: E2 08 00 79 07 80 09 00 00 00 00 00 00 F2 [20:19:05]Write i2c OK [20:19:05]MH_I2C_Read... [20:19:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:05]Read from MH i2c: E2 [20:19:05]MH_I2C_Read... [20:19:05]Read from MH i2c: E2 03 00 [20:19:05]MH_I2C_Read... [20:19:05]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [20:19:05]RAPDU: 90 00 [20:19:05]wFMCommunicate OK [20:19:05]SAM_PROTO_ClearQueue done [20:19:05]KKMCreateOFDPacket [20:19:05]OFDProtocolAddRootSTLVToBuf [20:19:05]FM_MakeSignedData [20:19:05]FM_MakeSignedData [20:19:05]SAM_PROTO_SignData [20:19:05]wFMCommunicate request_size=4 [20:19:05]MH_SAM_APDU [20:19:05]CAPDU: 80 0D 01 02 [20:19:05]Write to MH i2c: E2 08 00 7A 07 80 0D 01 02 00 00 00 00 FA [20:19:05]Write i2c OK [20:19:05]MH_I2C_Read... [20:19:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:05]Read from MH i2c: E2 [20:19:05]MH_I2C_Read... [20:19:05]Read from MH i2c: E2 03 00 [20:19:05]MH_I2C_Read... [20:19:05]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [20:19:05]RAPDU: 90 00 [20:19:05]wFMCommunicate OK [20:19:05]wFMCommunicate request_size=255 [20:19:05]MH_SAM_APDU [20:19:05]CAPDU: 80 0D 02 02 FA 03 00 A5 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 [20:19:05]Write to MH i2c: E2 02 01 7B 07 80 0D 02 02 FA 00 03 00 A5 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 00 00 90 [20:19:05]Write i2c OK [20:19:05]MH_I2C_Read... [20:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:06]Read from MH i2c: E2 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 03 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [20:19:06]RAPDU: 90 00 [20:19:06]wFMCommunicate OK [20:19:06]wFMCommunicate request_size=180 [20:19:06]MH_SAM_APDU [20:19:06]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3A 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F7 00 00 35 04 06 00 36 93 1C C4 41 26 [20:19:06]Write to MH i2c: E2 B7 00 7C 07 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3A 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F7 00 00 35 04 06 00 36 93 1C C4 41 26 00 00 F2 [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:06]Read from MH i2c: E2 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 03 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [20:19:06]RAPDU: 90 00 [20:19:06]wFMCommunicate OK [20:19:06]wFMCommunicate request_size=4 [20:19:06]MH_SAM_APDU [20:19:06]CAPDU: 80 0D 03 02 [20:19:06]Write to MH i2c: E2 08 00 7D 07 80 0D 03 02 00 00 00 00 FF [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:06]Read from MH i2c: E2 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 0B 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 0B 00 7D 07 00 7A E5 27 7F 29 C0 E5 B9 90 00 8C [20:19:06]RAPDU: 7A E5 27 7F 29 C0 E5 B9 90 00 [20:19:06]wFMCommunicate OK [20:19:06]SAM_PROTO_SignData done [20:19:06]FM_MakeSignedData done [20:19:06]CreateOFDProtocolMessage [20:19:06]wFMCommunicate request_size=4 [20:19:06]MH_SAM_APDU [20:19:06]CAPDU: 80 11 00 00 [20:19:06]Write to MH i2c: E2 08 00 7E 07 80 11 00 00 00 00 00 00 FF [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:06]Read from MH i2c: E2 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 17 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: E2 17 00 7E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [20:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:19:06]wFMCommunicate OK [20:19:06]CreateOFDProtocolMessage done [20:19:06]OFDSenderStorePacket 63368 [20:19:06]StoreOFDPacket docnum=63368 [20:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B9 01 00 00 D0 12 B1 01 38 45 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3A 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F7 00 00 35 04 06 00 36 93 1C C4 41 26 7A E5 27 7F 29 C0 E5 B9 [20:19:06]CheckFolder [20:19:06]dirname=/storage/ofd_packets [20:19:06]CheckFolder done [20:19:06]ProducePacketName [20:19:06]name=ofd_packets/00063368 [20:19:06]NVStorageSaveData ofd_packets/00063368 [20:19:06]File name is /storage/ofd_packets/00063368 [20:19:06]Write 471 bytes [20:19:06]NVStorageSaveData done [20:19:06]OFDSenderStorePacket done [20:19:06]KKMCreateOFDPacket done [20:19:06]NVStorageSaveData kkm_last_timestamp [20:19:06]File name is /storage/kkm_last_timestamp [20:19:06]Write 4 bytes [20:19:06]NVStorageSaveData done [20:19:06]ExternCall_PrintAddStr [20:19:06]wPrintStart [20:19:06]Write to MH i2c: 01 00 00 7F 07 86 [20:19:06]Write i2c OK [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 [20:19:06]MH_I2C_Read... [20:19:06]Read from MH i2c: 01 07 00 7F 07 00 00 00 00 00 FF 0F 9B [20:19:06]RasterBufferAndPrint [20:19:06]line Счет N : (3)47678 [20:19:06]line ИНН: 02508201610067 [20:19:06]line Контрольно-Кассовый Чек [20:19:06]line ПРОДАЖА [20:19:06]line Товар: 4700002085444 [20:19:06]line Водка Белое золото 0,24л [20:19:06]line 1.000 * 200.00 [20:19:06]line = 200.00 [20:19:06]line НДС 12% НСП 1% [20:19:06]line > о реализуемом товаре [20:19:06]line Товар: 5449000027474 [20:19:06]line Напиток FuzeTea зел чай манго,ромашка 1л [20:19:06]line 1.000 * 120.00 [20:19:06]line = 120.00 [20:19:06]line НДС 12% НСП 1% [20:19:06]line > о реализуемом товаре [20:19:06]line ИТОГО: 320.00 [20:19:06]line НСП 1% : 2.83 [20:19:06]line НДС 12% : 33.98 [20:19:06]line Наличными: 320.00 [20:19:06]line Безнал.: 0.00 [20:19:06]line Место: АЗС № 86 "Партнер Нефть" [20:19:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:19:06]line СНО: Общий режим [20:19:06]line Чек 97 23.10.2024 20:19 [20:19:06]line Смена: 546 ФФД: 1.0 [20:19:06]line ЗНМ: 0300000154 [20:19:06]line РНМ: 0000000000091619 [20:19:06]line Версия ККМ: 001 [20:19:06]line ФМ: 0000000000874676 [20:19:06]line ФД: 63368 [20:19:06]line ФПД: 60005470716198 [20:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T201906&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63368&fm=60005470716198&tin=02508201610067®Number=0000000000091619&sum=32000 [20:19:06]line 0 [20:19:06]OFD Sender: Processing packet 63368 [packets to send 232, broken 231] [20:19:06]ProducePacketName [20:19:06]name=ofd_packets/00063368 [20:19:06]OFD Sender: To server: pG, [20:19:06]CommunicateWithHost lk.salyk.kg:30040 [20:19:06]ConnectInit lk.salyk.kg [20:19:06]written 0, free lines is 4095 [20:19:07]Connected sock=10 [20:19:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 B9 01 00 00 D0 12 B1 01 38 45 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 3A 5A 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F7 00 00 35 04 06 00 36 93 1C C4 41 26 7A E5 27 7F 29 C0 E5 B9 [20:19:07]Write to MH i2c: 01 00 00 AE 07 B5 [20:19:07]Write i2c OK [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: 01 [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: 01 07 00 [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: 01 07 00 AE 07 00 00 00 00 00 BB 0C 83 [20:19:07]RasterBufferAndPrint [20:19:07]line [20:19:07]line [20:19:07]line [20:19:07]line [20:19:07]line [20:19:07]written 0, free lines is 3270 [20:19:07]MH_Cut [20:19:07]Write to MH i2c: D1 01 00 B5 07 01 8E [20:19:07]Write i2c OK [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: D1 [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: D1 01 00 [20:19:07]MH_I2C_Read... [20:19:07]Read from MH i2c: D1 01 00 B5 07 00 8D [20:19:07]Write to MH i2c: 01 00 00 B6 07 BD [20:19:07]Write i2c OK [20:19:07]MH_I2C_Read... [20:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 3A 72 47 00 E6 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 88 F7 00 00 F4 03 04 00 31 04 19 67 B6 04 01 00 00 18 9E FF EB 21 F0 10 9B [20:19:07]CommunicateWithHost err = 0 [20:19:07]CheckOFDResponse [20:19:07]1017 (14) - 77093643461234 [20:19:07]1041 (16) - 0000000000874676 [20:19:07]1040 (4) - 63368 [20:19:07]1012 (4) - 23.10.2024 14:12 [20:19:07]1206 (1) - 0 [20:19:07]OFD Sender: Remove packet 63368 [20:19:07]ProducePacketName [20:19:07]name=ofd_packets/00063368 [20:19:07]NVStorageDeleteData [20:19:07]OFD Sender: No OFD packet to send [20:19:08]*** Cut start [20:19:08]*** Partial cut [20:19:08]*** CUTSNS_PIN = 1 [20:19:08]*** CUTSNS_PIN = 0 [20:19:08]*** Brake cut motor [20:19:08]Read from MH i2c: 01 [20:19:08]MH_I2C_Read... [20:19:08]*** Stop cut motor [20:19:08]*** Cut end [20:19:08]Read from MH i2c: 01 07 00 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: 01 07 00 B6 07 00 00 00 00 00 FF 0F D2 [20:19:08]process_action close_receipt done [20:19:08]requested_data is exist [20:19:08]produce_requested_data [20:19:08]requested_item fm.sn is exist - process it [20:19:08]wFMCommunicate request_size=4 [20:19:08]MH_SAM_APDU [20:19:08]CAPDU: 80 11 00 00 [20:19:08]Write to MH i2c: E2 08 00 B7 07 80 11 00 00 00 00 00 00 38 [20:19:08]Write i2c OK [20:19:08]MH_I2C_Read... [20:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:08]Read from MH i2c: E2 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 17 00 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 17 00 B7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 91 [20:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:19:08]wFMCommunicate OK [20:19:08]requested_item fd.num is exist - process it [20:19:08]SAM_PROTO_GetFieldsCounters [20:19:08]wFMCommunicate request_size=4 [20:19:08]MH_SAM_APDU [20:19:08]CAPDU: 80 13 00 00 [20:19:08]Write to MH i2c: E2 08 00 B8 07 80 13 00 00 00 00 00 00 3B [20:19:08]Write i2c OK [20:19:08]MH_I2C_Read... [20:19:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:08]Read from MH i2c: E2 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 62 00 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 62 00 B8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 88 F7 00 00 0E 04 04 00 22 02 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 29 [20:19:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 88 F7 00 00 0E 04 04 00 22 02 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 [20:19:08]wFMCommunicate OK [20:19:08]SAM_PROTO_GetFieldsCounters done [20:19:08]requested_item shift.num is exist - process it [20:19:08]requested_item shift.opened is exist - process it [20:19:08]req_shift_opened [20:19:08]FM_GetShiftState [20:19:08]SAM_PROTO_GetShiftState [20:19:08]wFMCommunicate request_size=4 [20:19:08]MH_SAM_APDU [20:19:08]CAPDU: 80 13 01 00 [20:19:08]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [20:19:08]Write i2c OK [20:19:08]MH_I2C_Read... [20:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:08]Read from MH i2c: E2 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 0E 00 [20:19:08]MH_I2C_Read... [20:19:08]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 27 [20:19:08]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:19:08]wFMCommunicate OK [20:19:08]SAM_PROTO_GetShiftState done [20:19:08]FM_GetShiftState done [20:19:08]req_shift_opened done [20:19:08]requested_item shift.open_date is exist - process it [20:19:08]req_shift_open_date [20:19:08]req_shift_open_date done [20:19:08]produce_requested_data done [20:19:08]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63368,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [20:19:08]process_action_free close_receipt [20:19:08]json_value_free [20:19:08]json_value_free done [20:19:08]process_json_proto returns [20:19:08]Send response to host [20:19:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63368,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [20:19:08]free response buf [20:19:08]execute_script done [20:19:08]execute_script returns [20:19:08]free content buf [20:19:08]Sock 9.Close socket [20:19:08]Sock 9.Thread stoped [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:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:24]ConnectInit Can't connect to host [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:21]accept exits with 7 [20:26:21]New connection [20:26:21]New thread 3066490212 created [20:26:21]Thread 3066633572 joined [20:26:21]Waiting for new connection... [20:26:21] Sock 7.Parse request [20:26:21]Sock 7.Check first char [20:26:21]Sock 7.First char is OK [20:26:21]request: POST /json_proto HTTP/1.0 [20:26:21]Method: POST [20:26:21]URL: /json_proto [20:26:21]Method is POST - this is cgi request [20:26:21]url: /json_proto [20:26:21]query_string will be loaded in cgi processing [20:26:21]execute_cgi json_proto POST (null) [20:26:21]execute_cgi path=json_proto method=POST [20:26:21]POST find Content-Length [20:26:21]Host: 172.17.42.132:8080 [20:26:21]Content-Length: 980 [20:26:21]Content-Type: application/json [20:26:21] [20:26:21]POST finish read [20:26:21]Found Content-Length = 980 [20:26:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47679", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]execute_script... [20:26:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47679", "tax_sys" : 0, "items" : [ { "code": "4603290004817", "name": "\u041F\u0435\u0447 \u0437\u0430\u0442 \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D \u041A\u0440\u0435\u043C 182\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:21]POST & json_proto [20:26:21]process_json_proto [20:26:21]json parsed OK: [20:26:21]protocol is kg_v1.0 [20:26:21]action value=close_receipt [20:26:21]process_action close_receipt [20:26:21]cmd_close_receipt [20:26:21]MH_GetDate [20:26:21]Write to MH i2c: F0 00 00 BA 07 B0 [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: F0 09 00 BA 07 00 EF 5B 19 67 4C DF 56 66 6A [20:26:21]GetLastDocTimeStamp 1729714746 [20:26:21]current date 1729715183 [20:26:21]FM_GetShiftState [20:26:21]SAM_PROTO_GetShiftState [20:26:21]wFMCommunicate request_size=4 [20:26:21]MH_SAM_APDU [20:26:21]CAPDU: 80 13 01 00 [20:26:21]Write to MH i2c: E2 08 00 BB 07 80 13 01 00 00 00 00 00 3F [20:26:21]Write i2c OK [20:26:21]MH_I2C_Read... [20:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:21]Read from MH i2c: E2 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 [20:26:21]MH_I2C_Read... [20:26:21]Read from MH i2c: E2 0E 00 BB 07 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 29 [20:26:21]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:26:21]wFMCommunicate OK [20:26:21]SAM_PROTO_GetShiftState done [20:26:21]FM_GetShiftState done [20:26:21]opened in 1729642527 [20:26:21]opened+sec_in_day 1729728927 [20:26:21]quantity*price = 8000 [20:26:21]sum+1 = 8001 [20:26:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189301 Холодный чай Fuse лимон 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 23.10.2024 20:26 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63369 ФПД: 17599958317823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202623&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63369&fm=17599958317823&tin=02508201610067®Number=0000000000091619&sum=15500 0 [20:26:22]StoreToDocumentArchive [20:26:22]shift 546 fd 63369 [20:26:22]save to /storage/0546/doc_00063369 [20:26:22]save last doc name /storage/0546/doc_00063369 to /storage/kkm_last_doc_name [20:26:22]save OK [20:26:22]Clear old archive folders... [20:26:22]ProcessDocumentItem done err = 0, tmpTLVsize=411 [20:26:22]tlvbuf is 00B13A50 [20:26:22]SAM_PROTO_ClearQueue [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 09 00 00 [20:26:22]Write to MH i2c: E2 08 00 C8 07 80 09 00 00 00 00 00 00 41 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]SAM_PROTO_ClearQueue done [20:26:22]KKMCreateOFDPacket [20:26:22]OFDProtocolAddRootSTLVToBuf [20:26:22]FM_MakeSignedData [20:26:22]FM_MakeSignedData [20:26:22]SAM_PROTO_SignData [20:26:22]wFMCommunicate request_size=4 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 01 02 [20:26:22]Write to MH i2c: E2 08 00 C9 07 80 0D 01 02 00 00 00 00 49 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:22]Read from MH i2c: E2 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 [20:26:22]MH_I2C_Read... [20:26:22]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [20:26:22]RAPDU: 90 00 [20:26:22]wFMCommunicate OK [20:26:22]wFMCommunicate request_size=255 [20:26:22]MH_SAM_APDU [20:26:22]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [20:26:22]Write to MH i2c: E2 02 01 CA 07 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 C9 [20:26:22]Write i2c OK [20:26:22]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [20:26:23]RAPDU: 90 00 [20:26:23]wFMCommunicate OK [20:26:23]wFMCommunicate request_size=170 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 0D 02 02 A5 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 EF 5B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F7 00 00 35 04 06 00 10 01 CF 43 7A FF [20:26:23]Write to MH i2c: E2 AD 00 CB 07 80 0D 02 02 A5 00 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 EF 5B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F7 00 00 35 04 06 00 10 01 CF 43 7A FF 00 00 D8 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 03 00 CB 07 00 90 00 46 [20:26:23]RAPDU: 90 00 [20:26:23]wFMCommunicate OK [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 0D 03 02 [20:26:23]Write to MH i2c: E2 08 00 CC 07 80 0D 03 02 00 00 00 00 4E [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 0B 00 CC 07 00 9C 4F C1 98 66 92 97 59 90 00 7B [20:26:23]RAPDU: 9C 4F C1 98 66 92 97 59 90 00 [20:26:23]wFMCommunicate OK [20:26:23]SAM_PROTO_SignData done [20:26:23]FM_MakeSignedData done [20:26:23]CreateOFDProtocolMessage [20:26:23]wFMCommunicate request_size=4 [20:26:23]MH_SAM_APDU [20:26:23]CAPDU: 80 11 00 00 [20:26:23]Write to MH i2c: E2 08 00 CD 07 80 11 00 00 00 00 00 00 4E [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:23]Read from MH i2c: E2 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: E2 17 00 CD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A7 [20:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:26:23]wFMCommunicate OK [20:26:23]CreateOFDProtocolMessage done [20:26:23]OFDSenderStorePacket 63369 [20:26:23]StoreOFDPacket docnum=63369 [20:26:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AF 01 00 00 D3 BF A7 01 1F 88 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 EF 5B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F7 00 00 35 04 06 00 10 01 CF 43 7A FF 9C 4F C1 98 66 92 97 59 [20:26:23]CheckFolder [20:26:23]dirname=/storage/ofd_packets [20:26:23]CheckFolder done [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00063369 [20:26:23]NVStorageSaveData ofd_packets/00063369 [20:26:23]File name is /storage/ofd_packets/00063369 [20:26:23]Write 461 bytes [20:26:23]NVStorageSaveData done [20:26:23]OFDSenderStorePacket done [20:26:23]KKMCreateOFDPacket done [20:26:23]NVStorageSaveData kkm_last_timestamp [20:26:23]File name is /storage/kkm_last_timestamp [20:26:23]Write 4 bytes [20:26:23]NVStorageSaveData done [20:26:23]ExternCall_PrintAddStr [20:26:23]wPrintStart [20:26:23]Write to MH i2c: 01 00 00 CE 07 D5 [20:26:23]Write i2c OK [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 [20:26:23]MH_I2C_Read... [20:26:23]Read from MH i2c: 01 07 00 CE 07 00 00 00 00 00 FF 0F EA [20:26:23]RasterBufferAndPrint [20:26:23]line Счет N : (3)47679 [20:26:23]line ИНН: 02508201610067 [20:26:23]line Контрольно-Кассовый Чек [20:26:23]line ПРОДАЖА [20:26:23]line Товар: 4603290004817 [20:26:23]line Печ зат Яшкино клубн Крем 182г [20:26:23]line 1.000 * 80.00 [20:26:23]line = 80.00 [20:26:23]line НДС 12% НСП 1% [20:26:23]line > о реализуемом товаре [20:26:23]line Товар: 5449000189301 [20:26:23]line Холодный чай Fuse лимон 0,5л [20:26:23]line 1.000 * 75.00 [20:26:23]line = 75.00 [20:26:23]line НДС 12% НСП 1% [20:26:23]line > о реализуемом товаре [20:26:23]line ИТОГО: 155.00 [20:26:23]line НСП 1% : 1.37 [20:26:23]line НДС 12% : 16.46 [20:26:23]line Наличными: 155.00 [20:26:23]line Безнал.: 0.00 [20:26:23]line Место: АЗС № 86 "Партнер Нефть" [20:26:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:26:23]line СНО: Общий режим [20:26:23]line Чек 98 23.10.2024 20:26 [20:26:23]line Смена: 546 ФФД: 1.0 [20:26:23]line ЗНМ: 0300000154 [20:26:23]line РНМ: 0000000000091619 [20:26:23]line Версия ККМ: 001 [20:26:23]line ФМ: 0000000000874676 [20:26:23]line ФД: 63369 [20:26:23]line ФПД: 17599958317823 [20:26:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T202623&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63369&fm=17599958317823&tin=02508201610067®Number=0000000000091619&sum=15500 [20:26:23]line 0 [20:26:23]OFD Sender: Processing packet 63369 [packets to send 232, broken 231] [20:26:23]ProducePacketName [20:26:23]name=ofd_packets/00063369 [20:26:23]OFD Sender: To server: pG, [20:26:23]CommunicateWithHost lk.salyk.kg:30040 [20:26:23]ConnectInit lk.salyk.kg [20:26:23]written 0, free lines is 4095 [20:26:24]Connected sock=10 [20:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 AF 01 00 00 D3 BF A7 01 1F 88 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 31 37 06 04 34 00 D0 9F D0 B5 D1 87 20 D0 B7 D0 B0 D1 82 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 20 D0 9A D1 80 D0 B5 D0 BC 20 31 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 EF 5B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F7 00 00 35 04 06 00 10 01 CF 43 7A FF 9C 4F C1 98 66 92 97 59 [20:26:24]Write to MH i2c: 01 00 00 FE 07 05 [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 A7 0C BF [20:26:24]RasterBufferAndPrint [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]line [20:26:24]written 0, free lines is 3248 [20:26:24]MH_Cut [20:26:24]Write to MH i2c: D1 01 00 05 08 01 DF [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 01 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: D1 01 00 05 08 00 DE [20:26:24]Write to MH i2c: 01 00 00 06 08 0E [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 86 AE 47 00 AC 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 89 F7 00 00 F4 03 04 00 E6 05 19 67 B6 04 01 00 00 4D 4D FC 39 4F 8E 5E 97 [20:26:24]CommunicateWithHost err = 0 [20:26:24]CheckOFDResponse [20:26:24]1017 (14) - 77093643461234 [20:26:24]1041 (16) - 0000000000874676 [20:26:24]1040 (4) - 63369 [20:26:24]1012 (4) - 23.10.2024 14:19 [20:26:24]1206 (1) - 0 [20:26:24]OFD Sender: Remove packet 63369 [20:26:24]ProducePacketName [20:26:24]name=ofd_packets/00063369 [20:26:24]NVStorageDeleteData [20:26:24]OFD Sender: No OFD packet to send [20:26:24]*** Cut start [20:26:24]*** Partial cut [20:26:24]*** CUTSNS_PIN = 1 [20:26:25]*** CUTSNS_PIN = 0 [20:26:25]*** Brake cut motor [20:26:25]Read from MH i2c: 01 [20:26:25]MH_I2C_Read... [20:26:25]*** Stop cut motor [20:26:25]*** Cut end [20:26:25]Read from MH i2c: 01 07 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [20:26:25]process_action close_receipt done [20:26:25]requested_data is exist [20:26:25]produce_requested_data [20:26:25]requested_item fm.sn is exist - process it [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 11 00 00 [20:26:25]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 E2 [20:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:26:25]wFMCommunicate OK [20:26:25]requested_item fd.num is exist - process it [20:26:25]SAM_PROTO_GetFieldsCounters [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 00 00 [20:26:25]Write to MH i2c: E2 08 00 08 08 80 13 00 00 00 00 00 00 8C [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 62 00 08 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 89 F7 00 00 0E 04 04 00 22 02 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 7E [20:26:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 89 F7 00 00 0E 04 04 00 22 02 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 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetFieldsCounters done [20:26:25]requested_item shift.num is exist - process it [20:26:25]requested_item shift.opened is exist - process it [20:26:25]req_shift_opened [20:26:25]FM_GetShiftState [20:26:25]SAM_PROTO_GetShiftState [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 13 01 00 [20:26:25]Write to MH i2c: E2 08 00 09 08 80 13 01 00 00 00 00 00 8E [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0E 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 0E 00 09 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 78 [20:26:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_GetShiftState done [20:26:25]FM_GetShiftState done [20:26:25]req_shift_opened done [20:26:25]requested_item shift.open_date is exist - process it [20:26:25]req_shift_open_date [20:26:25]req_shift_open_date done [20:26:25]produce_requested_data done [20:26:25]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63369,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [20:26:25]process_action_free close_receipt [20:26:25]json_value_free [20:26:25]json_value_free done [20:26:25]process_json_proto returns [20:26:25]Send response to host [20:26:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63369,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [20:26:25]free response buf [20:26:25]execute_script done [20:26:25]execute_script returns [20:26:25]free content buf [20:26:25]Sock 7.Close socket [20:26:25]Sock 7.Thread stoped [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:25]OFD Sender: No OFD packet to send [20:28:30]OFD Sender: No OFD packet to send [20:28:35]OFD Sender: No OFD packet to send [20:28:40]OFD Sender: No OFD packet to send [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:35]OFD Sender: No OFD packet to send [20:29:40]OFD Sender: No OFD packet to send [20:29:45]OFD Sender: No OFD packet to send [20:29:50]OFD Sender: No OFD packet to send [20:29:55]OFD Sender: No OFD packet to send [20:30:00]OFD Sender: No OFD packet to send [20:30:05]OFD Sender: No OFD packet to send [20:30:10]OFD Sender: No OFD packet to send [20:30:15]OFD Sender: No OFD packet to send [20:30:20]OFD Sender: No OFD packet to send [20:30:25]OFD Sender: No OFD packet to send [20:30:30]OFD Sender: No OFD packet to send [20:30:35]OFD Sender: No OFD packet to send [20:30:40]OFD Sender: No OFD packet to send [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:32]accept exits with 9 [20:33:32]New connection [20:33:32]New thread 3066633572 created [20:33:32]Thread 3066490212 joined [20:33:32]Waiting for new connection... [20:33:32] Sock 9.Parse request [20:33:32]Sock 9.Check first char [20:33:32]Sock 9.First char is OK [20:33:32]request: POST /json_proto HTTP/1.0 [20:33:32]Method: POST [20:33:32]URL: /json_proto [20:33:32]Method is POST - this is cgi request [20:33:32]url: /json_proto [20:33:32]query_string will be loaded in cgi processing [20:33:32]execute_cgi json_proto POST (null) [20:33:32]execute_cgi path=json_proto method=POST [20:33:32]POST find Content-Length [20:33:32]Host: 172.17.42.132:8080 [20:33:32]Content-Length: 636 [20:33:32]Content-Type: application/json [20:33:32] [20:33:32]POST finish read [20:33:32]Found Content-Length = 636 [20:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47680", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:32]execute_script... [20: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 : (3)47680", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:32]POST & json_proto [20:33:32]process_json_proto [20:33:32]json parsed OK: [20:33:32]protocol is kg_v1.0 [20:33:32]action value=close_receipt [20:33:32]process_action close_receipt [20:33:32]cmd_close_receipt [20:33:32]MH_GetDate [20:33:32]Write to MH i2c: F0 00 00 0A 08 01 [20:33:32]Write i2c OK [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: F0 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: F0 09 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: F0 09 00 0A 08 00 9E 5D 19 67 4C DF 56 66 6C [20:33:32]GetLastDocTimeStamp 1729715183 [20:33:32]current date 1729715614 [20:33:32]FM_GetShiftState [20:33:32]SAM_PROTO_GetShiftState [20:33:32]wFMCommunicate request_size=4 [20:33:32]MH_SAM_APDU [20:33:32]CAPDU: 80 13 01 00 [20:33:32]Write to MH i2c: E2 08 00 0B 08 80 13 01 00 00 00 00 00 90 [20:33:32]Write i2c OK [20:33:32]MH_I2C_Read... [20:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:32]Read from MH i2c: E2 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 0E 00 [20:33:32]MH_I2C_Read... [20:33:32]Read from MH i2c: E2 0E 00 0B 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 7A [20:33:32]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:33:32]wFMCommunicate OK [20:33:32]SAM_PROTO_GetShiftState done [20:33:32]FM_GetShiftState done [20:33:32]opened in 1729642527 [20:33:32]opened+sec_in_day 1729728927 [20:33:32]quantity*price = 10000 [20:33:32]sum+1 = 10001 [20:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 23.10.2024 20:33 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63370 ФПД: 29064704476917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203334&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63370&fm=29064704476917&tin=02508201610067®Number=0000000000091619&sum=10000 0 [20:33:33]StoreToDocumentArchive [20:33:33]shift 546 fd 63370 [20:33:33]save to /storage/0546/doc_00063370 [20:33:33]save last doc name /storage/0546/doc_00063370 to /storage/kkm_last_doc_name [20:33:33]save OK [20:33:33]Clear old archive folders... [20:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=277 [20:33:33]tlvbuf is 00AE1740 [20:33:33]SAM_PROTO_ClearQueue [20:33:33]wFMCommunicate request_size=4 [20:33:33]MH_SAM_APDU [20:33:33]CAPDU: 80 09 00 00 [20:33:33]Write to MH i2c: E2 08 00 18 08 80 09 00 00 00 00 00 00 92 [20:33:33]Write i2c OK [20:33:33]MH_I2C_Read... [20:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:33]Read from MH i2c: E2 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 18 08 00 90 00 94 [20:33:33]RAPDU: 90 00 [20:33:33]wFMCommunicate OK [20:33:33]SAM_PROTO_ClearQueue done [20:33:33]KKMCreateOFDPacket [20:33:33]OFDProtocolAddRootSTLVToBuf [20:33:33]FM_MakeSignedData [20:33:33]FM_MakeSignedData [20:33:33]SAM_PROTO_SignData [20:33:33]wFMCommunicate request_size=4 [20:33:33]MH_SAM_APDU [20:33:33]CAPDU: 80 0D 01 02 [20:33:33]Write to MH i2c: E2 08 00 19 08 80 0D 01 02 00 00 00 00 9A [20:33:33]Write i2c OK [20:33:33]MH_I2C_Read... [20:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:33]Read from MH i2c: E2 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 19 08 00 90 00 95 [20:33:33]RAPDU: 90 00 [20:33:33]wFMCommunicate OK [20:33:33]wFMCommunicate request_size=255 [20:33:33]MH_SAM_APDU [20:33:33]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9E 5D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 [20:33:33]Write to MH i2c: E2 02 01 1A 08 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9E 5D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 00 00 F0 [20:33:33]Write i2c OK [20:33:33]MH_I2C_Read... [20:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:33]Read from MH i2c: E2 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 [20:33:33]MH_I2C_Read... [20:33:33]Read from MH i2c: E2 03 00 1A 08 00 90 00 96 [20:33:33]RAPDU: 90 00 [20:33:33]wFMCommunicate OK [20:33:33]wFMCommunicate request_size=36 [20:33:33]MH_SAM_APDU [20:33:33]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8A F7 00 00 35 04 06 00 1A 6F 27 62 C6 F5 [20:33:33]Write to MH i2c: E2 27 00 1B 08 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8A F7 00 00 35 04 06 00 1A 6F 27 62 C6 F5 00 00 16 [20:33:33]Write i2c OK [20:33:33]MH_I2C_Read... [20:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:34]Read from MH i2c: E2 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 03 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [20:33:34]RAPDU: 90 00 [20:33:34]wFMCommunicate OK [20:33:34]wFMCommunicate request_size=4 [20:33:34]MH_SAM_APDU [20:33:34]CAPDU: 80 0D 03 02 [20:33:34]Write to MH i2c: E2 08 00 1C 08 80 0D 03 02 00 00 00 00 9F [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:34]Read from MH i2c: E2 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 0B 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 0B 00 1C 08 00 2F 8E 0B 5D 9E 96 44 A2 90 00 DF [20:33:34]RAPDU: 2F 8E 0B 5D 9E 96 44 A2 90 00 [20:33:34]wFMCommunicate OK [20:33:34]SAM_PROTO_SignData done [20:33:34]FM_MakeSignedData done [20:33:34]CreateOFDProtocolMessage [20:33:34]wFMCommunicate request_size=4 [20:33:34]MH_SAM_APDU [20:33:34]CAPDU: 80 11 00 00 [20:33:34]Write to MH i2c: E2 08 00 1D 08 80 11 00 00 00 00 00 00 9F [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:34]Read from MH i2c: E2 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 17 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: E2 17 00 1D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F8 [20:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:33:34]wFMCommunicate OK [20:33:34]CreateOFDProtocolMessage done [20:33:34]OFDSenderStorePacket 63370 [20:33:34]StoreOFDPacket docnum=63370 [20:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 29 01 00 00 29 7B 21 01 F8 84 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9E 5D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8A F7 00 00 35 04 06 00 1A 6F 27 62 C6 F5 2F 8E 0B 5D 9E 96 44 A2 [20:33:34]CheckFolder [20:33:34]dirname=/storage/ofd_packets [20:33:34]CheckFolder done [20:33:34]ProducePacketName [20:33:34]name=ofd_packets/00063370 [20:33:34]NVStorageSaveData ofd_packets/00063370 [20:33:34]File name is /storage/ofd_packets/00063370 [20:33:34]Write 327 bytes [20:33:34]NVStorageSaveData done [20:33:34]OFDSenderStorePacket done [20:33:34]KKMCreateOFDPacket done [20:33:34]NVStorageSaveData kkm_last_timestamp [20:33:34]File name is /storage/kkm_last_timestamp [20:33:34]Write 4 bytes [20:33:34]NVStorageSaveData done [20:33:34]ExternCall_PrintAddStr [20:33:34]wPrintStart [20:33:34]Write to MH i2c: 01 00 00 1E 08 26 [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 07 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 FF 0F 3B [20:33:34]RasterBufferAndPrint [20:33:34]line Счет N : (3)47680 [20:33:34]line ИНН: 02508201610067 [20:33:34]line Контрольно-Кассовый Чек [20:33:34]line ПРОДАЖА [20:33:34]line Товар: 4700003610546 [20:33:34]line Вода Сorona Ice негаз 6л [20:33:34]line 1.000 * 100.00 [20:33:34]line = 100.00 [20:33:34]line НДС 12% НСП 1% [20:33:34]line > о реализуемом товаре [20:33:34]line ИТОГО: 100.00 [20:33:34]line НСП 1% : 0.88 [20:33:34]line НДС 12% : 10.62 [20:33:34]line Наличными: 100.00 [20:33:34]line Безнал.: 0.00 [20:33:34]line Место: АЗС № 86 "Партнер Нефть" [20:33:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:33:34]line СНО: Общий режим [20:33:34]line Чек 99 23.10.2024 20:33 [20:33:34]line Смена: 546 ФФД: 1.0 [20:33:34]line ЗНМ: 0300000154 [20:33:34]line РНМ: 0000000000091619 [20:33:34]line Версия ККМ: 001 [20:33:34]line ФМ: 0000000000874676 [20:33:34]line ФД: 63370 [20:33:34]line ФПД: 29064704476917 [20:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T203334&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63370&fm=29064704476917&tin=02508201610067®Number=0000000000091619&sum=10000 [20:33:34]line 0 [20:33:34]OFD Sender: Processing packet 63370 [packets to send 232, broken 231] [20:33:34]ProducePacketName [20:33:34]name=ofd_packets/00063370 [20:33:34]OFD Sender: To server: pG, [20:33:34]CommunicateWithHost lk.salyk.kg:30040 [20:33:34]ConnectInit lk.salyk.kg [20:33:34]written 0, free lines is 4095 [20:33:34]Connected sock=10 [20:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 29 01 00 00 29 7B 21 01 F8 84 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 9E 5D 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8A F7 00 00 35 04 06 00 1A 6F 27 62 C6 F5 2F 8E 0B 5D 9E 96 44 A2 [20:33:34]Write to MH i2c: 01 00 00 46 08 4E [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 07 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 0E 0D 70 [20:33:34]RasterBufferAndPrint [20:33:34]line [20:33:34]line [20:33:34]line [20:33:34]line [20:33:34]line [20:33:34]written 0, free lines is 3349 [20:33:34]MH_Cut [20:33:34]Write to MH i2c: D1 01 00 4D 08 01 27 [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: D1 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: D1 01 00 [20:33:34]MH_I2C_Read... [20:33:34]Read from MH i2c: D1 01 00 4D 08 00 26 [20:33:34]Write to MH i2c: 01 00 00 4E 08 56 [20:33:34]Write i2c OK [20:33:34]MH_I2C_Read... [20:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 15 C1 47 00 C2 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 38 37 34 36 37 36 10 04 04 00 8A F7 00 00 F4 03 04 00 94 07 19 67 B6 04 01 00 00 4F 00 E9 90 D0 D9 14 DE [20:33:35]CommunicateWithHost err = 0 [20:33:35]CheckOFDResponse [20:33:35]1017 (14) - 77093643461234 [20:33:35]1041 (16) - 0000000000874676 [20:33:35]1040 (4) - 63370 [20:33:35]1012 (4) - 23.10.2024 14:26 [20:33:35]1206 (1) - 0 [20:33:35]OFD Sender: Remove packet 63370 [20:33:35]ProducePacketName [20:33:35]name=ofd_packets/00063370 [20:33:35]NVStorageDeleteData [20:33:35]*** Cut start [20:33:35]*** Partial cut [20:33:35]*** CUTSNS_PIN = 1 [20:33:35]OFD Sender: No OFD packet to send [20:33:35]*** CUTSNS_PIN = 0 [20:33:35]*** Brake cut motor [20:33:36]Read from MH i2c: 01 [20:33:36]MH_I2C_Read... [20:33:36]*** Stop cut motor [20:33:36]*** Cut end [20:33:36]Read from MH i2c: 01 07 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [20:33:36]process_action close_receipt done [20:33:36]requested_data is exist [20:33:36]produce_requested_data [20:33:36]requested_item fm.sn is exist - process it [20:33:36]wFMCommunicate request_size=4 [20:33:36]MH_SAM_APDU [20:33:36]CAPDU: 80 11 00 00 [20:33:36]Write to MH i2c: E2 08 00 4F 08 80 11 00 00 00 00 00 00 D1 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:36]Read from MH i2c: E2 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 17 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 17 00 4F 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 2A [20:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [20:33:36]wFMCommunicate OK [20:33:36]requested_item fd.num is exist - process it [20:33:36]SAM_PROTO_GetFieldsCounters [20:33:36]wFMCommunicate request_size=4 [20:33:36]MH_SAM_APDU [20:33:36]CAPDU: 80 13 00 00 [20:33:36]Write to MH i2c: E2 08 00 50 08 80 13 00 00 00 00 00 00 D4 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:36]Read from MH i2c: E2 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 62 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 62 00 50 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8A F7 00 00 0E 04 04 00 22 02 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 CA [20:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8A F7 00 00 0E 04 04 00 22 02 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 [20:33:36]wFMCommunicate OK [20:33:36]SAM_PROTO_GetFieldsCounters done [20:33:36]requested_item shift.num is exist - process it [20:33:36]requested_item shift.opened is exist - process it [20:33:36]req_shift_opened [20:33:36]FM_GetShiftState [20:33:36]SAM_PROTO_GetShiftState [20:33:36]wFMCommunicate request_size=4 [20:33:36]MH_SAM_APDU [20:33:36]CAPDU: 80 13 01 00 [20:33:36]Write to MH i2c: E2 08 00 51 08 80 13 01 00 00 00 00 00 D6 [20:33:36]Write i2c OK [20:33:36]MH_I2C_Read... [20:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:36]Read from MH i2c: E2 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 0E 00 [20:33:36]MH_I2C_Read... [20:33:36]Read from MH i2c: E2 0E 00 51 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 C0 [20:33:36]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [20:33:36]wFMCommunicate OK [20:33:36]SAM_PROTO_GetShiftState done [20:33:36]FM_GetShiftState done [20:33:36]req_shift_opened done [20:33:36]requested_item shift.open_date is exist - process it [20:33:36]req_shift_open_date [20:33:36]req_shift_open_date done [20:33:36]produce_requested_data done [20:33:36]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63370,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [20:33:36]process_action_free close_receipt [20:33:36]json_value_free [20:33:36]json_value_free done [20:33:36]process_json_proto returns [20:33:36]Send response to host [20:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63370,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [20:33:36]free response buf [20:33:36]execute_script done [20:33:36]execute_script returns [20:33:36]free content buf [20:33:36]Sock 9.Close socket [20:33:36]Sock 9.Thread stoped [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:56]OFD Sender: No OFD packet to send [20:42:01]OFD Sender: No OFD packet to send [20:42:06]OFD Sender: No OFD packet to send [20:42:11]OFD Sender: No OFD packet to send [20:42:16]OFD Sender: No OFD packet to send [20:42:21]OFD Sender: No OFD packet to send [20:42:26]OFD Sender: No OFD packet to send [20:42:31]OFD Sender: No OFD packet to send [20:42:36]OFD Sender: No OFD packet to send [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [20:59:57]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:07]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:25]accept exits with 7 [21:48:25]New connection [21:48:25]New thread 3066490212 created [21:48:25]Thread 3066633572 joined [21:48:25]Waiting for new connection... [21:48:25] Sock 7.Parse request [21:48:25]Sock 7.Check first char [21:48:25]Sock 7.First char is OK [21:48:25]request: POST /json_proto HTTP/1.0 [21:48:25]Method: POST [21:48:25]URL: /json_proto [21:48:25]Method is POST - this is cgi request [21:48:25]url: /json_proto [21:48:25]query_string will be loaded in cgi processing [21:48:25]execute_cgi json_proto POST (null) [21:48:25]execute_cgi path=json_proto method=POST [21:48:25]POST find Content-Length [21:48:25]Host: 172.17.42.132:8080 [21:48:25]Content-Length: 622 [21:48:25]Content-Type: application/json [21:48:25] [21:48:25]POST finish read [21:48:25]Found Content-Length = 622 [21:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47681", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:25]execute_script... [21:48: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 : (3)47681", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:48:25]POST & json_proto [21:48:25]process_json_proto [21:48:25]json parsed OK: [21:48:25]protocol is kg_v1.0 [21:48:25]action value=close_receipt [21:48:25]process_action close_receipt [21:48:25]cmd_close_receipt [21:48:25]MH_GetDate [21:48:25]Write to MH i2c: F0 00 00 52 08 49 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: F0 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: F0 09 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: F0 09 00 52 08 00 2C 6F 19 67 4C DF 56 66 54 [21:48:25]GetLastDocTimeStamp 1729715614 [21:48:25]current date 1729720108 [21:48:25]FM_GetShiftState [21:48:25]SAM_PROTO_GetShiftState [21:48:25]wFMCommunicate request_size=4 [21:48:25]MH_SAM_APDU [21:48:25]CAPDU: 80 13 01 00 [21:48:25]Write to MH i2c: E2 08 00 53 08 80 13 01 00 00 00 00 00 D8 [21:48:25]Write i2c OK [21:48:25]MH_I2C_Read... [21:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:25]Read from MH i2c: E2 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 0E 00 [21:48:25]MH_I2C_Read... [21:48:25]Read from MH i2c: E2 0E 00 53 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 C2 [21:48:25]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:48:25]wFMCommunicate OK [21:48:25]SAM_PROTO_GetShiftState done [21:48:25]FM_GetShiftState done [21:48:25]opened in 1729642527 [21:48:25]opened+sec_in_day 1729728927 [21:48:25]quantity*price = 14400 [21:48:25]sum+1 = 14401 [21:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 23.10.2024 21:48 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63371 ФПД: 27792657036160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214828&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63371&fm=27792657036160&tin=02508201610067®Number=0000000000091619&sum=14400 0 [21:48:26]StoreToDocumentArchive [21:48:26]shift 546 fd 63371 [21:48:26]save to /storage/0546/doc_00063371 [21:48:26]save last doc name /storage/0546/doc_00063371 to /storage/kkm_last_doc_name [21:48:26]save OK [21:48:26]Clear old archive folders... [21:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=275 [21:48:26]tlvbuf is 00B09E80 [21:48:26]SAM_PROTO_ClearQueue [21:48:26]wFMCommunicate request_size=4 [21:48:26]MH_SAM_APDU [21:48:26]CAPDU: 80 09 00 00 [21:48:26]Write to MH i2c: E2 08 00 60 08 80 09 00 00 00 00 00 00 DA [21:48:26]Write i2c OK [21:48:26]MH_I2C_Read... [21:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:26]Read from MH i2c: E2 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: E2 03 00 [21:48:26]MH_I2C_Read... [21:48:26]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [21:48:26]RAPDU: 90 00 [21:48:26]wFMCommunicate OK [21:48:26]SAM_PROTO_ClearQueue done [21:48:26]KKMCreateOFDPacket [21:48:26]OFDProtocolAddRootSTLVToBuf [21:48:26]FM_MakeSignedData [21:48:26]FM_MakeSignedData [21:48:26]SAM_PROTO_SignData [21:48:26]wFMCommunicate request_size=4 [21:48:26]MH_SAM_APDU [21:48:26]CAPDU: 80 0D 01 02 [21:48:26]Write to MH i2c: E2 08 00 61 08 80 0D 01 02 00 00 00 00 E2 [21:48:26]Write i2c OK [21:48:26]MH_I2C_Read... [21:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:27]Read from MH i2c: E2 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 61 08 00 90 00 DD [21:48:27]RAPDU: 90 00 [21:48:27]wFMCommunicate OK [21:48:27]wFMCommunicate request_size=255 [21:48:27]MH_SAM_APDU [21:48:27]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 2C 6F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [21:48:27]Write to MH i2c: E2 02 01 62 08 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 2C 6F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 8B [21:48:27]Write i2c OK [21:48:27]MH_I2C_Read... [21:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:27]Read from MH i2c: E2 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 62 08 00 90 00 DE [21:48:27]RAPDU: 90 00 [21:48:27]wFMCommunicate OK [21:48:27]wFMCommunicate request_size=34 [21:48:27]MH_SAM_APDU [21:48:27]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8B F7 00 00 35 04 06 00 19 46 FB 73 33 80 [21:48:27]Write to MH i2c: E2 25 00 63 08 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8B F7 00 00 35 04 06 00 19 46 FB 73 33 80 00 00 AE [21:48:27]Write i2c OK [21:48:27]MH_I2C_Read... [21:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:27]Read from MH i2c: E2 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 03 00 63 08 00 90 00 DF [21:48:27]RAPDU: 90 00 [21:48:27]wFMCommunicate OK [21:48:27]wFMCommunicate request_size=4 [21:48:27]MH_SAM_APDU [21:48:27]CAPDU: 80 0D 03 02 [21:48:27]Write to MH i2c: E2 08 00 64 08 80 0D 03 02 00 00 00 00 E7 [21:48:27]Write i2c OK [21:48:27]MH_I2C_Read... [21:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:27]Read from MH i2c: E2 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 0B 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 0B 00 64 08 00 96 E2 E8 D4 B8 79 BE 4E 90 00 59 [21:48:27]RAPDU: 96 E2 E8 D4 B8 79 BE 4E 90 00 [21:48:27]wFMCommunicate OK [21:48:27]SAM_PROTO_SignData done [21:48:27]FM_MakeSignedData done [21:48:27]CreateOFDProtocolMessage [21:48:27]wFMCommunicate request_size=4 [21:48:27]MH_SAM_APDU [21:48:27]CAPDU: 80 11 00 00 [21:48:27]Write to MH i2c: E2 08 00 65 08 80 11 00 00 00 00 00 00 E7 [21:48:27]Write i2c OK [21:48:27]MH_I2C_Read... [21:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:27]Read from MH i2c: E2 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 17 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: E2 17 00 65 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 40 [21:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:48:27]wFMCommunicate OK [21:48:27]CreateOFDProtocolMessage done [21:48:27]OFDSenderStorePacket 63371 [21:48:27]StoreOFDPacket docnum=63371 [21:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 32 68 1F 01 2D 08 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 2C 6F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8B F7 00 00 35 04 06 00 19 46 FB 73 33 80 96 E2 E8 D4 B8 79 BE 4E [21:48:27]CheckFolder [21:48:27]dirname=/storage/ofd_packets [21:48:27]CheckFolder done [21:48:27]ProducePacketName [21:48:27]name=ofd_packets/00063371 [21:48:27]NVStorageSaveData ofd_packets/00063371 [21:48:27]File name is /storage/ofd_packets/00063371 [21:48:27]Write 325 bytes [21:48:27]NVStorageSaveData done [21:48:27]OFDSenderStorePacket done [21:48:27]KKMCreateOFDPacket done [21:48:27]NVStorageSaveData kkm_last_timestamp [21:48:27]File name is /storage/kkm_last_timestamp [21:48:27]Write 4 bytes [21:48:27]NVStorageSaveData done [21:48:27]ExternCall_PrintAddStr [21:48:27]wPrintStart [21:48:27]Write to MH i2c: 01 00 00 66 08 6E [21:48:27]OFD Sender: Processing packet 63371 [packets to send 232, broken 231] [21:48:27]ProducePacketName [21:48:27]name=ofd_packets/00063371 [21:48:27]OFD Sender: To server: pG, [21:48:27]CommunicateWithHost lk.salyk.kg:30040 [21:48:27]ConnectInit lk.salyk.kg [21:48:27]Write i2c OK [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: 01 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: 01 07 00 [21:48:27]MH_I2C_Read... [21:48:27]Read from MH i2c: 01 07 00 66 08 00 00 00 00 00 FF 0F 83 [21:48:27]RasterBufferAndPrint [21:48:27]line Счет N : (3)47681 [21:48:27]line ИНН: 02508201610067 [21:48:27]line Контрольно-Кассовый Чек [21:48:27]line ПРОДАЖА [21:48:27]line Товар: 48743587 [21:48:27]line Сигареты Winston XStyle Silver [21:48:27]line 1.000 * 144.00 [21:48:27]line = 144.00 [21:48:27]line НДС 12% НСП 1% [21:48:27]line > о реализуемом товаре [21:48:27]line ИТОГО: 144.00 [21:48:27]line НСП 1% : 1.27 [21:48:27]line НДС 12% : 15.29 [21:48:27]line Наличными: 144.00 [21:48:27]line Безнал.: 0.00 [21:48:27]line Место: АЗС № 86 "Партнер Нефть" [21:48:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:48:27]line СНО: Общий режим [21:48:27]line Чек 100 23.10.2024 21:48 [21:48:27]line Смена: 546 ФФД: 1.0 [21:48:27]line ЗНМ: 0300000154 [21:48:27]line РНМ: 0000000000091619 [21:48:27]line Версия ККМ: 001 [21:48:27]line ФМ: 0000000000874676 [21:48:27]line ФД: 63371 [21:48:27]line ФПД: 27792657036160 [21:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T214828&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63371&fm=27792657036160&tin=02508201610067®Number=0000000000091619&sum=14400 [21:48:27]line 0 [21:48:27]written 0, free lines is 4095 [21:48:27]Connected sock=10 [21:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 32 68 1F 01 2D 08 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 2C 6F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8B F7 00 00 35 04 06 00 19 46 FB 73 33 80 96 E2 E8 D4 B8 79 BE 4E [21:48:28]Write to MH i2c: 01 00 00 8F 08 97 [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: 01 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: 01 07 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: 01 07 00 8F 08 00 00 00 00 00 04 0D AF [21:48:28]RasterBufferAndPrint [21:48:28]line [21:48:28]line [21:48:28]line [21:48:28]line [21:48:28]line [21:48:28]written 0, free lines is 3338 [21:48:28]MH_Cut [21:48:28]Write to MH i2c: D1 01 00 96 08 01 70 [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: D1 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: D1 01 00 [21:48:28]MH_I2C_Read... [21:48:28]Read from MH i2c: D1 01 00 96 08 00 6F [21:48:28]Write to MH i2c: 01 00 00 97 08 9F [21:48:28]Write i2c OK [21:48:28]MH_I2C_Read... [21:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 66 AA 47 00 31 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8B F7 00 00 F4 03 04 00 22 19 19 67 B6 04 01 00 00 FF 3B 7E 6D 3A ED 46 4C [21:48:28]CommunicateWithHost err = 0 [21:48:28]CheckOFDResponse [21:48:28]1017 (14) - 77093643461234 [21:48:28]1041 (16) - 0000000000874676 [21:48:28]1040 (4) - 63371 [21:48:28]1012 (4) - 23.10.2024 15:41 [21:48:28]1206 (1) - 0 [21:48:28]OFD Sender: Remove packet 63371 [21:48:28]ProducePacketName [21:48:28]name=ofd_packets/00063371 [21:48:28]NVStorageDeleteData [21:48:28]OFD Sender: No OFD packet to send [21:48:28]*** Cut start [21:48:28]*** Partial cut [21:48:28]*** CUTSNS_PIN = 1 [21:48:28]*** CUTSNS_PIN = 0 [21:48:29]*** Brake cut motor [21:48:29]Read from MH i2c: 01 [21:48:29]MH_I2C_Read... [21:48:29]*** Stop cut motor [21:48:29]*** Cut end [21:48:29]Read from MH i2c: 01 07 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [21:48:29]process_action close_receipt done [21:48:29]requested_data is exist [21:48:29]produce_requested_data [21:48:29]requested_item fm.sn is exist - process it [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 11 00 00 [21:48:29]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 17 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 73 [21:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:48:29]wFMCommunicate OK [21:48:29]requested_item fd.num is exist - process it [21:48:29]SAM_PROTO_GetFieldsCounters [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 00 00 [21:48:29]Write to MH i2c: E2 08 00 99 08 80 13 00 00 00 00 00 00 1D [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 62 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 62 00 99 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8B F7 00 00 0E 04 04 00 22 02 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 [21:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8B F7 00 00 0E 04 04 00 22 02 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 [21:48:29]wFMCommunicate OK [21:48:29]SAM_PROTO_GetFieldsCounters done [21:48:29]requested_item shift.num is exist - process it [21:48:29]requested_item shift.opened is exist - process it [21:48:29]req_shift_opened [21:48:29]FM_GetShiftState [21:48:29]SAM_PROTO_GetShiftState [21:48:29]wFMCommunicate request_size=4 [21:48:29]MH_SAM_APDU [21:48:29]CAPDU: 80 13 01 00 [21:48:29]Write to MH i2c: E2 08 00 9A 08 80 13 01 00 00 00 00 00 1F [21:48:29]Write i2c OK [21:48:29]MH_I2C_Read... [21:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:29]Read from MH i2c: E2 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 [21:48:29]MH_I2C_Read... [21:48:29]Read from MH i2c: E2 0E 00 9A 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 09 [21:48:29]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:48:29]wFMCommunicate OK [21:48:29]SAM_PROTO_GetShiftState done [21:48:29]FM_GetShiftState done [21:48:29]req_shift_opened done [21:48:29]requested_item shift.open_date is exist - process it [21:48:29]req_shift_open_date [21:48:29]req_shift_open_date done [21:48:29]produce_requested_data done [21:48:29]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63371,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [21:48:29]process_action_free close_receipt [21:48:29]json_value_free [21:48:29]json_value_free done [21:48:29]process_json_proto returns [21:48:29]Send response to host [21:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63371,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [21:48:29]free response buf [21:48:29]execute_script done [21:48:29]execute_script returns [21:48:29]free content buf [21:48:29]Sock 7.Close socket [21:48:29]Sock 7.Thread stoped [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:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:57]accept exits with 9 [21:55:57]New connection [21:55:57]New thread 3066633572 created [21:55:57]Thread 3066490212 joined [21:55:57]Waiting for new connection... [21:55:57] Sock 9.Parse request [21:55:57]Sock 9.Check first char [21:55:57]Sock 9.First char is OK [21:55:57]request: POST /json_proto HTTP/1.0 [21:55:57]Method: POST [21:55:57]URL: /json_proto [21:55:57]Method is POST - this is cgi request [21:55:57]url: /json_proto [21:55:57]query_string will be loaded in cgi processing [21:55:57]execute_cgi json_proto POST (null) [21:55:57]execute_cgi path=json_proto method=POST [21:55:57]POST find Content-Length [21:55:57]Host: 172.17.42.132:8080 [21:55:57]Content-Length: 620 [21:55:57]Content-Type: application/json [21:55:57] [21:55:57]POST finish read [21:55:57]Found Content-Length = 620 [21:55:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47682", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:57]execute_script... [21:55:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47682", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:57]POST & json_proto [21:55:57]process_json_proto [21:55:57]json parsed OK: [21:55:57]protocol is kg_v1.0 [21:55:57]action value=close_receipt [21:55:57]process_action close_receipt [21:55:57]cmd_close_receipt [21:55:57]MH_GetDate [21:55:57]Write to MH i2c: F0 00 00 9B 08 92 [21:55:57]Write i2c OK [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 09 00 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: F0 09 00 9B 08 00 F0 70 19 67 4C DF 56 66 62 [21:55:57]GetLastDocTimeStamp 1729720108 [21:55:57]current date 1729720560 [21:55:57]FM_GetShiftState [21:55:57]SAM_PROTO_GetShiftState [21:55:57]wFMCommunicate request_size=4 [21:55:57]MH_SAM_APDU [21:55:57]CAPDU: 80 13 01 00 [21:55:57]Write to MH i2c: E2 08 00 9C 08 80 13 01 00 00 00 00 00 21 [21:55:57]Write i2c OK [21:55:57]MH_I2C_Read... [21:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:57]Read from MH i2c: E2 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: E2 0E 00 [21:55:57]MH_I2C_Read... [21:55:57]Read from MH i2c: E2 0E 00 9C 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 0B [21:55:57]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:55:57]wFMCommunicate OK [21:55:57]SAM_PROTO_GetShiftState done [21:55:57]FM_GetShiftState done [21:55:57]opened in 1729642527 [21:55:57]opened+sec_in_day 1729728927 [21:55:57]quantity*price = 14400 [21:55:57]sum+1 = 14401 [21:55:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 23.10.2024 21:56 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63372 ФПД: 18243811854216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215600&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63372&fm=18243811854216&tin=02508201610067®Number=0000000000091619&sum=14400 0 [21:55:58]StoreToDocumentArchive [21:55:58]shift 546 fd 63372 [21:55:58]save to /storage/0546/doc_00063372 [21:55:58]save last doc name /storage/0546/doc_00063372 to /storage/kkm_last_doc_name [21:55:58]save OK [21:55:58]Clear old archive folders... [21:55:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:55:58]tlvbuf is 00B09A90 [21:55:58]SAM_PROTO_ClearQueue [21:55:58]wFMCommunicate request_size=4 [21:55:58]MH_SAM_APDU [21:55:58]CAPDU: 80 09 00 00 [21:55:58]Write to MH i2c: E2 08 00 A9 08 80 09 00 00 00 00 00 00 23 [21:55:58]Write i2c OK [21:55:58]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]SAM_PROTO_ClearQueue done [21:55:59]KKMCreateOFDPacket [21:55:59]OFDProtocolAddRootSTLVToBuf [21:55:59]FM_MakeSignedData [21:55:59]FM_MakeSignedData [21:55:59]SAM_PROTO_SignData [21:55:59]wFMCommunicate request_size=4 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 01 02 [21:55:59]Write to MH i2c: E2 08 00 AA 08 80 0D 01 02 00 00 00 00 2B [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]wFMCommunicate request_size=255 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F0 70 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 [21:55:59]Write to MH i2c: E2 02 01 AB 08 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F0 70 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 00 00 FF [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]wFMCommunicate request_size=32 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F7 00 00 35 04 06 00 10 97 B7 EC C7 88 [21:55:59]Write to MH i2c: E2 23 00 AC 08 80 0D 02 02 1B 00 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F7 00 00 35 04 06 00 10 97 B7 EC C7 88 00 00 AD [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 03 00 AC 08 00 90 00 28 [21:55:59]RAPDU: 90 00 [21:55:59]wFMCommunicate OK [21:55:59]wFMCommunicate request_size=4 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 0D 03 02 [21:55:59]Write to MH i2c: E2 08 00 AD 08 80 0D 03 02 00 00 00 00 30 [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 0B 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 0B 00 AD 08 00 CD 52 BA 9C 58 F8 75 C0 90 00 2B [21:55:59]RAPDU: CD 52 BA 9C 58 F8 75 C0 90 00 [21:55:59]wFMCommunicate OK [21:55:59]SAM_PROTO_SignData done [21:55:59]FM_MakeSignedData done [21:55:59]CreateOFDProtocolMessage [21:55:59]wFMCommunicate request_size=4 [21:55:59]MH_SAM_APDU [21:55:59]CAPDU: 80 11 00 00 [21:55:59]Write to MH i2c: E2 08 00 AE 08 80 11 00 00 00 00 00 00 30 [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:59]Read from MH i2c: E2 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 17 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: E2 17 00 AE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 89 [21:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:55:59]wFMCommunicate OK [21:55:59]CreateOFDProtocolMessage done [21:55:59]OFDSenderStorePacket 63372 [21:55:59]StoreOFDPacket docnum=63372 [21:55:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 9A D0 1D 01 AC C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F0 70 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F7 00 00 35 04 06 00 10 97 B7 EC C7 88 CD 52 BA 9C 58 F8 75 C0 [21:55:59]CheckFolder [21:55:59]dirname=/storage/ofd_packets [21:55:59]CheckFolder done [21:55:59]ProducePacketName [21:55:59]name=ofd_packets/00063372 [21:55:59]NVStorageSaveData ofd_packets/00063372 [21:55:59]File name is /storage/ofd_packets/00063372 [21:55:59]Write 323 bytes [21:55:59]NVStorageSaveData done [21:55:59]OFDSenderStorePacket done [21:55:59]KKMCreateOFDPacket done [21:55:59]NVStorageSaveData kkm_last_timestamp [21:55:59]File name is /storage/kkm_last_timestamp [21:55:59]Write 4 bytes [21:55:59]NVStorageSaveData done [21:55:59]ExternCall_PrintAddStr [21:55:59]wPrintStart [21:55:59]Write to MH i2c: 01 00 00 AF 08 B7 [21:55:59]Write i2c OK [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 07 00 [21:55:59]MH_I2C_Read... [21:55:59]Read from MH i2c: 01 07 00 AF 08 00 00 00 00 00 FF 0F CC [21:55:59]RasterBufferAndPrint [21:55:59]line Счет N : (3)47682 [21:55:59]line ИНН: 02508201610067 [21:55:59]line Контрольно-Кассовый Чек [21:55:59]line ПРОДАЖА [21:55:59]line Товар: 48743570 [21:55:59]line Сигареты Winston XStyle Blue [21:55:59]line 1.000 * 144.00 [21:55:59]line = 144.00 [21:55:59]line НДС 12% НСП 1% [21:55:59]line > о реализуемом товаре [21:55:59]line ИТОГО: 144.00 [21:55:59]line НСП 1% : 1.27 [21:55:59]line НДС 12% : 15.29 [21:55:59]line Наличными: 144.00 [21:55:59]line Безнал.: 0.00 [21:55:59]line Место: АЗС № 86 "Партнер Нефть" [21:55:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:55:59]line СНО: Общий режим [21:55:59]line Чек 101 23.10.2024 21:56 [21:55:59]line Смена: 546 ФФД: 1.0 [21:55:59]line ЗНМ: 0300000154 [21:55:59]line РНМ: 0000000000091619 [21:55:59]line Версия ККМ: 001 [21:55:59]line ФМ: 0000000000874676 [21:55:59]line ФД: 63372 [21:55:59]line ФПД: 18243811854216 [21:55:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215600&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63372&fm=18243811854216&tin=02508201610067®Number=0000000000091619&sum=14400 [21:55:59]line 0 [21:55:59]OFD Sender: Processing packet 63372 [packets to send 232, broken 231] [21:55:59]ProducePacketName [21:55:59]name=ofd_packets/00063372 [21:55:59]OFD Sender: To server: pG, [21:55:59]CommunicateWithHost lk.salyk.kg:30040 [21:55:59]ConnectInit lk.salyk.kg [21:55:59]written 0, free lines is 4095 [21:56:00]Connected sock=10 [21:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 25 01 00 00 9A D0 1D 01 AC C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F0 70 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F7 00 00 35 04 06 00 10 97 B7 EC C7 88 CD 52 BA 9C 58 F8 75 C0 [21:56:00]Write to MH i2c: 01 00 00 D7 08 DF [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 07 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: 01 07 00 D7 08 00 00 00 00 00 0A 0D FD [21:56:00]RasterBufferAndPrint [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]line [21:56:00]written 0, free lines is 3344 [21:56:00]MH_Cut [21:56:00]Write to MH i2c: D1 01 00 DE 08 01 B8 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 01 00 [21:56:00]MH_I2C_Read... [21:56:00]Read from MH i2c: D1 01 00 DE 08 00 B7 [21:56:00]Write to MH i2c: 01 00 00 DF 08 E7 [21:56:00]Write i2c OK [21:56:00]MH_I2C_Read... [21:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 25 F8 47 00 B1 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8C F7 00 00 F4 03 04 00 E6 1A 19 67 B6 04 01 00 00 76 82 A5 FA 63 BD B4 D8 [21:56:00]CommunicateWithHost err = 0 [21:56:00]CheckOFDResponse [21:56:00]1017 (14) - 77093643461234 [21:56:00]1041 (16) - 0000000000874676 [21:56:00]1040 (4) - 63372 [21:56:00]1012 (4) - 23.10.2024 15:48 [21:56:00]1206 (1) - 0 [21:56:00]OFD Sender: Remove packet 63372 [21:56:00]ProducePacketName [21:56:00]name=ofd_packets/00063372 [21:56:00]NVStorageDeleteData [21:56:00]*** Cut start [21:56:00]*** Partial cut [21:56:00]*** CUTSNS_PIN = 1 [21:56:00]*** CUTSNS_PIN = 0 [21:56:00]OFD Sender: No OFD packet to send [21:56:01]*** Brake cut motor [21:56:01]Read from MH i2c: 01 [21:56:01]MH_I2C_Read... [21:56:01]*** Stop cut motor [21:56:01]*** Cut end [21:56:01]Read from MH i2c: 01 07 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 FF 0F FC [21:56:01]process_action close_receipt done [21:56:01]requested_data is exist [21:56:01]produce_requested_data [21:56:01]requested_item fm.sn is exist - process it [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 11 00 00 [21:56:01]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BB [21:56:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:56:01]wFMCommunicate OK [21:56:01]requested_item fd.num is exist - process it [21:56:01]SAM_PROTO_GetFieldsCounters [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 13 00 00 [21:56:01]Write to MH i2c: E2 08 00 E1 08 80 13 00 00 00 00 00 00 65 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 62 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 62 00 E1 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8C F7 00 00 0E 04 04 00 22 02 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 63 [21:56:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8C F7 00 00 0E 04 04 00 22 02 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 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetFieldsCounters done [21:56:01]requested_item shift.num is exist - process it [21:56:01]requested_item shift.opened is exist - process it [21:56:01]req_shift_opened [21:56:01]FM_GetShiftState [21:56:01]SAM_PROTO_GetShiftState [21:56:01]wFMCommunicate request_size=4 [21:56:01]MH_SAM_APDU [21:56:01]CAPDU: 80 13 01 00 [21:56:01]Write to MH i2c: E2 08 00 E2 08 80 13 01 00 00 00 00 00 67 [21:56:01]Write i2c OK [21:56:01]MH_I2C_Read... [21:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:01]Read from MH i2c: E2 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 [21:56:01]MH_I2C_Read... [21:56:01]Read from MH i2c: E2 0E 00 E2 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 51 [21:56:01]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:56:01]wFMCommunicate OK [21:56:01]SAM_PROTO_GetShiftState done [21:56:01]FM_GetShiftState done [21:56:01]req_shift_opened done [21:56:01]requested_item shift.open_date is exist - process it [21:56:01]req_shift_open_date [21:56:01]req_shift_open_date done [21:56:01]produce_requested_data done [21:56:01]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63372,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [21:56:01]process_action_free close_receipt [21:56:01]json_value_free [21:56:01]json_value_free done [21:56:01]process_json_proto returns [21:56:01]Send response to host [21:56:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63372,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [21:56:01]free response buf [21:56:01]execute_script done [21:56:01]execute_script returns [21:56:01]free content buf [21:56:01]Sock 9.Close socket [21:56:01]Sock 9.Thread stoped [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:34]accept exits with 7 [21:56:34]New connection [21:56:34]New thread 3066490212 created [21:56:34]Thread 3066633572 joined [21:56:34]Waiting for new connection... [21:56:34] Sock 7.Parse request [21:56:34]Sock 7.Check first char [21:56:34]Sock 7.First char is OK [21:56:34]request: POST /json_proto HTTP/1.0 [21:56:34]Method: POST [21:56:34]URL: /json_proto [21:56:34]Method is POST - this is cgi request [21:56:34]url: /json_proto [21:56:34]query_string will be loaded in cgi processing [21:56:34]execute_cgi json_proto POST (null) [21:56:34]execute_cgi path=json_proto method=POST [21:56:34]POST find Content-Length [21:56:34]Host: 172.17.42.132:8080 [21:56:34]Content-Length: 646 [21:56:34]Content-Type: application/json [21:56:34] [21:56:34]POST finish read [21:56:34]Found Content-Length = 646 [21:56:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47683", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:34]execute_script... [21:56:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47683", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:56:34]POST & json_proto [21:56:34]process_json_proto [21:56:34]json parsed OK: [21:56:34]protocol is kg_v1.0 [21:56:34]action value=close_receipt [21:56:34]process_action close_receipt [21:56:34]cmd_close_receipt [21:56:34]MH_GetDate [21:56:34]Write to MH i2c: F0 00 00 E3 08 DA [21:56:34]Write i2c OK [21:56:34]MH_I2C_Read... [21:56:34]Read from MH i2c: F0 [21:56:34]MH_I2C_Read... [21:56:34]Read from MH i2c: F0 09 00 [21:56:34]MH_I2C_Read... [21:56:34]Read from MH i2c: F0 09 00 E3 08 00 15 71 19 67 4C DF 56 66 D0 [21:56:34]GetLastDocTimeStamp 1729720560 [21:56:34]current date 1729720597 [21:56:34]FM_GetShiftState [21:56:34]SAM_PROTO_GetShiftState [21:56:34]wFMCommunicate request_size=4 [21:56:34]MH_SAM_APDU [21:56:34]CAPDU: 80 13 01 00 [21:56:34]Write to MH i2c: E2 08 00 E4 08 80 13 01 00 00 00 00 00 69 [21:56:34]Write i2c OK [21:56:34]MH_I2C_Read... [21:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:34]Read from MH i2c: E2 [21:56:34]MH_I2C_Read... [21:56:34]Read from MH i2c: E2 0E 00 [21:56:34]MH_I2C_Read... [21:56:34]Read from MH i2c: E2 0E 00 E4 08 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 53 [21:56:34]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:56:34]wFMCommunicate OK [21:56:34]SAM_PROTO_GetShiftState done [21:56:34]FM_GetShiftState done [21:56:34]opened in 1729642527 [21:56:34]opened+sec_in_day 1729728927 [21:56:34]quantity*price = 13000 [21:56:34]sum+1 = 13001 [21:56:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 23.10.2024 21:56 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63373 ФПД: 171044329023799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215637&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63373&fm=171044329023799&tin=02508201610067®Number=0000000000091619&sum=13000 0 [21:56:35]StoreToDocumentArchive [21:56:35]shift 546 fd 63373 [21:56:35]save to /storage/0546/doc_00063373 [21:56:35]save last doc name /storage/0546/doc_00063373 to /storage/kkm_last_doc_name [21:56:35]save OK [21:56:35]Clear old archive folders... [21:56:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:56:35]tlvbuf is 00B54480 [21:56:35]SAM_PROTO_ClearQueue [21:56:35]wFMCommunicate request_size=4 [21:56:35]MH_SAM_APDU [21:56:35]CAPDU: 80 09 00 00 [21:56:35]Write to MH i2c: E2 08 00 F1 08 80 09 00 00 00 00 00 00 6B [21:56:35]Write i2c OK [21:56:35]MH_I2C_Read... [21:56:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:56:35]Read from MH i2c: E2 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: E2 03 00 [21:56:35]MH_I2C_Read... [21:56:35]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [21:56:35]RAPDU: 90 00 [21:56:35]wFMCommunicate OK [21:56:35]SAM_PROTO_ClearQueue done [21:56:35]KKMCreateOFDPacket [21:56:35]OFDProtocolAddRootSTLVToBuf [21:56:35]FM_MakeSignedData [21:56:35]FM_MakeSignedData [21:56:35]SAM_PROTO_SignData [21:56:35]wFMCommunicate request_size=4 [21:56:35]MH_SAM_APDU [21:56:35]CAPDU: 80 0D 01 02 [21:56:35]Write to MH i2c: E2 08 00 F2 08 80 0D 01 02 00 00 00 00 73 [21:56:35]Write i2c OK [21:56:35]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=255 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 15 71 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [21:56:36]Write to MH i2c: E2 02 01 F3 08 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 15 71 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 A2 [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]OFD Sender: No OFD packet to send [21:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=31 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 8D F7 00 00 35 04 06 00 9B 90 5C 78 E9 37 [21:56:36]Write to MH i2c: E2 22 00 F4 08 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 8D F7 00 00 35 04 06 00 9B 90 5C 78 E9 37 00 00 4A [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [21:56:36]RAPDU: 90 00 [21:56:36]wFMCommunicate OK [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 0D 03 02 [21:56:36]Write to MH i2c: E2 08 00 F5 08 80 0D 03 02 00 00 00 00 78 [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 0B 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 0B 00 F5 08 00 4F 63 68 85 23 C1 0D AB 90 00 B4 [21:56:36]RAPDU: 4F 63 68 85 23 C1 0D AB 90 00 [21:56:36]wFMCommunicate OK [21:56:36]SAM_PROTO_SignData done [21:56:36]FM_MakeSignedData done [21:56:36]CreateOFDProtocolMessage [21:56:36]wFMCommunicate request_size=4 [21:56:36]MH_SAM_APDU [21:56:36]CAPDU: 80 11 00 00 [21:56:36]Write to MH i2c: E2 08 00 F6 08 80 11 00 00 00 00 00 00 78 [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:36]Read from MH i2c: E2 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 17 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: E2 17 00 F6 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D1 [21:56:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:56:36]wFMCommunicate OK [21:56:36]CreateOFDProtocolMessage done [21:56:36]OFDSenderStorePacket 63373 [21:56:36]StoreOFDPacket docnum=63373 [21:56:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 D4 3F 1C 01 37 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 15 71 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8D F7 00 00 35 04 06 00 9B 90 5C 78 E9 37 4F 63 68 85 23 C1 0D AB [21:56:36]CheckFolder [21:56:36]dirname=/storage/ofd_packets [21:56:36]CheckFolder done [21:56:36]ProducePacketName [21:56:36]name=ofd_packets/00063373 [21:56:36]NVStorageSaveData ofd_packets/00063373 [21:56:36]File name is /storage/ofd_packets/00063373 [21:56:36]Write 322 bytes [21:56:36]NVStorageSaveData done [21:56:36]OFDSenderStorePacket done [21:56:36]KKMCreateOFDPacket done [21:56:36]NVStorageSaveData kkm_last_timestamp [21:56:36]File name is /storage/kkm_last_timestamp [21:56:36]Write 4 bytes [21:56:36]NVStorageSaveData done [21:56:36]ExternCall_PrintAddStr [21:56:36]wPrintStart [21:56:36]Write to MH i2c: 01 00 00 F7 08 FF [21:56:36]Write i2c OK [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: 01 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: 01 07 00 [21:56:36]MH_I2C_Read... [21:56:36]Read from MH i2c: 01 07 00 F7 08 00 00 00 00 00 FF 0F 14 [21:56:36]RasterBufferAndPrint [21:56:36]line Счет N : (3)47683 [21:56:36]line ИНН: 02508201610067 [21:56:36]line Контрольно-Кассовый Чек [21:56:36]line ПРОДАЖА [21:56:36]line Товар: 47011656 [21:56:36]line Водка Пшеничная 0,1л [21:56:36]line 2.000 * 65.00 [21:56:36]line = 130.00 [21:56:36]line НДС 12% НСП 1% [21:56:36]line > о реализуемом товаре [21:56:36]line ИТОГО: 130.00 [21:56:36]line НСП 1% : 1.15 [21:56:36]line НДС 12% : 13.80 [21:56:36]line Наличными: 130.00 [21:56:36]line Безнал.: 0.00 [21:56:36]line Место: АЗС № 86 "Партнер Нефть" [21:56:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:56:36]line СНО: Общий режим [21:56:36]line Чек 102 23.10.2024 21:56 [21:56:36]line Смена: 546 ФФД: 1.0 [21:56:36]line ЗНМ: 0300000154 [21:56:36]line РНМ: 0000000000091619 [21:56:36]line Версия ККМ: 001 [21:56:36]line ФМ: 0000000000874676 [21:56:36]line ФД: 63373 [21:56:36]line ФПД: 171044329023799 [21:56:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T215637&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63373&fm=171044329023799&tin=02508201610067®Number=0000000000091619&sum=13000 [21:56:36]OFD Sender: Processing packet 63373 [packets to send 232, broken 231] [21:56:36]ProducePacketName [21:56:36]name=ofd_packets/00063373 [21:56:36]OFD Sender: To server: pG, [21:56:36]CommunicateWithHost lk.salyk.kg:30040 [21:56:36]ConnectInit lk.salyk.kg [21:56:36]line 0 [21:56:36]written 0, free lines is 4095 [21:56:37]Connected sock=10 [21:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 D4 3F 1C 01 37 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 15 71 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8D F7 00 00 35 04 06 00 9B 90 5C 78 E9 37 4F 63 68 85 23 C1 0D AB [21:56:37]Write to MH i2c: 01 00 00 1F 09 28 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 12 0D 4E [21:56:37]RasterBufferAndPrint [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]line [21:56:37]written 0, free lines is 3353 [21:56:37]MH_Cut [21:56:37]Write to MH i2c: D1 01 00 26 09 01 01 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 01 00 [21:56:37]MH_I2C_Read... [21:56:37]Read from MH i2c: D1 01 00 26 09 00 00 [21:56:37]Write to MH i2c: 01 00 00 27 09 30 [21:56:37]Write i2c OK [21:56:37]MH_I2C_Read... [21:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 A6 27 47 00 64 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 38 37 34 36 37 36 10 04 04 00 8D F7 00 00 F4 03 04 00 0B 1B 19 67 B6 04 01 00 00 AD 4D FB 05 D3 C9 41 AD [21:56:37]CommunicateWithHost err = 0 [21:56:37]CheckOFDResponse [21:56:37]1017 (14) - 77093643461234 [21:56:37]1041 (16) - 0000000000874676 [21:56:37]1040 (4) - 63373 [21:56:37]1012 (4) - 23.10.2024 15:49 [21:56:37]1206 (1) - 0 [21:56:37]OFD Sender: Remove packet 63373 [21:56:37]ProducePacketName [21:56:37]name=ofd_packets/00063373 [21:56:37]NVStorageDeleteData [21:56:37]*** Cut start [21:56:37]*** Partial cut [21:56:37]*** CUTSNS_PIN = 1 [21:56:37]*** CUTSNS_PIN = 0 [21:56:38]OFD Sender: No OFD packet to send [21:56:38]*** Brake cut motor [21:56:38]Read from MH i2c: 01 [21:56:38]MH_I2C_Read... [21:56:38]*** Stop cut motor [21:56:38]*** Cut end [21:56:38]Read from MH i2c: 01 07 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: 01 07 00 27 09 00 00 00 00 00 FF 0F 45 [21:56:38]process_action close_receipt done [21:56:38]requested_data is exist [21:56:38]produce_requested_data [21:56:38]requested_item fm.sn is exist - process it [21:56:38]wFMCommunicate request_size=4 [21:56:38]MH_SAM_APDU [21:56:38]CAPDU: 80 11 00 00 [21:56:38]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [21:56:38]Write i2c OK [21:56:38]MH_I2C_Read... [21:56:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:56:38]Read from MH i2c: E2 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 17 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 04 [21:56:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [21:56:38]wFMCommunicate OK [21:56:38]requested_item fd.num is exist - process it [21:56:38]SAM_PROTO_GetFieldsCounters [21:56:38]wFMCommunicate request_size=4 [21:56:38]MH_SAM_APDU [21:56:38]CAPDU: 80 13 00 00 [21:56:38]Write to MH i2c: E2 08 00 29 09 80 13 00 00 00 00 00 00 AE [21:56:38]Write i2c OK [21:56:38]MH_I2C_Read... [21:56:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:56:38]Read from MH i2c: E2 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 62 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 62 00 29 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8D F7 00 00 0E 04 04 00 22 02 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 B0 [21:56:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8D F7 00 00 0E 04 04 00 22 02 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 [21:56:38]wFMCommunicate OK [21:56:38]SAM_PROTO_GetFieldsCounters done [21:56:38]requested_item shift.num is exist - process it [21:56:38]requested_item shift.opened is exist - process it [21:56:38]req_shift_opened [21:56:38]FM_GetShiftState [21:56:38]SAM_PROTO_GetShiftState [21:56:38]wFMCommunicate request_size=4 [21:56:38]MH_SAM_APDU [21:56:38]CAPDU: 80 13 01 00 [21:56:38]Write to MH i2c: E2 08 00 2A 09 80 13 01 00 00 00 00 00 B0 [21:56:38]Write i2c OK [21:56:38]MH_I2C_Read... [21:56:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:56:38]Read from MH i2c: E2 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 0E 00 [21:56:38]MH_I2C_Read... [21:56:38]Read from MH i2c: E2 0E 00 2A 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 9A [21:56:38]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [21:56:38]wFMCommunicate OK [21:56:38]SAM_PROTO_GetShiftState done [21:56:38]FM_GetShiftState done [21:56:38]req_shift_opened done [21:56:38]requested_item shift.open_date is exist - process it [21:56:38]req_shift_open_date [21:56:38]req_shift_open_date done [21:56:38]produce_requested_data done [21:56:38]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63373,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [21:56:38]process_action_free close_receipt [21:56:38]json_value_free [21:56:38]json_value_free done [21:56:38]process_json_proto returns [21:56:38]Send response to host [21:56:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63373,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [21:56:38]free response buf [21:56:38]execute_script done [21:56:38]execute_script returns [21:56:38]free content buf [21:56:38]Sock 7.Close socket [21:56:38]Sock 7.Thread stoped [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:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07: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:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:35]accept exits with 9 [22:15:35]New connection [22:15:35]New thread 3066633572 created [22:15:35]Thread 3066490212 joined [22:15:35]Waiting for new connection... [22:15:35] Sock 9.Parse request [22:15:35]Sock 9.Check first char [22:15:35]Sock 9.First char is OK [22:15:35]request: POST /json_proto HTTP/1.0 [22:15:35]Method: POST [22:15:35]URL: /json_proto [22:15:35]Method is POST - this is cgi request [22:15:35]url: /json_proto [22:15:35]query_string will be loaded in cgi processing [22:15:35]execute_cgi json_proto POST (null) [22:15:35]execute_cgi path=json_proto method=POST [22:15:35]POST find Content-Length [22:15:35]Host: 172.17.42.132:8080 [22:15:35]Content-Length: 1157 [22:15:35]Content-Type: application/json [22:15:35] [22:15:35]POST finish read [22:15:35]Found Content-Length = 1157 [22:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47684", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:35]execute_script... [22:15: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 : (3)47684", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46116482", "name": "\u0416\u0435\u0432 Orbit \u044F\u0433\u043E\u0434\u043D\u044B\u0439 \u043C\u0438\u043A\u0441", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:35]POST & json_proto [22:15:35]process_json_proto [22:15:35]json parsed OK: [22:15:35]protocol is kg_v1.0 [22:15:35]action value=close_receipt [22:15:35]process_action close_receipt [22:15:35]cmd_close_receipt [22:15:35]MH_GetDate [22:15:35]Write to MH i2c: F0 00 00 2B 09 23 [22:15:35]Write i2c OK [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 09 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 09 00 2B 09 00 8A 75 19 67 4C DF 56 66 92 [22:15:35]GetLastDocTimeStamp 1729720597 [22:15:35]current date 1729721738 [22:15:35]FM_GetShiftState [22:15:35]SAM_PROTO_GetShiftState [22:15:35]wFMCommunicate request_size=4 [22:15:35]MH_SAM_APDU [22:15:35]CAPDU: 80 13 01 00 [22:15:35]Write to MH i2c: E2 08 00 2C 09 80 13 01 00 00 00 00 00 B2 [22:15:35]Write i2c OK [22:15:35]MH_I2C_Read... [22:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:35]Read from MH i2c: E2 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 2C 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 9C [22:15:35]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:15:35]wFMCommunicate OK [22:15:35]SAM_PROTO_GetShiftState done [22:15:35]FM_GetShiftState done [22:15:35]opened in 1729642527 [22:15:35]opened+sec_in_day 1729728927 [22:15:35]quantity*price = 5900 [22:15:35]sum+1 = 5901 [22:15:35]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46116482 Жев Orbit ягодный микс 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.54 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 23.10.2024 22:15 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63374 ФПД: 19981991624157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221538&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63374&fm=19981991624157&tin=02508201610067®Number=0000000000091619&sum=18400 0 [22:15:37]StoreToDocumentArchive [22:15:37]shift 546 fd 63374 [22:15:37]save to /storage/0546/doc_00063374 [22:15:37]save last doc name /storage/0546/doc_00063374 to /storage/kkm_last_doc_name [22:15:37]save OK [22:15:37]Clear old archive folders... [22:15:37]ProcessDocumentItem done err = 0, tmpTLVsize=484 [22:15:37]tlvbuf is 00B1B150 [22:15:37]SAM_PROTO_ClearQueue [22:15:37]wFMCommunicate request_size=4 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 09 00 00 [22:15:37]Write to MH i2c: E2 08 00 39 09 80 09 00 00 00 00 00 00 B4 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 39 09 00 90 00 B6 [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]SAM_PROTO_ClearQueue done [22:15:37]KKMCreateOFDPacket [22:15:37]OFDProtocolAddRootSTLVToBuf [22:15:37]FM_MakeSignedData [22:15:37]FM_MakeSignedData [22:15:37]SAM_PROTO_SignData [22:15:37]wFMCommunicate request_size=4 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 01 02 [22:15:37]Write to MH i2c: E2 08 00 3A 09 80 0D 01 02 00 00 00 00 BC [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 3A 09 00 90 00 B7 [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]wFMCommunicate request_size=255 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 [22:15:37]Write to MH i2c: E2 02 01 3B 09 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 00 00 84 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]wFMCommunicate request_size=243 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 02 02 EE D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 75 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8E F7 00 00 35 04 06 00 12 2C 6B 83 3D DD [22:15:37]Write to MH i2c: E2 F6 00 3C 09 80 0D 02 02 EE 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 75 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8E F7 00 00 35 04 06 00 12 2C 6B 83 3D DD 00 00 E7 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 [22:15:38]MH_I2C_Read... [22:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:38]Read from MH i2c: E2 03 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [22:15:38]RAPDU: 90 00 [22:15:38]wFMCommunicate OK [22:15:38]wFMCommunicate request_size=4 [22:15:38]MH_SAM_APDU [22:15:38]CAPDU: 80 0D 03 02 [22:15:38]Write to MH i2c: E2 08 00 3D 09 80 0D 03 02 00 00 00 00 C1 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:38]Read from MH i2c: E2 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0B 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 0B 00 3D 09 00 FD 2D FC DD A1 10 69 5F 90 00 3E [22:15:38]RAPDU: FD 2D FC DD A1 10 69 5F 90 00 [22:15:38]wFMCommunicate OK [22:15:38]SAM_PROTO_SignData done [22:15:38]FM_MakeSignedData done [22:15:38]CreateOFDProtocolMessage [22:15:38]wFMCommunicate request_size=4 [22:15:38]MH_SAM_APDU [22:15:38]CAPDU: 80 11 00 00 [22:15:38]Write to MH i2c: E2 08 00 3E 09 80 11 00 00 00 00 00 00 C1 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:38]Read from MH i2c: E2 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 17 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: E2 17 00 3E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 1A [22:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:15:38]wFMCommunicate OK [22:15:38]CreateOFDProtocolMessage done [22:15:38]OFDSenderStorePacket 63374 [22:15:38]StoreOFDPacket docnum=63374 [22:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 F8 01 00 00 FB 41 F0 01 D7 6E 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 75 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8E F7 00 00 35 04 06 00 12 2C 6B 83 3D DD FD 2D FC DD A1 10 69 5F [22:15:38]CheckFolder [22:15:38]dirname=/storage/ofd_packets [22:15:38]CheckFolder done [22:15:38]ProducePacketName [22:15:38]name=ofd_packets/00063374 [22:15:38]NVStorageSaveData ofd_packets/00063374 [22:15:38]File name is /storage/ofd_packets/00063374 [22:15:38]Write 534 bytes [22:15:38]NVStorageSaveData done [22:15:38]OFDSenderStorePacket done [22:15:38]KKMCreateOFDPacket done [22:15:38]NVStorageSaveData kkm_last_timestamp [22:15:38]File name is /storage/kkm_last_timestamp [22:15:38]Write 4 bytes [22:15:38]NVStorageSaveData done [22:15:38]ExternCall_PrintAddStr [22:15:38]wPrintStart [22:15:38]Write to MH i2c: 01 00 00 3F 09 48 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 FF 0F 5D [22:15:38]RasterBufferAndPrint [22:15:38]line Счет N : (3)47684 [22:15:38]line ИНН: 02508201610067 [22:15:38]line Контрольно-Кассовый Чек [22:15:38]line ПРОДАЖА [22:15:38]line Товар: 4011100977624 [22:15:38]line Шок Батончик Баунти 55г [22:15:38]line 1.000 * 59.00 [22:15:38]line = 59.00 [22:15:38]line НДС 12% НСП 1% [22:15:38]line > о реализуемом товаре [22:15:38]line Товар: 46116482 [22:15:38]line Жев Orbit ягодный микс [22:15:38]line 1.000 * 45.00 [22:15:38]line = 45.00 [22:15:38]line НДС 12% НСП 1% [22:15:38]line > о реализуемом товаре [22:15:38]line Товар: 4870001570057 [22:15:38]line Напиток Pepsi 0,5л [22:15:38]line 1.000 * 80.00 [22:15:38]line = 80.00 [22:15:38]line НДС 12% НСП 1% [22:15:38]line > о реализуемом товаре [22:15:38]line ИТОГО: 184.00 [22:15:38]line НСП 1% : 1.63 [22:15:38]line НДС 12% : 19.54 [22:15:38]line Наличными: 184.00 [22:15:38]line Безнал.: 0.00 [22:15:38]line Место: АЗС № 86 "Партнер Нефть" [22:15:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:15:38]line СНО: Общий режим [22:15:38]line Чек 103 23.10.2024 22:15 [22:15:38]line Смена: 546 ФФД: 1.0 [22:15:38]line ЗНМ: 0300000154 [22:15:38]line РНМ: 0000000000091619 [22:15:38]line Версия ККМ: 001 [22:15:38]line ФМ: 0000000000874676 [22:15:38]line ФД: 63374 [22:15:38]line ФПД: 19981991624157 [22:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T221538&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63374&fm=19981991624157&tin=02508201610067®Number=0000000000091619&sum=18400 [22:15:38]line 0 [22:15:38]written 0, free lines is 4095 [22:15:38]OFD Sender: Processing packet 63374 [packets to send 232, broken 231] [22:15:38]ProducePacketName [22:15:38]name=ofd_packets/00063374 [22:15:38]OFD Sender: To server: pG, [22:15:38]CommunicateWithHost lk.salyk.kg:30040 [22:15:38]ConnectInit lk.salyk.kg [22:15:38]Connected sock=10 [22:15:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 F8 01 00 00 FB 41 F0 01 D7 6E 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 75 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8E F7 00 00 35 04 06 00 12 2C 6B 83 3D DD FD 2D FC DD A1 10 69 5F [22:15:38]Write to MH i2c: 01 00 00 73 09 7C [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 73 09 00 00 00 00 00 9D 0C 2C [22:15:38]RasterBufferAndPrint [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]written 0, free lines is 3236 [22:15:38]MH_Cut [22:15:38]Write to MH i2c: D1 01 00 7A 09 01 55 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 01 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 01 00 7A 09 00 54 [22:15:38]Write to MH i2c: 01 00 00 7B 09 84 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 6E AB 47 00 5F 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8E F7 00 00 F4 03 04 00 81 1F 19 67 B6 04 01 00 00 2E 71 65 9D F5 BE 4B 91 [22:15:39]CommunicateWithHost err = 0 [22:15:39]CheckOFDResponse [22:15:39]1017 (14) - 77093643461234 [22:15:39]1041 (16) - 0000000000874676 [22:15:39]1040 (4) - 63374 [22:15:39]1012 (4) - 23.10.2024 16:08 [22:15:39]1206 (1) - 0 [22:15:39]OFD Sender: Remove packet 63374 [22:15:39]ProducePacketName [22:15:39]name=ofd_packets/00063374 [22:15:39]NVStorageDeleteData [22:15:39]*** Cut start [22:15:39]*** Partial cut [22:15:39]*** CUTSNS_PIN = 1 [22:15:39]*** CUTSNS_PIN = 0 [22:15:39]OFD Sender: No OFD packet to send [22:15:39]*** Brake cut motor [22:15:40]Read from MH i2c: 01 [22:15:40]MH_I2C_Read... [22:15:40]*** Stop cut motor [22:15:40]*** Cut end [22:15:40]Read from MH i2c: 01 07 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [22:15:40]process_action close_receipt done [22:15:40]requested_data is exist [22:15:40]produce_requested_data [22:15:40]requested_item fm.sn is exist - process it [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 11 00 00 [22:15:40]Write to MH i2c: E2 08 00 7C 09 80 11 00 00 00 00 00 00 FF [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 17 00 7C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 58 [22:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:15:40]wFMCommunicate OK [22:15:40]requested_item fd.num is exist - process it [22:15:40]SAM_PROTO_GetFieldsCounters [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 13 00 00 [22:15:40]Write to MH i2c: E2 08 00 7D 09 80 13 00 00 00 00 00 00 02 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 62 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 62 00 7D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8E F7 00 00 0E 04 04 00 22 02 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 08 [22:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8E F7 00 00 0E 04 04 00 22 02 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 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_GetFieldsCounters done [22:15:40]requested_item shift.num is exist - process it [22:15:40]requested_item shift.opened is exist - process it [22:15:40]req_shift_opened [22:15:40]FM_GetShiftState [22:15:40]SAM_PROTO_GetShiftState [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 13 01 00 [22:15:40]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0E 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 EE [22:15:40]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_GetShiftState done [22:15:40]FM_GetShiftState done [22:15:40]req_shift_opened done [22:15:40]requested_item shift.open_date is exist - process it [22:15:40]req_shift_open_date [22:15:40]req_shift_open_date done [22:15:40]produce_requested_data done [22:15:40]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63374,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [22:15:40]process_action_free close_receipt [22:15:40]json_value_free [22:15:40]json_value_free done [22:15:40]process_json_proto returns [22:15:40]Send response to host [22:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63374,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [22:15:40]free response buf [22:15:40]execute_script done [22:15:40]execute_script returns [22:15:40]free content buf [22:15:40]Sock 9.Close socket [22:15:40]Sock 9.Thread stoped [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:24]OFD Sender: No OFD packet to send [22:16:29]OFD Sender: No OFD packet to send [22:16:34]OFD Sender: No OFD packet to send [22:16:39]OFD Sender: No OFD packet to send [22:16:44]OFD Sender: No OFD packet to send [22:16:49]OFD Sender: No OFD packet to send [22:16:54]OFD Sender: No OFD packet to send [22:16:59]OFD Sender: No OFD packet to send [22:17:04]OFD Sender: No OFD packet to send [22:17:09]OFD Sender: No OFD packet to send [22:17:14]OFD Sender: No OFD packet to send [22:17:19]OFD Sender: No OFD packet to send [22:17:24]OFD Sender: No OFD packet to send [22:17:29]OFD Sender: No OFD packet to send [22:17:34]OFD Sender: No OFD packet to send [22:17:39]OFD Sender: No OFD packet to send [22:17:44]OFD Sender: No OFD packet to send [22:17:49]OFD Sender: No OFD packet to send [22:17:54]OFD Sender: No OFD packet to send [22:17:59]OFD Sender: No OFD packet to send [22:18:04]OFD Sender: No OFD packet to send [22:18:09]OFD Sender: No OFD packet to send [22:18:14]OFD Sender: No OFD packet to send [22:18:19]OFD Sender: No OFD packet to send [22:18:24]OFD Sender: No OFD packet to send [22:18:29]OFD Sender: No OFD packet to send [22:18:34]OFD Sender: No OFD packet to send [22:18:39]OFD Sender: No OFD packet to send [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:31:57]accept exits with 7 [22:31:57]New connection [22:31:57]New thread 3066490212 created [22:31:57]Thread 3066633572 joined [22:31:57]Waiting for new connection... [22:31:57] Sock 7.Parse request [22:31:57]Sock 7.Check first char [22:31:57]Sock 7.First char is OK [22:31:57]request: POST /json_proto HTTP/1.0 [22:31:57]Method: POST [22:31:57]URL: /json_proto [22:31:57]Method is POST - this is cgi request [22:31:57]url: /json_proto [22:31:57]query_string will be loaded in cgi processing [22:31:57]execute_cgi json_proto POST (null) [22:31:57]execute_cgi path=json_proto method=POST [22:31:57]POST find Content-Length [22:31:57]Host: 172.17.42.132:8080 [22:31:57]Content-Length: 748 [22:31:57]Content-Type: application/json [22:31:57] [22:31:57]POST finish read [22:31:57]Found Content-Length = 748 [22:31:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47685", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.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", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:57]execute_script... [22:31:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47685", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 158.58, "quantity" : 1.000, "sum" : 158.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", "payments": [ { "type": 1, "sum" : 158.58 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:57]POST & json_proto [22:31:57]process_json_proto [22:31:57]json parsed OK: [22:31:57]protocol is kg_v1.0 [22:31:57]action value=close_receipt [22:31:57]process_action close_receipt [22:31:57]cmd_close_receipt [22:31:57]MH_GetDate [22:31:57]Write to MH i2c: F0 00 00 7F 09 77 [22:31:57]Write i2c OK [22:31:57]MH_I2C_Read... [22:31:57]Read from MH i2c: F0 [22:31:57]MH_I2C_Read... [22:31:57]Read from MH i2c: F0 09 00 [22:31:57]MH_I2C_Read... [22:31:57]Read from MH i2c: F0 09 00 7F 09 00 5F 79 19 67 4C DF 56 66 BF [22:31:57]GetLastDocTimeStamp 1729721738 [22:31:57]current date 1729722719 [22:31:57]FM_GetShiftState [22:31:57]SAM_PROTO_GetShiftState [22:31:57]wFMCommunicate request_size=4 [22:31:57]MH_SAM_APDU [22:31:57]CAPDU: 80 13 01 00 [22:31:57]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [22:31:57]Write i2c OK [22:31:57]MH_I2C_Read... [22:31:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:57]Read from MH i2c: E2 [22:31:57]MH_I2C_Read... [22:31:57]Read from MH i2c: E2 0E 00 [22:31:57]MH_I2C_Read... [22:31:57]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 F0 [22:31:57]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:31:57]wFMCommunicate OK [22:31:57]SAM_PROTO_GetShiftState done [22:31:57]FM_GetShiftState done [22:31:57]opened in 1729642527 [22:31:57]opened+sec_in_day 1729728927 [22:31:57]quantity*price = 15858 [22:31:57]sum+1 = 15859 [22:31:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 158.58 НСП 1% : 1.40 НДС 12% : 16.84 Наличными: 0.00 Безнал.: 158.58 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 23.10.2024 22:31 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63375 ФПД: 147400855115111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223159&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63375&fm=147400855115111&tin=02508201610067®Number=0000000000091619&sum=15858 0 [22:31:58]StoreToDocumentArchive [22:31:58]shift 546 fd 63375 [22:31:58]save to /storage/0546/doc_00063375 [22:31:58]save last doc name /storage/0546/doc_00063375 to /storage/kkm_last_doc_name [22:31:58]save OK [22:31:58]Clear old archive folders... [22:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:31:58]tlvbuf is 00B0C830 [22:31:58]SAM_PROTO_ClearQueue [22:31:58]wFMCommunicate request_size=4 [22:31:58]MH_SAM_APDU [22:31:58]CAPDU: 80 09 00 00 [22:31:58]Write to MH i2c: E2 08 00 8D 09 80 09 00 00 00 00 00 00 08 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:58]Read from MH i2c: E2 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: E2 03 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [22:31:58]RAPDU: 90 00 [22:31:58]wFMCommunicate OK [22:31:58]SAM_PROTO_ClearQueue done [22:31:58]KKMCreateOFDPacket [22:31:58]OFDProtocolAddRootSTLVToBuf [22:31:58]FM_MakeSignedData [22:31:58]FM_MakeSignedData [22:31:58]SAM_PROTO_SignData [22:31:58]wFMCommunicate request_size=4 [22:31:58]MH_SAM_APDU [22:31:58]CAPDU: 80 0D 01 02 [22:31:58]Write to MH i2c: E2 08 00 8E 09 80 0D 01 02 00 00 00 00 10 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:58]Read from MH i2c: E2 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: E2 03 00 [22:31:58]MH_I2C_Read... [22:31:58]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [22:31:58]RAPDU: 90 00 [22:31:58]wFMCommunicate OK [22:31:58]wFMCommunicate request_size=255 [22:31:58]MH_SAM_APDU [22:31:58]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F 79 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 [22:31:58]Write to MH i2c: E2 02 01 8F 09 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F 79 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 00 00 F9 [22:31:58]Write i2c OK [22:31:58]MH_I2C_Read... [22:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:59]Read from MH i2c: E2 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 03 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 03 00 8F 09 00 90 00 0C [22:31:59]RAPDU: 90 00 [22:31:59]wFMCommunicate OK [22:31:59]wFMCommunicate request_size=33 [22:31:59]MH_SAM_APDU [22:31:59]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F7 00 00 35 04 06 00 86 0F 6F 9B D5 67 [22:31:59]Write to MH i2c: E2 24 00 90 09 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F7 00 00 35 04 06 00 86 0F 6F 9B D5 67 00 00 09 [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:59]Read from MH i2c: E2 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 03 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [22:31:59]RAPDU: 90 00 [22:31:59]wFMCommunicate OK [22:31:59]wFMCommunicate request_size=4 [22:31:59]MH_SAM_APDU [22:31:59]CAPDU: 80 0D 03 02 [22:31:59]Write to MH i2c: E2 08 00 91 09 80 0D 03 02 00 00 00 00 15 [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:59]Read from MH i2c: E2 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 0B 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 0B 00 91 09 00 08 7F 54 41 55 92 65 33 90 00 B1 [22:31:59]RAPDU: 08 7F 54 41 55 92 65 33 90 00 [22:31:59]wFMCommunicate OK [22:31:59]SAM_PROTO_SignData done [22:31:59]FM_MakeSignedData done [22:31:59]CreateOFDProtocolMessage [22:31:59]wFMCommunicate request_size=4 [22:31:59]MH_SAM_APDU [22:31:59]CAPDU: 80 11 00 00 [22:31:59]Write to MH i2c: E2 08 00 92 09 80 11 00 00 00 00 00 00 15 [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:59]Read from MH i2c: E2 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 17 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: E2 17 00 92 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 6E [22:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:31:59]wFMCommunicate OK [22:31:59]CreateOFDProtocolMessage done [22:31:59]OFDSenderStorePacket 63375 [22:31:59]StoreOFDPacket docnum=63375 [22:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 19 88 1E 01 C1 43 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F 79 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F7 00 00 35 04 06 00 86 0F 6F 9B D5 67 08 7F 54 41 55 92 65 33 [22:31:59]CheckFolder [22:31:59]dirname=/storage/ofd_packets [22:31:59]CheckFolder done [22:31:59]ProducePacketName [22:31:59]name=ofd_packets/00063375 [22:31:59]NVStorageSaveData ofd_packets/00063375 [22:31:59]File name is /storage/ofd_packets/00063375 [22:31:59]Write 324 bytes [22:31:59]NVStorageSaveData done [22:31:59]OFDSenderStorePacket done [22:31:59]KKMCreateOFDPacket done [22:31:59]NVStorageSaveData kkm_last_timestamp [22:31:59]File name is /storage/kkm_last_timestamp [22:31:59]Write 4 bytes [22:31:59]NVStorageSaveData done [22:31:59]ExternCall_PrintAddStr [22:31:59]wPrintStart [22:31:59]Write to MH i2c: 01 00 00 93 09 9C [22:31:59]Write i2c OK [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 [22:31:59]MH_I2C_Read... [22:31:59]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 FF 0F B1 [22:31:59]RasterBufferAndPrint [22:31:59]line Счет N : (3)47685 [22:31:59]line ИНН: 02508201610067 [22:31:59]line Контрольно-Кассовый Чек [22:31:59]line ПРОДАЖА [22:31:59]line Товар: 48741958 [22:31:59]line Сигареты Parliament Aqua Blue [22:31:59]line 1.000 * 158.58 [22:31:59]line = 158.58 [22:31:59]line НДС 12% НСП 1% [22:31:59]line > о реализуемом товаре [22:31:59]line ИТОГО: 158.58 [22:31:59]line НСП 1% : 1.40 [22:31:59]line НДС 12% : 16.84 [22:31:59]line Наличными: 0.00 [22:31:59]line Безнал.: 158.58 [22:31:59]line Место: АЗС № 86 "Партнер Нефть" [22:31:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:31:59]line СНО: Общий режим [22:31:59]line Чек 104 23.10.2024 22:31 [22:31:59]line Смена: 546 ФФД: 1.0 [22:31:59]line ЗНМ: 0300000154 [22:31:59]line РНМ: 0000000000091619 [22:31:59]line Версия ККМ: 001 [22:31:59]line Платежная система: Mbank [22:31:59]line ФМ: 0000000000874676 [22:31:59]line ФД: 63375 [22:31:59]line ФПД: 147400855115111 [22:31:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T223159&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63375&fm=147400855115111&tin=02508201610067®Number=0000000000091619&sum=15858 [22:31:59]line 0 [22:31:59]OFD Sender: Processing packet 63375 [packets to send 232, broken 231] [22:31:59]ProducePacketName [22:31:59]name=ofd_packets/00063375 [22:31:59]OFD Sender: To server: pG, [22:31:59]CommunicateWithHost lk.salyk.kg:30040 [22:31:59]ConnectInit lk.salyk.kg [22:31:59]written 0, free lines is 4095 [22:31:59]Connected sock=10 [22:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 26 01 00 00 19 88 1E 01 C1 43 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F2 3D 00 00 00 00 13 04 06 00 F2 3D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 3D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 5F 79 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 8F F7 00 00 35 04 06 00 86 0F 6F 9B D5 67 08 7F 54 41 55 92 65 33 [22:32:00]Write to MH i2c: 01 00 00 BD 09 C6 [22:32:00]Write i2c OK [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: 01 [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: 01 07 00 [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: 01 07 00 BD 09 00 00 00 00 00 05 0D DF [22:32:00]RasterBufferAndPrint [22:32:00]line [22:32:00]line [22:32:00]line [22:32:00]line [22:32:00]line [22:32:00]written 0, free lines is 3339 [22:32:00]MH_Cut [22:32:00]Write to MH i2c: D1 01 00 C4 09 01 9F [22:32:00]Write i2c OK [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: D1 [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: D1 01 00 [22:32:00]MH_I2C_Read... [22:32:00]Read from MH i2c: D1 01 00 C4 09 00 9E [22:32:00]Write to MH i2c: 01 00 00 C5 09 CE [22:32:00]Write i2c OK [22:32:00]MH_I2C_Read... [22:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 7A 40 47 00 39 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 38 37 34 36 37 36 10 04 04 00 8F F7 00 00 F4 03 04 00 56 23 19 67 B6 04 01 00 00 BE 49 A0 B6 75 A6 E7 E8 [22:32:00]CommunicateWithHost err = 0 [22:32:00]CheckOFDResponse [22:32:00]1017 (14) - 77093643461234 [22:32:00]1041 (16) - 0000000000874676 [22:32:00]1040 (4) - 63375 [22:32:00]1012 (4) - 23.10.2024 16:24 [22:32:00]1206 (1) - 0 [22:32:00]OFD Sender: Remove packet 63375 [22:32:00]ProducePacketName [22:32:00]name=ofd_packets/00063375 [22:32:00]NVStorageDeleteData [22:32:00]OFD Sender: No OFD packet to send [22:32:00]*** Cut start [22:32:00]*** Partial cut [22:32:00]*** CUTSNS_PIN = 1 [22:32:00]*** CUTSNS_PIN = 0 [22:32:01]*** Brake cut motor [22:32:01]Read from MH i2c: 01 [22:32:01]MH_I2C_Read... [22:32:01]*** Stop cut motor [22:32:01]*** Cut end [22:32:01]Read from MH i2c: 01 07 00 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: 01 07 00 C5 09 00 00 00 00 00 FF 0F E3 [22:32:01]process_action close_receipt done [22:32:01]requested_data is exist [22:32:01]produce_requested_data [22:32:01]requested_item fm.sn is exist - process it [22:32:01]wFMCommunicate request_size=4 [22:32:01]MH_SAM_APDU [22:32:01]CAPDU: 80 11 00 00 [22:32:01]Write to MH i2c: E2 08 00 C6 09 80 11 00 00 00 00 00 00 49 [22:32:01]Write i2c OK [22:32:01]MH_I2C_Read... [22:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:01]Read from MH i2c: E2 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 17 00 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 17 00 C6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 A2 [22:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:32:01]wFMCommunicate OK [22:32:01]requested_item fd.num is exist - process it [22:32:01]SAM_PROTO_GetFieldsCounters [22:32:01]wFMCommunicate request_size=4 [22:32:01]MH_SAM_APDU [22:32:01]CAPDU: 80 13 00 00 [22:32:01]Write to MH i2c: E2 08 00 C7 09 80 13 00 00 00 00 00 00 4C [22:32:01]Write i2c OK [22:32:01]MH_I2C_Read... [22:32:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:01]Read from MH i2c: E2 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 62 00 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 62 00 C7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8F F7 00 00 0E 04 04 00 22 02 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 56 [22:32:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 8F F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:01]wFMCommunicate OK [22:32:01]SAM_PROTO_GetFieldsCounters done [22:32:01]requested_item shift.num is exist - process it [22:32:01]requested_item shift.opened is exist - process it [22:32:01]req_shift_opened [22:32:01]FM_GetShiftState [22:32:01]SAM_PROTO_GetShiftState [22:32:01]wFMCommunicate request_size=4 [22:32:01]MH_SAM_APDU [22:32:01]CAPDU: 80 13 01 00 [22:32:01]Write to MH i2c: E2 08 00 C8 09 80 13 01 00 00 00 00 00 4E [22:32:01]Write i2c OK [22:32:01]MH_I2C_Read... [22:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:01]Read from MH i2c: E2 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 0E 00 [22:32:01]MH_I2C_Read... [22:32:01]Read from MH i2c: E2 0E 00 C8 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 38 [22:32:01]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:32:01]wFMCommunicate OK [22:32:01]SAM_PROTO_GetShiftState done [22:32:01]FM_GetShiftState done [22:32:01]req_shift_opened done [22:32:01]requested_item shift.open_date is exist - process it [22:32:01]req_shift_open_date [22:32:01]req_shift_open_date done [22:32:01]produce_requested_data done [22:32:01]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63375,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [22:32:01]process_action_free close_receipt [22:32:01]json_value_free [22:32:01]json_value_free done [22:32:01]process_json_proto returns [22:32:01]Send response to host [22:32:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63375,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [22:32:01]free response buf [22:32:01]execute_script done [22:32:01]execute_script returns [22:32:01]free content buf [22:32:01]Sock 7.Close socket [22:32:01]Sock 7.Thread stoped [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:40]accept exits with 9 [22:42:40]New connection [22:42:40]New thread 3066633572 created [22:42:40]Thread 3066490212 joined [22:42:40]Waiting for new connection... [22:42:40] Sock 9.Parse request [22:42:40]Sock 9.Check first char [22:42:40]Sock 9.First char is OK [22:42:40]request: POST /json_proto HTTP/1.0 [22:42:40]Method: POST [22:42:40]URL: /json_proto [22:42:40]Method is POST - this is cgi request [22:42:40]url: /json_proto [22:42:40]query_string will be loaded in cgi processing [22:42:40]execute_cgi json_proto POST (null) [22:42:40]execute_cgi path=json_proto method=POST [22:42:40]POST find Content-Length [22:42:40]Host: 172.17.42.132:8080 [22:42:40]Content-Length: 1014 [22:42:40]Content-Type: application/json [22:42:40] [22:42:40]POST finish read [22:42:40]Found Content-Length = 1014 [22:42:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47686", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 117.95, "quantity" : 1.000, "sum" : 117.95, "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", "payments": [ { "type": 1, "sum" : 241.84 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:40]execute_script... [22:42: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 : (3)47686", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 123.89, "quantity" : 1.000, "sum" : 123.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 117.95, "quantity" : 1.000, "sum" : 117.95, "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", "payments": [ { "type": 1, "sum" : 241.84 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:42:40]POST & json_proto [22:42:40]process_json_proto [22:42:40]json parsed OK: [22:42:40]protocol is kg_v1.0 [22:42:40]action value=close_receipt [22:42:40]process_action close_receipt [22:42:40]cmd_close_receipt [22:42:40]MH_GetDate [22:42:40]Write to MH i2c: F0 00 00 C9 09 C1 [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: F0 09 00 C9 09 00 E3 7B 19 67 4C DF 56 66 8F [22:42:40]GetLastDocTimeStamp 1729722719 [22:42:40]current date 1729723363 [22:42:40]FM_GetShiftState [22:42:40]SAM_PROTO_GetShiftState [22:42:40]wFMCommunicate request_size=4 [22:42:40]MH_SAM_APDU [22:42:40]CAPDU: 80 13 01 00 [22:42:40]Write to MH i2c: E2 08 00 CA 09 80 13 01 00 00 00 00 00 50 [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:40]Read from MH i2c: E2 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 0E 00 CA 09 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 3A [22:42:40]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:42:40]wFMCommunicate OK [22:42:40]SAM_PROTO_GetShiftState done [22:42:40]FM_GetShiftState done [22:42:40]opened in 1729642527 [22:42:40]opened+sec_in_day 1729728927 [22:42:40]quantity*price = 12389 [22:42:40]sum+1 = 12390 [22:42:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 117.95 = 117.95 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 241.84 НСП 1% : 2.14 НДС 12% : 25.69 Наличными: 0.00 Безнал.: 241.84 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 23.10.2024 22:42 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63376 ФПД: 67971669122923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224243&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63376&fm=67971669122923&tin=02508201610067®Number=0000000000091619&sum=24184 0 [22:42:41]StoreToDocumentArchive [22:42:41]shift 546 fd 63376 [22:42:41]save to /storage/0546/doc_00063376 [22:42:41]save last doc name /storage/0546/doc_00063376 to /storage/kkm_last_doc_name [22:42:41]save OK [22:42:41]Clear old archive folders... [22:42:41]ProcessDocumentItem done err = 0, tmpTLVsize=374 [22:42:41]tlvbuf is 00B09C60 [22:42:41]SAM_PROTO_ClearQueue [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 09 00 00 [22:42:41]Write to MH i2c: E2 08 00 D7 09 80 09 00 00 00 00 00 00 52 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]SAM_PROTO_ClearQueue done [22:42:41]KKMCreateOFDPacket [22:42:41]OFDProtocolAddRootSTLVToBuf [22:42:41]FM_MakeSignedData [22:42:41]FM_MakeSignedData [22:42:41]SAM_PROTO_SignData [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 01 02 [22:42:41]Write to MH i2c: E2 08 00 D8 09 80 0D 01 02 00 00 00 00 5A [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=255 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 2E 00 00 00 00 13 04 06 00 13 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 [22:42:41]Write to MH i2c: E2 02 01 D9 09 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 2E 00 00 00 00 13 04 06 00 13 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 00 00 43 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]wFMCommunicate request_size=133 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 09 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 7B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F7 00 00 35 04 06 00 3D D1 E3 31 5F 6B [22:42:42]Write to MH i2c: E2 88 00 DA 09 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 09 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 7B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F7 00 00 35 04 06 00 3D D1 E3 31 5F 6B 00 00 58 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 03 00 DA 09 00 90 00 57 [22:42:42]RAPDU: 90 00 [22:42:42]wFMCommunicate OK [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 0D 03 02 [22:42:42]Write to MH i2c: E2 08 00 DB 09 80 0D 03 02 00 00 00 00 5F [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 0B 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 0B 00 DB 09 00 87 A4 0E 30 08 9F FB ED 90 00 58 [22:42:42]RAPDU: 87 A4 0E 30 08 9F FB ED 90 00 [22:42:42]wFMCommunicate OK [22:42:42]SAM_PROTO_SignData done [22:42:42]FM_MakeSignedData done [22:42:42]CreateOFDProtocolMessage [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 11 00 00 [22:42:42]Write to MH i2c: E2 08 00 DC 09 80 11 00 00 00 00 00 00 5F [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:42]Read from MH i2c: E2 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 17 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: E2 17 00 DC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 B8 [22:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:42:42]wFMCommunicate OK [22:42:42]CreateOFDProtocolMessage done [22:42:42]OFDSenderStorePacket 63376 [22:42:42]StoreOFDPacket docnum=63376 [22:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8A 01 00 00 73 78 82 01 ED AE 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 2E 00 00 00 00 13 04 06 00 13 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 7B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F7 00 00 35 04 06 00 3D D1 E3 31 5F 6B 87 A4 0E 30 08 9F FB ED [22:42:42]CheckFolder [22:42:42]dirname=/storage/ofd_packets [22:42:42]CheckFolder done [22:42:42]ProducePacketName [22:42:42]name=ofd_packets/00063376 [22:42:42]NVStorageSaveData ofd_packets/00063376 [22:42:42]File name is /storage/ofd_packets/00063376 [22:42:42]Write 424 bytes [22:42:42]NVStorageSaveData done [22:42:42]OFDSenderStorePacket done [22:42:42]KKMCreateOFDPacket done [22:42:42]NVStorageSaveData kkm_last_timestamp [22:42:42]File name is /storage/kkm_last_timestamp [22:42:42]Write 4 bytes [22:42:42]NVStorageSaveData done [22:42:42]ExternCall_PrintAddStr [22:42:42]wPrintStart [22:42:42]Write to MH i2c: 01 00 00 DD 09 E6 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 07 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [22:42:42]RasterBufferAndPrint [22:42:42]line Счет N : (3)47686 [22:42:42]line ИНН: 02508201610067 [22:42:42]line Контрольно-Кассовый Чек [22:42:42]line ПРОДАЖА [22:42:42]line Товар: 5449000054227 [22:42:42]line Напиток Кока-Кола 1л [22:42:42]line 1.000 * 123.89 [22:42:42]line = 123.89 [22:42:42]line НДС 12% НСП 1% [22:42:42]line > о реализуемом товаре [22:42:42]line Товар: 4870001570071 [22:42:42]line Напиток Pepsi 1л [22:42:42]line 1.000 * 117.95 [22:42:42]line = 117.95 [22:42:42]line НДС 12% НСП 1% [22:42:42]line > о реализуемом товаре [22:42:42]line ИТОГО: 241.84 [22:42:42]line НСП 1% : 2.14 [22:42:42]line НДС 12% : 25.69 [22:42:42]line Наличными: 0.00 [22:42:42]line Безнал.: 241.84 [22:42:42]line Место: АЗС № 86 "Партнер Нефть" [22:42:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:42:42]line СНО: Общий режим [22:42:42]line Чек 105 23.10.2024 22:42 [22:42:42]line Смена: 546 ФФД: 1.0 [22:42:42]line ЗНМ: 0300000154 [22:42:42]line РНМ: 0000000000091619 [22:42:42]line Версия ККМ: 001 [22:42:42]line Платежная система: Mbank [22:42:42]line ФМ: 0000000000874676 [22:42:42]line ФД: 63376 [22:42:42]line ФПД: 67971669122923 [22:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T224243&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63376&fm=67971669122923&tin=02508201610067®Number=0000000000091619&sum=24184 [22:42:42]OFD Sender: Processing packet 63376 [packets to send 232, broken 231] [22:42:42]ProducePacketName [22:42:42]name=ofd_packets/00063376 [22:42:42]OFD Sender: To server: pG, [22:42:42]CommunicateWithHost lk.salyk.kg:30040 [22:42:42]ConnectInit lk.salyk.kg [22:42:42]line 0 [22:42:42]written 0, free lines is 4095 [22:42:43]Connected sock=10 [22:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8A 01 00 00 73 78 82 01 ED AE 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 65 30 00 00 00 00 13 04 06 00 65 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 13 2E 00 00 00 00 13 04 06 00 13 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E3 7B 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F7 00 00 35 04 06 00 3D D1 E3 31 5F 6B 87 A4 0E 30 08 9F FB ED [22:42:43]Write to MH i2c: 01 00 00 0C 0A 16 [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 D8 0C 01 [22:42:43]RasterBufferAndPrint [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]line [22:42:43]written 0, free lines is 3294 [22:42:43]MH_Cut [22:42:43]Write to MH i2c: D1 01 00 13 0A 01 EF [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 01 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: D1 01 00 13 0A 00 EE [22:42:43]Write to MH i2c: 01 00 00 14 0A 1E [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 AA D4 47 00 DD A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 90 F7 00 00 F4 03 04 00 D9 25 19 67 B6 04 01 00 00 B0 AF 2C 99 A7 B2 A8 43 [22:42:43]CommunicateWithHost err = 0 [22:42:43]CheckOFDResponse [22:42:43]1017 (14) - 77093643461234 [22:42:43]1041 (16) - 0000000000874676 [22:42:43]1040 (4) - 63376 [22:42:43]1012 (4) - 23.10.2024 16:35 [22:42:43]1206 (1) - 0 [22:42:43]OFD Sender: Remove packet 63376 [22:42:43]ProducePacketName [22:42:43]name=ofd_packets/00063376 [22:42:43]NVStorageDeleteData [22:42:43]OFD Sender: No OFD packet to send [22:42:43]*** Cut start [22:42:43]*** Partial cut [22:42:43]*** CUTSNS_PIN = 1 [22:42:44]*** CUTSNS_PIN = 0 [22:42:44]*** Brake cut motor [22:42:44]Read from MH i2c: 01 [22:42:44]MH_I2C_Read... [22:42:44]*** Stop cut motor [22:42:44]*** Cut end [22:42:44]Read from MH i2c: 01 07 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 FF 0F 33 [22:42:44]process_action close_receipt done [22:42:44]requested_data is exist [22:42:44]produce_requested_data [22:42:44]requested_item fm.sn is exist - process it [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 11 00 00 [22:42:44]Write to MH i2c: E2 08 00 15 0A 80 11 00 00 00 00 00 00 99 [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 17 00 15 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 F2 [22:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:42:44]wFMCommunicate OK [22:42:44]requested_item fd.num is exist - process it [22:42:44]SAM_PROTO_GetFieldsCounters [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 00 00 [22:42:44]Write to MH i2c: E2 08 00 16 0A 80 13 00 00 00 00 00 00 9C [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 62 00 16 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 90 F7 00 00 0E 04 04 00 22 02 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 AA [22:42:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 90 F7 00 00 0E 04 04 00 22 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetFieldsCounters done [22:42:44]requested_item shift.num is exist - process it [22:42:44]requested_item shift.opened is exist - process it [22:42:44]req_shift_opened [22:42:44]FM_GetShiftState [22:42:44]SAM_PROTO_GetShiftState [22:42:44]wFMCommunicate request_size=4 [22:42:44]MH_SAM_APDU [22:42:44]CAPDU: 80 13 01 00 [22:42:44]Write to MH i2c: E2 08 00 17 0A 80 13 01 00 00 00 00 00 9E [22:42:44]Write i2c OK [22:42:44]MH_I2C_Read... [22:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:44]Read from MH i2c: E2 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 [22:42:44]MH_I2C_Read... [22:42:44]Read from MH i2c: E2 0E 00 17 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 88 [22:42:44]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:42:44]wFMCommunicate OK [22:42:44]SAM_PROTO_GetShiftState done [22:42:44]FM_GetShiftState done [22:42:44]req_shift_opened done [22:42:44]requested_item shift.open_date is exist - process it [22:42:44]req_shift_open_date [22:42:44]req_shift_open_date done [22:42:44]produce_requested_data done [22:42:44]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63376,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [22:42:44]process_action_free close_receipt [22:42:44]json_value_free [22:42:44]json_value_free done [22:42:44]process_json_proto returns [22:42:44]Send response to host [22:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63376,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [22:42:44]free response buf [22:42:44]execute_script done [22:42:44]execute_script returns [22:42:44]free content buf [22:42:44]Sock 9.Close socket [22:42:44]Sock 9.Thread stoped [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43: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:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:02]accept exits with 7 [22:57:02]New connection [22:57:02]New thread 3066490212 created [22:57:02]Thread 3066633572 joined [22:57:02]Waiting for new connection... [22:57:02] Sock 7.Parse request [22:57:02]Sock 7.Check first char [22:57:02]Sock 7.First char is OK [22:57:02]request: POST /json_proto HTTP/1.0 [22:57:02]Method: POST [22:57:02]URL: /json_proto [22:57:02]Method is POST - this is cgi request [22:57:02]url: /json_proto [22:57:02]query_string will be loaded in cgi processing [22:57:02]execute_cgi json_proto POST (null) [22:57:02]execute_cgi path=json_proto method=POST [22:57:02]POST find Content-Length [22:57:02]Host: 172.17.42.132:8080 [22:57:02]Content-Length: 899 [22:57:02]Content-Type: application/json [22:57:02] [22:57:02]POST finish read [22:57:02]Found Content-Length = 899 [22:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47687", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:02]execute_script... [22:57:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47687", "tax_sys" : 0, "items" : [ { "code": "4870001159955", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u041F\u042D\u0422 1\u043B", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:02]POST & json_proto [22:57:02]process_json_proto [22:57:02]json parsed OK: [22:57:02]protocol is kg_v1.0 [22:57:02]action value=close_receipt [22:57:02]process_action close_receipt [22:57:02]cmd_close_receipt [22:57:02]MH_GetDate [22:57:02]Write to MH i2c: F0 00 00 18 0A 11 [22:57:02]Write i2c OK [22:57:02]MH_I2C_Read... [22:57:02]Read from MH i2c: F0 [22:57:02]MH_I2C_Read... [22:57:02]Read from MH i2c: F0 09 00 [22:57:02]MH_I2C_Read... [22:57:02]Read from MH i2c: F0 09 00 18 0A 00 41 7F 19 67 4C DF 56 66 41 [22:57:02]GetLastDocTimeStamp 1729723363 [22:57:02]current date 1729724225 [22:57:02]FM_GetShiftState [22:57:02]SAM_PROTO_GetShiftState [22:57:02]wFMCommunicate request_size=4 [22:57:02]MH_SAM_APDU [22:57:02]CAPDU: 80 13 01 00 [22:57:02]Write to MH i2c: E2 08 00 19 0A 80 13 01 00 00 00 00 00 A0 [22:57:02]Write i2c OK [22:57:02]MH_I2C_Read... [22:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:02]Read from MH i2c: E2 [22:57:02]MH_I2C_Read... [22:57:02]Read from MH i2c: E2 0E 00 [22:57:02]MH_I2C_Read... [22:57:02]Read from MH i2c: E2 0E 00 19 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 8A [22:57:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:57:02]wFMCommunicate OK [22:57:02]SAM_PROTO_GetShiftState done [22:57:02]FM_GetShiftState done [22:57:02]opened in 1729642527 [22:57:02]opened+sec_in_day 1729728927 [22:57:02]quantity*price = 4500 [22:57:02]sum+1 = 4501 [22:57:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036230011 Кофе Латте XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 23.10.2024 22:57 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63377 ФПД: 76838484479228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225705&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63377&fm=76838484479228&tin=02508201610067®Number=0000000000091619&sum=17500 0 [22:57:03]StoreToDocumentArchive [22:57:03]shift 546 fd 63377 [22:57:03]save to /storage/0546/doc_00063377 [22:57:03]save last doc name /storage/0546/doc_00063377 to /storage/kkm_last_doc_name [22:57:03]save OK [22:57:03]Clear old archive folders... [22:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=388 [22:57:03]tlvbuf is 00B10630 [22:57:03]SAM_PROTO_ClearQueue [22:57:03]wFMCommunicate request_size=4 [22:57:03]MH_SAM_APDU [22:57:03]CAPDU: 80 09 00 00 [22:57:03]Write to MH i2c: E2 08 00 26 0A 80 09 00 00 00 00 00 00 A2 [22:57:03]Write i2c OK [22:57:03]MH_I2C_Read... [22:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:03]Read from MH i2c: E2 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 03 00 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [22:57:03]RAPDU: 90 00 [22:57:03]wFMCommunicate OK [22:57:03]SAM_PROTO_ClearQueue done [22:57:03]KKMCreateOFDPacket [22:57:03]OFDProtocolAddRootSTLVToBuf [22:57:03]FM_MakeSignedData [22:57:03]FM_MakeSignedData [22:57:03]SAM_PROTO_SignData [22:57:03]wFMCommunicate request_size=4 [22:57:03]MH_SAM_APDU [22:57:03]CAPDU: 80 0D 01 02 [22:57:03]Write to MH i2c: E2 08 00 27 0A 80 0D 01 02 00 00 00 00 AA [22:57:03]Write i2c OK [22:57:03]MH_I2C_Read... [22:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:03]Read from MH i2c: E2 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 03 00 [22:57:03]MH_I2C_Read... [22:57:03]Read from MH i2c: E2 03 00 27 0A 00 90 00 A5 [22:57:03]RAPDU: 90 00 [22:57:03]wFMCommunicate OK [22:57:03]wFMCommunicate request_size=255 [22:57:03]MH_SAM_APDU [22:57:03]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [22:57:03]Write to MH i2c: E2 02 01 28 0A 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 2F [22:57:03]Write i2c OK [22:57:03]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 28 0A 00 90 00 A6 [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]wFMCommunicate request_size=147 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 02 02 8E F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 41 7F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F7 00 00 35 04 06 00 45 E2 5A 92 8C FC [22:57:04]Write to MH i2c: E2 96 00 29 0A 80 0D 02 02 8E 00 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 41 7F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F7 00 00 35 04 06 00 45 E2 5A 92 8C FC 00 00 72 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [22:57:04]RAPDU: 90 00 [22:57:04]wFMCommunicate OK [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 0D 03 02 [22:57:04]Write to MH i2c: E2 08 00 2A 0A 80 0D 03 02 00 00 00 00 AF [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 0B 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 0B 00 2A 0A 00 4F CA 9A B7 43 B0 3E 1B 90 00 66 [22:57:04]RAPDU: 4F CA 9A B7 43 B0 3E 1B 90 00 [22:57:04]wFMCommunicate OK [22:57:04]SAM_PROTO_SignData done [22:57:04]FM_MakeSignedData done [22:57:04]CreateOFDProtocolMessage [22:57:04]wFMCommunicate request_size=4 [22:57:04]MH_SAM_APDU [22:57:04]CAPDU: 80 11 00 00 [22:57:04]Write to MH i2c: E2 08 00 2B 0A 80 11 00 00 00 00 00 00 AF [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:04]Read from MH i2c: E2 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 17 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: E2 17 00 2B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 08 [22:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:57:04]wFMCommunicate OK [22:57:04]CreateOFDProtocolMessage done [22:57:04]OFDSenderStorePacket 63377 [22:57:04]StoreOFDPacket docnum=63377 [22:57:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 98 01 00 00 EA 6F 90 01 75 71 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 41 7F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F7 00 00 35 04 06 00 45 E2 5A 92 8C FC 4F CA 9A B7 43 B0 3E 1B [22:57:04]CheckFolder [22:57:04]dirname=/storage/ofd_packets [22:57:04]CheckFolder done [22:57:04]ProducePacketName [22:57:04]name=ofd_packets/00063377 [22:57:04]NVStorageSaveData ofd_packets/00063377 [22:57:04]File name is /storage/ofd_packets/00063377 [22:57:04]Write 438 bytes [22:57:04]NVStorageSaveData done [22:57:04]OFDSenderStorePacket done [22:57:04]KKMCreateOFDPacket done [22:57:04]NVStorageSaveData kkm_last_timestamp [22:57:04]File name is /storage/kkm_last_timestamp [22:57:04]Write 4 bytes [22:57:04]NVStorageSaveData done [22:57:04]ExternCall_PrintAddStr [22:57:04]wPrintStart [22:57:04]Write to MH i2c: 01 00 00 2C 0A 36 [22:57:04]Write i2c OK [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 07 00 [22:57:04]MH_I2C_Read... [22:57:04]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 FF 0F 4B [22:57:04]RasterBufferAndPrint [22:57:04]line Счет N : (3)47687 [22:57:04]line ИНН: 02508201610067 [22:57:04]line Контрольно-Кассовый Чек [22:57:04]line ПРОДАЖА [22:57:04]line Товар: 4870001159955 [22:57:04]line Вода ASU пит н.газ ПЭТ 1л [22:57:04]line 1.000 * 45.00 [22:57:04]line = 45.00 [22:57:04]line НДС 12% НСП 1% [22:57:04]line > о реализуемом товаре [22:57:04]line Товар: 2000036230011 [22:57:04]line Кофе Латте XL(GABB TRADE) [22:57:04]line 1.000 * 130.00 [22:57:04]line = 130.00 [22:57:04]line НДС 12% НСП 1% [22:57:04]line > о реализуемом товаре [22:57:04]line ИТОГО: 175.00 [22:57:04]line НСП 1% : 1.55 [22:57:04]line НДС 12% : 18.58 [22:57:04]line Наличными: 175.00 [22:57:04]line Безнал.: 0.00 [22:57:04]line Место: АЗС № 86 "Партнер Нефть" [22:57:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:57:04]line СНО: Общий режим [22:57:04]line Чек 106 23.10.2024 22:57 [22:57:04]line Смена: 546 ФФД: 1.0 [22:57:04]line ЗНМ: 0300000154 [22:57:04]line РНМ: 0000000000091619 [22:57:04]line Версия ККМ: 001 [22:57:04]line ФМ: 0000000000874676 [22:57:04]line ФД: 63377 [22:57:04]line ФПД: 76838484479228 [22:57:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T225705&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63377&fm=76838484479228&tin=02508201610067®Number=0000000000091619&sum=17500 [22:57:04]line 0 [22:57:04]OFD Sender: Processing packet 63377 [packets to send 232, broken 231] [22:57:04]ProducePacketName [22:57:04]name=ofd_packets/00063377 [22:57:04]OFD Sender: To server: pG, [22:57:04]CommunicateWithHost lk.salyk.kg:30040 [22:57:04]ConnectInit lk.salyk.kg [22:57:04]written 0, free lines is 4095 [22:57:05]Write to MH i2c: 01 00 00 5A 0A 64 [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 07 00 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 D6 0C 4D [22:57:05]RasterBufferAndPrint [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]line [22:57:05]written 0, free lines is 3296 [22:57:05]MH_Cut [22:57:05]Write to MH i2c: D1 01 00 61 0A 01 3D [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 01 00 [22:57:05]MH_I2C_Read... [22:57:05]Read from MH i2c: D1 01 00 61 0A 00 3C [22:57:05]Write to MH i2c: 01 00 00 62 0A 6C [22:57:05]Write i2c OK [22:57:05]MH_I2C_Read... [22:57:05]Connected sock=10 [22:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 98 01 00 00 EA 6F 90 01 75 71 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 41 7F 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F7 00 00 35 04 06 00 45 E2 5A 92 8C FC 4F CA 9A B7 43 B0 3E 1B [22:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 79 68 47 00 C7 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 91 F7 00 00 F4 03 04 00 37 29 19 67 B6 04 01 00 00 3E 93 18 55 BF D0 FD CD [22:57:05]CommunicateWithHost err = 0 [22:57:05]CheckOFDResponse [22:57:05]1017 (14) - 77093643461234 [22:57:05]1041 (16) - 0000000000874676 [22:57:05]1040 (4) - 63377 [22:57:05]1012 (4) - 23.10.2024 16:49 [22:57:05]1206 (1) - 0 [22:57:05]OFD Sender: Remove packet 63377 [22:57:05]ProducePacketName [22:57:05]name=ofd_packets/00063377 [22:57:05]NVStorageDeleteData [22:57:05]*** Cut start [22:57:05]*** Partial cut [22:57:05]*** CUTSNS_PIN = 1 [22:57:05]*** CUTSNS_PIN = 0 [22:57:06]OFD Sender: No OFD packet to send [22:57:06]*** Brake cut motor [22:57:06]Read from MH i2c: 01 [22:57:06]MH_I2C_Read... [22:57:06]*** Stop cut motor [22:57:06]*** Cut end [22:57:06]Read from MH i2c: 01 07 00 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [22:57:06]process_action close_receipt done [22:57:06]requested_data is exist [22:57:06]produce_requested_data [22:57:06]requested_item fm.sn is exist - process it [22:57:06]wFMCommunicate request_size=4 [22:57:06]MH_SAM_APDU [22:57:06]CAPDU: 80 11 00 00 [22:57:06]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [22:57:06]Write i2c OK [22:57:06]MH_I2C_Read... [22:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:06]Read from MH i2c: E2 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 17 00 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 40 [22:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [22:57:06]wFMCommunicate OK [22:57:06]requested_item fd.num is exist - process it [22:57:06]SAM_PROTO_GetFieldsCounters [22:57:06]wFMCommunicate request_size=4 [22:57:06]MH_SAM_APDU [22:57:06]CAPDU: 80 13 00 00 [22:57:06]Write to MH i2c: E2 08 00 64 0A 80 13 00 00 00 00 00 00 EA [22:57:06]Write i2c OK [22:57:06]MH_I2C_Read... [22:57:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:06]Read from MH i2c: E2 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 62 00 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 62 00 64 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 91 F7 00 00 0E 04 04 00 22 02 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 FC [22:57:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 91 F7 00 00 0E 04 04 00 22 02 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 [22:57:06]wFMCommunicate OK [22:57:06]SAM_PROTO_GetFieldsCounters done [22:57:06]requested_item shift.num is exist - process it [22:57:06]requested_item shift.opened is exist - process it [22:57:06]req_shift_opened [22:57:06]FM_GetShiftState [22:57:06]SAM_PROTO_GetShiftState [22:57:06]wFMCommunicate request_size=4 [22:57:06]MH_SAM_APDU [22:57:06]CAPDU: 80 13 01 00 [22:57:06]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [22:57:06]Write i2c OK [22:57:06]MH_I2C_Read... [22:57:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:06]Read from MH i2c: E2 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 0E 00 [22:57:06]MH_I2C_Read... [22:57:06]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D6 [22:57:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [22:57:06]wFMCommunicate OK [22:57:06]SAM_PROTO_GetShiftState done [22:57:06]FM_GetShiftState done [22:57:06]req_shift_opened done [22:57:06]requested_item shift.open_date is exist - process it [22:57:06]req_shift_open_date [22:57:06]req_shift_open_date done [22:57:06]produce_requested_data done [22:57:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63377,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [22:57:06]process_action_free close_receipt [22:57:06]json_value_free [22:57:06]json_value_free done [22:57:06]process_json_proto returns [22:57:06]Send response to host [22:57:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63377,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [22:57:06]free response buf [22:57:06]execute_script done [22:57:06]execute_script returns [22:57:06]free content buf [22:57:06]Sock 7.Close socket [22:57:06]Sock 7.Thread stoped [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]accept exits with 9 [23:10:27]New connection [23:10:27]New thread 3066633572 created [23:10:27]Thread 3066490212 joined [23:10:27]Waiting for new connection... [23:10:27] Sock 9.Parse request [23:10:27]Sock 9.Check first char [23:10:27]Sock 9.First char is OK [23:10:27]request: POST /json_proto HTTP/1.0 [23:10:27]Method: POST [23:10:27]URL: /json_proto [23:10:27]Method is POST - this is cgi request [23:10:27]url: /json_proto [23:10:27]query_string will be loaded in cgi processing [23:10:27]execute_cgi json_proto POST (null) [23:10:27]execute_cgi path=json_proto method=POST [23:10:27]POST find Content-Length [23:10:27]Host: 172.17.42.132:8080 [23:10:27]Content-Length: 622 [23:10:27]Content-Type: application/json [23:10:27] [23:10:27]POST finish read [23:10:27]Found Content-Length = 622 [23:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47688", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:27]execute_script... [23:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47688", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:27]POST & json_proto [23:10:27]process_json_proto [23:10:27]json parsed OK: [23:10:27]protocol is kg_v1.0 [23:10:27]action value=close_receipt [23:10:27]process_action close_receipt [23:10:27]cmd_close_receipt [23:10:27]MH_GetDate [23:10:27]Write to MH i2c: F0 00 00 66 0A 5F [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: F0 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: F0 09 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: F0 09 00 66 0A 00 65 82 19 67 4C DF 56 66 B6 [23:10:27]GetLastDocTimeStamp 1729724225 [23:10:27]current date 1729725029 [23:10:27]FM_GetShiftState [23:10:27]SAM_PROTO_GetShiftState [23:10:27]wFMCommunicate request_size=4 [23:10:27]MH_SAM_APDU [23:10:27]CAPDU: 80 13 01 00 [23:10:27]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [23:10:27]Write i2c OK [23:10:27]MH_I2C_Read... [23:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:27]Read from MH i2c: E2 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 0E 00 [23:10:27]MH_I2C_Read... [23:10:27]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 D8 [23:10:27]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:10:27]wFMCommunicate OK [23:10:27]SAM_PROTO_GetShiftState done [23:10:27]FM_GetShiftState done [23:10:27]opened in 1729642527 [23:10:27]opened+sec_in_day 1729728927 [23:10:27]quantity*price = 14400 [23:10:27]sum+1 = 14401 [23:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 23.10.2024 23:10 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63378 ФПД: 157455890573591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231029&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63378&fm=157455890573591&tin=02508201610067®Number=0000000000091619&sum=14400 0 [23:10:28]StoreToDocumentArchive [23:10:28]shift 546 fd 63378 [23:10:28]save to /storage/0546/doc_00063378 [23:10:28]save last doc name /storage/0546/doc_00063378 to /storage/kkm_last_doc_name [23:10:28]save OK [23:10:28]Clear old archive folders... [23:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:10:28]tlvbuf is 00B072C0 [23:10:28]SAM_PROTO_ClearQueue [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 09 00 00 [23:10:28]Write to MH i2c: E2 08 00 74 0A 80 09 00 00 00 00 00 00 F0 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [23:10:28]RAPDU: 90 00 [23:10:28]wFMCommunicate OK [23:10:28]SAM_PROTO_ClearQueue done [23:10:28]KKMCreateOFDPacket [23:10:28]OFDProtocolAddRootSTLVToBuf [23:10:28]FM_MakeSignedData [23:10:28]FM_MakeSignedData [23:10:28]SAM_PROTO_SignData [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 0D 01 02 [23:10:28]Write to MH i2c: E2 08 00 75 0A 80 0D 01 02 00 00 00 00 F8 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [23:10:28]RAPDU: 90 00 [23:10:28]wFMCommunicate OK [23:10:28]wFMCommunicate request_size=255 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 65 82 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 [23:10:28]Write to MH i2c: E2 02 01 76 0A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 65 82 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 00 00 F4 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:28]Read from MH i2c: E2 03 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [23:10:28]RAPDU: 90 00 [23:10:28]wFMCommunicate OK [23:10:28]wFMCommunicate request_size=34 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F7 00 00 35 04 06 00 8F 34 8E 6C E9 17 [23:10:28]Write to MH i2c: E2 25 00 77 0A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F7 00 00 35 04 06 00 8F 34 8E 6C E9 17 00 00 08 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [23:10:28]RAPDU: 90 00 [23:10:28]wFMCommunicate OK [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 0D 03 02 [23:10:28]Write to MH i2c: E2 08 00 78 0A 80 0D 03 02 00 00 00 00 FD [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0B 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 0B 00 78 0A 00 C4 6A 65 F4 F4 3D D6 0B 90 00 97 [23:10:28]RAPDU: C4 6A 65 F4 F4 3D D6 0B 90 00 [23:10:28]wFMCommunicate OK [23:10:28]SAM_PROTO_SignData done [23:10:28]FM_MakeSignedData done [23:10:28]CreateOFDProtocolMessage [23:10:28]wFMCommunicate request_size=4 [23:10:28]MH_SAM_APDU [23:10:28]CAPDU: 80 11 00 00 [23:10:28]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:28]Read from MH i2c: E2 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 17 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 56 [23:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:10:28]wFMCommunicate OK [23:10:28]CreateOFDProtocolMessage done [23:10:28]OFDSenderStorePacket 63378 [23:10:28]StoreOFDPacket docnum=63378 [23:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 A7 D0 1F 01 B0 4C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 65 82 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F7 00 00 35 04 06 00 8F 34 8E 6C E9 17 C4 6A 65 F4 F4 3D D6 0B [23:10:28]CheckFolder [23:10:28]dirname=/storage/ofd_packets [23:10:28]CheckFolder done [23:10:28]ProducePacketName [23:10:28]name=ofd_packets/00063378 [23:10:28]NVStorageSaveData ofd_packets/00063378 [23:10:28]File name is /storage/ofd_packets/00063378 [23:10:28]Write 325 bytes [23:10:28]NVStorageSaveData done [23:10:28]OFDSenderStorePacket done [23:10:28]KKMCreateOFDPacket done [23:10:28]NVStorageSaveData kkm_last_timestamp [23:10:28]File name is /storage/kkm_last_timestamp [23:10:28]Write 4 bytes [23:10:28]NVStorageSaveData done [23:10:28]ExternCall_PrintAddStr [23:10:28]wPrintStart [23:10:28]Write to MH i2c: 01 00 00 7A 0A 84 [23:10:28]Write i2c OK [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 07 00 [23:10:28]MH_I2C_Read... [23:10:28]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [23:10:28]RasterBufferAndPrint [23:10:28]line Счет N : (3)47688 [23:10:28]line ИНН: 02508201610067 [23:10:28]line Контрольно-Кассовый Чек [23:10:28]line ПРОДАЖА [23:10:28]line Товар: 48743587 [23:10:28]line Сигареты Winston XStyle Silver [23:10:28]line 1.000 * 144.00 [23:10:28]line = 144.00 [23:10:28]line НДС 12% НСП 1% [23:10:28]line > о реализуемом товаре [23:10:28]line ИТОГО: 144.00 [23:10:28]line НСП 1% : 1.27 [23:10:28]line НДС 12% : 15.29 [23:10:28]line Наличными: 144.00 [23:10:28]line Безнал.: 0.00 [23:10:28]line Место: АЗС № 86 "Партнер Нефть" [23:10:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:10:28]line СНО: Общий режим [23:10:28]line Чек 107 23.10.2024 23:10 [23:10:28]line Смена: 546 ФФД: 1.0 [23:10:28]line ЗНМ: 0300000154 [23:10:28]line РНМ: 0000000000091619 [23:10:28]line Версия ККМ: 001 [23:10:28]line ФМ: 0000000000874676 [23:10:28]line ФД: 63378 [23:10:28]line ФПД: 157455890573591 [23:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T231029&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63378&fm=157455890573591&tin=02508201610067®Number=0000000000091619&sum=14400 [23:10:29]line 0 [23:10:29]OFD Sender: Processing packet 63378 [packets to send 232, broken 231] [23:10:29]ProducePacketName [23:10:29]name=ofd_packets/00063378 [23:10:29]OFD Sender: To server: pG, [23:10:29]CommunicateWithHost lk.salyk.kg:30040 [23:10:29]ConnectInit lk.salyk.kg [23:10:29]written 0, free lines is 4095 [23:10:29]Connected sock=10 [23:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 27 01 00 00 A7 D0 1F 01 B0 4C 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 65 82 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F7 00 00 35 04 06 00 8F 34 8E 6C E9 17 C4 6A 65 F4 F4 3D D6 0B [23:10:29]Write to MH i2c: 01 00 00 A3 0A AD [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: 01 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: 01 07 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 09 0D CA [23:10:29]RasterBufferAndPrint [23:10:29]line [23:10:29]line [23:10:29]line [23:10:29]line [23:10:29]line [23:10:29]written 0, free lines is 3343 [23:10:29]MH_Cut [23:10:29]Write to MH i2c: D1 01 00 AA 0A 01 86 [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: D1 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: D1 01 00 [23:10:29]MH_I2C_Read... [23:10:29]Read from MH i2c: D1 01 00 AA 0A 00 85 [23:10:29]Write to MH i2c: 01 00 00 AB 0A B5 [23:10:29]Write i2c OK [23:10:29]MH_I2C_Read... [23:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 3B 3B 47 00 54 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 92 F7 00 00 F4 03 04 00 5B 2C 19 67 B6 04 01 00 00 7C 7A 64 3B 86 72 0E EA [23:10:29]CommunicateWithHost err = 0 [23:10:29]CheckOFDResponse [23:10:29]1017 (14) - 77093643461234 [23:10:29]1041 (16) - 0000000000874676 [23:10:29]1040 (4) - 63378 [23:10:29]1012 (4) - 23.10.2024 17:03 [23:10:29]1206 (1) - 0 [23:10:29]OFD Sender: Remove packet 63378 [23:10:29]ProducePacketName [23:10:29]name=ofd_packets/00063378 [23:10:29]NVStorageDeleteData [23:10:30]OFD Sender: No OFD packet to send [23:10:30]*** Cut start [23:10:30]*** Partial cut [23:10:30]*** CUTSNS_PIN = 1 [23:10:30]*** CUTSNS_PIN = 0 [23:10:30]*** Brake cut motor [23:10:30]Read from MH i2c: 01 [23:10:30]MH_I2C_Read... [23:10:30]*** Stop cut motor [23:10:30]*** Cut end [23:10:30]Read from MH i2c: 01 07 00 [23:10:30]MH_I2C_Read... [23:10:30]Read from MH i2c: 01 07 00 AB 0A 00 00 00 00 00 FF 0F CA [23:10:30]process_action close_receipt done [23:10:30]requested_data is exist [23:10:30]produce_requested_data [23:10:30]requested_item fm.sn is exist - process it [23:10:30]wFMCommunicate request_size=4 [23:10:30]MH_SAM_APDU [23:10:30]CAPDU: 80 11 00 00 [23:10:30]Write to MH i2c: E2 08 00 AC 0A 80 11 00 00 00 00 00 00 30 [23:10:30]Write i2c OK [23:10:30]MH_I2C_Read... [23:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:31]Read from MH i2c: E2 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 17 00 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 17 00 AC 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 89 [23:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:10:31]wFMCommunicate OK [23:10:31]requested_item fd.num is exist - process it [23:10:31]SAM_PROTO_GetFieldsCounters [23:10:31]wFMCommunicate request_size=4 [23:10:31]MH_SAM_APDU [23:10:31]CAPDU: 80 13 00 00 [23:10:31]Write to MH i2c: E2 08 00 AD 0A 80 13 00 00 00 00 00 00 33 [23:10:31]Write i2c OK [23:10:31]MH_I2C_Read... [23:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:31]Read from MH i2c: E2 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 62 00 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 62 00 AD 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 92 F7 00 00 0E 04 04 00 22 02 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 49 [23:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 92 F7 00 00 0E 04 04 00 22 02 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 [23:10:31]wFMCommunicate OK [23:10:31]SAM_PROTO_GetFieldsCounters done [23:10:31]requested_item shift.num is exist - process it [23:10:31]requested_item shift.opened is exist - process it [23:10:31]req_shift_opened [23:10:31]FM_GetShiftState [23:10:31]SAM_PROTO_GetShiftState [23:10:31]wFMCommunicate request_size=4 [23:10:31]MH_SAM_APDU [23:10:31]CAPDU: 80 13 01 00 [23:10:31]Write to MH i2c: E2 08 00 AE 0A 80 13 01 00 00 00 00 00 35 [23:10:31]Write i2c OK [23:10:31]MH_I2C_Read... [23:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:31]Read from MH i2c: E2 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 0E 00 [23:10:31]MH_I2C_Read... [23:10:31]Read from MH i2c: E2 0E 00 AE 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 1F [23:10:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:10:31]wFMCommunicate OK [23:10:31]SAM_PROTO_GetShiftState done [23:10:31]FM_GetShiftState done [23:10:31]req_shift_opened done [23:10:31]requested_item shift.open_date is exist - process it [23:10:31]req_shift_open_date [23:10:31]req_shift_open_date done [23:10:31]produce_requested_data done [23:10:31]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63378,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [23:10:31]process_action_free close_receipt [23:10:31]json_value_free [23:10:31]json_value_free done [23:10:31]process_json_proto returns [23:10:31]Send response to host [23:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63378,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [23:10:31]free response buf [23:10:31]execute_script done [23:10:31]execute_script returns [23:10:31]free content buf [23:10:31]Sock 9.Close socket [23:10:31]Sock 9.Thread stoped [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:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27: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:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:30]accept exits with 7 [23:29:30]New connection [23:29:30]New thread 3066490212 created [23:29:30]Thread 3066633572 joined [23:29:30]Waiting for new connection... [23:29:30] Sock 7.Parse request [23:29:30]Sock 7.Check first char [23:29:30]Sock 7.First char is OK [23:29:30]request: POST /json_proto HTTP/1.0 [23:29:30]Method: POST [23:29:30]URL: /json_proto [23:29:30]Method is POST - this is cgi request [23:29:30]url: /json_proto [23:29:30]query_string will be loaded in cgi processing [23:29:30]execute_cgi json_proto POST (null) [23:29:30]execute_cgi path=json_proto method=POST [23:29:30]POST find Content-Length [23:29:30]Host: 172.17.42.132:8080 [23:29:30]Content-Length: 937 [23:29:30]Content-Type: application/json [23:29:30] [23:29:30]POST finish read [23:29:30]Found Content-Length = 937 [23:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47689", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 914.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:30]execute_script... [23:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47689", "tax_sys" : 0, "items" : [ { "code": "4700003150806", "name": "\u0412\u043E\u0434\u043A\u0430 \u041D\u0430\u0441\u0442\u0440\u043E\u0435\u043D\u0438\u0435 V \u043F\u0440\u0435\u043C\u0438\u0443\u043C 40% 0,7\u043B", "price" : 795.00, "quantity" : 1.000, "sum" : 795.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 914.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:30]POST & json_proto [23:29:30]process_json_proto [23:29:30]json parsed OK: [23:29:30]protocol is kg_v1.0 [23:29:30]action value=close_receipt [23:29:30]process_action close_receipt [23:29:30]cmd_close_receipt [23:29:30]MH_GetDate [23:29:30]Write to MH i2c: F0 00 00 AF 0A A8 [23:29:30]Write i2c OK [23:29:30]MH_I2C_Read... [23:29:30]Read from MH i2c: F0 [23:29:30]MH_I2C_Read... [23:29:30]Read from MH i2c: F0 09 00 [23:29:30]MH_I2C_Read... [23:29:30]Read from MH i2c: F0 09 00 AF 0A 00 DC 86 19 67 4C DF 56 66 7A [23:29:30]GetLastDocTimeStamp 1729725029 [23:29:30]current date 1729726172 [23:29:30]FM_GetShiftState [23:29:30]SAM_PROTO_GetShiftState [23:29:30]wFMCommunicate request_size=4 [23:29:30]MH_SAM_APDU [23:29:30]CAPDU: 80 13 01 00 [23:29:30]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [23:29:30]Write i2c OK [23:29:30]MH_I2C_Read... [23:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:30]Read from MH i2c: E2 [23:29:30]MH_I2C_Read... [23:29:30]Read from MH i2c: E2 0E 00 [23:29:30]MH_I2C_Read... [23:29:30]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 21 [23:29:30]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:29:30]wFMCommunicate OK [23:29:30]SAM_PROTO_GetShiftState done [23:29:30]FM_GetShiftState done [23:29:30]opened in 1729642527 [23:29:30]opened+sec_in_day 1729728927 [23:29:30]quantity*price = 79500 [23:29:30]sum+1 = 79501 [23:29:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 119.00 = 119.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 914.00 НСП 1% : 8.08 НДС 12% : 97.06 Наличными: 914.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 23.10.2024 23:29 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63379 ФПД: 184283260522448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232933&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63379&fm=184283260522448&tin=02508201610067®Number=0000000000091619&sum=91400 0 [23:29:31]StoreToDocumentArchive [23:29:31]shift 546 fd 63379 [23:29:31]save to /storage/0546/doc_00063379 [23:29:31]save last doc name /storage/0546/doc_00063379 to /storage/kkm_last_doc_name [23:29:31]save OK [23:29:31]Clear old archive folders... [23:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=396 [23:29:31]tlvbuf is 00B10130 [23:29:31]SAM_PROTO_ClearQueue [23:29:31]wFMCommunicate request_size=4 [23:29:31]MH_SAM_APDU [23:29:31]CAPDU: 80 09 00 00 [23:29:31]Write to MH i2c: E2 08 00 BD 0A 80 09 00 00 00 00 00 00 39 [23:29:31]Write i2c OK [23:29:31]MH_I2C_Read... [23:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:31]Read from MH i2c: E2 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [23:29:31]RAPDU: 90 00 [23:29:31]wFMCommunicate OK [23:29:31]SAM_PROTO_ClearQueue done [23:29:31]KKMCreateOFDPacket [23:29:31]OFDProtocolAddRootSTLVToBuf [23:29:31]FM_MakeSignedData [23:29:31]FM_MakeSignedData [23:29:31]SAM_PROTO_SignData [23:29:31]wFMCommunicate request_size=4 [23:29:31]MH_SAM_APDU [23:29:31]CAPDU: 80 0D 01 02 [23:29:31]Write to MH i2c: E2 08 00 BE 0A 80 0D 01 02 00 00 00 00 41 [23:29:31]Write i2c OK [23:29:31]MH_I2C_Read... [23:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:31]Read from MH i2c: E2 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 BE 0A 00 90 00 3C [23:29:31]RAPDU: 90 00 [23:29:31]wFMCommunicate OK [23:29:31]wFMCommunicate request_size=255 [23:29:31]MH_SAM_APDU [23:29:31]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 65 01 00 00 00 EB 03 26 00 EF [23:29:31]Write to MH i2c: E2 02 01 BF 0A 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 65 01 00 00 00 EB 03 26 00 EF 00 00 AE [23:29:31]Write i2c OK [23:29:31]MH_I2C_Read... [23:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:31]Read from MH i2c: E2 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 [23:29:31]MH_I2C_Read... [23:29:31]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [23:29:31]RAPDU: 90 00 [23:29:31]wFMCommunicate OK [23:29:31]wFMCommunicate request_size=155 [23:29:31]MH_SAM_APDU [23:29:31]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 25 00 00 00 00 07 04 06 00 08 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD 86 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F7 00 00 35 04 06 00 A7 9A CA 48 0F D0 [23:29:31]Write to MH i2c: E2 9E 00 C0 0A 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 25 00 00 00 00 07 04 06 00 08 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD 86 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F7 00 00 35 04 06 00 A7 9A CA 48 0F D0 00 00 88 [23:29:31]Write i2c OK [23:29:31]MH_I2C_Read... [23:29:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:32]Read from MH i2c: E2 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 03 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [23:29:32]RAPDU: 90 00 [23:29:32]wFMCommunicate OK [23:29:32]wFMCommunicate request_size=4 [23:29:32]MH_SAM_APDU [23:29:32]CAPDU: 80 0D 03 02 [23:29:32]Write to MH i2c: E2 08 00 C1 0A 80 0D 03 02 00 00 00 00 46 [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:32]OFD Sender: No OFD packet to send [23:29:32]Read from MH i2c: E2 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 0B 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 0B 00 C1 0A 00 AA 2E 82 B1 FA D5 D3 FF 90 00 F3 [23:29:32]RAPDU: AA 2E 82 B1 FA D5 D3 FF 90 00 [23:29:32]wFMCommunicate OK [23:29:32]SAM_PROTO_SignData done [23:29:32]FM_MakeSignedData done [23:29:32]CreateOFDProtocolMessage [23:29:32]wFMCommunicate request_size=4 [23:29:32]MH_SAM_APDU [23:29:32]CAPDU: 80 11 00 00 [23:29:32]Write to MH i2c: E2 08 00 C2 0A 80 11 00 00 00 00 00 00 46 [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:32]Read from MH i2c: E2 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 17 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: E2 17 00 C2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 9F [23:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:29:32]wFMCommunicate OK [23:29:32]CreateOFDProtocolMessage done [23:29:32]OFDSenderStorePacket 63379 [23:29:32]StoreOFDPacket docnum=63379 [23:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A0 01 00 00 8F 58 98 01 8D 5F 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 25 00 00 00 00 07 04 06 00 08 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD 86 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F7 00 00 35 04 06 00 A7 9A CA 48 0F D0 AA 2E 82 B1 FA D5 D3 FF [23:29:32]CheckFolder [23:29:32]dirname=/storage/ofd_packets [23:29:32]CheckFolder done [23:29:32]ProducePacketName [23:29:32]name=ofd_packets/00063379 [23:29:32]NVStorageSaveData ofd_packets/00063379 [23:29:32]File name is /storage/ofd_packets/00063379 [23:29:32]Write 446 bytes [23:29:32]NVStorageSaveData done [23:29:32]OFDSenderStorePacket done [23:29:32]KKMCreateOFDPacket done [23:29:32]NVStorageSaveData kkm_last_timestamp [23:29:32]File name is /storage/kkm_last_timestamp [23:29:32]Write 4 bytes [23:29:32]NVStorageSaveData done [23:29:32]ExternCall_PrintAddStr [23:29:32]wPrintStart [23:29:32]Write to MH i2c: 01 00 00 C3 0A CD [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 07 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 07 00 C3 0A 00 00 00 00 00 FF 0F E2 [23:29:32]RasterBufferAndPrint [23:29:32]line Счет N : (3)47689 [23:29:32]line ИНН: 02508201610067 [23:29:32]line Контрольно-Кассовый Чек [23:29:32]line ПРОДАЖА [23:29:32]line Товар: 4700003150806 [23:29:32]line Водка Настроение V премиум 40% 0,7л [23:29:32]line 1.000 * 795.00 [23:29:32]line = 795.00 [23:29:32]line НДС 12% НСП 1% [23:29:32]line > о реализуемом товаре [23:29:32]line Товар: 4870001570071 [23:29:32]line Напиток Pepsi 1л [23:29:32]line 1.000 * 119.00 [23:29:32]line = 119.00 [23:29:32]line НДС 12% НСП 1% [23:29:32]line > о реализуемом товаре [23:29:32]line ИТОГО: 914.00 [23:29:32]line НСП 1% : 8.08 [23:29:32]line НДС 12% : 97.06 [23:29:32]line Наличными: 914.00 [23:29:32]line Безнал.: 0.00 [23:29:32]line Место: АЗС № 86 "Партнер Нефть" [23:29:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:29:32]line СНО: Общий режим [23:29:32]line Чек 108 23.10.2024 23:29 [23:29:32]line Смена: 546 ФФД: 1.0 [23:29:32]line ЗНМ: 0300000154 [23:29:32]line РНМ: 0000000000091619 [23:29:32]line Версия ККМ: 001 [23:29:32]line ФМ: 0000000000874676 [23:29:32]line ФД: 63379 [23:29:32]line ФПД: 184283260522448 [23:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T232933&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63379&fm=184283260522448&tin=02508201610067®Number=0000000000091619&sum=91400 [23:29:32]line 0 [23:29:32]written 0, free lines is 4095 [23:29:32]OFD Sender: Processing packet 63379 [packets to send 232, broken 231] [23:29:32]ProducePacketName [23:29:32]name=ofd_packets/00063379 [23:29:32]OFD Sender: To server: pG, [23:29:32]CommunicateWithHost lk.salyk.kg:30040 [23:29:32]ConnectInit lk.salyk.kg [23:29:32]Connected sock=10 [23:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 A0 01 00 00 8F 58 98 01 8D 5F 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 38 30 36 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9D D0 B0 D1 81 D1 82 D1 80 D0 BE D0 B5 D0 BD D0 B8 D0 B5 20 56 20 D0 BF D1 80 D0 B5 D0 BC D0 B8 D1 83 D0 BC 20 34 30 25 20 30 2C 37 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 36 01 00 00 00 13 04 06 00 8C 36 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 65 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 25 00 00 00 00 07 04 06 00 08 65 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 DD 86 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F7 00 00 35 04 06 00 A7 9A CA 48 0F D0 AA 2E 82 B1 FA D5 D3 FF [23:29:32]Write to MH i2c: 01 00 00 F2 0A FC [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 07 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: 01 07 00 F2 0A 00 00 00 00 00 C4 0C D3 [23:29:32]RasterBufferAndPrint [23:29:32]line [23:29:32]line [23:29:32]line [23:29:32]line [23:29:32]line [23:29:32]written 0, free lines is 3277 [23:29:32]MH_Cut [23:29:32]Write to MH i2c: D1 01 00 F9 0A 01 D5 [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: D1 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: D1 01 00 [23:29:32]MH_I2C_Read... [23:29:32]Read from MH i2c: D1 01 00 F9 0A 00 D4 [23:29:32]Write to MH i2c: 01 00 00 FA 0A 04 [23:29:32]Write i2c OK [23:29:32]MH_I2C_Read... [23:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 30 CF 47 00 18 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 93 F7 00 00 F4 03 04 00 D2 30 19 67 B6 04 01 00 00 67 9A 58 80 AE 8A 92 36 [23:29:32]CommunicateWithHost err = 0 [23:29:32]CheckOFDResponse [23:29:32]1017 (14) - 77093643461234 [23:29:32]1041 (16) - 0000000000874676 [23:29:32]1040 (4) - 63379 [23:29:32]1012 (4) - 23.10.2024 17:22 [23:29:32]1206 (1) - 0 [23:29:32]OFD Sender: Remove packet 63379 [23:29:32]ProducePacketName [23:29:32]name=ofd_packets/00063379 [23:29:32]NVStorageDeleteData [23:29:33]OFD Sender: No OFD packet to send [23:29:33]*** Cut start [23:29:33]*** Partial cut [23:29:33]*** CUTSNS_PIN = 1 [23:29:33]*** CUTSNS_PIN = 0 [23:29:33]*** Brake cut motor [23:29:34]Read from MH i2c: 01 [23:29:34]MH_I2C_Read... [23:29:34]*** Stop cut motor [23:29:34]*** Cut end [23:29:34]Read from MH i2c: 01 07 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 FF 0F 19 [23:29:34]process_action close_receipt done [23:29:34]requested_data is exist [23:29:34]produce_requested_data [23:29:34]requested_item fm.sn is exist - process it [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 11 00 00 [23:29:34]Write to MH i2c: E2 08 00 FB 0A 80 11 00 00 00 00 00 00 7F [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 17 00 FB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 D8 [23:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:29:34]wFMCommunicate OK [23:29:34]requested_item fd.num is exist - process it [23:29:34]SAM_PROTO_GetFieldsCounters [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 13 00 00 [23:29:34]Write to MH i2c: E2 08 00 FC 0A 80 13 00 00 00 00 00 00 82 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 62 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 62 00 FC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 93 F7 00 00 0E 04 04 00 22 02 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 9C [23:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 93 F7 00 00 0E 04 04 00 22 02 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 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_GetFieldsCounters done [23:29:34]requested_item shift.num is exist - process it [23:29:34]requested_item shift.opened is exist - process it [23:29:34]req_shift_opened [23:29:34]FM_GetShiftState [23:29:34]SAM_PROTO_GetShiftState [23:29:34]wFMCommunicate request_size=4 [23:29:34]MH_SAM_APDU [23:29:34]CAPDU: 80 13 01 00 [23:29:34]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [23:29:34]Write i2c OK [23:29:34]MH_I2C_Read... [23:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:34]Read from MH i2c: E2 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0E 00 [23:29:34]MH_I2C_Read... [23:29:34]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 6E [23:29:34]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:29:34]wFMCommunicate OK [23:29:34]SAM_PROTO_GetShiftState done [23:29:34]FM_GetShiftState done [23:29:34]req_shift_opened done [23:29:34]requested_item shift.open_date is exist - process it [23:29:34]req_shift_open_date [23:29:34]req_shift_open_date done [23:29:34]produce_requested_data done [23:29:34]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63379,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [23:29:34]process_action_free close_receipt [23:29:34]json_value_free [23:29:34]json_value_free done [23:29:34]process_json_proto returns [23:29:34]Send response to host [23:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63379,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [23:29:34]free response buf [23:29:34]execute_script done [23:29:34]execute_script returns [23:29:34]free content buf [23:29:34]Sock 7.Close socket [23:29:34]Sock 7.Thread stoped [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:27]accept exits with 9 [23:30:27]New connection [23:30:27]New thread 3066633572 created [23:30:27]Thread 3066490212 joined [23:30:27]Waiting for new connection... [23:30:27] Sock 9.Parse request [23:30:27]Sock 9.Check first char [23:30:27]Sock 9.First char is OK [23:30:27]request: POST /json_proto HTTP/1.0 [23:30:27]Method: POST [23:30:27]URL: /json_proto [23:30:27]Method is POST - this is cgi request [23:30:27]url: /json_proto [23:30:27]query_string will be loaded in cgi processing [23:30:27]execute_cgi json_proto POST (null) [23:30:27]execute_cgi path=json_proto method=POST [23:30:27]POST find Content-Length [23:30:27]Host: 172.17.42.132:8080 [23:30:27]Content-Length: 850 [23:30:27]Content-Type: application/json [23:30:27] [23:30:27]POST finish read [23:30:27]Found Content-Length = 850 [23:30:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47690", "tax_sys" : 0, "items" : [ { "code": "7312040017072", "name": "\u0412\u043E\u0434\u043A\u0430 ABSOLUT 40% 0,5\u043B", "price" : 1295.00, "quantity" : 1.000, "sum" : 1295.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:27]execute_script... [23:30: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 : (3)47690", "tax_sys" : 0, "items" : [ { "code": "7312040017072", "name": "\u0412\u043E\u0434\u043A\u0430 ABSOLUT 40% 0,5\u043B", "price" : 1295.00, "quantity" : 1.000, "sum" : 1295.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1454.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:27]POST & json_proto [23:30:27]process_json_proto [23:30:27]json parsed OK: [23:30:27]protocol is kg_v1.0 [23:30:27]action value=close_receipt [23:30:27]process_action close_receipt [23:30:27]cmd_close_receipt [23:30:27]MH_GetDate [23:30:27]Write to MH i2c: F0 00 00 FE 0A F7 [23:30:27]Write i2c OK [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 09 00 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: F0 09 00 FE 0A 00 16 87 19 67 4C DF 56 66 04 [23:30:27]GetLastDocTimeStamp 1729726173 [23:30:27]current date 1729726230 [23:30:27]FM_GetShiftState [23:30:27]SAM_PROTO_GetShiftState [23:30:27]wFMCommunicate request_size=4 [23:30:27]MH_SAM_APDU [23:30:27]CAPDU: 80 13 01 00 [23:30:27]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [23:30:27]Write i2c OK [23:30:27]MH_I2C_Read... [23:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:27]Read from MH i2c: E2 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: E2 0E 00 [23:30:27]MH_I2C_Read... [23:30:27]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 70 [23:30:27]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:30:27]wFMCommunicate OK [23:30:27]SAM_PROTO_GetShiftState done [23:30:27]FM_GetShiftState done [23:30:27]opened in 1729642527 [23:30:27]opened+sec_in_day 1729728927 [23:30:27]quantity*price = 129500 [23:30:27]sum+1 = 129501 [23:30:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091645 Сигареты ESSE Exchange M 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1454.00 НСП 1% : 12.87 НДС 12% : 154.40 Наличными: 1454.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 109 23.10.2024 23:30 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63380 ФПД: 80496739340168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233030&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63380&fm=80496739340168&tin=02508201610067®Number=0000000000091619&sum=145400 0 [23:30:28]StoreToDocumentArchive [23:30:28]shift 546 fd 63380 [23:30:28]save to /storage/0546/doc_00063380 [23:30:28]save last doc name /storage/0546/doc_00063380 to /storage/kkm_last_doc_name [23:30:28]save OK [23:30:28]Clear old archive folders... [23:30:28]ProcessDocumentItem done err = 0, tmpTLVsize=374 [23:30:28]tlvbuf is 00B89790 [23:30:28]SAM_PROTO_ClearQueue [23:30:28]wFMCommunicate request_size=4 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 09 00 00 [23:30:28]Write to MH i2c: E2 08 00 0C 0B 80 09 00 00 00 00 00 00 89 [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:28]Read from MH i2c: E2 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [23:30:28]RAPDU: 90 00 [23:30:28]wFMCommunicate OK [23:30:28]SAM_PROTO_ClearQueue done [23:30:28]KKMCreateOFDPacket [23:30:28]OFDProtocolAddRootSTLVToBuf [23:30:28]FM_MakeSignedData [23:30:28]FM_MakeSignedData [23:30:28]SAM_PROTO_SignData [23:30:28]wFMCommunicate request_size=4 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 0D 01 02 [23:30:28]Write to MH i2c: E2 08 00 0D 0B 80 0D 01 02 00 00 00 00 91 [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:28]Read from MH i2c: E2 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [23:30:28]RAPDU: 90 00 [23:30:28]wFMCommunicate OK [23:30:28]wFMCommunicate request_size=255 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 37 33 31 32 30 34 30 30 31 37 30 37 32 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 41 42 53 4F 4C 55 54 20 34 30 25 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC F9 01 00 00 00 13 04 06 00 DC F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 05 00 00 00 00 EE 03 0F 00 [23:30:28]Write to MH i2c: E2 02 01 0E 0B 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 37 33 31 32 30 34 30 30 31 37 30 37 32 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 41 42 53 4F 4C 55 54 20 34 30 25 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC F9 01 00 00 00 13 04 06 00 DC F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 05 00 00 00 00 EE 03 0F 00 00 00 CE [23:30:28]OFD Sender: No OFD packet to send [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:28]Read from MH i2c: E2 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 [23:30:28]MH_I2C_Read... [23:30:28]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [23:30:28]RAPDU: 90 00 [23:30:28]wFMCommunicate OK [23:30:28]wFMCommunicate request_size=133 [23:30:28]MH_SAM_APDU [23:30:28]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 50 3C 00 00 00 00 07 04 06 00 F8 37 02 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 16 87 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 94 F7 00 00 35 04 06 00 49 36 1B 8D CF 88 [23:30:28]Write to MH i2c: E2 88 00 0F 0B 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 50 3C 00 00 00 00 07 04 06 00 F8 37 02 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 16 87 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 94 F7 00 00 35 04 06 00 49 36 1B 8D CF 88 00 00 3C [23:30:28]Write i2c OK [23:30:28]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [23:30:29]RAPDU: 90 00 [23:30:29]wFMCommunicate OK [23:30:29]wFMCommunicate request_size=4 [23:30:29]MH_SAM_APDU [23:30:29]CAPDU: 80 0D 03 02 [23:30:29]Write to MH i2c: E2 08 00 10 0B 80 0D 03 02 00 00 00 00 96 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 0B 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 0B 00 10 0B 00 3D B2 93 6D 4A 16 B9 6F 90 00 0E [23:30:29]RAPDU: 3D B2 93 6D 4A 16 B9 6F 90 00 [23:30:29]wFMCommunicate OK [23:30:29]SAM_PROTO_SignData done [23:30:29]FM_MakeSignedData done [23:30:29]CreateOFDProtocolMessage [23:30:29]wFMCommunicate request_size=4 [23:30:29]MH_SAM_APDU [23:30:29]CAPDU: 80 11 00 00 [23:30:29]Write to MH i2c: E2 08 00 11 0B 80 11 00 00 00 00 00 00 96 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:29]Read from MH i2c: E2 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 17 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: E2 17 00 11 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 EF [23:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:30:29]wFMCommunicate OK [23:30:29]CreateOFDProtocolMessage done [23:30:29]OFDSenderStorePacket 63380 [23:30:29]StoreOFDPacket docnum=63380 [23:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8A 01 00 00 02 FC 82 01 14 D0 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 37 33 31 32 30 34 30 30 31 37 30 37 32 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 41 42 53 4F 4C 55 54 20 34 30 25 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC F9 01 00 00 00 13 04 06 00 DC F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3C 00 00 00 00 07 04 06 00 F8 37 02 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 16 87 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 94 F7 00 00 35 04 06 00 49 36 1B 8D CF 88 3D B2 93 6D 4A 16 B9 6F [23:30:29]CheckFolder [23:30:29]dirname=/storage/ofd_packets [23:30:29]CheckFolder done [23:30:29]ProducePacketName [23:30:29]name=ofd_packets/00063380 [23:30:29]NVStorageSaveData ofd_packets/00063380 [23:30:29]File name is /storage/ofd_packets/00063380 [23:30:29]Write 424 bytes [23:30:29]NVStorageSaveData done [23:30:29]OFDSenderStorePacket done [23:30:29]KKMCreateOFDPacket done [23:30:29]NVStorageSaveData kkm_last_timestamp [23:30:29]File name is /storage/kkm_last_timestamp [23:30:29]Write 4 bytes [23:30:29]NVStorageSaveData done [23:30:29]ExternCall_PrintAddStr [23:30:29]wPrintStart [23:30:29]Write to MH i2c: 01 00 00 12 0B 1D [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 12 0B 00 00 00 00 00 FF 0F 32 [23:30:29]RasterBufferAndPrint [23:30:29]line Счет N : (3)47690 [23:30:29]line ИНН: 02508201610067 [23:30:29]line Контрольно-Кассовый Чек [23:30:29]line ПРОДАЖА [23:30:29]line Товар: 7312040017072 [23:30:29]line Водка ABSOLUT 40% 0,5л [23:30:29]line 1.000 * 1295.00 [23:30:29]line = 1295.00 [23:30:29]line НДС 12% НСП 1% [23:30:29]line > о реализуемом товаре [23:30:29]line Товар: 4640030091645 [23:30:29]line Сигареты ESSE Exchange M [23:30:29]line 1.000 * 159.00 [23:30:29]line = 159.00 [23:30:29]line НДС 12% НСП 1% [23:30:29]line > о реализуемом товаре [23:30:29]line ИТОГО: 1454.00 [23:30:29]line НСП 1% : 12.87 [23:30:29]line НДС 12% : 154.40 [23:30:29]line Наличными: 1454.00 [23:30:29]line Безнал.: 0.00 [23:30:29]line Место: АЗС № 86 "Партнер Нефть" [23:30:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:30:29]line СНО: Общий режим [23:30:29]line Чек 109 23.10.2024 23:30 [23:30:29]line Смена: 546 ФФД: 1.0 [23:30:29]line ЗНМ: 0300000154 [23:30:29]line РНМ: 0000000000091619 [23:30:29]line Версия ККМ: 001 [23:30:29]line ФМ: 0000000000874676 [23:30:29]line ФД: 63380 [23:30:29]line ФПД: 80496739340168 [23:30:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233030&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63380&fm=80496739340168&tin=02508201610067®Number=0000000000091619&sum=145400 [23:30:29]line 0 [23:30:29]written 0, free lines is 4095 [23:30:29]OFD Sender: Processing packet 63380 [packets to send 232, broken 231] [23:30:29]ProducePacketName [23:30:29]name=ofd_packets/00063380 [23:30:29]OFD Sender: To server: pG, [23:30:29]CommunicateWithHost lk.salyk.kg:30040 [23:30:29]ConnectInit lk.salyk.kg [23:30:29]Connected sock=10 [23:30:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 8A 01 00 00 02 FC 82 01 14 D0 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 37 33 31 32 30 34 30 30 31 37 30 37 32 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 41 42 53 4F 4C 55 54 20 34 30 25 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC F9 01 00 00 00 13 04 06 00 DC F9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 3C 00 00 00 00 07 04 06 00 F8 37 02 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 16 87 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 94 F7 00 00 35 04 06 00 49 36 1B 8D CF 88 3D B2 93 6D 4A 16 B9 6F [23:30:29]Write to MH i2c: 01 00 00 40 0B 4B [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: 01 07 00 40 0B 00 00 00 00 00 D6 0C 34 [23:30:29]RasterBufferAndPrint [23:30:29]line [23:30:29]line [23:30:29]line [23:30:29]line [23:30:29]line [23:30:29]written 0, free lines is 3293 [23:30:29]MH_Cut [23:30:29]Write to MH i2c: D1 01 00 47 0B 01 24 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: D1 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: D1 01 00 [23:30:29]MH_I2C_Read... [23:30:29]Read from MH i2c: D1 01 00 47 0B 00 23 [23:30:29]Write to MH i2c: 01 00 00 48 0B 53 [23:30:29]Write i2c OK [23:30:29]MH_I2C_Read... [23:30:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 01 5E 47 00 51 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 94 F7 00 00 F4 03 04 00 0C 31 19 67 B6 04 01 00 00 79 73 67 0A 56 B8 1E 67 [23:30:29]CommunicateWithHost err = 0 [23:30:29]CheckOFDResponse [23:30:29]1017 (14) - 77093643461234 [23:30:29]1041 (16) - 0000000000874676 [23:30:29]1040 (4) - 63380 [23:30:29]1012 (4) - 23.10.2024 17:23 [23:30:29]1206 (1) - 0 [23:30:29]OFD Sender: Remove packet 63380 [23:30:29]ProducePacketName [23:30:29]name=ofd_packets/00063380 [23:30:29]NVStorageDeleteData [23:30:30]OFD Sender: No OFD packet to send [23:30:30]*** Cut start [23:30:30]*** Partial cut [23:30:30]*** CUTSNS_PIN = 1 [23:30:30]*** CUTSNS_PIN = 0 [23:30:30]*** Brake cut motor [23:30:31]Read from MH i2c: 01 [23:30:31]MH_I2C_Read... [23:30:31]*** Stop cut motor [23:30:31]*** Cut end [23:30:31]Read from MH i2c: 01 07 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: 01 07 00 48 0B 00 00 00 00 00 FF 0F 68 [23:30:31]process_action close_receipt done [23:30:31]requested_data is exist [23:30:31]produce_requested_data [23:30:31]requested_item fm.sn is exist - process it [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 11 00 00 [23:30:31]Write to MH i2c: E2 08 00 49 0B 80 11 00 00 00 00 00 00 CE [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 17 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 17 00 49 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 27 [23:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:30:31]wFMCommunicate OK [23:30:31]requested_item fd.num is exist - process it [23:30:31]SAM_PROTO_GetFieldsCounters [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 13 00 00 [23:30:31]Write to MH i2c: E2 08 00 4A 0B 80 13 00 00 00 00 00 00 D1 [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 62 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 62 00 4A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 94 F7 00 00 0E 04 04 00 22 02 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 EF [23:30:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 94 F7 00 00 0E 04 04 00 22 02 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 [23:30:31]wFMCommunicate OK [23:30:31]SAM_PROTO_GetFieldsCounters done [23:30:31]requested_item shift.num is exist - process it [23:30:31]requested_item shift.opened is exist - process it [23:30:31]req_shift_opened [23:30:31]FM_GetShiftState [23:30:31]SAM_PROTO_GetShiftState [23:30:31]wFMCommunicate request_size=4 [23:30:31]MH_SAM_APDU [23:30:31]CAPDU: 80 13 01 00 [23:30:31]Write to MH i2c: E2 08 00 4B 0B 80 13 01 00 00 00 00 00 D3 [23:30:31]Write i2c OK [23:30:31]MH_I2C_Read... [23:30:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:31]Read from MH i2c: E2 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 0E 00 [23:30:31]MH_I2C_Read... [23:30:31]Read from MH i2c: E2 0E 00 4B 0B 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BD [23:30:31]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:30:31]wFMCommunicate OK [23:30:31]SAM_PROTO_GetShiftState done [23:30:31]FM_GetShiftState done [23:30:31]req_shift_opened done [23:30:31]requested_item shift.open_date is exist - process it [23:30:31]req_shift_open_date [23:30:31]req_shift_open_date done [23:30:31]produce_requested_data done [23:30:31]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63380,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [23:30:31]process_action_free close_receipt [23:30:31]json_value_free [23:30:31]json_value_free done [23:30:31]process_json_proto returns [23:30:31]Send response to host [23:30:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63380,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [23:30:31]free response buf [23:30:31]execute_script done [23:30:31]execute_script returns [23:30:31]free content buf [23:30:31]Sock 9.Close socket [23:30:31]Sock 9.Thread stoped [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:02]accept exits with 7 [23:37:02]New connection [23:37:02]New thread 3066490212 created [23:37:02]Thread 3066633572 joined [23:37:02]Waiting for new connection... [23:37:02] Sock 7.Parse request [23:37:02]Sock 7.Check first char [23:37:02]Sock 7.First char is OK [23:37:02]request: POST /json_proto HTTP/1.0 [23:37:02]Method: POST [23:37:02]URL: /json_proto [23:37:02]Method is POST - this is cgi request [23:37:02]url: /json_proto [23:37:02]query_string will be loaded in cgi processing [23:37:02]execute_cgi json_proto POST (null) [23:37:02]execute_cgi path=json_proto method=POST [23:37:02]POST find Content-Length [23:37:02]Host: 172.17.42.132:8080 [23:37:02]Content-Length: 921 [23:37:02]Content-Type: application/json [23:37:02] [23:37:02]POST finish read [23:37:02]Found Content-Length = 921 [23:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47691", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:02]execute_script... [23:37:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47691", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:02]POST & json_proto [23:37:02]process_json_proto [23:37:02]json parsed OK: [23:37:02]protocol is kg_v1.0 [23:37:02]action value=close_receipt [23:37:02]process_action close_receipt [23:37:02]cmd_close_receipt [23:37:02]MH_GetDate [23:37:02]Write to MH i2c: F0 00 00 4C 0B 46 [23:37:02]Write i2c OK [23:37:02]MH_I2C_Read... [23:37:02]Read from MH i2c: F0 [23:37:02]MH_I2C_Read... [23:37:02]Read from MH i2c: F0 09 00 [23:37:02]MH_I2C_Read... [23:37:02]Read from MH i2c: F0 09 00 4C 0B 00 A1 88 19 67 4C DF 56 66 DF [23:37:02]GetLastDocTimeStamp 1729726230 [23:37:02]current date 1729726625 [23:37:02]FM_GetShiftState [23:37:02]SAM_PROTO_GetShiftState [23:37:02]wFMCommunicate request_size=4 [23:37:02]MH_SAM_APDU [23:37:02]CAPDU: 80 13 01 00 [23:37:02]Write to MH i2c: E2 08 00 4D 0B 80 13 01 00 00 00 00 00 D5 [23:37:02]Write i2c OK [23:37:02]MH_I2C_Read... [23:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:02]Read from MH i2c: E2 [23:37:02]MH_I2C_Read... [23:37:02]Read from MH i2c: E2 0E 00 [23:37:02]MH_I2C_Read... [23:37:02]Read from MH i2c: E2 0E 00 4D 0B 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 BF [23:37:02]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:37:02]wFMCommunicate OK [23:37:02]SAM_PROTO_GetShiftState done [23:37:02]FM_GetShiftState done [23:37:02]opened in 1729642527 [23:37:02]opened+sec_in_day 1729728927 [23:37:02]quantity*price = 8900 [23:37:02]sum+1 = 8901 [23:37:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480814 Пиво Живое 0,5 ст 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.07 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 110 23.10.2024 23:37 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 ФМ: 0000000000874676 ФД: 63381 ФПД: 9354268335410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233705&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63381&fm=9354268335410&tin=02508201610067®Number=0000000000091619&sum=18900 0 [23:37:03]StoreToDocumentArchive [23:37:03]shift 546 fd 63381 [23:37:03]save to /storage/0546/doc_00063381 [23:37:03]save last doc name /storage/0546/doc_00063381 to /storage/kkm_last_doc_name [23:37:03]save OK [23:37:03]Clear old archive folders... [23:37:03]ProcessDocumentItem done err = 0, tmpTLVsize=386 [23:37:03]tlvbuf is 00B0FB80 [23:37:03]SAM_PROTO_ClearQueue [23:37:03]wFMCommunicate request_size=4 [23:37:03]MH_SAM_APDU [23:37:03]CAPDU: 80 09 00 00 [23:37:03]Write to MH i2c: E2 08 00 5A 0B 80 09 00 00 00 00 00 00 D7 [23:37:03]Write i2c OK [23:37:03]MH_I2C_Read... [23:37:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:03]Read from MH i2c: E2 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 5A 0B 00 90 00 D9 [23:37:03]RAPDU: 90 00 [23:37:03]wFMCommunicate OK [23:37:03]SAM_PROTO_ClearQueue done [23:37:03]KKMCreateOFDPacket [23:37:03]OFDProtocolAddRootSTLVToBuf [23:37:03]FM_MakeSignedData [23:37:03]FM_MakeSignedData [23:37:03]SAM_PROTO_SignData [23:37:03]wFMCommunicate request_size=4 [23:37:03]MH_SAM_APDU [23:37:03]CAPDU: 80 0D 01 02 [23:37:03]Write to MH i2c: E2 08 00 5B 0B 80 0D 01 02 00 00 00 00 DF [23:37:03]Write i2c OK [23:37:03]MH_I2C_Read... [23:37:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:03]Read from MH i2c: E2 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [23:37:03]RAPDU: 90 00 [23:37:03]wFMCommunicate OK [23:37:03]wFMCommunicate request_size=255 [23:37:03]MH_SAM_APDU [23:37:03]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [23:37:03]Write to MH i2c: E2 02 01 5C 0B 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 58 [23:37:03]Write i2c OK [23:37:03]MH_I2C_Read... [23:37:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:03]Read from MH i2c: E2 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 [23:37:03]MH_I2C_Read... [23:37:03]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [23:37:03]RAPDU: 90 00 [23:37:03]wFMCommunicate OK [23:37:03]wFMCommunicate request_size=145 [23:37:03]MH_SAM_APDU [23:37:03]CAPDU: 80 0D 02 02 8C 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A1 88 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F7 00 00 35 04 06 00 08 81 F5 D7 5D 32 [23:37:03]Write to MH i2c: E2 94 00 5D 0B 80 0D 02 02 8C 00 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A1 88 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F7 00 00 35 04 06 00 08 81 F5 D7 5D 32 00 00 81 [23:37:03]Write i2c OK [23:37:03]MH_I2C_Read... [23:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:04]Read from MH i2c: E2 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 03 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 03 00 5D 0B 00 90 00 DC [23:37:04]RAPDU: 90 00 [23:37:04]wFMCommunicate OK [23:37:04]wFMCommunicate request_size=4 [23:37:04]MH_SAM_APDU [23:37:04]CAPDU: 80 0D 03 02 [23:37:04]Write to MH i2c: E2 08 00 5E 0B 80 0D 03 02 00 00 00 00 E4 [23:37:04]Write i2c OK [23:37:04]MH_I2C_Read... [23:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:04]Read from MH i2c: E2 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 0B 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 0B 00 5E 0B 00 FC DE C3 D0 D7 12 42 E7 90 00 64 [23:37:04]RAPDU: FC DE C3 D0 D7 12 42 E7 90 00 [23:37:04]wFMCommunicate OK [23:37:04]SAM_PROTO_SignData done [23:37:04]FM_MakeSignedData done [23:37:04]CreateOFDProtocolMessage [23:37:04]wFMCommunicate request_size=4 [23:37:04]MH_SAM_APDU [23:37:04]CAPDU: 80 11 00 00 [23:37:04]Write to MH i2c: E2 08 00 5F 0B 80 11 00 00 00 00 00 00 E4 [23:37:04]Write i2c OK [23:37:04]MH_I2C_Read... [23:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:04]Read from MH i2c: E2 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 17 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: E2 17 00 5F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 3D [23:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:37:04]wFMCommunicate OK [23:37:04]CreateOFDProtocolMessage done [23:37:04]OFDSenderStorePacket 63381 [23:37:04]StoreOFDPacket docnum=63381 [23:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 96 01 00 00 15 54 8E 01 40 84 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A1 88 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F7 00 00 35 04 06 00 08 81 F5 D7 5D 32 FC DE C3 D0 D7 12 42 E7 [23:37:04]CheckFolder [23:37:04]dirname=/storage/ofd_packets [23:37:04]CheckFolder done [23:37:04]ProducePacketName [23:37:04]name=ofd_packets/00063381 [23:37:04]NVStorageSaveData ofd_packets/00063381 [23:37:04]File name is /storage/ofd_packets/00063381 [23:37:04]Write 436 bytes [23:37:04]NVStorageSaveData done [23:37:04]OFDSenderStorePacket done [23:37:04]KKMCreateOFDPacket done [23:37:04]NVStorageSaveData kkm_last_timestamp [23:37:04]File name is /storage/kkm_last_timestamp [23:37:04]Write 4 bytes [23:37:04]NVStorageSaveData done [23:37:04]ExternCall_PrintAddStr [23:37:04]wPrintStart [23:37:04]Write to MH i2c: 01 00 00 60 0B 6B [23:37:04]Write i2c OK [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: 01 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: 01 07 00 [23:37:04]MH_I2C_Read... [23:37:04]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [23:37:04]RasterBufferAndPrint [23:37:04]line Счет N : (3)47691 [23:37:04]line ИНН: 02508201610067 [23:37:04]line Контрольно-Кассовый Чек [23:37:04]line ПРОДАЖА [23:37:04]line Товар: 4700040114120 [23:37:04]line Султан чай 1л. чер персик [23:37:04]line 1.000 * 89.00 [23:37:04]line = 89.00 [23:37:04]line НДС 12% НСП 1% [23:37:04]line > о реализуемом товаре [23:37:04]line Товар: 4700000480814 [23:37:04]line Пиво Живое 0,5 ст [23:37:04]line 1.000 * 100.00 [23:37:04]line = 100.00 [23:37:04]line НДС 12% НСП 1% [23:37:04]line > о реализуемом товаре [23:37:04]line ИТОГО: 189.00 [23:37:04]line НСП 1% : 1.67 [23:37:04]line НДС 12% : 20.07 [23:37:04]line Наличными: 189.00 [23:37:04]line Безнал.: 0.00 [23:37:04]line Место: АЗС № 86 "Партнер Нефть" [23:37:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:37:04]line СНО: Общий режим [23:37:04]line Чек 110 23.10.2024 23:37 [23:37:04]line Смена: 546 ФФД: 1.0 [23:37:04]line ЗНМ: 0300000154 [23:37:04]line РНМ: 0000000000091619 [23:37:04]line Версия ККМ: 001 [23:37:04]line ФМ: 0000000000874676 [23:37:04]line ФД: 63381 [23:37:04]line ФПД: 9354268335410 [23:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233705&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63381&fm=9354268335410&tin=02508201610067®Number=0000000000091619&sum=18900 [23:37:04]line 0 [23:37:04]OFD Sender: Processing packet 63381 [packets to send 232, broken 231] [23:37:04]ProducePacketName [23:37:04]name=ofd_packets/00063381 [23:37:04]OFD Sender: To server: pG, [23:37:04]CommunicateWithHost lk.salyk.kg:30040 [23:37:04]ConnectInit lk.salyk.kg [23:37:04]written 0, free lines is 4095 [23:37:04]Connected sock=10 [23:37:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 96 01 00 00 15 54 8E 01 40 84 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 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 A1 88 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F7 00 00 35 04 06 00 08 81 F5 D7 5D 32 FC DE C3 D0 D7 12 42 E7 [23:37:05]Write to MH i2c: 01 00 00 8E 0B 99 [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: 01 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: 01 07 00 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: 01 07 00 8E 0B 00 00 00 00 00 BC 0C 68 [23:37:05]RasterBufferAndPrint [23:37:05]line [23:37:05]line [23:37:05]line [23:37:05]line [23:37:05]line [23:37:05]written 0, free lines is 3267 [23:37:05]MH_Cut [23:37:05]Write to MH i2c: D1 01 00 95 0B 01 72 [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: D1 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: D1 01 00 [23:37:05]MH_I2C_Read... [23:37:05]Read from MH i2c: D1 01 00 95 0B 00 71 [23:37:05]Write to MH i2c: 01 00 00 96 0B A1 [23:37:05]Write i2c OK [23:37:05]MH_I2C_Read... [23:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 0D AD 47 00 CB F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 95 F7 00 00 F4 03 04 00 97 32 19 67 B6 04 01 00 00 4B 84 DB FC B2 5D 93 18 [23:37:05]CommunicateWithHost err = 0 [23:37:05]CheckOFDResponse [23:37:05]1017 (14) - 77093643461234 [23:37:05]1041 (16) - 0000000000874676 [23:37:05]1040 (4) - 63381 [23:37:05]1012 (4) - 23.10.2024 17:29 [23:37:05]1206 (1) - 0 [23:37:05]OFD Sender: Remove packet 63381 [23:37:05]ProducePacketName [23:37:05]name=ofd_packets/00063381 [23:37:05]NVStorageDeleteData [23:37:05]OFD Sender: No OFD packet to send [23:37:05]*** Cut start [23:37:05]*** Partial cut [23:37:05]*** CUTSNS_PIN = 1 [23:37:05]*** CUTSNS_PIN = 0 [23:37:06]*** Brake cut motor [23:37:06]Read from MH i2c: 01 [23:37:06]MH_I2C_Read... [23:37:06]*** Stop cut motor [23:37:06]*** Cut end [23:37:06]Read from MH i2c: 01 07 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: 01 07 00 96 0B 00 00 00 00 00 FF 0F B6 [23:37:06]process_action close_receipt done [23:37:06]requested_data is exist [23:37:06]produce_requested_data [23:37:06]requested_item fm.sn is exist - process it [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 11 00 00 [23:37:06]Write to MH i2c: E2 08 00 97 0B 80 11 00 00 00 00 00 00 1C [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 17 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 17 00 97 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 75 [23:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:37:06]wFMCommunicate OK [23:37:06]requested_item fd.num is exist - process it [23:37:06]SAM_PROTO_GetFieldsCounters [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 13 00 00 [23:37:06]Write to MH i2c: E2 08 00 98 0B 80 13 00 00 00 00 00 00 1F [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 62 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 62 00 98 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 95 F7 00 00 0E 04 04 00 22 02 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 41 [23:37:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 95 F7 00 00 0E 04 04 00 22 02 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 [23:37:06]wFMCommunicate OK [23:37:06]SAM_PROTO_GetFieldsCounters done [23:37:06]requested_item shift.num is exist - process it [23:37:06]requested_item shift.opened is exist - process it [23:37:06]req_shift_opened [23:37:06]FM_GetShiftState [23:37:06]SAM_PROTO_GetShiftState [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 13 01 00 [23:37:06]Write to MH i2c: E2 08 00 99 0B 80 13 01 00 00 00 00 00 21 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0E 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0E 00 99 0B 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 0B [23:37:06]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:37:06]wFMCommunicate OK [23:37:06]SAM_PROTO_GetShiftState done [23:37:06]FM_GetShiftState done [23:37:06]req_shift_opened done [23:37:06]requested_item shift.open_date is exist - process it [23:37:06]req_shift_open_date [23:37:06]req_shift_open_date done [23:37:06]produce_requested_data done [23:37:06]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63381,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [23:37:06]process_action_free close_receipt [23:37:06]json_value_free [23:37:06]json_value_free done [23:37:06]process_json_proto returns [23:37:06]Send response to host [23:37:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63381,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [23:37:06]free response buf [23:37:06]execute_script done [23:37:06]execute_script returns [23:37:06]free content buf [23:37:06]Sock 7.Close socket [23:37:06]Sock 7.Thread stoped [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:34]accept exits with 9 [23:39:34]New connection [23:39:34]New thread 3066633572 created [23:39:34]Thread 3066490212 joined [23:39:34]Waiting for new connection... [23:39:34] Sock 9.Parse request [23:39:34]Sock 9.Check first char [23:39:34]Sock 9.First char is OK [23:39:34]request: POST /json_proto HTTP/1.0 [23:39:34]Method: POST [23:39:34]URL: /json_proto [23:39:34]Method is POST - this is cgi request [23:39:34]url: /json_proto [23:39:34]query_string will be loaded in cgi processing [23:39:34]execute_cgi json_proto POST (null) [23:39:34]execute_cgi path=json_proto method=POST [23:39:34]POST find Content-Length [23:39:34]Host: 172.17.42.132:8080 [23:39:34]Content-Length: 771 [23:39:34]Content-Type: application/json [23:39:34] [23:39:34]POST finish read [23:39:34]Found Content-Length = 771 [23:39:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47692", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 64.42, "quantity" : 1.000, "sum" : 64.42, "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", "payments": [ { "type": 1, "sum" : 64.42 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:34]execute_script... [23:39:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)47692", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 64.42, "quantity" : 1.000, "sum" : 64.42, "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", "payments": [ { "type": 1, "sum" : 64.42 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:34]POST & json_proto [23:39:34]process_json_proto [23:39:34]json parsed OK: [23:39:34]protocol is kg_v1.0 [23:39:34]action value=close_receipt [23:39:34]process_action close_receipt [23:39:34]cmd_close_receipt [23:39:34]MH_GetDate [23:39:34]Write to MH i2c: F0 00 00 9A 0B 94 [23:39:34]Write i2c OK [23:39:34]MH_I2C_Read... [23:39:34]Read from MH i2c: F0 [23:39:34]MH_I2C_Read... [23:39:34]Read from MH i2c: F0 09 00 [23:39:34]MH_I2C_Read... [23:39:34]Read from MH i2c: F0 09 00 9A 0B 00 38 89 19 67 4C DF 56 66 C5 [23:39:34]GetLastDocTimeStamp 1729726625 [23:39:34]current date 1729726776 [23:39:34]FM_GetShiftState [23:39:34]SAM_PROTO_GetShiftState [23:39:34]wFMCommunicate request_size=4 [23:39:34]MH_SAM_APDU [23:39:34]CAPDU: 80 13 01 00 [23:39:34]Write to MH i2c: E2 08 00 9B 0B 80 13 01 00 00 00 00 00 23 [23:39:34]Write i2c OK [23:39:34]MH_I2C_Read... [23:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:34]Read from MH i2c: E2 [23:39:34]MH_I2C_Read... [23:39:34]Read from MH i2c: E2 0E 00 [23:39:34]MH_I2C_Read... [23:39:34]Read from MH i2c: E2 0E 00 9B 0B 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 0D [23:39:34]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:39:34]wFMCommunicate OK [23:39:34]SAM_PROTO_GetShiftState done [23:39:34]FM_GetShiftState done [23:39:34]opened in 1729642527 [23:39:34]opened+sec_in_day 1729728927 [23:39:34]quantity*price = 6442 [23:39:34]sum+1 = 6443 [23:39:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 64.42 НСП 1% : 0.57 НДС 12% : 6.84 Наличными: 0.00 Безнал.: 64.42 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 111 23.10.2024 23:39 Смена: 546 ФФД: 1.0 ЗНМ: 0300000154 РНМ: 0000000000091619 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874676 ФД: 63382 ФПД: 147011111052025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63382&fm=147011111052025&tin=02508201610067®Number=0000000000091619&sum=6442 0 [23:39:35]StoreToDocumentArchive [23:39:35]shift 546 fd 63382 [23:39:35]save to /storage/0546/doc_00063382 [23:39:35]save last doc name /storage/0546/doc_00063382 to /storage/kkm_last_doc_name [23:39:35]save OK [23:39:35]Clear old archive folders... [23:39:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:39:35]tlvbuf is 00B88B00 [23:39:35]SAM_PROTO_ClearQueue [23:39:35]wFMCommunicate request_size=4 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 09 00 00 [23:39:35]Write to MH i2c: E2 08 00 A8 0B 80 09 00 00 00 00 00 00 25 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 A8 0B 00 90 00 27 [23:39:35]RAPDU: 90 00 [23:39:35]wFMCommunicate OK [23:39:35]SAM_PROTO_ClearQueue done [23:39:35]KKMCreateOFDPacket [23:39:35]OFDProtocolAddRootSTLVToBuf [23:39:35]FM_MakeSignedData [23:39:35]FM_MakeSignedData [23:39:35]SAM_PROTO_SignData [23:39:35]wFMCommunicate request_size=4 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 0D 01 02 [23:39:35]Write to MH i2c: E2 08 00 A9 0B 80 0D 01 02 00 00 00 00 2D [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 A9 0B 00 90 00 28 [23:39:35]RAPDU: 90 00 [23:39:35]wFMCommunicate OK [23:39:35]wFMCommunicate request_size=255 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2A 19 00 00 00 00 13 04 06 00 2A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 38 89 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 [23:39:35]Write to MH i2c: E2 02 01 AA 0B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2A 19 00 00 00 00 13 04 06 00 2A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 38 89 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 00 00 60 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [23:39:35]RAPDU: 90 00 [23:39:35]wFMCommunicate OK [23:39:35]wFMCommunicate request_size=31 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 37 36 10 04 04 00 96 F7 00 00 35 04 06 00 85 B4 B1 0D 62 F9 [23:39:35]Write to MH i2c: E2 22 00 AB 0B 80 0D 02 02 1A 00 30 30 38 37 34 36 37 36 10 04 04 00 96 F7 00 00 35 04 06 00 85 B4 B1 0D 62 F9 00 00 40 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [23:39:35]RAPDU: 90 00 [23:39:35]wFMCommunicate OK [23:39:35]wFMCommunicate request_size=4 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 0D 03 02 [23:39:35]Write to MH i2c: E2 08 00 AC 0B 80 0D 03 02 00 00 00 00 32 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 0B 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 0B 00 AC 0B 00 DD 56 53 B2 C4 49 B2 A9 90 00 D3 [23:39:35]RAPDU: DD 56 53 B2 C4 49 B2 A9 90 00 [23:39:35]wFMCommunicate OK [23:39:35]SAM_PROTO_SignData done [23:39:35]FM_MakeSignedData done [23:39:35]CreateOFDProtocolMessage [23:39:35]wFMCommunicate request_size=4 [23:39:35]MH_SAM_APDU [23:39:35]CAPDU: 80 11 00 00 [23:39:35]Write to MH i2c: E2 08 00 AD 0B 80 11 00 00 00 00 00 00 32 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:35]Read from MH i2c: E2 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 17 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: E2 17 00 AD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 8B [23:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:39:35]wFMCommunicate OK [23:39:35]CreateOFDProtocolMessage done [23:39:35]OFDSenderStorePacket 63382 [23:39:35]StoreOFDPacket docnum=63382 [23:39:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 97 04 1C 01 F7 4E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2A 19 00 00 00 00 13 04 06 00 2A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 38 89 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 96 F7 00 00 35 04 06 00 85 B4 B1 0D 62 F9 DD 56 53 B2 C4 49 B2 A9 [23:39:35]CheckFolder [23:39:35]dirname=/storage/ofd_packets [23:39:35]CheckFolder done [23:39:35]ProducePacketName [23:39:35]name=ofd_packets/00063382 [23:39:35]NVStorageSaveData ofd_packets/00063382 [23:39:35]File name is /storage/ofd_packets/00063382 [23:39:35]Write 322 bytes [23:39:35]NVStorageSaveData done [23:39:35]OFDSenderStorePacket done [23:39:35]KKMCreateOFDPacket done [23:39:35]NVStorageSaveData kkm_last_timestamp [23:39:35]File name is /storage/kkm_last_timestamp [23:39:35]Write 4 bytes [23:39:35]NVStorageSaveData done [23:39:35]ExternCall_PrintAddStr [23:39:35]wPrintStart [23:39:35]Write to MH i2c: 01 00 00 AE 0B B9 [23:39:35]Write i2c OK [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: 01 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: 01 07 00 [23:39:35]MH_I2C_Read... [23:39:35]Read from MH i2c: 01 07 00 AE 0B 00 00 00 00 00 FF 0F CE [23:39:35]RasterBufferAndPrint [23:39:35]line Счет N : (3)47692 [23:39:35]line ИНН: 02508201610067 [23:39:35]line Контрольно-Кассовый Чек [23:39:35]line ПРОДАЖА [23:39:35]line Товар: 47011656 [23:39:35]line Водка Пшеничная 0,1л [23:39:35]line 1.000 * 64.42 [23:39:35]line = 64.42 [23:39:35]line НДС 12% НСП 1% [23:39:35]line > о реализуемом товаре [23:39:35]line ИТОГО: 64.42 [23:39:35]line НСП 1% : 0.57 [23:39:35]line НДС 12% : 6.84 [23:39:35]line Наличными: 0.00 [23:39:35]line Безнал.: 64.42 [23:39:35]line Место: АЗС № 86 "Партнер Нефть" [23:39:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:39:35]line СНО: Общий режим [23:39:35]line Чек 111 23.10.2024 23:39 [23:39:35]line Смена: 546 ФФД: 1.0 [23:39:35]line ЗНМ: 0300000154 [23:39:35]line РНМ: 0000000000091619 [23:39:35]line Версия ККМ: 001 [23:39:35]line Платежная система: Mbank [23:39:35]line ФМ: 0000000000874676 [23:39:35]line ФД: 63382 [23:39:35]line ФПД: 147011111052025 [23:39:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T233936&type=1&operation_type=1&fn_number=0000000000874676&fd_number=63382&fm=147011111052025&tin=02508201610067®Number=0000000000091619&sum=6442 [23:39:36]line 0 [23:39:36]OFD Sender: Processing packet 63382 [packets to send 232, broken 231] [23:39:36]ProducePacketName [23:39:36]name=ofd_packets/00063382 [23:39:36]OFD Sender: To server: pG, [23:39:36]CommunicateWithHost lk.salyk.kg:30040 [23:39:36]ConnectInit lk.salyk.kg [23:39:36]written 0, free lines is 4095 [23:39:36]Connected sock=10 [23:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 24 01 00 00 97 04 1C 01 F7 4E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2A 19 00 00 00 00 13 04 06 00 2A 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2A 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2A 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 38 89 19 67 0E 04 04 00 22 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 96 F7 00 00 35 04 06 00 85 B4 B1 0D 62 F9 DD 56 53 B2 C4 49 B2 A9 [23:39:36]Write to MH i2c: 01 00 00 D7 0B E2 [23:39:36]Write i2c OK [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: 01 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: 01 07 00 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: 01 07 00 D7 0B 00 00 00 00 00 02 0D F8 [23:39:36]RasterBufferAndPrint [23:39:36]line [23:39:36]line [23:39:36]line [23:39:36]line [23:39:36]line [23:39:36]written 0, free lines is 3336 [23:39:36]MH_Cut [23:39:36]Write to MH i2c: D1 01 00 DE 0B 01 BB [23:39:36]Write i2c OK [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: D1 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: D1 01 00 [23:39:36]MH_I2C_Read... [23:39:36]Read from MH i2c: D1 01 00 DE 0B 00 BA [23:39:36]Write to MH i2c: 01 00 00 DF 0B EA [23:39:36]Write i2c OK [23:39:36]MH_I2C_Read... [23:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 4F 00 00 00 68 89 47 00 DB EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 10 04 04 00 96 F7 00 00 F4 03 04 00 2E 33 19 67 B6 04 01 00 00 9E D5 75 D7 31 69 2D 06 [23:39:36]CommunicateWithHost err = 0 [23:39:36]CheckOFDResponse [23:39:36]1017 (14) - 77093643461234 [23:39:36]1041 (16) - 0000000000874676 [23:39:36]1040 (4) - 63382 [23:39:36]1012 (4) - 23.10.2024 17:32 [23:39:36]1206 (1) - 0 [23:39:36]OFD Sender: Remove packet 63382 [23:39:36]ProducePacketName [23:39:36]name=ofd_packets/00063382 [23:39:36]NVStorageDeleteData [23:39:37]OFD Sender: No OFD packet to send [23:39:37]*** Cut start [23:39:37]*** Partial cut [23:39:37]*** CUTSNS_PIN = 1 [23:39:37]*** CUTSNS_PIN = 0 [23:39:37]*** Brake cut motor [23:39:37]Read from MH i2c: 01 [23:39:37]MH_I2C_Read... [23:39:37]*** Stop cut motor [23:39:37]*** Cut end [23:39:37]Read from MH i2c: 01 07 00 [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: 01 07 00 DF 0B 00 00 00 00 00 FF 0F FF [23:39:37]process_action close_receipt done [23:39:37]requested_data is exist [23:39:37]produce_requested_data [23:39:37]requested_item fm.sn is exist - process it [23:39:37]wFMCommunicate request_size=4 [23:39:37]MH_SAM_APDU [23:39:37]CAPDU: 80 11 00 00 [23:39:37]Write to MH i2c: E2 08 00 E0 0B 80 11 00 00 00 00 00 00 65 [23:39:37]Write i2c OK [23:39:37]MH_I2C_Read... [23:39:37]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:38]Read from MH i2c: E2 17 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 17 00 E0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 BE [23:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 90 00 [23:39:38]wFMCommunicate OK [23:39:38]requested_item fd.num is exist - process it [23:39:38]SAM_PROTO_GetFieldsCounters [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 13 00 00 [23:39:38]Write to MH i2c: E2 08 00 E1 0B 80 13 00 00 00 00 00 00 68 [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 62 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 62 00 E1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 96 F7 00 00 0E 04 04 00 22 02 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 8E [23:39:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 37 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 31 39 10 04 04 00 96 F7 00 00 0E 04 04 00 22 02 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 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_GetFieldsCounters done [23:39:38]requested_item shift.num is exist - process it [23:39:38]requested_item shift.opened is exist - process it [23:39:38]req_shift_opened [23:39:38]FM_GetShiftState [23:39:38]SAM_PROTO_GetShiftState [23:39:38]wFMCommunicate request_size=4 [23:39:38]MH_SAM_APDU [23:39:38]CAPDU: 80 13 01 00 [23:39:38]Write to MH i2c: E2 08 00 E2 0B 80 13 01 00 00 00 00 00 6A [23:39:38]Write i2c OK [23:39:38]MH_I2C_Read... [23:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:38]Read from MH i2c: E2 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0E 00 [23:39:38]MH_I2C_Read... [23:39:38]Read from MH i2c: E2 0E 00 E2 0B 00 09 00 01 1F 40 18 67 00 00 00 00 90 00 54 [23:39:38]RAPDU: 09 00 01 1F 40 18 67 00 00 00 00 90 00 [23:39:38]wFMCommunicate OK [23:39:38]SAM_PROTO_GetShiftState done [23:39:38]FM_GetShiftState done [23:39:38]req_shift_opened done [23:39:38]requested_item shift.open_date is exist - process it [23:39:38]req_shift_open_date [23:39:38]req_shift_open_date done [23:39:38]produce_requested_data done [23:39:38]produce_requested_data return {"fm.sn":"0000000000874676","fd.num":63382,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527} [23:39:38]process_action_free close_receipt [23:39:38]json_value_free [23:39:38]json_value_free done [23:39:38]process_json_proto returns [23:39:38]Send response to host [23:39:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874676","fd.num":63382,"shift.num":546,"shift.opened":1,"shift.open_date":1729642527}}} [23:39:38]free response buf [23:39:38]execute_script done [23:39:38]execute_script returns [23:39:38]free content buf [23:39:38]Sock 9.Close socket [23:39:38]Sock 9.Thread stoped [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send